ngrok-api 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/LICENSE +7 -0
- data/doc/NgrokAPI/Client.html +184 -182
- data/doc/NgrokAPI/Error.html +1 -1
- data/doc/NgrokAPI/Errors/NotFoundError.html +1 -1
- data/doc/NgrokAPI/Errors.html +1 -1
- data/doc/NgrokAPI/HttpClient.html +55 -19
- data/doc/NgrokAPI/Models/APIKey.html +1 -1
- data/doc/NgrokAPI/Models/AWSAuth.html +1 -1
- data/doc/NgrokAPI/Models/AWSCredentials.html +1 -1
- data/doc/NgrokAPI/Models/AWSRole.html +1 -1
- data/doc/NgrokAPI/Models/AbuseReport.html +1 -1
- data/doc/NgrokAPI/Models/AbuseReportHostname.html +1 -1
- data/doc/NgrokAPI/Models/CertificateAuthority.html +1 -1
- data/doc/NgrokAPI/Models/Credential.html +1 -1
- data/doc/NgrokAPI/Models/EndpointCircuitBreaker.html +1 -1
- data/doc/NgrokAPI/Models/EndpointCompression.html +1 -1
- data/doc/NgrokAPI/Models/EndpointConfiguration.html +1 -1
- data/doc/NgrokAPI/Models/EndpointIPPolicy.html +1 -1
- data/doc/NgrokAPI/Models/EndpointIPPolicyMutate.html +1 -1
- data/doc/NgrokAPI/Models/EndpointLogging.html +1 -1
- data/doc/NgrokAPI/Models/EndpointLoggingMutate.html +1 -1
- data/doc/NgrokAPI/Models/EndpointMutualTLS.html +1 -1
- data/doc/NgrokAPI/Models/EndpointMutualTLSMutate.html +1 -1
- data/doc/NgrokAPI/Models/EndpointOAuth.html +1 -1
- data/doc/NgrokAPI/Models/EndpointOAuthFacebook.html +1 -1
- data/doc/NgrokAPI/Models/EndpointOAuthGitHub.html +1 -1
- data/doc/NgrokAPI/Models/EndpointOAuthGoogle.html +1 -1
- data/doc/NgrokAPI/Models/EndpointOAuthMicrosoft.html +1 -1
- data/doc/NgrokAPI/Models/EndpointOAuthProvider.html +1 -1
- data/doc/NgrokAPI/Models/EndpointOIDC.html +1 -1
- data/doc/NgrokAPI/Models/EndpointRequestHeaders.html +1 -1
- data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +1 -1
- data/doc/NgrokAPI/Models/EndpointSAML.html +1 -1
- data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +1 -1
- data/doc/NgrokAPI/Models/EndpointTLSTermination.html +1 -1
- data/doc/NgrokAPI/Models/EndpointWebhookValidation.html +1 -1
- data/doc/NgrokAPI/Models/EventDestination.html +1 -1
- data/doc/NgrokAPI/Models/EventSource.html +1 -1
- data/doc/NgrokAPI/Models/{ReservedDomainCertNSTarget.html → EventSourceList.html} +42 -42
- data/doc/NgrokAPI/Models/EventSourceReplace.html +1 -1
- data/doc/NgrokAPI/Models/EventStream.html +1 -1
- data/doc/NgrokAPI/Models/EventSubscription.html +1 -1
- data/doc/NgrokAPI/Models/EventTarget.html +1 -1
- data/doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html +1 -1
- data/doc/NgrokAPI/Models/EventTargetFirehose.html +1 -1
- data/doc/NgrokAPI/Models/EventTargetKinesis.html +1 -1
- data/doc/NgrokAPI/Models/IPPolicy.html +1 -1
- data/doc/NgrokAPI/Models/IPPolicyRule.html +1 -1
- data/doc/NgrokAPI/Models/IPRestriction.html +1 -1
- data/doc/NgrokAPI/Models/IPWhitelistEntry.html +1 -1
- data/doc/NgrokAPI/Models/Listable.html +118 -50
- data/doc/NgrokAPI/Models/Ref.html +1 -1
- data/doc/NgrokAPI/Models/ReservedAddr.html +1 -1
- data/doc/NgrokAPI/Models/ReservedDomain.html +91 -17
- data/doc/NgrokAPI/Models/ReservedDomainCertJob.html +12 -86
- data/doc/NgrokAPI/Models/ReservedDomainCertPolicy.html +1 -1
- data/doc/NgrokAPI/Models/ReservedDomainCertStatus.html +1 -1
- data/doc/NgrokAPI/Models/SSHCertificateAuthority.html +1 -1
- data/doc/NgrokAPI/Models/SSHCredential.html +1 -1
- data/doc/NgrokAPI/Models/SSHHostCertificate.html +1 -1
- data/doc/NgrokAPI/Models/SSHUserCertificate.html +1 -1
- data/doc/NgrokAPI/Models/TLSCertificate.html +1 -1
- data/doc/NgrokAPI/Models/TLSCertificateSANs.html +1 -1
- data/doc/NgrokAPI/Models/Tunnel.html +1 -1
- data/doc/NgrokAPI/Models/TunnelSession.html +1 -1
- data/doc/NgrokAPI/Models.html +3 -3
- data/doc/NgrokAPI/PagedIterator.html +14 -10
- data/doc/NgrokAPI/Services/APIKeysClient.html +227 -62
- data/doc/NgrokAPI/Services/AbuseReportsClient.html +2 -5
- data/doc/NgrokAPI/Services/CertificateAuthoritiesClient.html +206 -41
- data/doc/NgrokAPI/Services/CredentialsClient.html +213 -47
- data/doc/NgrokAPI/Services/EndpointCircuitBreakerModuleClient.html +1 -1
- data/doc/NgrokAPI/Services/EndpointCompressionModuleClient.html +1 -1
- data/doc/NgrokAPI/Services/EndpointConfigurationsClient.html +281 -114
- data/doc/NgrokAPI/Services/EndpointIPPolicyModuleClient.html +1 -1
- data/doc/NgrokAPI/Services/EndpointLoggingModuleClient.html +1 -1
- data/doc/NgrokAPI/Services/EndpointMutualTLSModuleClient.html +1 -1
- data/doc/NgrokAPI/Services/EndpointOAuthModuleClient.html +1 -1
- data/doc/NgrokAPI/Services/EndpointOIDCModuleClient.html +1 -1
- data/doc/NgrokAPI/Services/EndpointRequestHeadersModuleClient.html +1 -1
- data/doc/NgrokAPI/Services/EndpointResponseHeadersModuleClient.html +1 -1
- data/doc/NgrokAPI/Services/EndpointSAMLModuleClient.html +1 -1
- data/doc/NgrokAPI/Services/EndpointTLSTerminationModuleClient.html +1 -1
- data/doc/NgrokAPI/Services/EndpointWebhookValidationModuleClient.html +1 -1
- data/doc/NgrokAPI/Services/EventDestinationsClient.html +221 -50
- data/doc/NgrokAPI/Services/EventSourcesClient.html +279 -33
- data/doc/NgrokAPI/Services/EventStreamsClient.html +218 -47
- data/doc/NgrokAPI/Services/EventSubscriptionsClient.html +213 -42
- data/doc/NgrokAPI/Services/IPPoliciesClient.html +207 -41
- data/doc/NgrokAPI/Services/IPPolicyRulesClient.html +210 -42
- data/doc/NgrokAPI/Services/IPRestrictionsClient.html +215 -51
- data/doc/NgrokAPI/Services/IPWhitelistClient.html +206 -38
- data/doc/NgrokAPI/Services/ReservedAddrsClient.html +230 -63
- data/doc/NgrokAPI/Services/ReservedDomainsClient.html +308 -142
- data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +208 -40
- data/doc/NgrokAPI/Services/SSHCredentialsClient.html +213 -45
- data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +207 -40
- data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +209 -42
- data/doc/NgrokAPI/Services/TLSCertificatesClient.html +208 -43
- data/doc/NgrokAPI/Services/TunnelSessionsClient.html +260 -93
- data/doc/NgrokAPI/Services/TunnelsClient.html +174 -6
- data/doc/NgrokAPI/Services.html +1 -1
- data/doc/NgrokAPI.html +2 -2
- data/doc/README +94 -0
- data/doc/_index.html +8 -8
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +53 -26
- data/doc/index.html +53 -26
- data/doc/method_list.html +822 -630
- data/doc/top-level-namespace.html +1 -1
- data/docs/NgrokAPI/Client.html +184 -182
- data/docs/NgrokAPI/Error.html +1 -1
- data/docs/NgrokAPI/Errors/NotFoundError.html +1 -1
- data/docs/NgrokAPI/Errors.html +1 -1
- data/docs/NgrokAPI/HttpClient.html +55 -19
- data/docs/NgrokAPI/Models/APIKey.html +1 -1
- data/docs/NgrokAPI/Models/AWSAuth.html +1 -1
- data/docs/NgrokAPI/Models/AWSCredentials.html +1 -1
- data/docs/NgrokAPI/Models/AWSRole.html +1 -1
- data/docs/NgrokAPI/Models/AbuseReport.html +1 -1
- data/docs/NgrokAPI/Models/AbuseReportHostname.html +1 -1
- data/docs/NgrokAPI/Models/CertificateAuthority.html +1 -1
- data/docs/NgrokAPI/Models/Credential.html +1 -1
- data/docs/NgrokAPI/Models/EndpointCircuitBreaker.html +1 -1
- data/docs/NgrokAPI/Models/EndpointCompression.html +1 -1
- data/docs/NgrokAPI/Models/EndpointConfiguration.html +1 -1
- data/docs/NgrokAPI/Models/EndpointIPPolicy.html +1 -1
- data/docs/NgrokAPI/Models/EndpointIPPolicyMutate.html +1 -1
- data/docs/NgrokAPI/Models/EndpointLogging.html +1 -1
- data/docs/NgrokAPI/Models/EndpointLoggingMutate.html +1 -1
- data/docs/NgrokAPI/Models/EndpointMutualTLS.html +1 -1
- data/docs/NgrokAPI/Models/EndpointMutualTLSMutate.html +1 -1
- data/docs/NgrokAPI/Models/EndpointOAuth.html +1 -1
- data/docs/NgrokAPI/Models/EndpointOAuthFacebook.html +1 -1
- data/docs/NgrokAPI/Models/EndpointOAuthGitHub.html +1 -1
- data/docs/NgrokAPI/Models/EndpointOAuthGoogle.html +1 -1
- data/docs/NgrokAPI/Models/EndpointOAuthMicrosoft.html +1 -1
- data/docs/NgrokAPI/Models/EndpointOAuthProvider.html +1 -1
- data/docs/NgrokAPI/Models/EndpointOIDC.html +1 -1
- data/docs/NgrokAPI/Models/EndpointRequestHeaders.html +1 -1
- data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +1 -1
- data/docs/NgrokAPI/Models/EndpointSAML.html +1 -1
- data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +1 -1
- data/docs/NgrokAPI/Models/EndpointTLSTermination.html +1 -1
- data/docs/NgrokAPI/Models/EndpointWebhookValidation.html +1 -1
- data/docs/NgrokAPI/Models/EventDestination.html +1 -1
- data/docs/NgrokAPI/Models/EventSource.html +1 -1
- data/docs/NgrokAPI/Models/{ReservedDomainCertNSTarget.html → EventSourceList.html} +42 -42
- data/docs/NgrokAPI/Models/EventSourceReplace.html +1 -1
- data/docs/NgrokAPI/Models/EventStream.html +1 -1
- data/docs/NgrokAPI/Models/EventSubscription.html +1 -1
- data/docs/NgrokAPI/Models/EventTarget.html +1 -1
- data/docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html +1 -1
- data/docs/NgrokAPI/Models/EventTargetFirehose.html +1 -1
- data/docs/NgrokAPI/Models/EventTargetKinesis.html +1 -1
- data/docs/NgrokAPI/Models/IPPolicy.html +1 -1
- data/docs/NgrokAPI/Models/IPPolicyRule.html +1 -1
- data/docs/NgrokAPI/Models/IPRestriction.html +1 -1
- data/docs/NgrokAPI/Models/IPWhitelistEntry.html +1 -1
- data/docs/NgrokAPI/Models/Listable.html +118 -50
- data/docs/NgrokAPI/Models/Ref.html +1 -1
- data/docs/NgrokAPI/Models/ReservedAddr.html +1 -1
- data/docs/NgrokAPI/Models/ReservedDomain.html +91 -17
- data/docs/NgrokAPI/Models/ReservedDomainCertJob.html +12 -86
- data/docs/NgrokAPI/Models/ReservedDomainCertPolicy.html +1 -1
- data/docs/NgrokAPI/Models/ReservedDomainCertStatus.html +1 -1
- data/docs/NgrokAPI/Models/SSHCertificateAuthority.html +1 -1
- data/docs/NgrokAPI/Models/SSHCredential.html +1 -1
- data/docs/NgrokAPI/Models/SSHHostCertificate.html +1 -1
- data/docs/NgrokAPI/Models/SSHUserCertificate.html +1 -1
- data/docs/NgrokAPI/Models/TLSCertificate.html +1 -1
- data/docs/NgrokAPI/Models/TLSCertificateSANs.html +1 -1
- data/docs/NgrokAPI/Models/Tunnel.html +1 -1
- data/docs/NgrokAPI/Models/TunnelSession.html +1 -1
- data/docs/NgrokAPI/Models.html +3 -3
- data/docs/NgrokAPI/PagedIterator.html +14 -10
- data/docs/NgrokAPI/Services/APIKeysClient.html +227 -62
- data/docs/NgrokAPI/Services/AbuseReportsClient.html +2 -5
- data/docs/NgrokAPI/Services/CertificateAuthoritiesClient.html +206 -41
- data/docs/NgrokAPI/Services/CredentialsClient.html +213 -47
- data/docs/NgrokAPI/Services/EndpointCircuitBreakerModuleClient.html +1 -1
- data/docs/NgrokAPI/Services/EndpointCompressionModuleClient.html +1 -1
- data/docs/NgrokAPI/Services/EndpointConfigurationsClient.html +281 -114
- data/docs/NgrokAPI/Services/EndpointIPPolicyModuleClient.html +1 -1
- data/docs/NgrokAPI/Services/EndpointLoggingModuleClient.html +1 -1
- data/docs/NgrokAPI/Services/EndpointMutualTLSModuleClient.html +1 -1
- data/docs/NgrokAPI/Services/EndpointOAuthModuleClient.html +1 -1
- data/docs/NgrokAPI/Services/EndpointOIDCModuleClient.html +1 -1
- data/docs/NgrokAPI/Services/EndpointRequestHeadersModuleClient.html +1 -1
- data/docs/NgrokAPI/Services/EndpointResponseHeadersModuleClient.html +1 -1
- data/docs/NgrokAPI/Services/EndpointSAMLModuleClient.html +1 -1
- data/docs/NgrokAPI/Services/EndpointTLSTerminationModuleClient.html +1 -1
- data/docs/NgrokAPI/Services/EndpointWebhookValidationModuleClient.html +1 -1
- data/docs/NgrokAPI/Services/EventDestinationsClient.html +221 -50
- data/docs/NgrokAPI/Services/EventSourcesClient.html +279 -33
- data/docs/NgrokAPI/Services/EventStreamsClient.html +218 -47
- data/docs/NgrokAPI/Services/EventSubscriptionsClient.html +213 -42
- data/docs/NgrokAPI/Services/IPPoliciesClient.html +207 -41
- data/docs/NgrokAPI/Services/IPPolicyRulesClient.html +210 -42
- data/docs/NgrokAPI/Services/IPRestrictionsClient.html +215 -51
- data/docs/NgrokAPI/Services/IPWhitelistClient.html +206 -38
- data/docs/NgrokAPI/Services/ReservedAddrsClient.html +230 -63
- data/docs/NgrokAPI/Services/ReservedDomainsClient.html +308 -142
- data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +208 -40
- data/docs/NgrokAPI/Services/SSHCredentialsClient.html +213 -45
- data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +207 -40
- data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +209 -42
- data/docs/NgrokAPI/Services/TLSCertificatesClient.html +208 -43
- data/docs/NgrokAPI/Services/TunnelSessionsClient.html +260 -93
- data/docs/NgrokAPI/Services/TunnelsClient.html +174 -6
- data/docs/NgrokAPI/Services.html +1 -1
- data/docs/NgrokAPI.html +2 -2
- data/docs/README +94 -0
- data/docs/_index.html +8 -8
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +53 -26
- data/docs/index.html +53 -26
- data/docs/method_list.html +822 -630
- data/docs/top-level-namespace.html +1 -1
- data/lib/ngrokapi/client.rb +27 -8
- data/lib/ngrokapi/http_client.rb +5 -3
- data/lib/ngrokapi/models/{reserved_domain_cert_ns_target.rb → event_source_list.rb} +5 -5
- data/lib/ngrokapi/models/listable.rb +13 -2
- data/lib/ngrokapi/models/reserved_domain.rb +3 -1
- data/lib/ngrokapi/models/reserved_domain_cert_job.rb +1 -3
- data/lib/ngrokapi/paged_iterator.rb +4 -2
- data/lib/ngrokapi/services/api_keys_client.rb +36 -4
- data/lib/ngrokapi/services/certificate_authorities_client.rb +33 -0
- data/lib/ngrokapi/services/credentials_client.rb +35 -2
- data/lib/ngrokapi/services/endpoint_configurations_client.rb +33 -0
- data/lib/ngrokapi/services/event_destinations_client.rb +33 -0
- data/lib/ngrokapi/services/event_sources_client.rb +39 -0
- data/lib/ngrokapi/services/event_streams_client.rb +33 -0
- data/lib/ngrokapi/services/event_subscriptions_client.rb +33 -0
- data/lib/ngrokapi/services/ip_policies_client.rb +34 -1
- data/lib/ngrokapi/services/ip_policy_rules_client.rb +33 -0
- data/lib/ngrokapi/services/ip_restrictions_client.rb +33 -0
- data/lib/ngrokapi/services/ip_whitelist_client.rb +34 -1
- data/lib/ngrokapi/services/reserved_addrs_client.rb +33 -0
- data/lib/ngrokapi/services/reserved_domains_client.rb +33 -0
- data/lib/ngrokapi/services/ssh_certificate_authorities_client.rb +33 -0
- data/lib/ngrokapi/services/ssh_credentials_client.rb +33 -0
- data/lib/ngrokapi/services/ssh_host_certificates_client.rb +33 -0
- data/lib/ngrokapi/services/ssh_user_certificates_client.rb +33 -0
- data/lib/ngrokapi/services/tls_certificates_client.rb +33 -0
- data/lib/ngrokapi/services/tunnel_sessions_client.rb +33 -0
- data/lib/ngrokapi/services/tunnels_client.rb +33 -0
- data/lib/ngrokapi/version.rb +1 -1
- data/spec/ngrokapi/client_spec.rb +19 -0
- data/spec/ngrokapi/models/event_source_list_spec.rb +21 -0
- data/spec/ngrokapi/paged_iterator_spec.rb +2 -2
- data/spec/ngrokapi/services/abuse_reports_client_spec.rb +0 -2
- data/spec/ngrokapi/services/api_keys_client_spec.rb +0 -3
- data/spec/ngrokapi/services/certificate_authorities_client_spec.rb +0 -3
- data/spec/ngrokapi/services/credentials_client_spec.rb +0 -3
- data/spec/ngrokapi/services/endpoint_circuit_breaker_module_client_spec.rb +0 -2
- data/spec/ngrokapi/services/endpoint_compression_module_client_spec.rb +0 -2
- data/spec/ngrokapi/services/endpoint_configurations_client_spec.rb +0 -3
- data/spec/ngrokapi/services/endpoint_ip_policy_module_client_spec.rb +0 -2
- data/spec/ngrokapi/services/endpoint_logging_module_client_spec.rb +0 -2
- data/spec/ngrokapi/services/endpoint_mutual_tls_module_client_spec.rb +0 -2
- data/spec/ngrokapi/services/endpoint_o_auth_module_client_spec.rb +0 -2
- data/spec/ngrokapi/services/endpoint_oidc_module_client_spec.rb +0 -2
- data/spec/ngrokapi/services/endpoint_request_headers_module_client_spec.rb +0 -2
- data/spec/ngrokapi/services/endpoint_response_headers_module_client_spec.rb +0 -2
- data/spec/ngrokapi/services/endpoint_saml_module_client_spec.rb +0 -2
- data/spec/ngrokapi/services/endpoint_tls_termination_module_client_spec.rb +0 -2
- data/spec/ngrokapi/services/endpoint_webhook_validation_module_client_spec.rb +0 -2
- data/spec/ngrokapi/services/event_destinations_client_spec.rb +0 -3
- data/spec/ngrokapi/services/event_sources_client_spec.rb +33 -3
- data/spec/ngrokapi/services/event_streams_client_spec.rb +0 -3
- data/spec/ngrokapi/services/event_subscriptions_client_spec.rb +0 -3
- data/spec/ngrokapi/services/ip_policies_client_spec.rb +0 -3
- data/spec/ngrokapi/services/ip_policy_rules_client_spec.rb +0 -3
- data/spec/ngrokapi/services/ip_restrictions_client_spec.rb +0 -3
- data/spec/ngrokapi/services/ip_whitelist_client_spec.rb +0 -3
- data/spec/ngrokapi/services/reserved_addrs_client_spec.rb +0 -3
- data/spec/ngrokapi/services/reserved_domains_client_spec.rb +0 -3
- data/spec/ngrokapi/services/ssh_certificate_authorities_client_spec.rb +0 -3
- data/spec/ngrokapi/services/ssh_credentials_client_spec.rb +0 -3
- data/spec/ngrokapi/services/ssh_host_certificates_client_spec.rb +0 -3
- data/spec/ngrokapi/services/ssh_user_certificates_client_spec.rb +0 -3
- data/spec/ngrokapi/services/tls_certificates_client_spec.rb +0 -3
- data/spec/ngrokapi/services/tunnel_sessions_client_spec.rb +0 -1
- data/spec/spec_helper.rb +7 -0
- metadata +10 -7
- data/doc/.gitkeep +0 -0
- data/spec/ngrokapi/models/reserved_domain_cert_ns_target_spec.rb +0 -21
@@ -100,7 +100,7 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
<div id="footer">
|
103
|
-
Generated on
|
103
|
+
Generated on Tue Oct 19 15:48:17 2021 by
|
104
104
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
105
105
|
0.9.26 (ruby-3.0.1).
|
106
106
|
</div>
|
data/lib/ngrokapi/client.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'ostruct'
|
4
|
+
|
3
5
|
module NgrokAPI
|
4
6
|
##
|
5
7
|
# Low-level api client for communicating with Ngrok's HTTP API.
|
@@ -22,11 +24,10 @@ module NgrokAPI
|
|
22
24
|
end
|
23
25
|
|
24
26
|
##
|
25
|
-
# API Keys are used to authenticate to the
|
26
|
-
#
|
27
|
-
# API. You may use the API itself
|
27
|
+
# API Keys are used to authenticate to the [ngrok
|
28
|
+
# API](https://ngrok.com/docs/api#authentication). You may use the API itself
|
28
29
|
# to provision and manage API Keys but you'll need to provision your first API
|
29
|
-
# key from the
|
30
|
+
# key from the [API Keys page](https://dashboard.ngrok.com/api/keys) on your
|
30
31
|
# ngrok.com dashboard.
|
31
32
|
#
|
32
33
|
# @return [NgrokAPI::Services::APIKeysClient]
|
@@ -49,8 +50,8 @@ module NgrokAPI
|
|
49
50
|
##
|
50
51
|
# Tunnel Credentials are ngrok agent authtokens. They authorize the ngrok
|
51
52
|
# agent to connect the ngrok service as your account. They are installed with
|
52
|
-
# the ngrok authtoken command or by specifying it in the ngrok.yml
|
53
|
-
# configuration file with the authtoken property.
|
53
|
+
# the `ngrok authtoken` command or by specifying it in the `ngrok.yml`
|
54
|
+
# configuration file with the `authtoken` property.
|
54
55
|
#
|
55
56
|
# @return [NgrokAPI::Services::CredentialsClient]
|
56
57
|
def credentials
|
@@ -84,7 +85,7 @@ module NgrokAPI
|
|
84
85
|
end
|
85
86
|
|
86
87
|
##
|
87
|
-
# IP Policies are reusable groups of CIDR ranges with an allow or deny
|
88
|
+
# IP Policies are reusable groups of CIDR ranges with an `allow` or `deny`
|
88
89
|
# action. They can be attached to endpoints via the Endpoint Configuration IP
|
89
90
|
# Policy module. They can also be used with IP Restrictions to control source
|
90
91
|
# IP ranges that can start tunnel sessions and connect to the API and dashboard.
|
@@ -118,7 +119,7 @@ module NgrokAPI
|
|
118
119
|
|
119
120
|
##
|
120
121
|
# The IP Whitelist is deprecated and will be removed. Use an IP Restriction
|
121
|
-
# with an endpoints type instead.
|
122
|
+
# with an `endpoints` type instead.
|
122
123
|
#
|
123
124
|
# @return [NgrokAPI::Services::IPWhitelistClient]
|
124
125
|
def ip_whitelist
|
@@ -214,5 +215,23 @@ module NgrokAPI
|
|
214
215
|
def tunnels
|
215
216
|
@_tunnels ||= NgrokAPI::Services::TunnelsClient.new(client: @client)
|
216
217
|
end
|
218
|
+
|
219
|
+
def pointcfg_module
|
220
|
+
ns = OpenStruct.new
|
221
|
+
ns.logging = NgrokAPI::Services::EndpointLoggingModuleClient.new(client: @client)
|
222
|
+
ns.circuit_breaker = NgrokAPI::Services::EndpointCircuitBreakerModuleClient.new(client: @client)
|
223
|
+
ns.compression = NgrokAPI::Services::EndpointCompressionModuleClient.new(client: @client)
|
224
|
+
ns.tls_termination = NgrokAPI::Services::EndpointTLSTerminationModuleClient.new(client: @client)
|
225
|
+
ns.ip_policy = NgrokAPI::Services::EndpointIPPolicyModuleClient.new(client: @client)
|
226
|
+
ns.mutual_tls = NgrokAPI::Services::EndpointMutualTLSModuleClient.new(client: @client)
|
227
|
+
ns.request_headers = NgrokAPI::Services::EndpointRequestHeadersModuleClient.new(client: @client)
|
228
|
+
ns.response_headers = NgrokAPI::Services::EndpointResponseHeadersModuleClient.new(client: @client)
|
229
|
+
ns.oauth = NgrokAPI::Services::EndpointOAuthModuleClient.new(client: @client)
|
230
|
+
ns.webhook_validation = NgrokAPI::Services::EndpointWebhookValidationModuleClient.new(client: @client)
|
231
|
+
ns.saml = NgrokAPI::Services::EndpointSAMLModuleClient.new(client: @client)
|
232
|
+
ns.oidc = NgrokAPI::Services::EndpointOIDCModuleClient.new(client: @client)
|
233
|
+
|
234
|
+
ns
|
235
|
+
end
|
217
236
|
end
|
218
237
|
end
|
data/lib/ngrokapi/http_client.rb
CHANGED
@@ -42,21 +42,23 @@ module NgrokAPI
|
|
42
42
|
end
|
43
43
|
|
44
44
|
##
|
45
|
-
# Make a GET request
|
45
|
+
# Make a GET request to list resources
|
46
46
|
#
|
47
|
+
# @param [boolean] danger determine if we should throw an exception on 404 or not
|
47
48
|
# @param [string] before_id URL resource path
|
48
49
|
# @param [integer] limit URL resource path
|
49
50
|
# @param [string] path resource path, mutually exclusive with url
|
50
51
|
# @param [string] url Full URL of the resource, mutually exclusive with path
|
52
|
+
# @param [string] url Full URL of the resource, mutually exclusive with path
|
51
53
|
# @return [json] response body
|
52
|
-
def list(before_id: nil, limit: nil, path: nil, url: nil)
|
54
|
+
def list(danger: false, before_id: nil, limit: nil, path: nil, url: nil)
|
53
55
|
if url
|
54
56
|
get(url)
|
55
57
|
else
|
56
58
|
data = {}
|
57
59
|
data[:before_id] = before_id if before_id
|
58
60
|
data[:limit] = limit if limit
|
59
|
-
get(path, data: data)
|
61
|
+
get(path, danger: danger, data: data)
|
60
62
|
end
|
61
63
|
end
|
62
64
|
|
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
module NgrokAPI
|
4
4
|
module Models
|
5
|
-
class
|
5
|
+
class EventSourceList
|
6
6
|
attr_reader :client,
|
7
7
|
:result,
|
8
|
-
:
|
9
|
-
:
|
8
|
+
:sources,
|
9
|
+
:uri
|
10
10
|
|
11
11
|
def initialize(client:, result:)
|
12
12
|
@client = client
|
13
13
|
@result = result
|
14
|
-
@
|
15
|
-
@
|
14
|
+
@sources = @result['sources']
|
15
|
+
@uri = @result['uri']
|
16
16
|
end
|
17
17
|
|
18
18
|
def ==(other)
|
@@ -5,6 +5,8 @@ module NgrokAPI
|
|
5
5
|
##
|
6
6
|
# A resource representing multiple instances from a given "list" API call
|
7
7
|
class Listable
|
8
|
+
include Enumerable
|
9
|
+
|
8
10
|
attr_reader :client,
|
9
11
|
:klass,
|
10
12
|
:iter,
|
@@ -14,7 +16,7 @@ module NgrokAPI
|
|
14
16
|
:result,
|
15
17
|
:uri
|
16
18
|
|
17
|
-
def initialize(client:, result:, list_property:, klass:)
|
19
|
+
def initialize(danger: false, client:, result:, list_property:, klass:)
|
18
20
|
@client = client
|
19
21
|
@result = result
|
20
22
|
@list_property = list_property
|
@@ -26,10 +28,19 @@ module NgrokAPI
|
|
26
28
|
@iter = NgrokAPI::PagedIterator.new(
|
27
29
|
client: client,
|
28
30
|
page: self,
|
29
|
-
list_property: list_property
|
31
|
+
list_property: list_property,
|
32
|
+
danger: danger
|
30
33
|
)
|
31
34
|
end
|
32
35
|
|
36
|
+
def each
|
37
|
+
item = @iter.get_next
|
38
|
+
while item
|
39
|
+
yield item
|
40
|
+
item = @iter.get_next
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
33
44
|
def ==(other)
|
34
45
|
@result == other.result
|
35
46
|
end
|
@@ -17,7 +17,8 @@ module NgrokAPI
|
|
17
17
|
:https_endpoint_configuration,
|
18
18
|
:certificate,
|
19
19
|
:certificate_management_policy,
|
20
|
-
:certificate_management_status
|
20
|
+
:certificate_management_status,
|
21
|
+
:acme_challenge_cname_target
|
21
22
|
|
22
23
|
def initialize(client:, result:)
|
23
24
|
@client = client
|
@@ -35,6 +36,7 @@ module NgrokAPI
|
|
35
36
|
@certificate = @result['certificate']
|
36
37
|
@certificate_management_policy = @result['certificate_management_policy']
|
37
38
|
@certificate_management_status = @result['certificate_management_status']
|
39
|
+
@acme_challenge_cname_target = @result['acme_challenge_cname_target']
|
38
40
|
end
|
39
41
|
|
40
42
|
def ==(other)
|
@@ -8,8 +8,7 @@ module NgrokAPI
|
|
8
8
|
:error_code,
|
9
9
|
:msg,
|
10
10
|
:started_at,
|
11
|
-
:retries_at
|
12
|
-
:ns_targets
|
11
|
+
:retries_at
|
13
12
|
|
14
13
|
def initialize(client:, result:)
|
15
14
|
@client = client
|
@@ -18,7 +17,6 @@ module NgrokAPI
|
|
18
17
|
@msg = @result['msg']
|
19
18
|
@started_at = @result['started_at']
|
20
19
|
@retries_at = @result['retries_at']
|
21
|
-
@ns_targets = @result['ns_targets']
|
22
20
|
end
|
23
21
|
|
24
22
|
def ==(other)
|
@@ -10,12 +10,14 @@ module NgrokAPI
|
|
10
10
|
def initialize(
|
11
11
|
client:,
|
12
12
|
page:,
|
13
|
-
list_property
|
13
|
+
list_property:,
|
14
|
+
danger: false
|
14
15
|
)
|
15
16
|
@n = 0
|
16
17
|
@client = client
|
17
18
|
@list_property = list_property
|
18
19
|
@page = page
|
20
|
+
@danger = danger
|
19
21
|
end
|
20
22
|
|
21
23
|
##
|
@@ -30,7 +32,7 @@ module NgrokAPI
|
|
30
32
|
item
|
31
33
|
rescue
|
32
34
|
if @page.next_page_uri
|
33
|
-
res = @client.list(url: @page.next_page_uri)
|
35
|
+
res = @client.list(danger: @danger, url: @page.next_page_uri)
|
34
36
|
self.n = 0
|
35
37
|
self.page = res
|
36
38
|
get_next
|
@@ -3,11 +3,10 @@
|
|
3
3
|
module NgrokAPI
|
4
4
|
module Services
|
5
5
|
##
|
6
|
-
# API Keys are used to authenticate to the
|
7
|
-
#
|
8
|
-
# API. You may use the API itself
|
6
|
+
# API Keys are used to authenticate to the [ngrok
|
7
|
+
# API](https://ngrok.com/docs/api#authentication). You may use the API itself
|
9
8
|
# to provision and manage API Keys but you'll need to provision your first API
|
10
|
-
# key from the
|
9
|
+
# key from the [API Keys page](https://dashboard.ngrok.com/api/keys) on your
|
11
10
|
# ngrok.com dashboard.
|
12
11
|
#
|
13
12
|
# https://ngrok.com/docs/api#api-api-keys
|
@@ -140,6 +139,7 @@ module NgrokAPI
|
|
140
139
|
url: url,
|
141
140
|
path: PATH
|
142
141
|
)
|
142
|
+
|
143
143
|
NgrokAPI::Models::Listable.new(
|
144
144
|
client: self,
|
145
145
|
result: result,
|
@@ -148,6 +148,38 @@ module NgrokAPI
|
|
148
148
|
)
|
149
149
|
end
|
150
150
|
|
151
|
+
##
|
152
|
+
# List all API keys owned by this account
|
153
|
+
# Throws an exception if API error.
|
154
|
+
#
|
155
|
+
# @param [string] before_id
|
156
|
+
# @param [string] limit
|
157
|
+
# @param [string] url optional and mutually exclusive from before_id and limit
|
158
|
+
# @return [NgrokAPI::Models::Listable] result from the API request
|
159
|
+
#
|
160
|
+
# https://ngrok.com/docs/api#api-api-keys-list
|
161
|
+
def list!(
|
162
|
+
before_id: nil,
|
163
|
+
limit: nil,
|
164
|
+
url: nil
|
165
|
+
)
|
166
|
+
result = @client.list(
|
167
|
+
before_id: before_id,
|
168
|
+
limit: limit,
|
169
|
+
danger: true,
|
170
|
+
url: url,
|
171
|
+
path: PATH
|
172
|
+
)
|
173
|
+
|
174
|
+
NgrokAPI::Models::Listable.new(
|
175
|
+
client: self,
|
176
|
+
result: result,
|
177
|
+
list_property: LIST_PROPERTY,
|
178
|
+
klass: NgrokAPI::Models::APIKey,
|
179
|
+
danger: true
|
180
|
+
)
|
181
|
+
end
|
182
|
+
|
151
183
|
##
|
152
184
|
# Update attributes of an API key by ID.
|
153
185
|
#
|
@@ -141,6 +141,7 @@ module NgrokAPI
|
|
141
141
|
url: url,
|
142
142
|
path: PATH
|
143
143
|
)
|
144
|
+
|
144
145
|
NgrokAPI::Models::Listable.new(
|
145
146
|
client: self,
|
146
147
|
result: result,
|
@@ -149,6 +150,38 @@ module NgrokAPI
|
|
149
150
|
)
|
150
151
|
end
|
151
152
|
|
153
|
+
##
|
154
|
+
# List all Certificate Authority on this account
|
155
|
+
# Throws an exception if API error.
|
156
|
+
#
|
157
|
+
# @param [string] before_id
|
158
|
+
# @param [string] limit
|
159
|
+
# @param [string] url optional and mutually exclusive from before_id and limit
|
160
|
+
# @return [NgrokAPI::Models::Listable] result from the API request
|
161
|
+
#
|
162
|
+
# https://ngrok.com/docs/api#api-certificate-authorities-list
|
163
|
+
def list!(
|
164
|
+
before_id: nil,
|
165
|
+
limit: nil,
|
166
|
+
url: nil
|
167
|
+
)
|
168
|
+
result = @client.list(
|
169
|
+
before_id: before_id,
|
170
|
+
limit: limit,
|
171
|
+
danger: true,
|
172
|
+
url: url,
|
173
|
+
path: PATH
|
174
|
+
)
|
175
|
+
|
176
|
+
NgrokAPI::Models::Listable.new(
|
177
|
+
client: self,
|
178
|
+
result: result,
|
179
|
+
list_property: LIST_PROPERTY,
|
180
|
+
klass: NgrokAPI::Models::CertificateAuthority,
|
181
|
+
danger: true
|
182
|
+
)
|
183
|
+
end
|
184
|
+
|
152
185
|
##
|
153
186
|
# Update attributes of a Certificate Authority by ID
|
154
187
|
#
|
@@ -5,8 +5,8 @@ module NgrokAPI
|
|
5
5
|
##
|
6
6
|
# Tunnel Credentials are ngrok agent authtokens. They authorize the ngrok
|
7
7
|
# agent to connect the ngrok service as your account. They are installed with
|
8
|
-
# the ngrok authtoken command or by specifying it in the ngrok.yml
|
9
|
-
# configuration file with the authtoken property.
|
8
|
+
# the `ngrok authtoken` command or by specifying it in the `ngrok.yml`
|
9
|
+
# configuration file with the `authtoken` property.
|
10
10
|
#
|
11
11
|
# https://ngrok.com/docs/api#api-credentials
|
12
12
|
class CredentialsClient
|
@@ -143,6 +143,7 @@ module NgrokAPI
|
|
143
143
|
url: url,
|
144
144
|
path: PATH
|
145
145
|
)
|
146
|
+
|
146
147
|
NgrokAPI::Models::Listable.new(
|
147
148
|
client: self,
|
148
149
|
result: result,
|
@@ -151,6 +152,38 @@ module NgrokAPI
|
|
151
152
|
)
|
152
153
|
end
|
153
154
|
|
155
|
+
##
|
156
|
+
# List all tunnel authtoken credentials on this account
|
157
|
+
# Throws an exception if API error.
|
158
|
+
#
|
159
|
+
# @param [string] before_id
|
160
|
+
# @param [string] limit
|
161
|
+
# @param [string] url optional and mutually exclusive from before_id and limit
|
162
|
+
# @return [NgrokAPI::Models::Listable] result from the API request
|
163
|
+
#
|
164
|
+
# https://ngrok.com/docs/api#api-credentials-list
|
165
|
+
def list!(
|
166
|
+
before_id: nil,
|
167
|
+
limit: nil,
|
168
|
+
url: nil
|
169
|
+
)
|
170
|
+
result = @client.list(
|
171
|
+
before_id: before_id,
|
172
|
+
limit: limit,
|
173
|
+
danger: true,
|
174
|
+
url: url,
|
175
|
+
path: PATH
|
176
|
+
)
|
177
|
+
|
178
|
+
NgrokAPI::Models::Listable.new(
|
179
|
+
client: self,
|
180
|
+
result: result,
|
181
|
+
list_property: LIST_PROPERTY,
|
182
|
+
klass: NgrokAPI::Models::Credential,
|
183
|
+
danger: true
|
184
|
+
)
|
185
|
+
end
|
186
|
+
|
154
187
|
##
|
155
188
|
# Update attributes of an tunnel authtoken credential by ID
|
156
189
|
#
|
@@ -179,6 +179,7 @@ module NgrokAPI
|
|
179
179
|
url: url,
|
180
180
|
path: PATH
|
181
181
|
)
|
182
|
+
|
182
183
|
NgrokAPI::Models::Listable.new(
|
183
184
|
client: self,
|
184
185
|
result: result,
|
@@ -187,6 +188,38 @@ module NgrokAPI
|
|
187
188
|
)
|
188
189
|
end
|
189
190
|
|
191
|
+
##
|
192
|
+
# Returns a list of all endpoint configurations on this account
|
193
|
+
# Throws an exception if API error.
|
194
|
+
#
|
195
|
+
# @param [string] before_id
|
196
|
+
# @param [string] limit
|
197
|
+
# @param [string] url optional and mutually exclusive from before_id and limit
|
198
|
+
# @return [NgrokAPI::Models::Listable] result from the API request
|
199
|
+
#
|
200
|
+
# https://ngrok.com/docs/api#api-endpoint-configurations-list
|
201
|
+
def list!(
|
202
|
+
before_id: nil,
|
203
|
+
limit: nil,
|
204
|
+
url: nil
|
205
|
+
)
|
206
|
+
result = @client.list(
|
207
|
+
before_id: before_id,
|
208
|
+
limit: limit,
|
209
|
+
danger: true,
|
210
|
+
url: url,
|
211
|
+
path: PATH
|
212
|
+
)
|
213
|
+
|
214
|
+
NgrokAPI::Models::Listable.new(
|
215
|
+
client: self,
|
216
|
+
result: result,
|
217
|
+
list_property: LIST_PROPERTY,
|
218
|
+
klass: NgrokAPI::Models::EndpointConfiguration,
|
219
|
+
danger: true
|
220
|
+
)
|
221
|
+
end
|
222
|
+
|
190
223
|
##
|
191
224
|
# Updates an endpoint configuration. If a module is not specified in the update,
|
192
225
|
# it will not be modified. However, each module configuration that is specified
|
@@ -145,6 +145,7 @@ module NgrokAPI
|
|
145
145
|
url: url,
|
146
146
|
path: PATH
|
147
147
|
)
|
148
|
+
|
148
149
|
NgrokAPI::Models::Listable.new(
|
149
150
|
client: self,
|
150
151
|
result: result,
|
@@ -153,6 +154,38 @@ module NgrokAPI
|
|
153
154
|
)
|
154
155
|
end
|
155
156
|
|
157
|
+
##
|
158
|
+
# List all Event Destinations on this account.
|
159
|
+
# Throws an exception if API error.
|
160
|
+
#
|
161
|
+
# @param [string] before_id
|
162
|
+
# @param [string] limit
|
163
|
+
# @param [string] url optional and mutually exclusive from before_id and limit
|
164
|
+
# @return [NgrokAPI::Models::Listable] result from the API request
|
165
|
+
#
|
166
|
+
# https://ngrok.com/docs/api#api-event-destinations-list
|
167
|
+
def list!(
|
168
|
+
before_id: nil,
|
169
|
+
limit: nil,
|
170
|
+
url: nil
|
171
|
+
)
|
172
|
+
result = @client.list(
|
173
|
+
before_id: before_id,
|
174
|
+
limit: limit,
|
175
|
+
danger: true,
|
176
|
+
url: url,
|
177
|
+
path: PATH
|
178
|
+
)
|
179
|
+
|
180
|
+
NgrokAPI::Models::Listable.new(
|
181
|
+
client: self,
|
182
|
+
result: result,
|
183
|
+
list_property: LIST_PROPERTY,
|
184
|
+
klass: NgrokAPI::Models::EventDestination,
|
185
|
+
danger: true
|
186
|
+
)
|
187
|
+
end
|
188
|
+
|
156
189
|
##
|
157
190
|
# Update attributes of an Event Destination.
|
158
191
|
#
|
@@ -124,6 +124,45 @@ module NgrokAPI
|
|
124
124
|
NgrokAPI::Models::EventSource.new(client: self, result: result)
|
125
125
|
end
|
126
126
|
|
127
|
+
##
|
128
|
+
# List the types for which this event subscription will trigger
|
129
|
+
#
|
130
|
+
# @param [string] subscription_id The unique identifier for the Event Subscription that this Event Source is attached to.
|
131
|
+
# @return [NgrokAPI::Models::EventSourceList] result from the API request
|
132
|
+
#
|
133
|
+
# https://ngrok.com/docs/api#api-event-sources-list
|
134
|
+
def list(
|
135
|
+
subscription_id: ""
|
136
|
+
)
|
137
|
+
path = '/event_subscriptions/%{subscription_id}/sources'
|
138
|
+
replacements = {
|
139
|
+
subscription_id: subscription_id,
|
140
|
+
}
|
141
|
+
data = {}
|
142
|
+
result = @client.get(path % replacements, data: data)
|
143
|
+
NgrokAPI::Models::EventSourceList.new(client: self, result: result)
|
144
|
+
end
|
145
|
+
|
146
|
+
##
|
147
|
+
# List the types for which this event subscription will trigger
|
148
|
+
# Throws an exception if API error.
|
149
|
+
#
|
150
|
+
# @param [string] subscription_id The unique identifier for the Event Subscription that this Event Source is attached to.
|
151
|
+
# @return [NgrokAPI::Models::EventSourceList] result from the API request
|
152
|
+
#
|
153
|
+
# https://ngrok.com/docs/api#api-event-sources-list
|
154
|
+
def list!(
|
155
|
+
subscription_id: ""
|
156
|
+
)
|
157
|
+
path = '/event_subscriptions/%{subscription_id}/sources'
|
158
|
+
replacements = {
|
159
|
+
subscription_id: subscription_id,
|
160
|
+
}
|
161
|
+
data = {}
|
162
|
+
result = @client.get(path % replacements, data: data, danger: true)
|
163
|
+
NgrokAPI::Models::EventSourceList.new(client: self, result: result)
|
164
|
+
end
|
165
|
+
|
127
166
|
##
|
128
167
|
# Update the type for which this event subscription will trigger
|
129
168
|
#
|
@@ -145,6 +145,7 @@ module NgrokAPI
|
|
145
145
|
url: url,
|
146
146
|
path: PATH
|
147
147
|
)
|
148
|
+
|
148
149
|
NgrokAPI::Models::Listable.new(
|
149
150
|
client: self,
|
150
151
|
result: result,
|
@@ -153,6 +154,38 @@ module NgrokAPI
|
|
153
154
|
)
|
154
155
|
end
|
155
156
|
|
157
|
+
##
|
158
|
+
# List all Event Streams available on this account.
|
159
|
+
# Throws an exception if API error.
|
160
|
+
#
|
161
|
+
# @param [string] before_id
|
162
|
+
# @param [string] limit
|
163
|
+
# @param [string] url optional and mutually exclusive from before_id and limit
|
164
|
+
# @return [NgrokAPI::Models::Listable] result from the API request
|
165
|
+
#
|
166
|
+
# https://ngrok.com/docs/api#api-event-streams-list
|
167
|
+
def list!(
|
168
|
+
before_id: nil,
|
169
|
+
limit: nil,
|
170
|
+
url: nil
|
171
|
+
)
|
172
|
+
result = @client.list(
|
173
|
+
before_id: before_id,
|
174
|
+
limit: limit,
|
175
|
+
danger: true,
|
176
|
+
url: url,
|
177
|
+
path: PATH
|
178
|
+
)
|
179
|
+
|
180
|
+
NgrokAPI::Models::Listable.new(
|
181
|
+
client: self,
|
182
|
+
result: result,
|
183
|
+
list_property: LIST_PROPERTY,
|
184
|
+
klass: NgrokAPI::Models::EventStream,
|
185
|
+
danger: true
|
186
|
+
)
|
187
|
+
end
|
188
|
+
|
156
189
|
##
|
157
190
|
# Update attributes of an Event Stream by ID.
|
158
191
|
#
|
@@ -138,6 +138,7 @@ module NgrokAPI
|
|
138
138
|
url: url,
|
139
139
|
path: PATH
|
140
140
|
)
|
141
|
+
|
141
142
|
NgrokAPI::Models::Listable.new(
|
142
143
|
client: self,
|
143
144
|
result: result,
|
@@ -146,6 +147,38 @@ module NgrokAPI
|
|
146
147
|
)
|
147
148
|
end
|
148
149
|
|
150
|
+
##
|
151
|
+
# List this Account's Event Subscriptions.
|
152
|
+
# Throws an exception if API error.
|
153
|
+
#
|
154
|
+
# @param [string] before_id
|
155
|
+
# @param [string] limit
|
156
|
+
# @param [string] url optional and mutually exclusive from before_id and limit
|
157
|
+
# @return [NgrokAPI::Models::Listable] result from the API request
|
158
|
+
#
|
159
|
+
# https://ngrok.com/docs/api#api-event-subscriptions-list
|
160
|
+
def list!(
|
161
|
+
before_id: nil,
|
162
|
+
limit: nil,
|
163
|
+
url: nil
|
164
|
+
)
|
165
|
+
result = @client.list(
|
166
|
+
before_id: before_id,
|
167
|
+
limit: limit,
|
168
|
+
danger: true,
|
169
|
+
url: url,
|
170
|
+
path: PATH
|
171
|
+
)
|
172
|
+
|
173
|
+
NgrokAPI::Models::Listable.new(
|
174
|
+
client: self,
|
175
|
+
result: result,
|
176
|
+
list_property: LIST_PROPERTY,
|
177
|
+
klass: NgrokAPI::Models::EventSubscription,
|
178
|
+
danger: true
|
179
|
+
)
|
180
|
+
end
|
181
|
+
|
149
182
|
##
|
150
183
|
# Update an Event Subscription.
|
151
184
|
#
|