diff --git a/CHANGELOG.md b/CHANGELOG.md index 34cd4be..658f26e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ + + +## v5.1.0 + +ENHANCEMENTS: + +* Added `owner_id` field to the `api_key`, `credential`, and `ssh_credential` resources. If supplied at credential creation, ownership will be assigned to the specified User or Bot. Only admins may specify an owner other than themselves. Defaults to the authenticated User or Bot. +* Added `failover_backend`, `http_response_backend`, and `tunnel_group_backend` resources. A Failover backend defines failover behavior within a list of referenced backends. Traffic is sent to the first backend in the list. If that backend is offline or no connection can be established, ngrok attempts to connect to the next backend in the list until one is successful. + ## v5.0.0 ### Breaking Changes @@ -18,3 +27,4 @@ Hostports: []string `json:"hostports,omitempty"` ### Additions New clients have been generated for `ApplicationSessions` and `ApplicationUsers`. + diff --git a/README.md b/README.md index ff4e036..c395970 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ + + # ngrok API client library for Golang [![CI](https://github.com/ngrok/ngrok-api-go/actions/workflows/ci.yml/badge.svg)](https://github.com/ngrok/ngrok-api-go/actions/workflows/ci.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/ngrok/ngrok-api-go.svg)](https://pkg.go.dev/github.com/ngrok/ngrok-api-go/v5) @@ -5,12 +7,18 @@ This library wraps the [ngrok HTTP API](https://ngrok.com/docs/api) to make it easier to consume in Go. +For creating ngrok tunnels directly from your Go application, check out the [ngrok Go Agent SDK](https://github.com/ngrok/ngrok-go) instead. + ## Installation Installation is as simple as using `go get`. go get github.com/ngrok/ngrok-api-go/v5 +## Support + +The best place to get support using this library is through the [ngrok Slack Community](https://ngrok.com/slack). If you find any bugs, please contribute by opening a [new GitHub issue](https://github.com/ngrok/ngrok-api-go/issues/new/choose). + ## Documentation A quickstart guide and a full API reference are included in the [ngrok go API documentation on pkg.go.dev](https://pkg.go.dev/github.com/ngrok/ngrok-api-go/v5) diff --git a/abuse_reports/client.go b/abuse_reports/client.go index 2f4bb5d..8ce728d 100644 --- a/abuse_reports/client.go +++ b/abuse_reports/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package abuse_reports diff --git a/agent_ingresses/client.go b/agent_ingresses/client.go index 8b98955..2e498b9 100644 --- a/agent_ingresses/client.go +++ b/agent_ingresses/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package agent_ingresses diff --git a/api_keys/client.go b/api_keys/client.go index 7ba30dc..ec8de0f 100644 --- a/api_keys/client.go +++ b/api_keys/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package api_keys diff --git a/application_sessions/client.go b/application_sessions/client.go index d914030..d05a283 100644 --- a/application_sessions/client.go +++ b/application_sessions/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package application_sessions diff --git a/application_users/client.go b/application_users/client.go index 35bbf70..edf211c 100644 --- a/application_users/client.go +++ b/application_users/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package application_users diff --git a/backends/failover/client.go b/backends/failover/client.go index 8398129..c1b3b7b 100644 --- a/backends/failover/client.go +++ b/backends/failover/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package failover diff --git a/backends/http_response/client.go b/backends/http_response/client.go index 983db15..2e91cbc 100644 --- a/backends/http_response/client.go +++ b/backends/http_response/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package http_response diff --git a/backends/tunnel_group/client.go b/backends/tunnel_group/client.go index 2f5e51a..e6a3b89 100644 --- a/backends/tunnel_group/client.go +++ b/backends/tunnel_group/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package tunnel_group diff --git a/backends/weighted/client.go b/backends/weighted/client.go index c7bd4b5..c3634ef 100644 --- a/backends/weighted/client.go +++ b/backends/weighted/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package weighted diff --git a/certificate_authorities/client.go b/certificate_authorities/client.go index 19f8e99..18c5b8b 100644 --- a/certificate_authorities/client.go +++ b/certificate_authorities/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package certificate_authorities diff --git a/client_config.go b/client_config.go index 0579cd9..d94e033 100644 --- a/client_config.go +++ b/client_config.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package ngrok diff --git a/credentials/client.go b/credentials/client.go index d2cf1b8..c2831e0 100644 --- a/credentials/client.go +++ b/credentials/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package credentials diff --git a/datatypes.go b/datatypes.go index 08655ae..c7755a6 100644 --- a/datatypes.go +++ b/datatypes.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package ngrok @@ -206,6 +206,9 @@ type AgentIngressCreate struct { // the domain that you own to be used as the base domain name to generate regional // agent ingress domains. Domain string `json:"domain,omitempty"` + // configuration for automatic management of TLS certificates for this domain, or + // null if automatic management is disabled. Optional. + CertificateManagementPolicy *AgentIngressCertPolicy `json:"certificate_management_policy,omitempty"` } func (x *AgentIngressCreate) String() string { @@ -219,6 +222,7 @@ func (x *AgentIngressCreate) GoString() string { fmt.Fprintf(tw, "\tDescription\t%v\n", x.Description) fmt.Fprintf(tw, "\tMetadata\t%v\n", x.Metadata) fmt.Fprintf(tw, "\tDomain\t%v\n", x.Domain) + fmt.Fprintf(tw, "\tCertificateManagementPolicy\t%v\n", x.CertificateManagementPolicy) tw.Flush() fmt.Fprintf(&b, "}\n") return b.String() @@ -232,6 +236,9 @@ type AgentIngressUpdate struct { // arbitrary user-defined machine-readable data of this Agent Ingress. optional, // max 4096 bytes Metadata *string `json:"metadata,omitempty"` + // configuration for automatic management of TLS certificates for this domain, or + // null if automatic management is disabled. Optional. + CertificateManagementPolicy *AgentIngressCertPolicy `json:"certificate_management_policy,omitempty"` } func (x *AgentIngressUpdate) String() string { @@ -246,6 +253,7 @@ func (x *AgentIngressUpdate) GoString() string { fmt.Fprintf(tw, "\tID\t%v\n", x.ID) fmt.Fprintf(tw, "\tDescription\t%v\n", x.Description) fmt.Fprintf(tw, "\tMetadata\t%v\n", x.Metadata) + fmt.Fprintf(tw, "\tCertificateManagementPolicy\t%v\n", x.CertificateManagementPolicy) tw.Flush() fmt.Fprintf(&b, "}\n") return b.String() @@ -273,6 +281,12 @@ type AgentIngress struct { RegionDomains []string `json:"region_domains,omitempty"` // timestamp when the Agent Ingress was created, RFC 3339 format CreatedAt string `json:"created_at,omitempty"` + // configuration for automatic management of TLS certificates for this domain, or + // null if automatic management is disabled + CertificateManagementPolicy *AgentIngressCertPolicy `json:"certificate_management_policy,omitempty"` + // status of the automatic certificate management for this domain, or null if + // automatic management is disabled + CertificateManagementStatus *AgentIngressCertStatus `json:"certificate_management_status,omitempty"` } func (x *AgentIngress) String() string { @@ -292,6 +306,8 @@ func (x *AgentIngress) GoString() string { fmt.Fprintf(tw, "\tNSTargets\t%v\n", x.NSTargets) fmt.Fprintf(tw, "\tRegionDomains\t%v\n", x.RegionDomains) fmt.Fprintf(tw, "\tCreatedAt\t%v\n", x.CreatedAt) + fmt.Fprintf(tw, "\tCertificateManagementPolicy\t%v\n", x.CertificateManagementPolicy) + fmt.Fprintf(tw, "\tCertificateManagementStatus\t%v\n", x.CertificateManagementStatus) tw.Flush() fmt.Fprintf(&b, "}\n") return b.String() @@ -322,12 +338,93 @@ func (x *AgentIngressList) GoString() string { return b.String() } +type AgentIngressCertPolicy struct { + // certificate authority to request certificates from. The only supported value is + // letsencrypt. + Authority string `json:"authority,omitempty"` + // type of private key to use when requesting certificates. Defaults to rsa, can be + // either rsa or ecdsa. + PrivateKeyType string `json:"private_key_type,omitempty"` +} + +func (x *AgentIngressCertPolicy) String() string { + return x.GoString() +} + +func (x *AgentIngressCertPolicy) GoString() string { + var b bytes.Buffer + fmt.Fprintf(&b, "AgentIngressCertPolicy {\n") + tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0) + fmt.Fprintf(tw, "\tAuthority\t%v\n", x.Authority) + fmt.Fprintf(tw, "\tPrivateKeyType\t%v\n", x.PrivateKeyType) + tw.Flush() + fmt.Fprintf(&b, "}\n") + return b.String() +} + +type AgentIngressCertStatus struct { + // timestamp when the next renewal will be requested, RFC 3339 format + RenewsAt *string `json:"renews_at,omitempty"` + // status of the certificate provisioning job, or null if the certificiate isn't + // being provisioned or renewed + ProvisioningJob *AgentIngressCertJob `json:"provisioning_job,omitempty"` +} + +func (x *AgentIngressCertStatus) String() string { + return x.GoString() +} + +func (x *AgentIngressCertStatus) GoString() string { + var b bytes.Buffer + fmt.Fprintf(&b, "AgentIngressCertStatus {\n") + tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0) + fmt.Fprintf(tw, "\tRenewsAt\t%v\n", x.RenewsAt) + fmt.Fprintf(tw, "\tProvisioningJob\t%v\n", x.ProvisioningJob) + tw.Flush() + fmt.Fprintf(&b, "}\n") + return b.String() +} + +type AgentIngressCertJob struct { + // if present, an error code indicating why provisioning is failing. It may be + // either a temporary condition (INTERNAL_ERROR), or a permanent one the user must + // correct (DNS_ERROR). + ErrorCode *string `json:"error_code,omitempty"` + // a message describing the current status or error + Msg string `json:"msg,omitempty"` + // timestamp when the provisioning job started, RFC 3339 format + StartedAt string `json:"started_at,omitempty"` + // timestamp when the provisioning job will be retried + RetriesAt *string `json:"retries_at,omitempty"` +} + +func (x *AgentIngressCertJob) String() string { + return x.GoString() +} + +func (x *AgentIngressCertJob) GoString() string { + var b bytes.Buffer + fmt.Fprintf(&b, "AgentIngressCertJob {\n") + tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0) + fmt.Fprintf(tw, "\tErrorCode\t%v\n", x.ErrorCode) + fmt.Fprintf(tw, "\tMsg\t%v\n", x.Msg) + fmt.Fprintf(tw, "\tStartedAt\t%v\n", x.StartedAt) + fmt.Fprintf(tw, "\tRetriesAt\t%v\n", x.RetriesAt) + tw.Flush() + fmt.Fprintf(&b, "}\n") + return b.String() +} + type APIKeyCreate struct { // human-readable description of what uses the API key to authenticate. optional, // max 255 bytes. Description string `json:"description,omitempty"` // arbitrary user-defined data of this API key. optional, max 4096 bytes Metadata string `json:"metadata,omitempty"` + // If supplied at credential creation, ownership will be assigned to the specified + // User or Bot. Only admins may specify an owner other than themselves. Defaults to + // the authenticated User or Bot. + OwnerID *string `json:"owner_id,omitempty"` } func (x *APIKeyCreate) String() string { @@ -340,6 +437,7 @@ func (x *APIKeyCreate) GoString() string { tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0) fmt.Fprintf(tw, "\tDescription\t%v\n", x.Description) fmt.Fprintf(tw, "\tMetadata\t%v\n", x.Metadata) + fmt.Fprintf(tw, "\tOwnerID\t%v\n", x.OwnerID) tw.Flush() fmt.Fprintf(&b, "}\n") return b.String() @@ -387,6 +485,10 @@ type APIKey struct { // authenticate request to the ngrok API. This value is only available one time, on // the API response from key creation. Otherwise it is null. Token *string `json:"token,omitempty"` + // If supplied at credential creation, ownership will be assigned to the specified + // User or Bot. Only admins may specify an owner other than themselves. Defaults to + // the authenticated User or Bot. + OwnerID *string `json:"owner_id,omitempty"` } func (x *APIKey) String() string { @@ -404,6 +506,7 @@ func (x *APIKey) GoString() string { fmt.Fprintf(tw, "\tMetadata\t%v\n", x.Metadata) fmt.Fprintf(tw, "\tCreatedAt\t%v\n", x.CreatedAt) fmt.Fprintf(tw, "\tToken\t%v\n", x.Token) + fmt.Fprintf(tw, "\tOwnerID\t%v\n", x.OwnerID) tw.Flush() fmt.Fprintf(&b, "}\n") return b.String() @@ -691,6 +794,99 @@ func (x *IdentityProvider) GoString() string { return b.String() } +type TunnelSession struct { + // version of the ngrok agent that started this ngrok tunnel session + AgentVersion string `json:"agent_version,omitempty"` + // reference to the tunnel credential or ssh credential used by the ngrok agent to + // start this tunnel session + Credential Ref `json:"credential,omitempty"` + // unique tunnel session resource identifier + ID string `json:"id,omitempty"` + // source ip address of the tunnel session + IP string `json:"ip,omitempty"` + // arbitrary user-defined data specified in the metadata property in the ngrok + // configuration file. See the metadata configuration option + Metadata string `json:"metadata,omitempty"` + // operating system of the host the ngrok agent is running on + OS string `json:"os,omitempty"` + // the ngrok region identifier in which this tunnel session was started + Region string `json:"region,omitempty"` + // time when the tunnel session first connected to the ngrok servers + StartedAt string `json:"started_at,omitempty"` + // the transport protocol used to start the tunnel session. Either ngrok/v2 or ssh + Transport string `json:"transport,omitempty"` + // URI to the API resource of the tunnel session + URI string `json:"uri,omitempty"` +} + +func (x *TunnelSession) String() string { + return fmt.Sprintf("TunnelSession{ID: %v}", x.ID) + +} + +func (x *TunnelSession) GoString() string { + var b bytes.Buffer + fmt.Fprintf(&b, "TunnelSession {\n") + tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0) + fmt.Fprintf(tw, "\tAgentVersion\t%v\n", x.AgentVersion) + fmt.Fprintf(tw, "\tCredential\t%v\n", x.Credential) + fmt.Fprintf(tw, "\tID\t%v\n", x.ID) + fmt.Fprintf(tw, "\tIP\t%v\n", x.IP) + fmt.Fprintf(tw, "\tMetadata\t%v\n", x.Metadata) + fmt.Fprintf(tw, "\tOS\t%v\n", x.OS) + fmt.Fprintf(tw, "\tRegion\t%v\n", x.Region) + fmt.Fprintf(tw, "\tStartedAt\t%v\n", x.StartedAt) + fmt.Fprintf(tw, "\tTransport\t%v\n", x.Transport) + fmt.Fprintf(tw, "\tURI\t%v\n", x.URI) + tw.Flush() + fmt.Fprintf(&b, "}\n") + return b.String() +} + +type TunnelSessionList struct { + // list of all tunnel sessions on this account + TunnelSessions []TunnelSession `json:"tunnel_sessions,omitempty"` + // URI to the API resource of the tunnel session list + URI string `json:"uri,omitempty"` + // URI of the next page, or null if there is no next page + NextPageURI *string `json:"next_page_uri,omitempty"` +} + +func (x *TunnelSessionList) String() string { + return x.GoString() +} + +func (x *TunnelSessionList) GoString() string { + var b bytes.Buffer + fmt.Fprintf(&b, "TunnelSessionList {\n") + tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0) + fmt.Fprintf(tw, "\tTunnelSessions\t%v\n", x.TunnelSessions) + fmt.Fprintf(tw, "\tURI\t%v\n", x.URI) + fmt.Fprintf(tw, "\tNextPageURI\t%v\n", x.NextPageURI) + tw.Flush() + fmt.Fprintf(&b, "}\n") + return b.String() +} + +type TunnelSessionsUpdate struct { + ID string `json:"id,omitempty"` +} + +func (x *TunnelSessionsUpdate) String() string { + return fmt.Sprintf("TunnelSessionsUpdate{ID: %v}", x.ID) + +} + +func (x *TunnelSessionsUpdate) GoString() string { + var b bytes.Buffer + fmt.Fprintf(&b, "TunnelSessionsUpdate {\n") + tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0) + fmt.Fprintf(tw, "\tID\t%v\n", x.ID) + tw.Flush() + fmt.Fprintf(&b, "}\n") + return b.String() +} + type FailoverBackend struct { // unique identifier for this Failover backend ID string `json:"id,omitempty"` @@ -1312,6 +1508,10 @@ type CredentialCreate struct { // y=example, etc. A rule of '*' is equivalent to no acl at all and will explicitly // permit all actions. ACL []string `json:"acl,omitempty"` + // If supplied at credential creation, ownership will be assigned to the specified + // User or Bot. Only admins may specify an owner other than themselves. Defaults to + // the authenticated User or Bot. + OwnerID *string `json:"owner_id,omitempty"` } func (x *CredentialCreate) String() string { @@ -1325,6 +1525,7 @@ func (x *CredentialCreate) GoString() string { fmt.Fprintf(tw, "\tDescription\t%v\n", x.Description) fmt.Fprintf(tw, "\tMetadata\t%v\n", x.Metadata) fmt.Fprintf(tw, "\tACL\t%v\n", x.ACL) + fmt.Fprintf(tw, "\tOwnerID\t%v\n", x.OwnerID) tw.Flush() fmt.Fprintf(&b, "}\n") return b.String() @@ -1401,6 +1602,10 @@ type Credential struct { // y=example, etc. A rule of '*' is equivalent to no acl at all and will explicitly // permit all actions. ACL []string `json:"acl,omitempty"` + // If supplied at credential creation, ownership will be assigned to the specified + // User or Bot. Only admins may specify an owner other than themselves. Defaults to + // the authenticated User or Bot. + OwnerID *string `json:"owner_id,omitempty"` } func (x *Credential) String() string { @@ -1419,6 +1624,7 @@ func (x *Credential) GoString() string { fmt.Fprintf(tw, "\tMetadata\t%v\n", x.Metadata) fmt.Fprintf(tw, "\tToken\t%v\n", x.Token) fmt.Fprintf(tw, "\tACL\t%v\n", x.ACL) + fmt.Fprintf(tw, "\tOwnerID\t%v\n", x.OwnerID) tw.Flush() fmt.Fprintf(&b, "}\n") return b.String() @@ -1455,8 +1661,8 @@ type EndpointWebhookValidation struct { Enabled *bool `json:"enabled,omitempty"` // a string indicating which webhook provider will be sending webhooks to this // endpoint. Value must be one of the supported providers defined at - // https://ngrok.com/docs/cloud-edge#webhook-verification - // (https://ngrok.com/docs/cloud-edge#webhook-verification) + // https://ngrok.com/docs/cloud-edge/modules/webhook + // (https://ngrok.com/docs/cloud-edge/modules/webhook) Provider string `json:"provider,omitempty"` // a string secret used to validate requests from the given provider. All providers // except AWS SNS require a secret @@ -1662,7 +1868,9 @@ func (x *EndpointResponseHeaders) GoString() string { type EndpointIPPolicy struct { // true if the module will be applied to traffic, false to disable. default true if // unspecified - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + // list of all IP policies that will be used to check if a source IP is allowed + // access to the endpoint IPPolicies []Ref `json:"ip_policies,omitempty"` } @@ -3613,6 +3821,8 @@ type EventTarget struct { Kinesis *EventTargetKinesis `json:"kinesis,omitempty"` // Configuration used to send events to Amazon CloudWatch Logs. CloudwatchLogs *EventTargetCloudwatchLogs `json:"cloudwatch_logs,omitempty"` + // Configuration used to send events to Datadog. + Datadog *EventTargetDatadog `json:"datadog,omitempty"` } func (x *EventTarget) String() string { @@ -3626,6 +3836,7 @@ func (x *EventTarget) GoString() string { fmt.Fprintf(tw, "\tFirehose\t%v\n", x.Firehose) fmt.Fprintf(tw, "\tKinesis\t%v\n", x.Kinesis) fmt.Fprintf(tw, "\tCloudwatchLogs\t%v\n", x.CloudwatchLogs) + fmt.Fprintf(tw, "\tDatadog\t%v\n", x.Datadog) tw.Flush() fmt.Fprintf(&b, "}\n") return b.String() @@ -3702,6 +3913,34 @@ func (x *EventTargetCloudwatchLogs) GoString() string { return b.String() } +type EventTargetDatadog struct { + // Datadog API key to use. + ApiKey *string `json:"api_key,omitempty"` + // Tags to send with the event. + Ddtags *string `json:"ddtags,omitempty"` + // Service name to send with the event. + Service *string `json:"service,omitempty"` + // Datadog site to send event to. + Ddsite *string `json:"ddsite,omitempty"` +} + +func (x *EventTargetDatadog) String() string { + return x.GoString() +} + +func (x *EventTargetDatadog) GoString() string { + var b bytes.Buffer + fmt.Fprintf(&b, "EventTargetDatadog {\n") + tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0) + fmt.Fprintf(tw, "\tApiKey\t%v\n", x.ApiKey) + fmt.Fprintf(tw, "\tDdtags\t%v\n", x.Ddtags) + fmt.Fprintf(tw, "\tService\t%v\n", x.Service) + fmt.Fprintf(tw, "\tDdsite\t%v\n", x.Ddsite) + tw.Flush() + fmt.Fprintf(&b, "}\n") + return b.String() +} + type AWSAuth struct { // A role for ngrok to assume on your behalf to deposit events into your AWS // account. @@ -4551,9 +4790,6 @@ func (x *ReservedAddrList) GoString() string { } type ReservedDomainCreate struct { - // the domain name to reserve. It may be a full domain name like app.example.com. - // If the name does not contain a '.' it will reserve that subdomain on ngrok.io. - Name string `json:"name,omitempty"` // hostname of the reserved domain Domain string `json:"domain,omitempty"` // reserve the domain in this geographic ngrok datacenter. Optional, default is us. @@ -4581,7 +4817,6 @@ func (x *ReservedDomainCreate) GoString() string { var b bytes.Buffer fmt.Fprintf(&b, "ReservedDomainCreate {\n") tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0) - fmt.Fprintf(tw, "\tName\t%v\n", x.Name) fmt.Fprintf(tw, "\tDomain\t%v\n", x.Domain) fmt.Fprintf(tw, "\tRegion\t%v\n", x.Region) fmt.Fprintf(tw, "\tDescription\t%v\n", x.Description) @@ -4941,6 +5176,10 @@ type SSHCredentialCreate struct { ACL []string `json:"acl,omitempty"` // the PEM-encoded public key of the SSH keypair that will be used to authenticate PublicKey string `json:"public_key,omitempty"` + // If supplied at credential creation, ownership will be assigned to the specified + // User or Bot. Only admins may specify an owner other than themselves. Defaults to + // the authenticated User or Bot. + OwnerID *string `json:"owner_id,omitempty"` } func (x *SSHCredentialCreate) String() string { @@ -4955,6 +5194,7 @@ func (x *SSHCredentialCreate) GoString() string { fmt.Fprintf(tw, "\tMetadata\t%v\n", x.Metadata) fmt.Fprintf(tw, "\tACL\t%v\n", x.ACL) fmt.Fprintf(tw, "\tPublicKey\t%v\n", x.PublicKey) + fmt.Fprintf(tw, "\tOwnerID\t%v\n", x.OwnerID) tw.Flush() fmt.Fprintf(&b, "}\n") return b.String() @@ -5029,6 +5269,10 @@ type SSHCredential struct { // y=example, etc. A rule of '*' is equivalent to no acl at all and will explicitly // permit all actions. ACL []string `json:"acl,omitempty"` + // If supplied at credential creation, ownership will be assigned to the specified + // User or Bot. Only admins may specify an owner other than themselves. Defaults to + // the authenticated User or Bot. + OwnerID *string `json:"owner_id,omitempty"` } func (x *SSHCredential) String() string { @@ -5047,6 +5291,7 @@ func (x *SSHCredential) GoString() string { fmt.Fprintf(tw, "\tMetadata\t%v\n", x.Metadata) fmt.Fprintf(tw, "\tPublicKey\t%v\n", x.PublicKey) fmt.Fprintf(tw, "\tACL\t%v\n", x.ACL) + fmt.Fprintf(tw, "\tOwnerID\t%v\n", x.OwnerID) tw.Flush() fmt.Fprintf(&b, "}\n") return b.String() @@ -5438,10 +5683,10 @@ type TLSCertificateCreate struct { // max 4096 bytes. Metadata string `json:"metadata,omitempty"` // chain of PEM-encoded certificates, leaf first. See Certificate Bundles - // (https://ngrok.com/docs/api#tls-certificates-pem). + // (https://ngrok.com/docs/cloud-edge/endpoints#certificate-chains). CertificatePEM string `json:"certificate_pem,omitempty"` // private key for the TLS certificate, PEM-encoded. See Private Keys - // (https://ngrok.com/docs/ngrok-link#tls-certificates-key). + // (https://ngrok.com/docs/cloud-edge/endpoints#private-keys). PrivateKeyPEM string `json:"private_key_pem,omitempty"` } @@ -5501,7 +5746,7 @@ type TLSCertificate struct { // max 4096 bytes. Metadata string `json:"metadata,omitempty"` // chain of PEM-encoded certificates, leaf first. See Certificate Bundles - // (https://ngrok.com/docs/api#tls-certificates-pem). + // (https://ngrok.com/docs/cloud-edge/endpoints#certificate-chains). CertificatePEM string `json:"certificate_pem,omitempty"` // subject common name from the leaf of this TLS certificate SubjectCommonName string `json:"subject_common_name,omitempty"` @@ -5619,99 +5864,6 @@ func (x *TLSCertificateSANs) GoString() string { return b.String() } -type TunnelSession struct { - // version of the ngrok agent that started this ngrok tunnel session - AgentVersion string `json:"agent_version,omitempty"` - // reference to the tunnel credential or ssh credential used by the ngrok agent to - // start this tunnel session - Credential Ref `json:"credential,omitempty"` - // unique tunnel session resource identifier - ID string `json:"id,omitempty"` - // source ip address of the tunnel session - IP string `json:"ip,omitempty"` - // arbitrary user-defined data specified in the metadata property in the ngrok - // configuration file. See the metadata configuration option - Metadata string `json:"metadata,omitempty"` - // operating system of the host the ngrok agent is running on - OS string `json:"os,omitempty"` - // the ngrok region identifier in which this tunnel session was started - Region string `json:"region,omitempty"` - // time when the tunnel session first connected to the ngrok servers - StartedAt string `json:"started_at,omitempty"` - // the transport protocol used to start the tunnel session. Either ngrok/v2 or ssh - Transport string `json:"transport,omitempty"` - // URI to the API resource of the tunnel session - URI string `json:"uri,omitempty"` -} - -func (x *TunnelSession) String() string { - return fmt.Sprintf("TunnelSession{ID: %v}", x.ID) - -} - -func (x *TunnelSession) GoString() string { - var b bytes.Buffer - fmt.Fprintf(&b, "TunnelSession {\n") - tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0) - fmt.Fprintf(tw, "\tAgentVersion\t%v\n", x.AgentVersion) - fmt.Fprintf(tw, "\tCredential\t%v\n", x.Credential) - fmt.Fprintf(tw, "\tID\t%v\n", x.ID) - fmt.Fprintf(tw, "\tIP\t%v\n", x.IP) - fmt.Fprintf(tw, "\tMetadata\t%v\n", x.Metadata) - fmt.Fprintf(tw, "\tOS\t%v\n", x.OS) - fmt.Fprintf(tw, "\tRegion\t%v\n", x.Region) - fmt.Fprintf(tw, "\tStartedAt\t%v\n", x.StartedAt) - fmt.Fprintf(tw, "\tTransport\t%v\n", x.Transport) - fmt.Fprintf(tw, "\tURI\t%v\n", x.URI) - tw.Flush() - fmt.Fprintf(&b, "}\n") - return b.String() -} - -type TunnelSessionList struct { - // list of all tunnel sessions on this account - TunnelSessions []TunnelSession `json:"tunnel_sessions,omitempty"` - // URI to the API resource of the tunnel session list - URI string `json:"uri,omitempty"` - // URI of the next page, or null if there is no next page - NextPageURI *string `json:"next_page_uri,omitempty"` -} - -func (x *TunnelSessionList) String() string { - return x.GoString() -} - -func (x *TunnelSessionList) GoString() string { - var b bytes.Buffer - fmt.Fprintf(&b, "TunnelSessionList {\n") - tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0) - fmt.Fprintf(tw, "\tTunnelSessions\t%v\n", x.TunnelSessions) - fmt.Fprintf(tw, "\tURI\t%v\n", x.URI) - fmt.Fprintf(tw, "\tNextPageURI\t%v\n", x.NextPageURI) - tw.Flush() - fmt.Fprintf(&b, "}\n") - return b.String() -} - -type TunnelSessionsUpdate struct { - ID string `json:"id,omitempty"` -} - -func (x *TunnelSessionsUpdate) String() string { - return fmt.Sprintf("TunnelSessionsUpdate{ID: %v}", x.ID) - -} - -func (x *TunnelSessionsUpdate) GoString() string { - var b bytes.Buffer - fmt.Fprintf(&b, "TunnelSessionsUpdate {\n") - tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0) - fmt.Fprintf(tw, "\tID\t%v\n", x.ID) - tw.Flush() - fmt.Fprintf(&b, "}\n") - return b.String() -} - type Tunnel struct { // unique tunnel resource identifier ID string `json:"id,omitempty"` @@ -5721,9 +5873,10 @@ type Tunnel struct { StartedAt string `json:"started_at,omitempty"` // user-supplied metadata for the tunnel defined in the ngrok configuration file. // See the tunnel metadata configuration option - // (https://ngrok.com/docs#tunnel-definitions-metadata) In API version 0, this - // value was instead pulled from the top-level metadata configuration option - // (https://ngrok.com/docs#config_metadata). + // (https://ngrok.com/docs/secure-tunnels/ngrok-agent/reference/config#common-tunnel-configuration-properties) + // In API version 0, this value was instead pulled from the top-level metadata + // configuration option + // (https://ngrok.com/docs/secure-tunnels/ngrok-agent/reference/config#metadata). Metadata string `json:"metadata,omitempty"` // tunnel protocol for ephemeral tunnels. one of http, https, tcp or tls Proto string `json:"proto,omitempty"` diff --git a/doc.go b/doc.go index f1e9ff2..814a06d 100644 --- a/doc.go +++ b/doc.go @@ -1,3 +1,5 @@ +// Code generated for API Clients. DO NOT EDIT. + // Package ngrok makes it easy to work with the ngrok API from Go. The package // is fully code generated and should always be up to date with the latest // ngrok API. diff --git a/edge_modules/https_edge_mutual_tls/client.go b/edge_modules/https_edge_mutual_tls/client.go index ee8b05e..463d75c 100644 --- a/edge_modules/https_edge_mutual_tls/client.go +++ b/edge_modules/https_edge_mutual_tls/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_edge_mutual_tls diff --git a/edge_modules/https_edge_route_backend/client.go b/edge_modules/https_edge_route_backend/client.go index 2de71fb..747f714 100644 --- a/edge_modules/https_edge_route_backend/client.go +++ b/edge_modules/https_edge_route_backend/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_edge_route_backend diff --git a/edge_modules/https_edge_route_circuit_breaker/client.go b/edge_modules/https_edge_route_circuit_breaker/client.go index f10ae2e..e168d6e 100644 --- a/edge_modules/https_edge_route_circuit_breaker/client.go +++ b/edge_modules/https_edge_route_circuit_breaker/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_edge_route_circuit_breaker diff --git a/edge_modules/https_edge_route_compression/client.go b/edge_modules/https_edge_route_compression/client.go index 104d94f..7bb0dc0 100644 --- a/edge_modules/https_edge_route_compression/client.go +++ b/edge_modules/https_edge_route_compression/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_edge_route_compression diff --git a/edge_modules/https_edge_route_ip_restriction/client.go b/edge_modules/https_edge_route_ip_restriction/client.go index d0ea88e..143bc1f 100644 --- a/edge_modules/https_edge_route_ip_restriction/client.go +++ b/edge_modules/https_edge_route_ip_restriction/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_edge_route_ip_restriction diff --git a/edge_modules/https_edge_route_oauth/client.go b/edge_modules/https_edge_route_oauth/client.go index 00894fb..3c4dc74 100644 --- a/edge_modules/https_edge_route_oauth/client.go +++ b/edge_modules/https_edge_route_oauth/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_edge_route_oauth diff --git a/edge_modules/https_edge_route_oidc/client.go b/edge_modules/https_edge_route_oidc/client.go index 26e7b6e..6981de4 100644 --- a/edge_modules/https_edge_route_oidc/client.go +++ b/edge_modules/https_edge_route_oidc/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_edge_route_oidc diff --git a/edge_modules/https_edge_route_request_headers/client.go b/edge_modules/https_edge_route_request_headers/client.go index 7ca213e..1716a2c 100644 --- a/edge_modules/https_edge_route_request_headers/client.go +++ b/edge_modules/https_edge_route_request_headers/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_edge_route_request_headers diff --git a/edge_modules/https_edge_route_response_headers/client.go b/edge_modules/https_edge_route_response_headers/client.go index 00ba808..0ef510c 100644 --- a/edge_modules/https_edge_route_response_headers/client.go +++ b/edge_modules/https_edge_route_response_headers/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_edge_route_response_headers diff --git a/edge_modules/https_edge_route_saml/client.go b/edge_modules/https_edge_route_saml/client.go index 2e787ef..9950ba2 100644 --- a/edge_modules/https_edge_route_saml/client.go +++ b/edge_modules/https_edge_route_saml/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_edge_route_saml diff --git a/edge_modules/https_edge_route_webhook_verification/client.go b/edge_modules/https_edge_route_webhook_verification/client.go index 963cab8..1d56cee 100644 --- a/edge_modules/https_edge_route_webhook_verification/client.go +++ b/edge_modules/https_edge_route_webhook_verification/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_edge_route_webhook_verification diff --git a/edge_modules/https_edge_route_websocket_tcp_converter/client.go b/edge_modules/https_edge_route_websocket_tcp_converter/client.go index c3fbb3d..c40e304 100644 --- a/edge_modules/https_edge_route_websocket_tcp_converter/client.go +++ b/edge_modules/https_edge_route_websocket_tcp_converter/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_edge_route_websocket_tcp_converter diff --git a/edge_modules/https_edge_tls_termination/client.go b/edge_modules/https_edge_tls_termination/client.go index 30fb78e..e9c7649 100644 --- a/edge_modules/https_edge_tls_termination/client.go +++ b/edge_modules/https_edge_tls_termination/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_edge_tls_termination diff --git a/edge_modules/tcp_edge_backend/client.go b/edge_modules/tcp_edge_backend/client.go index aef9832..75eef8d 100644 --- a/edge_modules/tcp_edge_backend/client.go +++ b/edge_modules/tcp_edge_backend/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package tcp_edge_backend diff --git a/edge_modules/tcp_edge_ip_restriction/client.go b/edge_modules/tcp_edge_ip_restriction/client.go index fe99932..11ca87d 100644 --- a/edge_modules/tcp_edge_ip_restriction/client.go +++ b/edge_modules/tcp_edge_ip_restriction/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package tcp_edge_ip_restriction diff --git a/edge_modules/tls_edge_backend/client.go b/edge_modules/tls_edge_backend/client.go index d8aefb6..7cf3a91 100644 --- a/edge_modules/tls_edge_backend/client.go +++ b/edge_modules/tls_edge_backend/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package tls_edge_backend diff --git a/edge_modules/tls_edge_ip_restriction/client.go b/edge_modules/tls_edge_ip_restriction/client.go index 393f161..649d296 100644 --- a/edge_modules/tls_edge_ip_restriction/client.go +++ b/edge_modules/tls_edge_ip_restriction/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package tls_edge_ip_restriction diff --git a/edge_modules/tls_edge_mutual_tls/client.go b/edge_modules/tls_edge_mutual_tls/client.go index bf67b28..223e4fe 100644 --- a/edge_modules/tls_edge_mutual_tls/client.go +++ b/edge_modules/tls_edge_mutual_tls/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package tls_edge_mutual_tls diff --git a/edge_modules/tls_edge_tls_termination/client.go b/edge_modules/tls_edge_tls_termination/client.go index ce251cc..7cd33e5 100644 --- a/edge_modules/tls_edge_tls_termination/client.go +++ b/edge_modules/tls_edge_tls_termination/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package tls_edge_tls_termination diff --git a/edges/https/client.go b/edges/https/client.go index 8ba282d..e8b6dbd 100644 --- a/edges/https/client.go +++ b/edges/https/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https diff --git a/edges/https_routes/client.go b/edges/https_routes/client.go index 6c0e310..556c7b9 100644 --- a/edges/https_routes/client.go +++ b/edges/https_routes/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package https_routes diff --git a/edges/tcp/client.go b/edges/tcp/client.go index 543440f..c5b56c0 100644 --- a/edges/tcp/client.go +++ b/edges/tcp/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package tcp diff --git a/edges/tls/client.go b/edges/tls/client.go index 490e518..1a3d493 100644 --- a/edges/tls/client.go +++ b/edges/tls/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package tls diff --git a/endpoints/client.go b/endpoints/client.go index 797e4b7..9e62a74 100644 --- a/endpoints/client.go +++ b/endpoints/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package endpoints diff --git a/error.go b/error.go index a4550d9..4617026 100644 --- a/error.go +++ b/error.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package ngrok diff --git a/event_destinations/client.go b/event_destinations/client.go index 89cb955..8497f99 100644 --- a/event_destinations/client.go +++ b/event_destinations/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package event_destinations diff --git a/event_sources/client.go b/event_sources/client.go index a44a66e..ff1cde8 100644 --- a/event_sources/client.go +++ b/event_sources/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package event_sources diff --git a/event_subscriptions/client.go b/event_subscriptions/client.go index 9ad0a5e..4ca7b3a 100644 --- a/event_subscriptions/client.go +++ b/event_subscriptions/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package event_subscriptions diff --git a/go.mod b/go.mod index a253074..96c9b42 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ +// Code generated for API Clients. DO NOT EDIT. + module github.com/ngrok/ngrok-api-go/v5 go 1.18 diff --git a/integration_test.go b/integration_test.go index 9c99609..1ea89cf 100644 --- a/integration_test.go +++ b/integration_test.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package ngrok_test diff --git a/internal/api/client.go b/internal/api/client.go index 57f3263..16b65b0 100644 --- a/internal/api/client.go +++ b/internal/api/client.go @@ -1,3 +1,5 @@ +// Code generated for API Clients. DO NOT EDIT. + package api import ( diff --git a/internal/api/client_test.go b/internal/api/client_test.go index a3be598..423f84d 100644 --- a/internal/api/client_test.go +++ b/internal/api/client_test.go @@ -1,3 +1,5 @@ +// Code generated for API Clients. DO NOT EDIT. + package api import ( diff --git a/internal/api/version.go b/internal/api/version.go index 3361c32..af166e8 100644 --- a/internal/api/version.go +++ b/internal/api/version.go @@ -1,3 +1,5 @@ +// Code generated for API Clients. DO NOT EDIT. + package api import "runtime/debug" diff --git a/ip_policies/client.go b/ip_policies/client.go index 33f81d9..ba221eb 100644 --- a/ip_policies/client.go +++ b/ip_policies/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package ip_policies diff --git a/ip_policy_rules/client.go b/ip_policy_rules/client.go index 8441b56..58320e8 100644 --- a/ip_policy_rules/client.go +++ b/ip_policy_rules/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package ip_policy_rules diff --git a/ip_restrictions/client.go b/ip_restrictions/client.go index 698f3cf..b0e17ee 100644 --- a/ip_restrictions/client.go +++ b/ip_restrictions/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package ip_restrictions diff --git a/reserved_addrs/client.go b/reserved_addrs/client.go index f10b5d2..74fb03e 100644 --- a/reserved_addrs/client.go +++ b/reserved_addrs/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package reserved_addrs diff --git a/reserved_domains/client.go b/reserved_domains/client.go index 855192a..d9fab09 100644 --- a/reserved_domains/client.go +++ b/reserved_domains/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package reserved_domains diff --git a/ssh_certificate_authorities/client.go b/ssh_certificate_authorities/client.go index 2a2a03b..b8d1f4e 100644 --- a/ssh_certificate_authorities/client.go +++ b/ssh_certificate_authorities/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package ssh_certificate_authorities diff --git a/ssh_credentials/client.go b/ssh_credentials/client.go index aa09bfe..97fd1c3 100644 --- a/ssh_credentials/client.go +++ b/ssh_credentials/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package ssh_credentials diff --git a/ssh_host_certificates/client.go b/ssh_host_certificates/client.go index 52ff46e..f1f0f01 100644 --- a/ssh_host_certificates/client.go +++ b/ssh_host_certificates/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package ssh_host_certificates diff --git a/ssh_user_certificates/client.go b/ssh_user_certificates/client.go index 566e0d8..32a7237 100644 --- a/ssh_user_certificates/client.go +++ b/ssh_user_certificates/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package ssh_user_certificates diff --git a/tls_certificates/client.go b/tls_certificates/client.go index cba89c5..1ff7249 100644 --- a/tls_certificates/client.go +++ b/tls_certificates/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package tls_certificates diff --git a/transports_test.go b/transports_test.go index 7fd471c..fa44b13 100644 --- a/transports_test.go +++ b/transports_test.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package ngrok_test diff --git a/tunnel_sessions/client.go b/tunnel_sessions/client.go index 812c4c7..808c33a 100644 --- a/tunnel_sessions/client.go +++ b/tunnel_sessions/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package tunnel_sessions diff --git a/tunnels/client.go b/tunnels/client.go index 9083410..cb4c0f2 100644 --- a/tunnels/client.go +++ b/tunnels/client.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package tunnels diff --git a/type_helpers.go b/type_helpers.go index 4138384..27bbe71 100644 --- a/type_helpers.go +++ b/type_helpers.go @@ -1,4 +1,4 @@ -// Code generated by apic. DO NOT EDIT. +// Code generated for API Clients. DO NOT EDIT. package ngrok