diff --git a/.rubocop.yml b/.rubocop.yml index 048693c..5e18862 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -5,7 +5,7 @@ AllCops: TargetRubyVersion: 3.0 Metrics/LineLength: - Max: 120 + Enabled: false # Ignore Rails-y Airbnb recommendation Airbnb/ClassOrModuleDeclaredInWrongFile: diff --git a/doc/.gitkeep b/doc/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/doc/NgrokAPI.html b/doc/NgrokAPI.html index d228cce..d1b1a63 100644 --- a/doc/NgrokAPI.html +++ b/doc/NgrokAPI.html @@ -79,7 +79,7 @@
Defined in:
lib/ngrokapi.rb,
- lib/ngrokapi/error.rb,
lib/ngrokapi/client.rb,
lib/ngrokapi/version.rb,
lib/ngrokapi/http_client.rb,
lib/ngrokapi/models/api_key.rb,
lib/ngrokapi/paged_iterator.rb,
lib/ngrokapi/models/listable.rb,
lib/ngrokapi/errors/not_found_error.rb,
lib/ngrokapi/models/reserved_domain.rb,
lib/ngrokapi/models/tls_certificate.rb,
lib/ngrokapi/services/api_keys_client.rb,
lib/ngrokapi/models/endpoint_configuration.rb,
lib/ngrokapi/services/reserved_domains_client.rb,
lib/ngrokapi/services/tls_certificates_client.rb,
lib/ngrokapi/services/endpoint_configurations_client.rb
+ lib/ngrokapi/error.rb,
lib/ngrokapi/client.rb,
lib/ngrokapi/version.rb,
lib/ngrokapi/models/ref.rb,
lib/ngrokapi/http_client.rb,
lib/ngrokapi/models/tunnel.rb,
lib/ngrokapi/models/api_key.rb,
lib/ngrokapi/paged_iterator.rb,
lib/ngrokapi/models/aws_auth.rb,
lib/ngrokapi/models/aws_role.rb,
lib/ngrokapi/models/listable.rb,
lib/ngrokapi/models/ip_policy.rb,
lib/ngrokapi/models/credential.rb,
lib/ngrokapi/models/abuse_report.rb,
lib/ngrokapi/models/event_source.rb,
lib/ngrokapi/models/event_stream.rb,
lib/ngrokapi/models/event_target.rb,
lib/ngrokapi/models/endpoint_oidc.rb,
lib/ngrokapi/models/endpoint_saml.rb,
lib/ngrokapi/models/reserved_addr.rb,
lib/ngrokapi/models/ip_policy_rule.rb,
lib/ngrokapi/models/ip_restriction.rb,
lib/ngrokapi/models/ssh_credential.rb,
lib/ngrokapi/models/tunnel_session.rb,
lib/ngrokapi/errors/not_found_error.rb,
lib/ngrokapi/models/aws_credentials.rb,
lib/ngrokapi/models/endpoint_o_auth.rb,
lib/ngrokapi/models/reserved_domain.rb,
lib/ngrokapi/models/tls_certificate.rb,
lib/ngrokapi/models/endpoint_logging.rb,
lib/ngrokapi/services/tunnels_client.rb,
lib/ngrokapi/models/event_destination.rb,
lib/ngrokapi/services/api_keys_client.rb,
lib/ngrokapi/models/endpoint_ip_policy.rb,
lib/ngrokapi/models/event_subscription.rb,
lib/ngrokapi/models/ip_whitelist_entry.rb,
lib/ngrokapi/models/endpoint_mutual_tls.rb,
lib/ngrokapi/models/endpoint_compression.rb,
lib/ngrokapi/models/endpoint_saml_mutate.rb,
lib/ngrokapi/models/event_source_replace.rb,
lib/ngrokapi/models/event_target_kinesis.rb,
lib/ngrokapi/models/ssh_host_certificate.rb,
lib/ngrokapi/models/ssh_user_certificate.rb,
lib/ngrokapi/services/credentials_client.rb,
lib/ngrokapi/services/ip_policies_client.rb,
lib/ngrokapi/models/abuse_report_hostname.rb,
lib/ngrokapi/models/certificate_authority.rb,
lib/ngrokapi/models/event_target_firehose.rb,
lib/ngrokapi/models/tls_certificate_sa_ns.rb,
lib/ngrokapi/services/ip_whitelist_client.rb,
lib/ngrokapi/models/endpoint_configuration.rb,
lib/ngrokapi/models/endpoint_o_auth_google.rb,
lib/ngrokapi/services/abuse_reports_client.rb,
lib/ngrokapi/services/event_sources_client.rb,
lib/ngrokapi/services/event_streams_client.rb,
lib/ngrokapi/models/endpoint_logging_mutate.rb,
lib/ngrokapi/models/endpoint_o_auth_git_hub.rb,
lib/ngrokapi/services/reserved_addrs_client.rb,
lib/ngrokapi/models/endpoint_circuit_breaker.rb,
lib/ngrokapi/models/endpoint_o_auth_facebook.rb,
lib/ngrokapi/models/endpoint_o_auth_provider.rb,
lib/ngrokapi/models/endpoint_request_headers.rb,
lib/ngrokapi/models/endpoint_tls_termination.rb,
lib/ngrokapi/models/reserved_domain_cert_job.rb,
lib/ngrokapi/services/ip_policy_rules_client.rb,
lib/ngrokapi/services/ip_restrictions_client.rb,
lib/ngrokapi/services/ssh_credentials_client.rb,
lib/ngrokapi/services/tunnel_sessions_client.rb,
lib/ngrokapi/models/endpoint_ip_policy_mutate.rb,
lib/ngrokapi/models/endpoint_o_auth_microsoft.rb,
lib/ngrokapi/models/endpoint_response_headers.rb,
lib/ngrokapi/models/ssh_certificate_authority.rb,
lib/ngrokapi/services/reserved_domains_client.rb,
lib/ngrokapi/services/tls_certificates_client.rb,
lib/ngrokapi/models/endpoint_mutual_tls_mutate.rb,
lib/ngrokapi/models/endpoint_webhook_validation.rb,
lib/ngrokapi/models/reserved_domain_cert_policy.rb,
lib/ngrokapi/models/reserved_domain_cert_status.rb,
lib/ngrokapi/services/event_destinations_client.rb,
lib/ngrokapi/models/event_target_cloudwatch_logs.rb,
lib/ngrokapi/services/event_subscriptions_client.rb,
lib/ngrokapi/services/endpoint_oidc_module_client.rb,
lib/ngrokapi/services/endpoint_saml_module_client.rb,
lib/ngrokapi/models/reserved_domain_cert_ns_target.rb,
lib/ngrokapi/services/ssh_host_certificates_client.rb,
lib/ngrokapi/services/ssh_user_certificates_client.rb,
lib/ngrokapi/services/endpoint_o_auth_module_client.rb,
lib/ngrokapi/services/certificate_authorities_client.rb,
lib/ngrokapi/services/endpoint_configurations_client.rb,
lib/ngrokapi/services/endpoint_logging_module_client.rb,
lib/ngrokapi/services/endpoint_ip_policy_module_client.rb,
lib/ngrokapi/services/endpoint_mutual_tls_module_client.rb,
lib/ngrokapi/services/endpoint_compression_module_client.rb,
lib/ngrokapi/services/ssh_certificate_authorities_client.rb,
lib/ngrokapi/services/endpoint_circuit_breaker_module_client.rb,
lib/ngrokapi/services/endpoint_request_headers_module_client.rb,
lib/ngrokapi/services/endpoint_tls_termination_module_client.rb,
lib/ngrokapi/services/endpoint_response_headers_module_client.rb,
lib/ngrokapi/services/endpoint_webhook_validation_module_client.rb
@@ -131,7 +131,7 @@ -
"0.1.0".freeze
+
"0.9.0".freeze
@@ -147,7 +147,7 @@ diff --git a/doc/NgrokAPI/Client.html b/doc/NgrokAPI/Client.html index f10fb9e..e29dcac 100644 --- a/doc/NgrokAPI/Client.html +++ b/doc/NgrokAPI/Client.html @@ -128,7 +128,7 @@
  • - #api_keys ⇒ NgrokAPI::Services::ApiKeysClient + #abuse_reports ⇒ NgrokAPI::Services::AbuseReportsClient @@ -143,7 +143,79 @@
    -

    Creates and returns an instance of a NgrokAPI::Services::ApiKeysClient.

    +

    Abuse Reports allow you to submit take-down requests for URLs hosted by ngrok that violate ngrok's terms of service.

    +
    + +
  • + + +
  • + + + #api_keys ⇒ NgrokAPI::Services::APIKeysClient + + + + + + + + + + + + + +
    +

    API Keys are used to authenticate to the (ngrok.com/docs/api#authentication)ngrok API.

    +
    + +
  • + + +
  • + + + #certificate_authorities ⇒ NgrokAPI::Services::CertificateAuthoritiesClient + + + + + + + + + + + + + +
    +

    Certificate Authorities are x509 certificates that are used to sign other x509 certificates.

    +
    + +
  • + + +
  • + + + #credentials ⇒ NgrokAPI::Services::CredentialsClient + + + + + + + + + + + + + +
    +

    Tunnel Credentials are ngrok agent authtokens.

  • @@ -167,9 +239,97 @@
    -

    Creates and returns an instance of a NgrokAPI::Services::EndpointConfigurationsClient.

    +

    Endpoint Configurations are a reusable group of modules that encapsulate how traffic to a domain or address is handled.

    + + + +
  • + + + #event_destinations ⇒ Object + + + + + + + + + + + + + +
    + +
  • + + +
  • + + + #event_sources ⇒ Object + + + + + + + + + + + + + +
    + +
  • + + +
  • + + + #event_streams ⇒ Object + + + + + + + + + + + + + +
    + +
  • + + +
  • + + + #event_subscriptions ⇒ Object + + + + + + + + + + + + + +
    +
  • @@ -196,6 +356,126 @@

    A new instance of Client.

    + + + +
  • + + + #ip_policies ⇒ NgrokAPI::Services::IPPoliciesClient + + + + + + + + + + + + + +
    +

    IP Policies are reusable groups of CIDR ranges with an allow or deny action.

    +
    + +
  • + + +
  • + + + #ip_policy_rules ⇒ NgrokAPI::Services::IPPolicyRulesClient + + + + + + + + + + + + + +
    +

    IP Policy Rules are the IPv4 or IPv6 CIDRs entries that make up an IP Policy.

    +
    + +
  • + + +
  • + + + #ip_restrictions ⇒ NgrokAPI::Services::IPRestrictionsClient + + + + + + + + + + + + + +
    +

    An IP restriction is a restriction placed on the CIDRs that are allowed to initate traffic to a specific aspect of your ngrok account.

    +
    + +
  • + + +
  • + + + #ip_whitelist ⇒ NgrokAPI::Services::IPWhitelistClient + + + + + + + + + + + + + +
    +

    The IP Whitelist is deprecated and will be removed.

    +
    + +
  • + + +
  • + + + #reserved_addrs ⇒ NgrokAPI::Services::ReservedAddrsClient + + + + + + + + + + + + + +
    +

    Reserved Addresses are TCP addresses that can be used to listen for traffic.

    +
    +
  • @@ -217,7 +497,7 @@
    -

    Creates and returns an instance of a NgrokAPI::Services::ReservedDomainsClient.

    +

    Reserved Domains are hostnames that you can listen for traffic on.

    @@ -226,7 +506,7 @@
  • - #tls_certificates ⇒ NgrokAPI::Services::TlsCertificatesClient + #ssh_certificate_authorities ⇒ NgrokAPI::Services::SSHCertificateAuthoritiesClient @@ -241,7 +521,151 @@
    -

    Creates and returns an instance of a NgrokAPI::Services::TlsCertificatesClient.

    +

    An SSH Certificate Authority is a pair of an SSH Certificate and its private key that can be used to sign other SSH host and user certificates.

    +
    + +
  • + + +
  • + + + #ssh_credentials ⇒ NgrokAPI::Services::SSHCredentialsClient + + + + + + + + + + + + + +
    +

    SSH Credentials are SSH public keys that can be used to start SSH tunnels via the ngrok SSH tunnel gateway.

    +
    + +
  • + + +
  • + + + #ssh_host_certificates ⇒ NgrokAPI::Services::SSHHostCertificatesClient + + + + + + + + + + + + + +
    +

    SSH Host Certificates along with the corresponding private key allows an SSH server to assert its authenticity to connecting SSH clients who trust the SSH Certificate Authority that was used to sign the certificate.

    +
    + +
  • + + +
  • + + + #ssh_user_certificates ⇒ NgrokAPI::Services::SSHUserCertificatesClient + + + + + + + + + + + + + +
    +

    SSH User Certificates are presented by SSH clients when connecting to an SSH server to authenticate their connection.

    +
    + +
  • + + +
  • + + + #tls_certificates ⇒ NgrokAPI::Services::TLSCertificatesClient + + + + + + + + + + + + + +
    +

    TLS Certificates are pairs of x509 certificates and their matching private key that can be used to terminate TLS traffic.

    +
    + +
  • + + +
  • + + + #tunnel_sessions ⇒ NgrokAPI::Services::TunnelSessionsClient + + + + + + + + + + + + + +
    +

    Tunnel Sessions represent instances of ngrok agents or SSH reverse tunnel sessions that are running and connected to the ngrok service.

    +
    + +
  • + + +
  • + + + #tunnels ⇒ NgrokAPI::Services::TunnelsClient + + + + + + + + + + + + + +
    +

    Tunnels provide endpoints to access services exposed by a running ngrok agent tunnel session or an SSH reverse tunnel session.

  • @@ -289,11 +713,11 @@
    # File 'lib/ngrokapi/client.rb', line 8
     
    -def initialize(
    -  api_key:,
    -  base_url: 'https://api.ngrok.com'
    -)
    -  @client = NgrokAPI::HttpClient.new(api_key: api_key, base_url: base_url)
    +def initialize(
    +  api_key:,
    +  base_url: 'https://api.ngrok.com'
    +)
    +  @client = NgrokAPI::HttpClient.new(api_key: api_key, base_url: base_url)
     end
    @@ -308,9 +732,9 @@
    -

    +

    - #api_keysNgrokAPI::Services::ApiKeysClient + #abuse_reportsNgrokAPI::Services::AbuseReportsClient @@ -319,7 +743,10 @@

    -

    Creates and returns an instance of a NgrokAPI::Services::ApiKeysClient

    +

    Abuse Reports allow you to submit take-down requests for URLs hosted by

    + +
    ngrok that violate ngrok's terms of service.
    +
    @@ -332,7 +759,7 @@
  • - (NgrokAPI::Services::ApiKeysClient) + (NgrokAPI::Services::AbuseReportsClient) @@ -346,15 +773,194 @@
     
     
    -19
     20
    -21
    +21 +22 -
    # File 'lib/ngrokapi/client.rb', line 19
    +      
    # File 'lib/ngrokapi/client.rb', line 20
     
    -def api_keys
    -  @_api_keys ||= NgrokAPI::Services::ApiKeysClient.new(client: @client)
    +def abuse_reports
    +  @_abuse_reports ||= NgrokAPI::Services::AbuseReportsClient.new(client: @client)
    +end
    + + + +
  • + +
    +

    + + #api_keysNgrokAPI::Services::APIKeysClient + + + + + +

    +
    + +

    API Keys are used to authenticate to the (ngrok.com/docs/api#authentication)ngrok

    + +
    API. You may use the API itself
    +to provision and manage API Keys but you'll need to provision your first API
    +key from the  (https://dashboard.ngrok.com/api/keys)API Keys page on your
    +ngrok.com dashboard.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + + +
    +
    +
    +
    +33
    +34
    +35
    +
    +
    # File 'lib/ngrokapi/client.rb', line 33
    +
    +def api_keys
    +  @_api_keys ||= NgrokAPI::Services::APIKeysClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #certificate_authoritiesNgrokAPI::Services::CertificateAuthoritiesClient + + + + + +

    +
    + +

    Certificate Authorities are x509 certificates that are used to sign other

    + +
    x509 certificates. Attach a Certificate Authority to the Mutual TLS module
    +to verify that the TLS certificate presented by a client has been signed by
    +this CA. Certificate Authorities  are used only for mTLS validation only and
    +thus a private key is not included in the resource.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + + +
    +
    +
    +
    +45
    +46
    +47
    +
    +
    # File 'lib/ngrokapi/client.rb', line 45
    +
    +def certificate_authorities
    +  @_certificate_authorities ||= NgrokAPI::Services::CertificateAuthoritiesClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #credentialsNgrokAPI::Services::CredentialsClient + + + + + +

    +
    + +

    Tunnel Credentials are ngrok agent authtokens. They authorize the ngrok

    + +
    agent to connect the ngrok service as your account. They are installed with
    +the ngrok authtoken command or by specifying it in the ngrok.yml
    +configuration file with the authtoken property.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + @@ -373,7 +979,11 @@
    -

    Creates and returns an instance of a NgrokAPI::Services::EndpointConfigurationsClient

    +

    Endpoint Configurations are a reusable group of modules that encapsulate how

    + +
    traffic to a domain or address is handled. Endpoint configurations are only
    +applied to Domains and TCP Addresses they have been attached to.
    +
    @@ -400,19 +1010,427 @@
     
     
    -27
    -28
    -29
    -30
    -31
    +66 +67 +68
    + +
    +
    +
    +
    +56
    +57
    +58
    +
    +
    # File 'lib/ngrokapi/client.rb', line 56
    +
    +def credentials
    +  @_credentials ||= NgrokAPI::Services::CredentialsClient.new(client: @client)
     end
    -
    # File 'lib/ngrokapi/client.rb', line 27
    +      
    # File 'lib/ngrokapi/client.rb', line 66
     
    -def endpoint_configurations
    -  @_endpoint_configurations ||= NgrokAPI::Services::EndpointConfigurationsClient.new(
    -    client: @client
    -  )
    +def endpoint_configurations
    +  @_endpoint_configurations ||= NgrokAPI::Services::EndpointConfigurationsClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #event_destinationsObject + + + + + +

    + + + + +
    +
    +
    +
    +74
    +75
    +76
    +
    +
    # File 'lib/ngrokapi/client.rb', line 74
    +
    +def event_destinations
    +  @_event_destinations ||= NgrokAPI::Services::EventDestinationsClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #event_sourcesObject + + + + + +

    + + + + +
    +
    +
    +
    +82
    +83
    +84
    +
    +
    # File 'lib/ngrokapi/client.rb', line 82
    +
    +def event_sources
    +  @_event_sources ||= NgrokAPI::Services::EventSourcesClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #event_streamsObject + + + + + +

    + + + + +
    +
    +
    +
    +70
    +71
    +72
    +
    +
    # File 'lib/ngrokapi/client.rb', line 70
    +
    +def event_streams
    +  @_event_streams ||= NgrokAPI::Services::EventStreamsClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #event_subscriptionsObject + + + + + +

    + + + + +
    +
    +
    +
    +78
    +79
    +80
    +
    +
    # File 'lib/ngrokapi/client.rb', line 78
    +
    +def event_subscriptions
    +  @_event_subscriptions ||= NgrokAPI::Services::EventSubscriptionsClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #ip_policiesNgrokAPI::Services::IPPoliciesClient + + + + + +

    +
    + +

    IP Policies are reusable groups of CIDR ranges with an allow or deny

    + +
    action. They can be attached to endpoints via the Endpoint Configuration IP
    +Policy module. They can also be used with IP Restrictions to control source
    +IP ranges that can start tunnel sessions and connect to the API and dashboard.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + + +
    +
    +
    +
    +93
    +94
    +95
    +
    +
    # File 'lib/ngrokapi/client.rb', line 93
    +
    +def ip_policies
    +  @_ip_policies ||= NgrokAPI::Services::IPPoliciesClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #ip_policy_rulesNgrokAPI::Services::IPPolicyRulesClient + + + + + +

    +
    + +

    IP Policy Rules are the IPv4 or IPv6 CIDRs entries that

    + +
    make up an IP Policy.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + + +
    +
    +
    +
    +102
    +103
    +104
    +
    +
    # File 'lib/ngrokapi/client.rb', line 102
    +
    +def ip_policy_rules
    +  @_ip_policy_rules ||= NgrokAPI::Services::IPPolicyRulesClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #ip_restrictionsNgrokAPI::Services::IPRestrictionsClient + + + + + +

    +
    + +

    An IP restriction is a restriction placed on the CIDRs that are allowed to

    + +
    initate traffic to a specific aspect of your ngrok account. An IP
    +restriction has a type which defines the ingress it applies to. IP
    +restrictions can be used to enforce the source IPs that can make API
    +requests, log in to the dashboard, start ngrok agents, and connect to your
    +public-facing endpoints.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + + +
    +
    +
    +
    +115
    +116
    +117
    +
    +
    # File 'lib/ngrokapi/client.rb', line 115
    +
    +def ip_restrictions
    +  @_ip_restrictions ||= NgrokAPI::Services::IPRestrictionsClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #ip_whitelistNgrokAPI::Services::IPWhitelistClient + + + + + +

    +
    + +

    The IP Whitelist is deprecated and will be removed. Use an IP Restriction

    + +
    with an endpoints type instead.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + + +
    +
    +
    +
    +124
    +125
    +126
    +
    +
    # File 'lib/ngrokapi/client.rb', line 124
    +
    +def ip_whitelist
    +  @_ip_whitelist ||= NgrokAPI::Services::IPWhitelistClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #reserved_addrsNgrokAPI::Services::ReservedAddrsClient + + + + + +

    +
    + +

    Reserved Addresses are TCP addresses that can be used to listen for traffic.

    + +
    TCP address hostnames and ports are assigned by ngrok, they cannot be
    +chosen.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + @@ -431,7 +1449,12 @@
    -

    Creates and returns an instance of a NgrokAPI::Services::ReservedDomainsClient

    +

    Reserved Domains are hostnames that you can listen for traffic on. Domains

    + +
    can be used to listen for http, https or tls traffic. You may use a domain
    +that you own by creating a CNAME record specified in the returned resource.
    +This CNAME record points traffic for that domain to ngrok's edge servers.
    +
    @@ -458,15 +1481,15 @@
     
     
    -37
    -38
    -39
    +145 +146 +147
    @@ -474,9 +1497,9 @@
    -

    +

    - #tls_certificatesNgrokAPI::Services::TlsCertificatesClient + #ssh_certificate_authoritiesNgrokAPI::Services::SSHCertificateAuthoritiesClient @@ -485,7 +1508,10 @@

    -

    Creates and returns an instance of a NgrokAPI::Services::TlsCertificatesClient

    +

    An SSH Certificate Authority is a pair of an SSH Certificate and its private

    + +
    key that can be used to sign other SSH host and user certificates.
    +
    @@ -498,7 +1524,7 @@
  • - (NgrokAPI::Services::TlsCertificatesClient) + (NgrokAPI::Services::SSHCertificateAuthoritiesClient) @@ -512,15 +1538,363 @@
     
     
    -45
    -46
    -47
    +154 +155 +156
  • + +
    +
    +
    +
    +134
    +135
    +136
    +
    +
    # File 'lib/ngrokapi/client.rb', line 134
    +
    +def reserved_addrs
    +  @_reserved_addrs ||= NgrokAPI::Services::ReservedAddrsClient.new(client: @client)
     end
    -
    # File 'lib/ngrokapi/client.rb', line 37
    +      
    # File 'lib/ngrokapi/client.rb', line 145
     
    -def reserved_domains
    -  @_reserved_domains ||= NgrokAPI::Services::ReservedDomainsClient.new(client: @client)
    +def reserved_domains
    +  @_reserved_domains ||= NgrokAPI::Services::ReservedDomainsClient.new(client: @client)
     end
    -
    # File 'lib/ngrokapi/client.rb', line 45
    +      
    # File 'lib/ngrokapi/client.rb', line 154
     
    -def tls_certificates
    -  @_tls_certificates ||= NgrokAPI::Services::TlsCertificatesClient.new(client: @client)
    +def ssh_certificate_authorities
    +  @_ssh_certificate_authorities ||= NgrokAPI::Services::SSHCertificateAuthoritiesClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #ssh_credentialsNgrokAPI::Services::SSHCredentialsClient + + + + + +

    +
    + +

    SSH Credentials are SSH public keys that can be used to start SSH tunnels

    + +
    via the ngrok SSH tunnel gateway.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + + +
    +
    +
    +
    +163
    +164
    +165
    +
    +
    # File 'lib/ngrokapi/client.rb', line 163
    +
    +def ssh_credentials
    +  @_ssh_credentials ||= NgrokAPI::Services::SSHCredentialsClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #ssh_host_certificatesNgrokAPI::Services::SSHHostCertificatesClient + + + + + +

    +
    + +

    SSH Host Certificates along with the corresponding private key allows an SSH

    + +
    server to assert its authenticity to connecting SSH clients who trust the
    +SSH Certificate Authority that was used to sign the certificate.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + + +
    +
    +
    +
    +173
    +174
    +175
    +
    +
    # File 'lib/ngrokapi/client.rb', line 173
    +
    +def ssh_host_certificates
    +  @_ssh_host_certificates ||= NgrokAPI::Services::SSHHostCertificatesClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #ssh_user_certificatesNgrokAPI::Services::SSHUserCertificatesClient + + + + + +

    +
    + +

    SSH User Certificates are presented by SSH clients when connecting to an SSH

    + +
    server to authenticate their connection. The SSH server must trust the SSH
    +Certificate Authority used to sign the certificate.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + + +
    +
    +
    +
    +183
    +184
    +185
    +
    +
    # File 'lib/ngrokapi/client.rb', line 183
    +
    +def ssh_user_certificates
    +  @_ssh_user_certificates ||= NgrokAPI::Services::SSHUserCertificatesClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #tls_certificatesNgrokAPI::Services::TLSCertificatesClient + + + + + +

    +
    + +

    TLS Certificates are pairs of x509 certificates and their matching private

    + +
    key that can be used to terminate TLS traffic. TLS certificates are unused
    +until they are attached to a Domain. TLS Certificates may also be
    +provisioned by ngrok automatically for domains on which you have enabled
    +automated certificate provisioning.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + + +
    +
    +
    +
    +195
    +196
    +197
    +
    +
    # File 'lib/ngrokapi/client.rb', line 195
    +
    +def tls_certificates
    +  @_tls_certificates ||= NgrokAPI::Services::TLSCertificatesClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #tunnel_sessionsNgrokAPI::Services::TunnelSessionsClient + + + + + +

    +
    + +

    Tunnel Sessions represent instances of ngrok agents or SSH reverse tunnel

    + +
    sessions that are running and connected to the ngrok service. Each tunnel
    +session can include one or more Tunnels.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + + +
    +
    +
    +
    +205
    +206
    +207
    +
    +
    # File 'lib/ngrokapi/client.rb', line 205
    +
    +def tunnel_sessions
    +  @_tunnel_sessions ||= NgrokAPI::Services::TunnelSessionsClient.new(client: @client)
    +end
    +
    +
    + +
    +

    + + #tunnelsNgrokAPI::Services::TunnelsClient + + + + + +

    +
    + +

    Tunnels provide endpoints to access services exposed by a running ngrok

    + +
    agent tunnel session or an SSH reverse tunnel session.
    +
    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + @@ -532,7 +1906,7 @@ diff --git a/doc/NgrokAPI/Error.html b/doc/NgrokAPI/Error.html index e16e045..4a054f2 100644 --- a/doc/NgrokAPI/Error.html +++ b/doc/NgrokAPI/Error.html @@ -295,7 +295,7 @@ diff --git a/doc/NgrokAPI/Errors.html b/doc/NgrokAPI/Errors.html index 90902d8..da40ae2 100644 --- a/doc/NgrokAPI/Errors.html +++ b/doc/NgrokAPI/Errors.html @@ -105,7 +105,7 @@ diff --git a/doc/NgrokAPI/Errors/NotFoundError.html b/doc/NgrokAPI/Errors/NotFoundError.html index 6fa84ef..9ae67da 100644 --- a/doc/NgrokAPI/Errors/NotFoundError.html +++ b/doc/NgrokAPI/Errors/NotFoundError.html @@ -299,7 +299,7 @@ diff --git a/doc/NgrokAPI/HttpClient.html b/doc/NgrokAPI/HttpClient.html index a221500..ebdf903 100644 --- a/doc/NgrokAPI/HttpClient.html +++ b/doc/NgrokAPI/HttpClient.html @@ -1094,7 +1094,7 @@ diff --git a/doc/NgrokAPI/Models.html b/doc/NgrokAPI/Models.html index 1521ef1..0547e73 100644 --- a/doc/NgrokAPI/Models.html +++ b/doc/NgrokAPI/Models.html @@ -78,8 +78,8 @@
    Defined in:
    -
    lib/ngrokapi/models/api_key.rb,
    - lib/ngrokapi/models/listable.rb,
    lib/ngrokapi/models/reserved_domain.rb,
    lib/ngrokapi/models/tls_certificate.rb,
    lib/ngrokapi/models/endpoint_configuration.rb
    +
    lib/ngrokapi/models/ref.rb,
    + lib/ngrokapi/models/tunnel.rb,
    lib/ngrokapi/models/api_key.rb,
    lib/ngrokapi/models/aws_auth.rb,
    lib/ngrokapi/models/aws_role.rb,
    lib/ngrokapi/models/listable.rb,
    lib/ngrokapi/models/ip_policy.rb,
    lib/ngrokapi/models/credential.rb,
    lib/ngrokapi/models/abuse_report.rb,
    lib/ngrokapi/models/event_source.rb,
    lib/ngrokapi/models/event_stream.rb,
    lib/ngrokapi/models/event_target.rb,
    lib/ngrokapi/models/endpoint_oidc.rb,
    lib/ngrokapi/models/endpoint_saml.rb,
    lib/ngrokapi/models/reserved_addr.rb,
    lib/ngrokapi/models/ip_policy_rule.rb,
    lib/ngrokapi/models/ip_restriction.rb,
    lib/ngrokapi/models/ssh_credential.rb,
    lib/ngrokapi/models/tunnel_session.rb,
    lib/ngrokapi/models/aws_credentials.rb,
    lib/ngrokapi/models/endpoint_o_auth.rb,
    lib/ngrokapi/models/reserved_domain.rb,
    lib/ngrokapi/models/tls_certificate.rb,
    lib/ngrokapi/models/endpoint_logging.rb,
    lib/ngrokapi/models/event_destination.rb,
    lib/ngrokapi/models/endpoint_ip_policy.rb,
    lib/ngrokapi/models/event_subscription.rb,
    lib/ngrokapi/models/ip_whitelist_entry.rb,
    lib/ngrokapi/models/endpoint_mutual_tls.rb,
    lib/ngrokapi/models/endpoint_compression.rb,
    lib/ngrokapi/models/endpoint_saml_mutate.rb,
    lib/ngrokapi/models/event_source_replace.rb,
    lib/ngrokapi/models/event_target_kinesis.rb,
    lib/ngrokapi/models/ssh_host_certificate.rb,
    lib/ngrokapi/models/ssh_user_certificate.rb,
    lib/ngrokapi/models/abuse_report_hostname.rb,
    lib/ngrokapi/models/certificate_authority.rb,
    lib/ngrokapi/models/event_target_firehose.rb,
    lib/ngrokapi/models/tls_certificate_sa_ns.rb,
    lib/ngrokapi/models/endpoint_configuration.rb,
    lib/ngrokapi/models/endpoint_o_auth_google.rb,
    lib/ngrokapi/models/endpoint_logging_mutate.rb,
    lib/ngrokapi/models/endpoint_o_auth_git_hub.rb,
    lib/ngrokapi/models/endpoint_circuit_breaker.rb,
    lib/ngrokapi/models/endpoint_o_auth_facebook.rb,
    lib/ngrokapi/models/endpoint_o_auth_provider.rb,
    lib/ngrokapi/models/endpoint_request_headers.rb,
    lib/ngrokapi/models/endpoint_tls_termination.rb,
    lib/ngrokapi/models/reserved_domain_cert_job.rb,
    lib/ngrokapi/models/endpoint_ip_policy_mutate.rb,
    lib/ngrokapi/models/endpoint_o_auth_microsoft.rb,
    lib/ngrokapi/models/endpoint_response_headers.rb,
    lib/ngrokapi/models/ssh_certificate_authority.rb,
    lib/ngrokapi/models/endpoint_mutual_tls_mutate.rb,
    lib/ngrokapi/models/endpoint_webhook_validation.rb,
    lib/ngrokapi/models/reserved_domain_cert_policy.rb,
    lib/ngrokapi/models/reserved_domain_cert_status.rb,
    lib/ngrokapi/models/event_target_cloudwatch_logs.rb,
    lib/ngrokapi/models/reserved_domain_cert_ns_target.rb
    @@ -91,7 +91,7 @@ - Classes:ApiKey, EndpointConfiguration, Listable, ReservedDomain, TlsCertificate + Classes:APIKey, AWSAuth, AWSCredentials, AWSRole, AbuseReport, AbuseReportHostname, CertificateAuthority, Credential, EndpointCircuitBreaker, EndpointCompression, EndpointConfiguration, EndpointIPPolicy, EndpointIPPolicyMutate, EndpointLogging, EndpointLoggingMutate, EndpointMutualTLS, EndpointMutualTLSMutate, EndpointOAuth, EndpointOAuthFacebook, EndpointOAuthGitHub, EndpointOAuthGoogle, EndpointOAuthMicrosoft, EndpointOAuthProvider, EndpointOIDC, EndpointRequestHeaders, EndpointResponseHeaders, EndpointSAML, EndpointSAMLMutate, EndpointTLSTermination, EndpointWebhookValidation, EventDestination, EventSource, EventSourceReplace, EventStream, EventSubscription, EventTarget, EventTargetCloudwatchLogs, EventTargetFirehose, EventTargetKinesis, IPPolicy, IPPolicyRule, IPRestriction, IPWhitelistEntry, Listable, Ref, ReservedAddr, ReservedDomain, ReservedDomainCertJob, ReservedDomainCertNSTarget, ReservedDomainCertPolicy, ReservedDomainCertStatus, SSHCertificateAuthority, SSHCredential, SSHHostCertificate, SSHUserCertificate, TLSCertificate, TLSCertificateSANs, Tunnel, TunnelSession

    @@ -107,7 +107,7 @@ diff --git a/doc/NgrokAPI/Models/ApiKey.html b/doc/NgrokAPI/Models/APIKey.html similarity index 83% rename from doc/NgrokAPI/Models/ApiKey.html rename to doc/NgrokAPI/Models/APIKey.html index b2a4794..5a556ef 100644 --- a/doc/NgrokAPI/Models/ApiKey.html +++ b/doc/NgrokAPI/Models/APIKey.html @@ -4,7 +4,7 @@ - Class: NgrokAPI::Models::ApiKey + Class: NgrokAPI::Models::APIKey — Documentation by YARD 0.9.26 @@ -15,7 +15,7 @@ <link rel="stylesheet" href="../../css/common.css" type="text/css" /> <script type="text/javascript"> - pathId = "NgrokAPI::Models::ApiKey"; + pathId = "NgrokAPI::Models::APIKey"; relpath = '../../'; </script> @@ -39,7 +39,7 @@ <a href="../../_index.html">Index (A)</a> » <span class='title'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span> » <span class='title'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span> » - <span class="title">ApiKey</span> + <span class="title">APIKey</span> </div> @@ -59,7 +59,7 @@ <div class="clear"></div> </div> - <div id="content"><h1>Class: NgrokAPI::Models::ApiKey + <div id="content"><h1>Class: NgrokAPI::Models::APIKey @@ -74,7 +74,7 @@ <ul class="fullTree"> <li>Object</li> - <li class="next">NgrokAPI::Models::ApiKey</li> + <li class="next">NgrokAPI::Models::APIKey</li> </ul> <a href="#" class="inheritanceTree">show all</a> @@ -99,19 +99,8 @@ </div> -<h2>Overview</h2><div class="docstring"> - <div class="discussion"> - -<p>A resource representing data from the api_keys API</p> - </div> -</div> -<div class="tags"> - - -</div> - <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2> @@ -387,7 +376,7 @@ <li class="public "> <span class="summary_signature"> - <a href="#delete-instance_method" title="#delete (instance method)">#<strong>delete</strong> ⇒ nil </a> + <a href="#delete-instance_method" title="#delete (instance method)">#<strong>delete</strong> ⇒ Object </a> @@ -402,7 +391,7 @@ <span class="summary_desc"><div class='inline'> -<p>Delete this API key.</p> +<p>Delete an API key by ID.</p> </div></span> </li> @@ -411,7 +400,7 @@ <li class="public "> <span class="summary_signature"> - <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(client:, result:) ⇒ ApiKey </a> + <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(client:, result:) ⇒ APIKey </a> @@ -428,7 +417,7 @@ <span class="summary_desc"><div class='inline'> -<p>A new instance of ApiKey.</p> +<p>A new instance of APIKey.</p> </div></span> </li> @@ -459,7 +448,7 @@ <li class="public "> <span class="summary_signature"> - <a href="#update-instance_method" title="#update (instance method)">#<strong>update</strong>(description: nil, metadata: nil) ⇒ NgrokAPI::Models::ApiKey </a> + <a href="#update-instance_method" title="#update (instance method)">#<strong>update</strong>(description: nil, metadata: nil) ⇒ Object </a> @@ -474,7 +463,7 @@ <span class="summary_desc"><div class='inline'> -<p>Update the attributes of this API key.</p> +<p>Update attributes of an API key by ID.</p> </div></span> </li> @@ -489,7 +478,7 @@ <div class="method_details first"> <h3 class="signature first" id="initialize-instance_method"> - #<strong>initialize</strong>(client:, result:) ⇒ <tt><span class='object_link'><a href="" title="NgrokAPI::Models::ApiKey (class)">ApiKey</a></span></tt> + #<strong>initialize</strong>(client:, result:) ⇒ <tt><span class='object_link'><a href="" title="NgrokAPI::Models::APIKey (class)">APIKey</a></span></tt> @@ -498,7 +487,7 @@ </h3><div class="docstring"> <div class="discussion"> -<p>Returns a new instance of ApiKey.</p> +<p>Returns a new instance of APIKey.</p> </div> @@ -512,6 +501,8 @@ <pre class="lines"> +15 +16 17 18 19 @@ -519,22 +510,20 @@ 21 22 23 -24 -25 -26</pre> +24</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 17</span> + <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 15</span> -<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>client:</span><span class='comma'>,</span> <span class='label'>result:</span><span class='rparen'>)</span> - <span class='ivar'>@client</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span> - <span class='ivar'>@result</span> <span class='op'>=</span> <span class='id identifier rubyid_result'>result</span> - <span class='ivar'>@created_at</span> <span class='op'>=</span> <span class='ivar'>@result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>created_at</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> - <span class='ivar'>@id</span> <span class='op'>=</span> <span class='ivar'>@result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> - <span class='ivar'>@description</span> <span class='op'>=</span> <span class='ivar'>@result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>description</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> - <span class='ivar'>@metadata</span> <span class='op'>=</span> <span class='ivar'>@result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>metadata</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> - <span class='ivar'>@token</span> <span class='op'>=</span> <span class='ivar'>@result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>token</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> - <span class='ivar'>@uri</span> <span class='op'>=</span> <span class='ivar'>@result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>uri</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> +<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>client:</span><span class='comma'>,</span> <span class='label'>result:</span><span class='rparen'>)</span> + <span class='ivar'>@client</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span> + <span class='ivar'>@result</span> <span class='op'>=</span> <span class='id identifier rubyid_result'>result</span> + <span class='ivar'>@id</span> <span class='op'>=</span> <span class='ivar'>@result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> + <span class='ivar'>@uri</span> <span class='op'>=</span> <span class='ivar'>@result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>uri</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> + <span class='ivar'>@description</span> <span class='op'>=</span> <span class='ivar'>@result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>description</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> + <span class='ivar'>@metadata</span> <span class='op'>=</span> <span class='ivar'>@result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>metadata</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> + <span class='ivar'>@created_at</span> <span class='op'>=</span> <span class='ivar'>@result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>created_at</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> + <span class='ivar'>@token</span> <span class='op'>=</span> <span class='ivar'>@result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>token</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='kw'>end</span></pre> </td> </tr> @@ -574,12 +563,12 @@ <pre class="lines"> -8 -9 -10</pre> +6 +7 +8</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 8</span> + <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 6</span> <span class='kw'>def</span> <span class='id identifier rubyid_client'>client</span> <span class='ivar'>@client</span> @@ -617,12 +606,12 @@ <pre class="lines"> -8 -9 -10</pre> +6 +7 +8</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 8</span> + <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 6</span> <span class='kw'>def</span> <span class='id identifier rubyid_created_at'>created_at</span> <span class='ivar'>@created_at</span> @@ -660,12 +649,12 @@ <pre class="lines"> -8 -9 -10</pre> +6 +7 +8</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 8</span> + <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 6</span> <span class='kw'>def</span> <span class='id identifier rubyid_description'>description</span> <span class='ivar'>@description</span> @@ -703,12 +692,12 @@ <pre class="lines"> -8 -9 -10</pre> +6 +7 +8</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 8</span> + <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 6</span> <span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span> <span class='ivar'>@id</span> @@ -746,12 +735,12 @@ <pre class="lines"> -8 -9 -10</pre> +6 +7 +8</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 8</span> + <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 6</span> <span class='kw'>def</span> <span class='id identifier rubyid_metadata'>metadata</span> <span class='ivar'>@metadata</span> @@ -789,12 +778,12 @@ <pre class="lines"> -8 -9 -10</pre> +6 +7 +8</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 8</span> + <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 6</span> <span class='kw'>def</span> <span class='id identifier rubyid_result'>result</span> <span class='ivar'>@result</span> @@ -832,12 +821,12 @@ <pre class="lines"> -8 -9 -10</pre> +6 +7 +8</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 8</span> + <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 6</span> <span class='kw'>def</span> <span class='id identifier rubyid_token'>token</span> <span class='ivar'>@token</span> @@ -875,12 +864,12 @@ <pre class="lines"> -8 -9 -10</pre> +6 +7 +8</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 8</span> + <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 6</span> <span class='kw'>def</span> <span class='id identifier rubyid_uri'>uri</span> <span class='ivar'>@uri</span> @@ -912,15 +901,15 @@ <pre class="lines"> -28 -29 -30</pre> +26 +27 +28</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 28</span> + <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 26</span> -<span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span> - <span class='ivar'>@result</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span> +<span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span> + <span class='ivar'>@result</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span> <span class='kw'>end</span></pre> </td> </tr> @@ -930,7 +919,7 @@ <div class="method_details "> <h3 class="signature " id="delete-instance_method"> - #<strong>delete</strong> ⇒ <tt>nil</tt> + #<strong>delete</strong> ⇒ <tt>Object</tt> @@ -939,7 +928,7 @@ </h3><div class="docstring"> <div class="discussion"> -<p>Delete this API key.</p> +<p>Delete an API key by ID</p> <p><a href="https://ngrok.com/docs/api#api-api-keys-delete">ngrok.com/docs/api#api-api-keys-delete</a></p> @@ -948,24 +937,6 @@ </div> <div class="tags"> -<p class="tag_title">Returns:</p> -<ul class="return"> - - <li> - - - <span class='type'>(<tt>nil</tt>)</span> - - - - — - <div class='inline'> -<p>result from delete request</p> -</div> - - </li> - -</ul> </div><table class="source_code"> <tr> @@ -973,15 +944,19 @@ <pre class="lines"> -42 -43 -44</pre> +38 +39 +40 +41 +42</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 42</span> + <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 38</span> -<span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span> - <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='label'>id:</span> <span class='ivar'>@id</span><span class='rparen'>)</span> +<span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span> + <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span> + <span class='label'>id:</span> <span class='ivar'>@id</span> + <span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> @@ -1003,15 +978,15 @@ <pre class="lines"> -32 -33 -34</pre> +30 +31 +32</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 32</span> + <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 30</span> -<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span> - <span class='ivar'>@result</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> +<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span> + <span class='ivar'>@result</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='kw'>end</span></pre> </td> </tr> @@ -1021,7 +996,7 @@ <div class="method_details "> <h3 class="signature " id="update-instance_method"> - #<strong>update</strong>(description: nil, metadata: nil) ⇒ <tt><span class='object_link'><a href="" title="NgrokAPI::Models::ApiKey (class)">NgrokAPI::Models::ApiKey</a></span></tt> + #<strong>update</strong>(description: nil, metadata: nil) ⇒ <tt>Object</tt> @@ -1030,7 +1005,7 @@ </h3><div class="docstring"> <div class="discussion"> -<p>Update the attributes of this API key.</p> +<p>Update attributes of an API key by ID.</p> <p><a href="https://ngrok.com/docs/api#api-api-keys-update">ngrok.com/docs/api#api-api-keys-update</a></p> @@ -1038,65 +1013,7 @@ </div> </div> <div class="tags"> - <p class="tag_title">Parameters:</p> -<ul class="param"> - <li> - - <span class='name'>description</span> - - - <span class='type'>(<tt>string</tt>)</span> - - - <em class="default">(defaults to: <tt>nil</tt>)</em> - - - — - <div class='inline'> -<p>human-readable description of what uses the API key to authenticate. optional, max 255 bytes.</p> -</div> - - </li> - - <li> - - <span class='name'>metadata</span> - - - <span class='type'>(<tt>string</tt>)</span> - - - <em class="default">(defaults to: <tt>nil</tt>)</em> - - - — - <div class='inline'> -<p>arbitrary user-defined data of this API key. optional, max 4096 bytes</p> -</div> - - </li> - -</ul> - -<p class="tag_title">Returns:</p> -<ul class="return"> - - <li> - - - <span class='type'>(<tt><span class='object_link'><a href="" title="NgrokAPI::Models::ApiKey (class)">NgrokAPI::Models::ApiKey</a></span></tt>)</span> - - - - — - <div class='inline'> -<p>result from update request</p> -</div> - - </li> - -</ul> </div><table class="source_code"> <tr> @@ -1104,19 +1021,33 @@ <pre class="lines"> +48 +49 +50 +51 +52 +53 +54 +55 56 57 58 -59 -60</pre> +59</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 56</span> + <pre class="code"><span class="info file"># File 'lib/ngrokapi/models/api_key.rb', line 48</span> -<span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='label'>description:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>metadata:</span> <span class='kw'>nil</span><span class='rparen'>)</span> - <span class='ivar'>@description</span> <span class='op'>=</span> <span class='id identifier rubyid_description'>description</span> <span class='kw'>if</span> <span class='id identifier rubyid_description'>description</span> - <span class='ivar'>@metadata</span> <span class='op'>=</span> <span class='id identifier rubyid_metadata'>metadata</span> <span class='kw'>if</span> <span class='id identifier rubyid_metadata'>metadata</span> - <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='label'>id:</span> <span class='ivar'>@id</span><span class='comma'>,</span> <span class='label'>description:</span> <span class='id identifier rubyid_description'>description</span><span class='comma'>,</span> <span class='label'>metadata:</span> <span class='id identifier rubyid_metadata'>metadata</span><span class='rparen'>)</span> +<span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span> + <span class='label'>description:</span> <span class='kw'>nil</span><span class='comma'>,</span> + <span class='label'>metadata:</span> <span class='kw'>nil</span> +<span class='rparen'>)</span> + <span class='ivar'>@description</span> <span class='op'>=</span> <span class='id identifier rubyid_description'>description</span> <span class='kw'>if</span> <span class='id identifier rubyid_description'>description</span> + <span class='ivar'>@metadata</span> <span class='op'>=</span> <span class='id identifier rubyid_metadata'>metadata</span> <span class='kw'>if</span> <span class='id identifier rubyid_metadata'>metadata</span> + <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span> + <span class='label'>id:</span> <span class='ivar'>@id</span><span class='comma'>,</span> + <span class='label'>description:</span> <span class='id identifier rubyid_description'>description</span><span class='comma'>,</span> + <span class='label'>metadata:</span> <span class='id identifier rubyid_metadata'>metadata</span> + <span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> @@ -1128,7 +1059,7 @@ </div> <div id="footer"> - Generated on Fri Sep 24 19:20:29 2021 by + Generated on Mon Oct 4 23:24:15 2021 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> 0.9.26 (ruby-3.0.1). </div> diff --git a/doc/NgrokAPI/Models/AWSAuth.html b/doc/NgrokAPI/Models/AWSAuth.html new file mode 100644 index 0000000..1c60506 --- /dev/null +++ b/doc/NgrokAPI/Models/AWSAuth.html @@ -0,0 +1,617 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> +<meta name="viewport" content="width=device-width, initial-scale=1.0"> +<title> + Class: NgrokAPI::Models::AWSAuth + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Class: NgrokAPI::Models::AWSAuth + + + +

    +
    + +
    +
    Inherits:
    +
    + Object + +
      +
    • Object
    • + + + +
    + show all + +
    +
    + + + + + + + + + + + +
    +
    Defined in:
    +
    lib/ngrokapi/models/aws_auth.rb
    +
    + +
    + + + + + +

    Instance Attribute Summary collapse

    +
      + +
    • + + + #client ⇒ Object + + + + + + + + + readonly + + + + + + + + + +
      +

      Returns the value of attribute client.

      +
      + +
    • + + +
    • + + + #creds ⇒ Object + + + + + + + + + readonly + + + + + + + + + +
      +

      Returns the value of attribute creds.

      +
      + +
    • + + +
    • + + + #result ⇒ Object + + + + + + + + + readonly + + + + + + + + + +
      +

      Returns the value of attribute result.

      +
      + +
    • + + +
    • + + + #role ⇒ Object + + + + + + + + + readonly + + + + + + + + + +
      +

      Returns the value of attribute role.

      +
      + +
    • + + +
    + + + + + +

    + Instance Method Summary + collapse +

    + + + + +
    +

    Constructor Details

    + +
    +

    + + #initialize(client:, result:) ⇒ AWSAuth + + + + + +

    +
    + +

    Returns a new instance of AWSAuth.

    + + +
    +
    +
    + + +
    +
    +
    +
    +214
    +215
    +216
    +
    +
    # File 'lib/ngrokapi/client.rb', line 214
    +
    +def tunnels
    +  @_tunnels ||= NgrokAPI::Services::TunnelsClient.new(client: @client)
     end
    + + + + +
    +
    +
    +
    +11
    +12
    +13
    +14
    +15
    +16
    +
    +
    # File 'lib/ngrokapi/models/aws_auth.rb', line 11
    +
    +def initialize(client:, result:)
    +  @client = client
    +  @result = result
    +  @role = @result['role']
    +  @creds = @result['creds']
    +end
    +
    +
    + +
    + +
    +

    Instance Attribute Details

    + + + +
    +

    + + #clientObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute client.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/aws_auth.rb', line 6
    +
    +def client
    +  @client
    +end
    +
    +
    + + + +
    +

    + + #credsObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute creds.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/aws_auth.rb', line 6
    +
    +def creds
    +  @creds
    +end
    +
    +
    + + + +
    +

    + + #resultObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute result.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/aws_auth.rb', line 6
    +
    +def result
    +  @result
    +end
    +
    +
    + + + +
    +

    + + #roleObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute role.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/aws_auth.rb', line 6
    +
    +def role
    +  @role
    +end
    +
    +
    + +
    + + +
    +

    Instance Method Details

    + + +
    +

    + + #==(other) ⇒ Object + + + + + +

    + + + + +
    +
    +
    +
    +18
    +19
    +20
    +
    +
    # File 'lib/ngrokapi/models/aws_auth.rb', line 18
    +
    +def ==(other)
    +  @result == other.result
    +end
    +
    +
    + +
    +

    + + #to_sObject + + + + + +

    + + + + +
    +
    +
    +
    +22
    +23
    +24
    +
    +
    # File 'lib/ngrokapi/models/aws_auth.rb', line 22
    +
    +def to_s
    +  @result.to_s
    +end
    +
    +
    + +
    + + + + + + + + \ No newline at end of file diff --git a/doc/NgrokAPI/Models/AWSCredentials.html b/doc/NgrokAPI/Models/AWSCredentials.html new file mode 100644 index 0000000..9ba8ccb --- /dev/null +++ b/doc/NgrokAPI/Models/AWSCredentials.html @@ -0,0 +1,617 @@ + + + + + + + Class: NgrokAPI::Models::AWSCredentials + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Class: NgrokAPI::Models::AWSCredentials + + + +

    +
    + +
    +
    Inherits:
    +
    + Object + +
      +
    • Object
    • + + + +
    + show all + +
    +
    + + + + + + + + + + + +
    +
    Defined in:
    +
    lib/ngrokapi/models/aws_credentials.rb
    +
    + +
    + + + + + +

    Instance Attribute Summary collapse

    + + + + + + +

    + Instance Method Summary + collapse +

    + + + + +
    +

    Constructor Details

    + +
    +

    + + #initialize(client:, result:) ⇒ AWSCredentials + + + + + +

    +
    + +

    Returns a new instance of AWSCredentials.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +11
    +12
    +13
    +14
    +15
    +16
    +
    +
    # File 'lib/ngrokapi/models/aws_credentials.rb', line 11
    +
    +def initialize(client:, result:)
    +  @client = client
    +  @result = result
    +  @aws_access_key_id = @result['aws_access_key_id']
    +  @aws_secret_access_key = @result['aws_secret_access_key']
    +end
    +
    +
    + +
    + +
    +

    Instance Attribute Details

    + + + +
    +

    + + #aws_access_key_idObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute aws_access_key_id.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/aws_credentials.rb', line 6
    +
    +def aws_access_key_id
    +  @aws_access_key_id
    +end
    +
    +
    + + + +
    +

    + + #aws_secret_access_keyObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute aws_secret_access_key.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/aws_credentials.rb', line 6
    +
    +def aws_secret_access_key
    +  @aws_secret_access_key
    +end
    +
    +
    + + + +
    +

    + + #clientObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute client.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/aws_credentials.rb', line 6
    +
    +def client
    +  @client
    +end
    +
    +
    + + + +
    +

    + + #resultObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute result.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/aws_credentials.rb', line 6
    +
    +def result
    +  @result
    +end
    +
    +
    + +
    + + +
    +

    Instance Method Details

    + + +
    +

    + + #==(other) ⇒ Object + + + + + +

    + + + + +
    +
    +
    +
    +18
    +19
    +20
    +
    +
    # File 'lib/ngrokapi/models/aws_credentials.rb', line 18
    +
    +def ==(other)
    +  @result == other.result
    +end
    +
    +
    + +
    +

    + + #to_sObject + + + + + +

    + + + + +
    +
    +
    +
    +22
    +23
    +24
    +
    +
    # File 'lib/ngrokapi/models/aws_credentials.rb', line 22
    +
    +def to_s
    +  @result.to_s
    +end
    +
    +
    + +
    + +
    + + + +
    + + \ No newline at end of file diff --git a/doc/NgrokAPI/Models/AWSRole.html b/doc/NgrokAPI/Models/AWSRole.html new file mode 100644 index 0000000..2735a2c --- /dev/null +++ b/doc/NgrokAPI/Models/AWSRole.html @@ -0,0 +1,543 @@ + + + + + + + Class: NgrokAPI::Models::AWSRole + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Class: NgrokAPI::Models::AWSRole + + + +

    +
    + +
    +
    Inherits:
    +
    + Object + +
      +
    • Object
    • + + + +
    + show all + +
    +
    + + + + + + + + + + + +
    +
    Defined in:
    +
    lib/ngrokapi/models/aws_role.rb
    +
    + +
    + + + + + +

    Instance Attribute Summary collapse

    + + + + + + +

    + Instance Method Summary + collapse +

    + + + + +
    +

    Constructor Details

    + +
    +

    + + #initialize(client:, result:) ⇒ AWSRole + + + + + +

    +
    + +

    Returns a new instance of AWSRole.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +10
    +11
    +12
    +13
    +14
    +
    +
    # File 'lib/ngrokapi/models/aws_role.rb', line 10
    +
    +def initialize(client:, result:)
    +  @client = client
    +  @result = result
    +  @role_arn = @result['role_arn']
    +end
    +
    +
    + +
    + +
    +

    Instance Attribute Details

    + + + +
    +

    + + #clientObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute client.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/aws_role.rb', line 6
    +
    +def client
    +  @client
    +end
    +
    +
    + + + +
    +

    + + #resultObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute result.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/aws_role.rb', line 6
    +
    +def result
    +  @result
    +end
    +
    +
    + + + +
    +

    + + #role_arnObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute role_arn.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/aws_role.rb', line 6
    +
    +def role_arn
    +  @role_arn
    +end
    +
    +
    + +
    + + +
    +

    Instance Method Details

    + + +
    +

    + + #==(other) ⇒ Object + + + + + +

    + + + + +
    +
    +
    +
    +16
    +17
    +18
    +
    +
    # File 'lib/ngrokapi/models/aws_role.rb', line 16
    +
    +def ==(other)
    +  @result == other.result
    +end
    +
    +
    + +
    +

    + + #to_sObject + + + + + +

    + + + + +
    +
    +
    +
    +20
    +21
    +22
    +
    +
    # File 'lib/ngrokapi/models/aws_role.rb', line 20
    +
    +def to_s
    +  @result.to_s
    +end
    +
    +
    + +
    + +
    + + + +
    + + \ No newline at end of file diff --git a/doc/NgrokAPI/Models/AbuseReport.html b/doc/NgrokAPI/Models/AbuseReport.html new file mode 100644 index 0000000..74f263e --- /dev/null +++ b/doc/NgrokAPI/Models/AbuseReport.html @@ -0,0 +1,987 @@ + + + + + + + Class: NgrokAPI::Models::AbuseReport + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Class: NgrokAPI::Models::AbuseReport + + + +

    +
    + +
    +
    Inherits:
    +
    + Object + +
      +
    • Object
    • + + + +
    + show all + +
    +
    + + + + + + + + + + + +
    +
    Defined in:
    +
    lib/ngrokapi/models/abuse_report.rb
    +
    + +
    + + + + + +

    Instance Attribute Summary collapse

    + + + + + + +

    + Instance Method Summary + collapse +

    + + + + +
    +

    Constructor Details

    + +
    +

    + + #initialize(client:, result:) ⇒ AbuseReport + + + + + +

    +
    + +

    Returns a new instance of AbuseReport.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +
    +
    # File 'lib/ngrokapi/models/abuse_report.rb', line 16
    +
    +def initialize(client:, result:)
    +  @client = client
    +  @result = result
    +  @id = @result['id']
    +  @uri = @result['uri']
    +  @created_at = @result['created_at']
    +  @urls = @result['urls']
    +  @metadata = @result['metadata']
    +  @status = @result['status']
    +  @hostnames = @result['hostnames']
    +end
    +
    +
    + +
    + +
    +

    Instance Attribute Details

    + + + +
    +

    + + #clientObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute client.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/abuse_report.rb', line 6
    +
    +def client
    +  @client
    +end
    +
    +
    + + + +
    +

    + + #created_atObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute created_at.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/abuse_report.rb', line 6
    +
    +def created_at
    +  @created_at
    +end
    +
    +
    + + + +
    +

    + + #hostnamesObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute hostnames.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/abuse_report.rb', line 6
    +
    +def hostnames
    +  @hostnames
    +end
    +
    +
    + + + +
    +

    + + #idObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute id.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/abuse_report.rb', line 6
    +
    +def id
    +  @id
    +end
    +
    +
    + + + +
    +

    + + #metadataObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute metadata.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/abuse_report.rb', line 6
    +
    +def 
    +  @metadata
    +end
    +
    +
    + + + +
    +

    + + #resultObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute result.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/abuse_report.rb', line 6
    +
    +def result
    +  @result
    +end
    +
    +
    + + + +
    +

    + + #statusObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute status.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/abuse_report.rb', line 6
    +
    +def status
    +  @status
    +end
    +
    +
    + + + +
    +

    + + #uriObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute uri.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/abuse_report.rb', line 6
    +
    +def uri
    +  @uri
    +end
    +
    +
    + + + +
    +

    + + #urlsObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute urls.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/abuse_report.rb', line 6
    +
    +def urls
    +  @urls
    +end
    +
    +
    + +
    + + +
    +

    Instance Method Details

    + + +
    +

    + + #==(other) ⇒ Object + + + + + +

    + + + + +
    +
    +
    +
    +28
    +29
    +30
    +
    +
    # File 'lib/ngrokapi/models/abuse_report.rb', line 28
    +
    +def ==(other)
    +  @result == other.result
    +end
    +
    +
    + +
    +

    + + #to_sObject + + + + + +

    + + + + +
    +
    +
    +
    +32
    +33
    +34
    +
    +
    # File 'lib/ngrokapi/models/abuse_report.rb', line 32
    +
    +def to_s
    +  @result.to_s
    +end
    +
    +
    + +
    + +
    + + + +
    + + \ No newline at end of file diff --git a/doc/NgrokAPI/Models/AbuseReportHostname.html b/doc/NgrokAPI/Models/AbuseReportHostname.html new file mode 100644 index 0000000..0dcd4e4 --- /dev/null +++ b/doc/NgrokAPI/Models/AbuseReportHostname.html @@ -0,0 +1,617 @@ + + + + + + + Class: NgrokAPI::Models::AbuseReportHostname + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Class: NgrokAPI::Models::AbuseReportHostname + + + +

    +
    + +
    +
    Inherits:
    +
    + Object + +
      +
    • Object
    • + + + +
    + show all + +
    +
    + + + + + + + + + + + +
    +
    Defined in:
    +
    lib/ngrokapi/models/abuse_report_hostname.rb
    +
    + +
    + + + + + +

    Instance Attribute Summary collapse

    + + + + + + +

    + Instance Method Summary + collapse +

    + + + + +
    +

    Constructor Details

    + +
    +

    + + #initialize(client:, result:) ⇒ AbuseReportHostname + + + + + +

    +
    + +

    Returns a new instance of AbuseReportHostname.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +11
    +12
    +13
    +14
    +15
    +16
    +
    +
    # File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 11
    +
    +def initialize(client:, result:)
    +  @client = client
    +  @result = result
    +  @hostname = @result['hostname']
    +  @status = @result['status']
    +end
    +
    +
    + +
    + +
    +

    Instance Attribute Details

    + + + +
    +

    + + #clientObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute client.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 6
    +
    +def client
    +  @client
    +end
    +
    +
    + + + +
    +

    + + #hostnameObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute hostname.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 6
    +
    +def hostname
    +  @hostname
    +end
    +
    +
    + + + +
    +

    + + #resultObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute result.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 6
    +
    +def result
    +  @result
    +end
    +
    +
    + + + +
    +

    + + #statusObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute status.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 6
    +
    +def status
    +  @status
    +end
    +
    +
    + +
    + + +
    +

    Instance Method Details

    + + +
    +

    + + #==(other) ⇒ Object + + + + + +

    + + + + +
    +
    +
    +
    +18
    +19
    +20
    +
    +
    # File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 18
    +
    +def ==(other)
    +  @result == other.result
    +end
    +
    +
    + +
    +

    + + #to_sObject + + + + + +

    + + + + +
    +
    +
    +
    +22
    +23
    +24
    +
    +
    # File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 22
    +
    +def to_s
    +  @result.to_s
    +end
    +
    +
    + +
    + +
    + + + +
    + + \ No newline at end of file diff --git a/doc/NgrokAPI/Models/CertificateAuthority.html b/doc/NgrokAPI/Models/CertificateAuthority.html new file mode 100644 index 0000000..ae2f393 --- /dev/null +++ b/doc/NgrokAPI/Models/CertificateAuthority.html @@ -0,0 +1,1439 @@ + + + + + + + Class: NgrokAPI::Models::CertificateAuthority + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Class: NgrokAPI::Models::CertificateAuthority + + + +

    +
    + +
    +
    Inherits:
    +
    + Object + +
      +
    • Object
    • + + + +
    + show all + +
    +
    + + + + + + + + + + + +
    +
    Defined in:
    +
    lib/ngrokapi/models/certificate_authority.rb
    +
    + +
    + + + + + +

    Instance Attribute Summary collapse

    + + + + + + +

    + Instance Method Summary + collapse +

    + + + + +
    +

    Constructor Details

    + +
    +

    + + #initialize(client:, result:) ⇒ CertificateAuthority + + + + + +

    +
    + +

    Returns a new instance of CertificateAuthority.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +27
    +28
    +29
    +30
    +31
    +32
    +33
    +34
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 20
    +
    +def initialize(client:, result:)
    +  @client = client
    +  @result = result
    +  @id = @result['id']
    +  @uri = @result['uri']
    +  @created_at = @result['created_at']
    +  @description = @result['description']
    +  @metadata = @result['metadata']
    +  @ca_pem = @result['ca_pem']
    +  @subject_common_name = @result['subject_common_name']
    +  @not_before = @result['not_before']
    +  @not_after = @result['not_after']
    +  @key_usages = @result['key_usages']
    +  @extended_key_usages = @result['extended_key_usages']
    +end
    +
    +
    + +
    + +
    +

    Instance Attribute Details

    + + + +
    +

    + + #ca_pemObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute ca_pem.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 6
    +
    +def ca_pem
    +  @ca_pem
    +end
    +
    +
    + + + +
    +

    + + #clientObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute client.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 6
    +
    +def client
    +  @client
    +end
    +
    +
    + + + +
    +

    + + #created_atObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute created_at.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 6
    +
    +def created_at
    +  @created_at
    +end
    +
    +
    + + + +
    +

    + + #descriptionObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute description.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 6
    +
    +def description
    +  @description
    +end
    +
    +
    + + + +
    +

    + + #extended_key_usagesObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute extended_key_usages.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 6
    +
    +def extended_key_usages
    +  @extended_key_usages
    +end
    +
    +
    + + + +
    +

    + + #idObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute id.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 6
    +
    +def id
    +  @id
    +end
    +
    +
    + + + +
    +

    + + #key_usagesObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute key_usages.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 6
    +
    +def key_usages
    +  @key_usages
    +end
    +
    +
    + + + +
    +

    + + #metadataObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute metadata.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 6
    +
    +def 
    +  @metadata
    +end
    +
    +
    + + + +
    +

    + + #not_afterObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute not_after.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 6
    +
    +def not_after
    +  @not_after
    +end
    +
    +
    + + + +
    +

    + + #not_beforeObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute not_before.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 6
    +
    +def not_before
    +  @not_before
    +end
    +
    +
    + + + +
    +

    + + #resultObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute result.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 6
    +
    +def result
    +  @result
    +end
    +
    +
    + + + +
    +

    + + #subject_common_nameObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute subject_common_name.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 6
    +
    +def subject_common_name
    +  @subject_common_name
    +end
    +
    +
    + + + +
    +

    + + #uriObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute uri.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 6
    +
    +def uri
    +  @uri
    +end
    +
    +
    + +
    + + +
    +

    Instance Method Details

    + + +
    +

    + + #==(other) ⇒ Object + + + + + +

    + + + + +
    +
    +
    +
    +36
    +37
    +38
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 36
    +
    +def ==(other)
    +  @result == other.result
    +end
    +
    +
    + +
    +

    + + #deleteObject + + + + + +

    +
    + +

    Delete a Certificate Authority

    + +

    ngrok.com/docs/api#api-certificate-authorities-delete

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +48
    +49
    +50
    +51
    +52
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 48
    +
    +def delete
    +  @client.delete(
    +    id: @id
    +  )
    +end
    +
    +
    + +
    +

    + + #to_sObject + + + + + +

    + + + + +
    +
    +
    +
    +40
    +41
    +42
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 40
    +
    +def to_s
    +  @result.to_s
    +end
    +
    +
    + +
    +

    + + #update(description: nil, metadata: nil) ⇒ Object + + + + + +

    +
    + +

    Update attributes of a Certificate Authority by ID

    + +

    ngrok.com/docs/api#api-certificate-authorities-update

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +58
    +59
    +60
    +61
    +62
    +63
    +64
    +65
    +66
    +67
    +68
    +69
    +
    +
    # File 'lib/ngrokapi/models/certificate_authority.rb', line 58
    +
    +def update(
    +  description: nil,
    +  metadata: nil
    +)
    +  @description = description if description
    +  @metadata =  if 
    +  @client.update(
    +    id: @id,
    +    description: description,
    +    metadata: 
    +  )
    +end
    +
    +
    + +
    + +
    + + + +
    + + \ No newline at end of file diff --git a/doc/NgrokAPI/Models/Credential.html b/doc/NgrokAPI/Models/Credential.html new file mode 100644 index 0000000..86f98cc --- /dev/null +++ b/doc/NgrokAPI/Models/Credential.html @@ -0,0 +1,1149 @@ + + + + + + + Class: NgrokAPI::Models::Credential + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Class: NgrokAPI::Models::Credential + + + +

    +
    + +
    +
    Inherits:
    +
    + Object + +
      +
    • Object
    • + + + +
    + show all + +
    +
    + + + + + + + + + + + +
    +
    Defined in:
    +
    lib/ngrokapi/models/credential.rb
    +
    + +
    + + + + + +

    Instance Attribute Summary collapse

    + + + + + + +

    + Instance Method Summary + collapse +

    + + + + +
    +

    Constructor Details

    + +
    +

    + + #initialize(client:, result:) ⇒ Credential + + + + + +

    +
    + +

    Returns a new instance of Credential.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 16
    +
    +def initialize(client:, result:)
    +  @client = client
    +  @result = result
    +  @id = @result['id']
    +  @uri = @result['uri']
    +  @created_at = @result['created_at']
    +  @description = @result['description']
    +  @metadata = @result['metadata']
    +  @token = @result['token']
    +  @acl = @result['acl']
    +end
    +
    +
    + +
    + +
    +

    Instance Attribute Details

    + + + +
    +

    + + #aclObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute acl.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 6
    +
    +def acl
    +  @acl
    +end
    +
    +
    + + + +
    +

    + + #clientObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute client.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 6
    +
    +def client
    +  @client
    +end
    +
    +
    + + + +
    +

    + + #created_atObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute created_at.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 6
    +
    +def created_at
    +  @created_at
    +end
    +
    +
    + + + +
    +

    + + #descriptionObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute description.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 6
    +
    +def description
    +  @description
    +end
    +
    +
    + + + +
    +

    + + #idObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute id.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 6
    +
    +def id
    +  @id
    +end
    +
    +
    + + + +
    +

    + + #metadataObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute metadata.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 6
    +
    +def 
    +  @metadata
    +end
    +
    +
    + + + +
    +

    + + #resultObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute result.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 6
    +
    +def result
    +  @result
    +end
    +
    +
    + + + +
    +

    + + #tokenObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute token.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 6
    +
    +def token
    +  @token
    +end
    +
    +
    + + + +
    +

    + + #uriObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute uri.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 6
    +
    +def uri
    +  @uri
    +end
    +
    +
    + +
    + + +
    +

    Instance Method Details

    + + +
    +

    + + #==(other) ⇒ Object + + + + + +

    + + + + +
    +
    +
    +
    +28
    +29
    +30
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 28
    +
    +def ==(other)
    +  @result == other.result
    +end
    +
    +
    + +
    +

    + + #deleteObject + + + + + +

    +
    + +

    Delete a tunnel authtoken credential by ID

    + +

    ngrok.com/docs/api#api-credentials-delete

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +40
    +41
    +42
    +43
    +44
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 40
    +
    +def delete
    +  @client.delete(
    +    id: @id
    +  )
    +end
    +
    +
    + +
    +

    + + #to_sObject + + + + + +

    + + + + +
    +
    +
    +
    +32
    +33
    +34
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 32
    +
    +def to_s
    +  @result.to_s
    +end
    +
    +
    + +
    +

    + + #update(description: nil, metadata: nil, acl: nil) ⇒ Object + + + + + +

    +
    + +

    Update attributes of an tunnel authtoken credential by ID

    + +

    ngrok.com/docs/api#api-credentials-update

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +50
    +51
    +52
    +53
    +54
    +55
    +56
    +57
    +58
    +59
    +60
    +61
    +62
    +63
    +64
    +
    +
    # File 'lib/ngrokapi/models/credential.rb', line 50
    +
    +def update(
    +  description: nil,
    +  metadata: nil,
    +  acl: nil
    +)
    +  @description = description if description
    +  @metadata =  if 
    +  @acl = acl if acl
    +  @client.update(
    +    id: @id,
    +    description: description,
    +    metadata: ,
    +    acl: acl
    +  )
    +end
    +
    +
    + +
    + +
    + + + +
    + + \ No newline at end of file diff --git a/doc/NgrokAPI/Models/EndpointCircuitBreaker.html b/doc/NgrokAPI/Models/EndpointCircuitBreaker.html new file mode 100644 index 0000000..a80fff5 --- /dev/null +++ b/doc/NgrokAPI/Models/EndpointCircuitBreaker.html @@ -0,0 +1,913 @@ + + + + + + + Class: NgrokAPI::Models::EndpointCircuitBreaker + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Class: NgrokAPI::Models::EndpointCircuitBreaker + + + +

    +
    + +
    +
    Inherits:
    +
    + Object + +
      +
    • Object
    • + + + +
    + show all + +
    +
    + + + + + + + + + + + +
    +
    Defined in:
    +
    lib/ngrokapi/models/endpoint_circuit_breaker.rb
    +
    + +
    + + + + + +

    Instance Attribute Summary collapse

    + + + + + + +

    + Instance Method Summary + collapse +

    + + + + +
    +

    Constructor Details

    + +
    +

    + + #initialize(client:, result:) ⇒ EndpointCircuitBreaker + + + + + +

    +
    + +

    Returns a new instance of EndpointCircuitBreaker.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +
    +
    # File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 15
    +
    +def initialize(client:, result:)
    +  @client = client
    +  @result = result
    +  @enabled = @result['enabled']
    +  @tripped_duration = @result['tripped_duration']
    +  @rolling_window = @result['rolling_window']
    +  @num_buckets = @result['num_buckets']
    +  @volume_threshold = @result['volume_threshold']
    +  @error_threshold_percentage = @result['error_threshold_percentage']
    +end
    +
    +
    + +
    + +
    +

    Instance Attribute Details

    + + + +
    +

    + + #clientObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute client.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6
    +
    +def client
    +  @client
    +end
    +
    +
    + + + +
    +

    + + #enabledObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute enabled.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6
    +
    +def enabled
    +  @enabled
    +end
    +
    +
    + + + +
    +

    + + #error_threshold_percentageObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute error_threshold_percentage.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6
    +
    +def error_threshold_percentage
    +  @error_threshold_percentage
    +end
    +
    +
    + + + +
    +

    + + #num_bucketsObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute num_buckets.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6
    +
    +def num_buckets
    +  @num_buckets
    +end
    +
    +
    + + + +
    +

    + + #resultObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute result.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6
    +
    +def result
    +  @result
    +end
    +
    +
    + + + +
    +

    + + #rolling_windowObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute rolling_window.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6
    +
    +def rolling_window
    +  @rolling_window
    +end
    +
    +
    + + + +
    +

    + + #tripped_durationObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute tripped_duration.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6
    +
    +def tripped_duration
    +  @tripped_duration
    +end
    +
    +
    + + + +
    +

    + + #volume_thresholdObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute volume_threshold.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 6
    +
    +def volume_threshold
    +  @volume_threshold
    +end
    +
    +
    + +
    + + +
    +

    Instance Method Details

    + + +
    +

    + + #==(other) ⇒ Object + + + + + +

    + + + + +
    +
    +
    +
    +26
    +27
    +28
    +
    +
    # File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 26
    +
    +def ==(other)
    +  @result == other.result
    +end
    +
    +
    + +
    +

    + + #to_sObject + + + + + +

    + + + + +
    +
    +
    +
    +30
    +31
    +32
    +
    +
    # File 'lib/ngrokapi/models/endpoint_circuit_breaker.rb', line 30
    +
    +def to_s
    +  @result.to_s
    +end
    +
    +
    + +
    + +
    + + + +
    + + \ No newline at end of file diff --git a/doc/NgrokAPI/Models/EndpointCompression.html b/doc/NgrokAPI/Models/EndpointCompression.html new file mode 100644 index 0000000..c61ab35 --- /dev/null +++ b/doc/NgrokAPI/Models/EndpointCompression.html @@ -0,0 +1,543 @@ + + + + + + + Class: NgrokAPI::Models::EndpointCompression + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Class: NgrokAPI::Models::EndpointCompression + + + +

    +
    + +
    +
    Inherits:
    +
    + Object + +
      +
    • Object
    • + + + +
    + show all + +
    +
    + + + + + + + + + + + +
    +
    Defined in:
    +
    lib/ngrokapi/models/endpoint_compression.rb
    +
    + +
    + + + + + +

    Instance Attribute Summary collapse

    + + + + + + +

    + Instance Method Summary + collapse +

    + + + + +
    +

    Constructor Details

    + +
    +

    + + #initialize(client:, result:) ⇒ EndpointCompression + + + + + +

    +
    + +

    Returns a new instance of EndpointCompression.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +10
    +11
    +12
    +13
    +14
    +
    +
    # File 'lib/ngrokapi/models/endpoint_compression.rb', line 10
    +
    +def initialize(client:, result:)
    +  @client = client
    +  @result = result
    +  @enabled = @result['enabled']
    +end
    +
    +
    + +
    + +
    +

    Instance Attribute Details

    + + + +
    +

    + + #clientObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute client.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/endpoint_compression.rb', line 6
    +
    +def client
    +  @client
    +end
    +
    +
    + + + +
    +

    + + #enabledObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute enabled.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/endpoint_compression.rb', line 6
    +
    +def enabled
    +  @enabled
    +end
    +
    +
    + + + +
    +

    + + #resultObject (readonly) + + + + + +

    +
    + +

    Returns the value of attribute result.

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +6
    +7
    +8
    +
    +
    # File 'lib/ngrokapi/models/endpoint_compression.rb', line 6
    +
    +def result
    +  @result
    +end
    +
    +
    + +
    + + +
    +

    Instance Method Details

    + + +
    +

    + + #==(other) ⇒ Object + + + + + +

    + + + + +
    +
    +
    +
    +16
    +17
    +18
    +
    +
    # File 'lib/ngrokapi/models/endpoint_compression.rb', line 16
    +
    +def ==(other)
    +  @result == other.result
    +end
    +
    +
    + +
    +

    + + #to_sObject + + + + + +

    + + + + +
    +
    +
    +
    +20
    +21
    +22
    +
    +
    # File 'lib/ngrokapi/models/endpoint_compression.rb', line 20
    +
    +def to_s
    +  @result.to_s
    +end
    +
    +
    + +
    + +
    + + + +
    + + \ No newline at end of file diff --git a/doc/NgrokAPI/Models/EndpointConfiguration.html b/doc/NgrokAPI/Models/EndpointConfiguration.html index ea119a7..e05065c 100644 --- a/doc/NgrokAPI/Models/EndpointConfiguration.html +++ b/doc/NgrokAPI/Models/EndpointConfiguration.html @@ -99,24 +99,100 @@ -

    Overview

    -
    - -

    A resource representing data from the endpoint_configuration API

    -
    -
    -
    - - -
    -

    Instance Attribute Summary collapse

    @@ -164,6 +556,70 @@ + + +