ngrok-api 0.9.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/doc/.gitkeep +0 -0
- data/doc/NgrokAPI/Client.html +1499 -125
- 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 +1 -1
- data/doc/NgrokAPI/Models/{ApiKey.html → APIKey.html} +108 -177
- data/doc/NgrokAPI/Models/AWSAuth.html +617 -0
- data/doc/NgrokAPI/Models/AWSCredentials.html +617 -0
- data/doc/NgrokAPI/Models/AWSRole.html +543 -0
- data/doc/NgrokAPI/Models/AbuseReport.html +987 -0
- data/doc/NgrokAPI/Models/AbuseReportHostname.html +617 -0
- data/doc/NgrokAPI/Models/CertificateAuthority.html +1439 -0
- data/doc/NgrokAPI/Models/Credential.html +1149 -0
- data/doc/NgrokAPI/Models/EndpointCircuitBreaker.html +913 -0
- data/doc/NgrokAPI/Models/EndpointCompression.html +543 -0
- data/doc/NgrokAPI/Models/EndpointConfiguration.html +1321 -510
- data/doc/NgrokAPI/Models/EndpointIPPolicy.html +617 -0
- data/doc/NgrokAPI/Models/EndpointIPPolicyMutate.html +617 -0
- data/doc/NgrokAPI/Models/EndpointLogging.html +617 -0
- data/doc/NgrokAPI/Models/EndpointLoggingMutate.html +617 -0
- data/doc/NgrokAPI/Models/EndpointMutualTLS.html +617 -0
- data/doc/NgrokAPI/Models/EndpointMutualTLSMutate.html +617 -0
- data/doc/NgrokAPI/Models/EndpointOAuth.html +987 -0
- data/doc/NgrokAPI/Models/EndpointOAuthFacebook.html +839 -0
- data/doc/NgrokAPI/Models/EndpointOAuthGitHub.html +987 -0
- data/doc/NgrokAPI/Models/EndpointOAuthGoogle.html +839 -0
- data/doc/NgrokAPI/Models/EndpointOAuthMicrosoft.html +839 -0
- data/doc/NgrokAPI/Models/EndpointOAuthProvider.html +765 -0
- data/doc/NgrokAPI/Models/EndpointOIDC.html +1135 -0
- data/doc/NgrokAPI/Models/EndpointRequestHeaders.html +691 -0
- data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +691 -0
- data/doc/NgrokAPI/Models/EndpointSAML.html +1653 -0
- data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +1283 -0
- data/doc/NgrokAPI/Models/EndpointTLSTermination.html +691 -0
- data/doc/NgrokAPI/Models/EndpointWebhookValidation.html +691 -0
- data/doc/NgrokAPI/Models/EventDestination.html +1058 -0
- data/doc/NgrokAPI/Models/EventSource.html +765 -0
- data/doc/NgrokAPI/Models/EventSourceReplace.html +691 -0
- data/doc/NgrokAPI/Models/EventStream.html +1309 -0
- data/doc/NgrokAPI/Models/EventSubscription.html +1058 -0
- data/doc/NgrokAPI/Models/EventTarget.html +765 -0
- data/doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html +617 -0
- data/doc/NgrokAPI/Models/EventTargetFirehose.html +617 -0
- data/doc/NgrokAPI/Models/EventTargetKinesis.html +617 -0
- data/doc/NgrokAPI/Models/IPPolicy.html +1069 -0
- data/doc/NgrokAPI/Models/IPPolicyRule.html +1149 -0
- data/doc/NgrokAPI/Models/IPRestriction.html +1132 -0
- data/doc/NgrokAPI/Models/{TlsCertificate.html → IPWhitelistEntry.html} +168 -163
- data/doc/NgrokAPI/Models/Listable.html +1 -1
- data/doc/NgrokAPI/Models/Ref.html +617 -0
- data/doc/NgrokAPI/Models/ReservedAddr.html +1132 -0
- data/doc/NgrokAPI/Models/ReservedDomain.html +111 -1107
- data/doc/NgrokAPI/Models/ReservedDomainCertJob.html +839 -0
- data/doc/NgrokAPI/Models/ReservedDomainCertNSTarget.html +617 -0
- data/doc/NgrokAPI/Models/ReservedDomainCertPolicy.html +617 -0
- data/doc/NgrokAPI/Models/ReservedDomainCertStatus.html +617 -0
- data/doc/NgrokAPI/Models/SSHCertificateAuthority.html +1143 -0
- data/doc/NgrokAPI/Models/SSHCredential.html +1149 -0
- data/doc/NgrokAPI/Models/SSHHostCertificate.html +1513 -0
- data/doc/NgrokAPI/Models/SSHUserCertificate.html +1661 -0
- data/doc/NgrokAPI/Models/TLSCertificate.html +2179 -0
- data/doc/NgrokAPI/Models/TLSCertificateSANs.html +617 -0
- data/doc/NgrokAPI/Models/Tunnel.html +987 -0
- data/doc/NgrokAPI/Models/TunnelSession.html +1209 -0
- data/doc/NgrokAPI/Models.html +4 -4
- data/doc/NgrokAPI/PagedIterator.html +1 -1
- data/{docs/NgrokAPI/Services/ApiKeysClient.html → doc/NgrokAPI/Services/APIKeysClient.html} +287 -151
- data/doc/NgrokAPI/Services/AbuseReportsClient.html +723 -0
- data/doc/NgrokAPI/Services/CertificateAuthoritiesClient.html +1489 -0
- data/doc/NgrokAPI/Services/CredentialsClient.html +1534 -0
- data/doc/NgrokAPI/Services/EndpointCircuitBreakerModuleClient.html +1071 -0
- data/doc/NgrokAPI/Services/EndpointCompressionModuleClient.html +1071 -0
- data/doc/NgrokAPI/Services/EndpointConfigurationsClient.html +473 -371
- data/doc/NgrokAPI/Services/EndpointIPPolicyModuleClient.html +1071 -0
- data/doc/NgrokAPI/Services/EndpointLoggingModuleClient.html +1071 -0
- data/doc/NgrokAPI/Services/EndpointMutualTLSModuleClient.html +1071 -0
- data/doc/NgrokAPI/Services/EndpointOAuthModuleClient.html +1071 -0
- data/doc/NgrokAPI/Services/EndpointOIDCModuleClient.html +1071 -0
- data/doc/NgrokAPI/Services/EndpointRequestHeadersModuleClient.html +1071 -0
- data/doc/NgrokAPI/Services/EndpointResponseHeadersModuleClient.html +1071 -0
- data/doc/NgrokAPI/Services/EndpointSAMLModuleClient.html +1071 -0
- data/doc/NgrokAPI/Services/EndpointTLSTerminationModuleClient.html +1071 -0
- data/doc/NgrokAPI/Services/EndpointWebhookValidationModuleClient.html +1071 -0
- data/doc/NgrokAPI/Services/EventDestinationsClient.html +1609 -0
- data/doc/NgrokAPI/Services/EventSourcesClient.html +1348 -0
- data/doc/NgrokAPI/Services/EventStreamsClient.html +1691 -0
- data/doc/NgrokAPI/Services/EventSubscriptionsClient.html +1603 -0
- data/doc/NgrokAPI/Services/IPPoliciesClient.html +1488 -0
- data/doc/NgrokAPI/Services/IPPolicyRulesClient.html +1550 -0
- data/doc/NgrokAPI/Services/IPRestrictionsClient.html +1620 -0
- data/doc/NgrokAPI/Services/IPWhitelistClient.html +1488 -0
- data/doc/NgrokAPI/Services/ReservedAddrsClient.html +1793 -0
- data/doc/NgrokAPI/Services/ReservedDomainsClient.html +518 -333
- data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +1532 -0
- data/doc/NgrokAPI/Services/SSHCredentialsClient.html +1552 -0
- data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +1573 -0
- data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +1617 -0
- data/{docs/NgrokAPI/Services/TlsCertificatesClient.html → doc/NgrokAPI/Services/TLSCertificatesClient.html} +290 -198
- data/doc/NgrokAPI/Services/TunnelSessionsClient.html +1468 -0
- data/doc/NgrokAPI/Services/TunnelsClient.html +513 -0
- data/doc/NgrokAPI/Services.html +4 -4
- data/doc/NgrokAPI.html +3 -3
- data/doc/_index.html +624 -28
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +7318 -286
- data/doc/top-level-namespace.html +1 -1
- data/docs/.gitkeep +0 -0
- data/docs/NgrokAPI/Client.html +1499 -125
- 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 +1 -1
- data/docs/NgrokAPI/Models/{ApiKey.html → APIKey.html} +108 -177
- data/docs/NgrokAPI/Models/AWSAuth.html +617 -0
- data/docs/NgrokAPI/Models/AWSCredentials.html +617 -0
- data/docs/NgrokAPI/Models/AWSRole.html +543 -0
- data/docs/NgrokAPI/Models/AbuseReport.html +987 -0
- data/docs/NgrokAPI/Models/AbuseReportHostname.html +617 -0
- data/docs/NgrokAPI/Models/CertificateAuthority.html +1439 -0
- data/docs/NgrokAPI/Models/Credential.html +1149 -0
- data/docs/NgrokAPI/Models/EndpointCircuitBreaker.html +913 -0
- data/docs/NgrokAPI/Models/EndpointCompression.html +543 -0
- data/docs/NgrokAPI/Models/EndpointConfiguration.html +1321 -510
- data/docs/NgrokAPI/Models/EndpointIPPolicy.html +617 -0
- data/docs/NgrokAPI/Models/EndpointIPPolicyMutate.html +617 -0
- data/docs/NgrokAPI/Models/EndpointLogging.html +617 -0
- data/docs/NgrokAPI/Models/EndpointLoggingMutate.html +617 -0
- data/docs/NgrokAPI/Models/EndpointMutualTLS.html +617 -0
- data/docs/NgrokAPI/Models/EndpointMutualTLSMutate.html +617 -0
- data/docs/NgrokAPI/Models/EndpointOAuth.html +987 -0
- data/docs/NgrokAPI/Models/EndpointOAuthFacebook.html +839 -0
- data/docs/NgrokAPI/Models/EndpointOAuthGitHub.html +987 -0
- data/docs/NgrokAPI/Models/EndpointOAuthGoogle.html +839 -0
- data/docs/NgrokAPI/Models/EndpointOAuthMicrosoft.html +839 -0
- data/docs/NgrokAPI/Models/EndpointOAuthProvider.html +765 -0
- data/docs/NgrokAPI/Models/EndpointOIDC.html +1135 -0
- data/docs/NgrokAPI/Models/EndpointRequestHeaders.html +691 -0
- data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +691 -0
- data/docs/NgrokAPI/Models/EndpointSAML.html +1653 -0
- data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +1283 -0
- data/docs/NgrokAPI/Models/EndpointTLSTermination.html +691 -0
- data/docs/NgrokAPI/Models/EndpointWebhookValidation.html +691 -0
- data/docs/NgrokAPI/Models/EventDestination.html +1058 -0
- data/docs/NgrokAPI/Models/EventSource.html +765 -0
- data/docs/NgrokAPI/Models/EventSourceReplace.html +691 -0
- data/docs/NgrokAPI/Models/EventStream.html +1309 -0
- data/docs/NgrokAPI/Models/EventSubscription.html +1058 -0
- data/docs/NgrokAPI/Models/EventTarget.html +765 -0
- data/docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html +617 -0
- data/docs/NgrokAPI/Models/EventTargetFirehose.html +617 -0
- data/docs/NgrokAPI/Models/EventTargetKinesis.html +617 -0
- data/docs/NgrokAPI/Models/IPPolicy.html +1069 -0
- data/docs/NgrokAPI/Models/IPPolicyRule.html +1149 -0
- data/docs/NgrokAPI/Models/IPRestriction.html +1132 -0
- data/docs/NgrokAPI/Models/{TlsCertificate.html → IPWhitelistEntry.html} +168 -163
- data/docs/NgrokAPI/Models/Listable.html +1 -1
- data/docs/NgrokAPI/Models/Ref.html +617 -0
- data/docs/NgrokAPI/Models/ReservedAddr.html +1132 -0
- data/docs/NgrokAPI/Models/ReservedDomain.html +111 -1107
- data/docs/NgrokAPI/Models/ReservedDomainCertJob.html +839 -0
- data/docs/NgrokAPI/Models/ReservedDomainCertNSTarget.html +617 -0
- data/docs/NgrokAPI/Models/ReservedDomainCertPolicy.html +617 -0
- data/docs/NgrokAPI/Models/ReservedDomainCertStatus.html +617 -0
- data/docs/NgrokAPI/Models/SSHCertificateAuthority.html +1143 -0
- data/docs/NgrokAPI/Models/SSHCredential.html +1149 -0
- data/docs/NgrokAPI/Models/SSHHostCertificate.html +1513 -0
- data/docs/NgrokAPI/Models/SSHUserCertificate.html +1661 -0
- data/docs/NgrokAPI/Models/TLSCertificate.html +2179 -0
- data/docs/NgrokAPI/Models/TLSCertificateSANs.html +617 -0
- data/docs/NgrokAPI/Models/Tunnel.html +987 -0
- data/docs/NgrokAPI/Models/TunnelSession.html +1209 -0
- data/docs/NgrokAPI/Models.html +4 -4
- data/docs/NgrokAPI/PagedIterator.html +1 -1
- data/{doc/NgrokAPI/Services/ApiKeysClient.html → docs/NgrokAPI/Services/APIKeysClient.html} +287 -151
- data/docs/NgrokAPI/Services/AbuseReportsClient.html +723 -0
- data/docs/NgrokAPI/Services/CertificateAuthoritiesClient.html +1489 -0
- data/docs/NgrokAPI/Services/CredentialsClient.html +1534 -0
- data/docs/NgrokAPI/Services/EndpointCircuitBreakerModuleClient.html +1071 -0
- data/docs/NgrokAPI/Services/EndpointCompressionModuleClient.html +1071 -0
- data/docs/NgrokAPI/Services/EndpointConfigurationsClient.html +473 -371
- data/docs/NgrokAPI/Services/EndpointIPPolicyModuleClient.html +1071 -0
- data/docs/NgrokAPI/Services/EndpointLoggingModuleClient.html +1071 -0
- data/docs/NgrokAPI/Services/EndpointMutualTLSModuleClient.html +1071 -0
- data/docs/NgrokAPI/Services/EndpointOAuthModuleClient.html +1071 -0
- data/docs/NgrokAPI/Services/EndpointOIDCModuleClient.html +1071 -0
- data/docs/NgrokAPI/Services/EndpointRequestHeadersModuleClient.html +1071 -0
- data/docs/NgrokAPI/Services/EndpointResponseHeadersModuleClient.html +1071 -0
- data/docs/NgrokAPI/Services/EndpointSAMLModuleClient.html +1071 -0
- data/docs/NgrokAPI/Services/EndpointTLSTerminationModuleClient.html +1071 -0
- data/docs/NgrokAPI/Services/EndpointWebhookValidationModuleClient.html +1071 -0
- data/docs/NgrokAPI/Services/EventDestinationsClient.html +1609 -0
- data/docs/NgrokAPI/Services/EventSourcesClient.html +1348 -0
- data/docs/NgrokAPI/Services/EventStreamsClient.html +1691 -0
- data/docs/NgrokAPI/Services/EventSubscriptionsClient.html +1603 -0
- data/docs/NgrokAPI/Services/IPPoliciesClient.html +1488 -0
- data/docs/NgrokAPI/Services/IPPolicyRulesClient.html +1550 -0
- data/docs/NgrokAPI/Services/IPRestrictionsClient.html +1620 -0
- data/docs/NgrokAPI/Services/IPWhitelistClient.html +1488 -0
- data/docs/NgrokAPI/Services/ReservedAddrsClient.html +1793 -0
- data/docs/NgrokAPI/Services/ReservedDomainsClient.html +518 -333
- data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +1532 -0
- data/docs/NgrokAPI/Services/SSHCredentialsClient.html +1552 -0
- data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +1573 -0
- data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +1617 -0
- data/{doc/NgrokAPI/Services/TlsCertificatesClient.html → docs/NgrokAPI/Services/TLSCertificatesClient.html} +290 -198
- data/docs/NgrokAPI/Services/TunnelSessionsClient.html +1468 -0
- data/docs/NgrokAPI/Services/TunnelsClient.html +513 -0
- data/docs/NgrokAPI/Services.html +4 -4
- data/docs/NgrokAPI.html +3 -3
- data/docs/_index.html +624 -28
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +1 -1
- data/docs/index.html +1 -1
- data/docs/method_list.html +7318 -286
- data/docs/top-level-namespace.html +1 -1
- data/lib/ngrokapi/client.rb +218 -49
- data/lib/ngrokapi/models/abuse_report.rb +37 -0
- data/lib/ngrokapi/models/abuse_report_hostname.rb +27 -0
- data/lib/ngrokapi/models/api_key.rb +62 -64
- data/lib/ngrokapi/models/aws_auth.rb +27 -0
- data/lib/ngrokapi/models/aws_credentials.rb +27 -0
- data/lib/ngrokapi/models/aws_role.rb +25 -0
- data/lib/ngrokapi/models/certificate_authority.rb +72 -0
- data/lib/ngrokapi/models/credential.rb +67 -0
- data/lib/ngrokapi/models/endpoint_circuit_breaker.rb +35 -0
- data/lib/ngrokapi/models/endpoint_compression.rb +25 -0
- data/lib/ngrokapi/models/endpoint_configuration.rb +130 -119
- data/lib/ngrokapi/models/endpoint_ip_policy.rb +27 -0
- data/lib/ngrokapi/models/endpoint_ip_policy_mutate.rb +27 -0
- data/lib/ngrokapi/models/endpoint_logging.rb +27 -0
- data/lib/ngrokapi/models/endpoint_logging_mutate.rb +27 -0
- data/lib/ngrokapi/models/endpoint_mutual_tls.rb +27 -0
- data/lib/ngrokapi/models/endpoint_mutual_tls_mutate.rb +27 -0
- data/lib/ngrokapi/models/endpoint_o_auth.rb +37 -0
- data/lib/ngrokapi/models/endpoint_o_auth_facebook.rb +33 -0
- data/lib/ngrokapi/models/endpoint_o_auth_git_hub.rb +37 -0
- data/lib/ngrokapi/models/endpoint_o_auth_google.rb +33 -0
- data/lib/ngrokapi/models/endpoint_o_auth_microsoft.rb +33 -0
- data/lib/ngrokapi/models/endpoint_o_auth_provider.rb +31 -0
- data/lib/ngrokapi/models/endpoint_oidc.rb +41 -0
- data/lib/ngrokapi/models/endpoint_request_headers.rb +29 -0
- data/lib/ngrokapi/models/endpoint_response_headers.rb +29 -0
- data/lib/ngrokapi/models/endpoint_saml.rb +55 -0
- data/lib/ngrokapi/models/endpoint_saml_mutate.rb +45 -0
- data/lib/ngrokapi/models/endpoint_tls_termination.rb +29 -0
- data/lib/ngrokapi/models/endpoint_webhook_validation.rb +29 -0
- data/lib/ngrokapi/models/event_destination.rb +49 -0
- data/lib/ngrokapi/models/event_source.rb +31 -0
- data/lib/ngrokapi/models/event_source_replace.rb +29 -0
- data/lib/ngrokapi/models/event_stream.rb +77 -0
- data/lib/ngrokapi/models/event_subscription.rb +47 -0
- data/lib/ngrokapi/models/event_target.rb +31 -0
- data/lib/ngrokapi/models/event_target_cloudwatch_logs.rb +27 -0
- data/lib/ngrokapi/models/event_target_firehose.rb +27 -0
- data/lib/ngrokapi/models/event_target_kinesis.rb +27 -0
- data/lib/ngrokapi/models/ip_policy.rb +64 -0
- data/lib/ngrokapi/models/ip_policy_rule.rb +67 -0
- data/lib/ngrokapi/models/ip_restriction.rb +49 -0
- data/lib/ngrokapi/models/ip_whitelist_entry.rb +62 -0
- data/lib/ngrokapi/models/ref.rb +27 -0
- data/lib/ngrokapi/models/reserved_addr.rb +49 -0
- data/lib/ngrokapi/models/reserved_domain.rb +59 -211
- data/lib/ngrokapi/models/reserved_domain_cert_job.rb +33 -0
- data/lib/ngrokapi/models/reserved_domain_cert_ns_target.rb +27 -0
- data/lib/ngrokapi/models/reserved_domain_cert_policy.rb +27 -0
- data/lib/ngrokapi/models/reserved_domain_cert_status.rb +27 -0
- data/lib/ngrokapi/models/ssh_certificate_authority.rb +64 -0
- data/lib/ngrokapi/models/ssh_credential.rb +67 -0
- data/lib/ngrokapi/models/ssh_host_certificate.rb +74 -0
- data/lib/ngrokapi/models/ssh_user_certificate.rb +78 -0
- data/lib/ngrokapi/models/tls_certificate.rb +92 -62
- data/lib/ngrokapi/models/tls_certificate_sa_ns.rb +27 -0
- data/lib/ngrokapi/models/tunnel.rb +37 -0
- data/lib/ngrokapi/models/tunnel_session.rb +43 -0
- data/lib/ngrokapi/services/.gitkeep +0 -0
- data/lib/ngrokapi/services/abuse_reports_client.rb +84 -0
- data/lib/ngrokapi/services/api_keys_client.rb +203 -144
- data/lib/ngrokapi/services/certificate_authorities_client.rb +204 -0
- data/lib/ngrokapi/services/credentials_client.rb +212 -0
- data/lib/ngrokapi/services/endpoint_circuit_breaker_module_client.rb +122 -0
- data/lib/ngrokapi/services/endpoint_compression_module_client.rb +122 -0
- data/lib/ngrokapi/services/endpoint_configurations_client.rb +324 -313
- data/lib/ngrokapi/services/endpoint_ip_policy_module_client.rb +122 -0
- data/lib/ngrokapi/services/endpoint_logging_module_client.rb +122 -0
- data/lib/ngrokapi/services/endpoint_mutual_tls_module_client.rb +122 -0
- data/lib/ngrokapi/services/endpoint_o_auth_module_client.rb +122 -0
- data/lib/ngrokapi/services/endpoint_oidc_module_client.rb +122 -0
- data/lib/ngrokapi/services/endpoint_request_headers_module_client.rb +122 -0
- data/lib/ngrokapi/services/endpoint_response_headers_module_client.rb +122 -0
- data/lib/ngrokapi/services/endpoint_saml_module_client.rb +122 -0
- data/lib/ngrokapi/services/endpoint_tls_termination_module_client.rb +122 -0
- data/lib/ngrokapi/services/endpoint_webhook_validation_module_client.rb +122 -0
- data/lib/ngrokapi/services/event_destinations_client.rb +222 -0
- data/lib/ngrokapi/services/event_sources_client.rb +177 -0
- data/lib/ngrokapi/services/event_streams_client.rb +226 -0
- data/lib/ngrokapi/services/event_subscriptions_client.rb +213 -0
- data/lib/ngrokapi/services/ip_policies_client.rb +208 -0
- data/lib/ngrokapi/services/ip_policy_rules_client.rb +210 -0
- data/lib/ngrokapi/services/ip_restrictions_client.rb +223 -0
- data/lib/ngrokapi/services/ip_whitelist_client.rb +202 -0
- data/lib/ngrokapi/services/reserved_addrs_client.rb +246 -0
- data/lib/ngrokapi/services/reserved_domains_client.rb +382 -313
- data/lib/ngrokapi/services/ssh_certificate_authorities_client.rb +207 -0
- data/lib/ngrokapi/services/ssh_credentials_client.rb +211 -0
- data/lib/ngrokapi/services/ssh_host_certificates_client.rb +214 -0
- data/lib/ngrokapi/services/ssh_user_certificates_client.rb +220 -0
- data/lib/ngrokapi/services/tls_certificates_client.rb +207 -161
- data/lib/ngrokapi/services/tunnel_sessions_client.rb +228 -0
- data/lib/ngrokapi/services/tunnels_client.rb +51 -0
- data/lib/ngrokapi/version.rb +1 -1
- data/spec/ngrokapi/client_spec.rb +139 -33
- data/spec/ngrokapi/models/abuse_report_hostname_spec.rb +21 -0
- data/spec/ngrokapi/models/abuse_report_spec.rb +21 -0
- data/spec/ngrokapi/models/api_key_spec.rb +42 -43
- data/spec/ngrokapi/models/aws_auth_spec.rb +21 -0
- data/spec/ngrokapi/models/aws_credentials_spec.rb +21 -0
- data/spec/ngrokapi/models/aws_role_spec.rb +21 -0
- data/spec/ngrokapi/models/certificate_authority_spec.rb +42 -0
- data/spec/ngrokapi/models/credential_spec.rb +45 -0
- data/spec/ngrokapi/models/endpoint_circuit_breaker_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_compression_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_configuration_spec.rb +78 -0
- data/spec/ngrokapi/models/endpoint_ip_policy_mutate_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_ip_policy_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_logging_mutate_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_logging_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_mutual_tls_mutate_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_mutual_tls_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_o_auth_facebook_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_o_auth_git_hub_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_o_auth_google_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_o_auth_microsoft_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_o_auth_provider_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_o_auth_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_oidc_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_request_headers_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_response_headers_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_saml_mutate_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_saml_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_tls_termination_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_webhook_validation_spec.rb +21 -0
- data/spec/ngrokapi/models/event_destination_spec.rb +28 -0
- data/spec/ngrokapi/models/event_source_replace_spec.rb +21 -0
- data/spec/ngrokapi/models/event_source_spec.rb +21 -0
- data/spec/ngrokapi/models/event_stream_spec.rb +51 -0
- data/spec/ngrokapi/models/event_subscription_spec.rb +28 -0
- data/spec/ngrokapi/models/event_target_cloudwatch_logs_spec.rb +21 -0
- data/spec/ngrokapi/models/event_target_firehose_spec.rb +21 -0
- data/spec/ngrokapi/models/event_target_kinesis_spec.rb +21 -0
- data/spec/ngrokapi/models/event_target_spec.rb +21 -0
- data/spec/ngrokapi/models/ip_policy_rule_spec.rb +45 -0
- data/spec/ngrokapi/models/ip_policy_spec.rb +42 -0
- data/spec/ngrokapi/models/ip_restriction_spec.rb +28 -0
- data/spec/ngrokapi/models/ip_whitelist_entry_spec.rb +42 -0
- data/spec/ngrokapi/models/listable_spec.rb +4 -4
- data/spec/ngrokapi/models/ref_spec.rb +21 -0
- data/spec/ngrokapi/models/reserved_addr_spec.rb +28 -0
- data/spec/ngrokapi/models/reserved_domain_cert_job_spec.rb +21 -0
- data/spec/ngrokapi/models/reserved_domain_cert_ns_target_spec.rb +21 -0
- data/spec/ngrokapi/models/reserved_domain_cert_policy_spec.rb +21 -0
- data/spec/ngrokapi/models/reserved_domain_cert_status_spec.rb +21 -0
- data/spec/ngrokapi/models/reserved_domain_spec.rb +28 -100
- data/spec/ngrokapi/models/ssh_certificate_authority_spec.rb +42 -0
- data/spec/ngrokapi/models/ssh_credential_spec.rb +45 -0
- data/spec/ngrokapi/models/ssh_host_certificate_spec.rb +42 -0
- data/spec/ngrokapi/models/ssh_user_certificate_spec.rb +42 -0
- data/spec/ngrokapi/models/tls_certificate_sa_ns_spec.rb +21 -0
- data/spec/ngrokapi/models/tls_certificate_spec.rb +42 -0
- data/spec/ngrokapi/models/tunnel_session_spec.rb +21 -0
- data/spec/ngrokapi/models/tunnel_spec.rb +21 -0
- data/spec/ngrokapi/paged_iterator_spec.rb +5 -5
- data/spec/ngrokapi/services/.gitkeep +0 -0
- data/spec/ngrokapi/services/abuse_reports_client_spec.rb +67 -0
- data/spec/ngrokapi/services/api_keys_client_spec.rb +160 -127
- data/spec/ngrokapi/services/certificate_authorities_client_spec.rb +162 -0
- data/spec/ngrokapi/services/credentials_client_spec.rb +166 -0
- data/spec/ngrokapi/services/endpoint_circuit_breaker_module_client_spec.rb +127 -0
- data/spec/ngrokapi/services/endpoint_compression_module_client_spec.rb +127 -0
- data/spec/ngrokapi/services/endpoint_configurations_client_spec.rb +240 -0
- data/spec/ngrokapi/services/endpoint_ip_policy_module_client_spec.rb +127 -0
- data/spec/ngrokapi/services/endpoint_logging_module_client_spec.rb +127 -0
- data/spec/ngrokapi/services/endpoint_mutual_tls_module_client_spec.rb +127 -0
- data/spec/ngrokapi/services/endpoint_o_auth_module_client_spec.rb +127 -0
- data/spec/ngrokapi/services/endpoint_oidc_module_client_spec.rb +127 -0
- data/spec/ngrokapi/services/endpoint_request_headers_module_client_spec.rb +127 -0
- data/spec/ngrokapi/services/endpoint_response_headers_module_client_spec.rb +127 -0
- data/spec/ngrokapi/services/endpoint_saml_module_client_spec.rb +127 -0
- data/spec/ngrokapi/services/endpoint_tls_termination_module_client_spec.rb +127 -0
- data/spec/ngrokapi/services/endpoint_webhook_validation_module_client_spec.rb +127 -0
- data/spec/ngrokapi/services/event_destinations_client_spec.rb +175 -0
- data/spec/ngrokapi/services/event_sources_client_spec.rb +162 -0
- data/spec/ngrokapi/services/event_streams_client_spec.rb +180 -0
- data/spec/ngrokapi/services/event_subscriptions_client_spec.rb +172 -0
- data/spec/ngrokapi/services/ip_policies_client_spec.rb +162 -0
- data/spec/ngrokapi/services/ip_policy_rules_client_spec.rb +168 -0
- data/spec/ngrokapi/services/ip_restrictions_client_spec.rb +174 -0
- data/spec/ngrokapi/services/ip_whitelist_client_spec.rb +162 -0
- data/spec/ngrokapi/services/reserved_addrs_client_spec.rb +209 -0
- data/spec/ngrokapi/services/reserved_domains_client_spec.rb +352 -0
- data/spec/ngrokapi/services/ssh_certificate_authorities_client_spec.rb +166 -0
- data/spec/ngrokapi/services/ssh_credentials_client_spec.rb +168 -0
- data/spec/ngrokapi/services/ssh_host_certificates_client_spec.rb +170 -0
- data/spec/ngrokapi/services/ssh_user_certificates_client_spec.rb +174 -0
- data/spec/ngrokapi/services/tls_certificates_client_spec.rb +164 -0
- data/spec/ngrokapi/services/tunnel_sessions_client_spec.rb +184 -0
- data/spec/ngrokapi/services/tunnels_client_spec.rb +21 -0
- data/spec/spec_helper.rb +958 -0
- metadata +355 -10
|
@@ -0,0 +1,1603 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>
|
|
7
|
+
Class: NgrokAPI::Services::EventSubscriptionsClient
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.9.26
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript">
|
|
18
|
+
pathId = "NgrokAPI::Services::EventSubscriptionsClient";
|
|
19
|
+
relpath = '../../';
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
|
24
|
+
|
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
</head>
|
|
29
|
+
<body>
|
|
30
|
+
<div class="nav_wrap">
|
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
|
32
|
+
<div id="resizer"></div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div id="main" tabindex="-1">
|
|
36
|
+
<div id="header">
|
|
37
|
+
<div id="menu">
|
|
38
|
+
|
|
39
|
+
<a href="../../_index.html">Index (E)</a> »
|
|
40
|
+
<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="../Services.html" title="NgrokAPI::Services (module)">Services</a></span></span>
|
|
41
|
+
»
|
|
42
|
+
<span class="title">EventSubscriptionsClient</span>
|
|
43
|
+
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div id="search">
|
|
47
|
+
|
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
|
49
|
+
href="../../class_list.html">
|
|
50
|
+
|
|
51
|
+
<svg width="24" height="24">
|
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
|
55
|
+
</svg>
|
|
56
|
+
</a>
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
<div class="clear"></div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div id="content"><h1>Class: NgrokAPI::Services::EventSubscriptionsClient
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</h1>
|
|
67
|
+
<div class="box_info">
|
|
68
|
+
|
|
69
|
+
<dl>
|
|
70
|
+
<dt>Inherits:</dt>
|
|
71
|
+
<dd>
|
|
72
|
+
<span class="inheritName">Object</span>
|
|
73
|
+
|
|
74
|
+
<ul class="fullTree">
|
|
75
|
+
<li>Object</li>
|
|
76
|
+
|
|
77
|
+
<li class="next">NgrokAPI::Services::EventSubscriptionsClient</li>
|
|
78
|
+
|
|
79
|
+
</ul>
|
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
81
|
+
|
|
82
|
+
</dd>
|
|
83
|
+
</dl>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
<dl>
|
|
96
|
+
<dt>Defined in:</dt>
|
|
97
|
+
<dd>lib/ngrokapi/services/event_subscriptions_client.rb</dd>
|
|
98
|
+
</dl>
|
|
99
|
+
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
|
103
|
+
<div class="discussion">
|
|
104
|
+
|
|
105
|
+
<p><a href="https://ngrok.com/docs/api#api-event-subscriptions">ngrok.com/docs/api#api-event-subscriptions</a></p>
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="tags">
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
<h2>
|
|
116
|
+
Constant Summary
|
|
117
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
|
118
|
+
</h2>
|
|
119
|
+
|
|
120
|
+
<dl class="constants">
|
|
121
|
+
|
|
122
|
+
<dt id="PATH-constant" class="">PATH =
|
|
123
|
+
<div class="docstring">
|
|
124
|
+
<div class="discussion">
|
|
125
|
+
|
|
126
|
+
<p>The API path for the requests</p>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
<div class="tags">
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
</div>
|
|
135
|
+
</dt>
|
|
136
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/event_subscriptions</span><span class='tstring_end'>'</span></span></pre></dd>
|
|
137
|
+
|
|
138
|
+
<dt id="LIST_PROPERTY-constant" class="">LIST_PROPERTY =
|
|
139
|
+
<div class="docstring">
|
|
140
|
+
<div class="discussion">
|
|
141
|
+
|
|
142
|
+
<p>The List Property from the resulting API for list calls</p>
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="tags">
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
</div>
|
|
151
|
+
</dt>
|
|
152
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>event_subscriptions</span><span class='tstring_end'>'</span></span></pre></dd>
|
|
153
|
+
|
|
154
|
+
</dl>
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
161
|
+
<ul class="summary">
|
|
162
|
+
|
|
163
|
+
<li class="public ">
|
|
164
|
+
<span class="summary_signature">
|
|
165
|
+
|
|
166
|
+
<a href="#client-instance_method" title="#client (instance method)">#<strong>client</strong> ⇒ Object </a>
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
</span>
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
<span class="note title readonly">readonly</span>
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
<span class="summary_desc"><div class='inline'>
|
|
186
|
+
<p>Returns the value of attribute client.</p>
|
|
187
|
+
</div></span>
|
|
188
|
+
|
|
189
|
+
</li>
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
</ul>
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
<h2>
|
|
199
|
+
Instance Method Summary
|
|
200
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
201
|
+
</h2>
|
|
202
|
+
|
|
203
|
+
<ul class="summary">
|
|
204
|
+
|
|
205
|
+
<li class="public ">
|
|
206
|
+
<span class="summary_signature">
|
|
207
|
+
|
|
208
|
+
<a href="#create-instance_method" title="#create (instance method)">#<strong>create</strong>(metadata: "", description: "", sources: [], destination_ids: []) ⇒ NgrokAPI::Models::EventSubscription </a>
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
</span>
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
<span class="summary_desc"><div class='inline'>
|
|
223
|
+
<p>Create an Event Subscription.</p>
|
|
224
|
+
</div></span>
|
|
225
|
+
|
|
226
|
+
</li>
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
<li class="public ">
|
|
230
|
+
<span class="summary_signature">
|
|
231
|
+
|
|
232
|
+
<a href="#delete-instance_method" title="#delete (instance method)">#<strong>delete</strong>(id: "") ⇒ NgrokAPI::Models::Empty </a>
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
</span>
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
<span class="summary_desc"><div class='inline'>
|
|
247
|
+
<p>Delete an Event Subscription.</p>
|
|
248
|
+
</div></span>
|
|
249
|
+
|
|
250
|
+
</li>
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
<li class="public ">
|
|
254
|
+
<span class="summary_signature">
|
|
255
|
+
|
|
256
|
+
<a href="#delete!-instance_method" title="#delete! (instance method)">#<strong>delete!</strong>(id: "") ⇒ NgrokAPI::Models::Empty </a>
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
</span>
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
<span class="summary_desc"><div class='inline'>
|
|
271
|
+
<p>Delete an Event Subscription.</p>
|
|
272
|
+
</div></span>
|
|
273
|
+
|
|
274
|
+
</li>
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
<li class="public ">
|
|
278
|
+
<span class="summary_signature">
|
|
279
|
+
|
|
280
|
+
<a href="#get-instance_method" title="#get (instance method)">#<strong>get</strong>(id: "") ⇒ NgrokAPI::Models::EventSubscription </a>
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
</span>
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
<span class="summary_desc"><div class='inline'>
|
|
295
|
+
<p>Get an Event Subscription by ID.</p>
|
|
296
|
+
</div></span>
|
|
297
|
+
|
|
298
|
+
</li>
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
<li class="public ">
|
|
302
|
+
<span class="summary_signature">
|
|
303
|
+
|
|
304
|
+
<a href="#get!-instance_method" title="#get! (instance method)">#<strong>get!</strong>(id: "") ⇒ NgrokAPI::Models::EventSubscription </a>
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
</span>
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
<span class="summary_desc"><div class='inline'>
|
|
319
|
+
<p>Get an Event Subscription by ID.</p>
|
|
320
|
+
</div></span>
|
|
321
|
+
|
|
322
|
+
</li>
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
<li class="public ">
|
|
326
|
+
<span class="summary_signature">
|
|
327
|
+
|
|
328
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(client:) ⇒ EventSubscriptionsClient </a>
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
</span>
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
<span class="note title constructor">constructor</span>
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
<span class="summary_desc"><div class='inline'>
|
|
345
|
+
<p>A new instance of EventSubscriptionsClient.</p>
|
|
346
|
+
</div></span>
|
|
347
|
+
|
|
348
|
+
</li>
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
<li class="public ">
|
|
352
|
+
<span class="summary_signature">
|
|
353
|
+
|
|
354
|
+
<a href="#list-instance_method" title="#list (instance method)">#<strong>list</strong>(before_id: nil, limit: nil, url: nil) ⇒ NgrokAPI::Models::Listable </a>
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
</span>
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
<span class="summary_desc"><div class='inline'>
|
|
369
|
+
<p>List this Account's Event Subscriptions.</p>
|
|
370
|
+
</div></span>
|
|
371
|
+
|
|
372
|
+
</li>
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
<li class="public ">
|
|
376
|
+
<span class="summary_signature">
|
|
377
|
+
|
|
378
|
+
<a href="#update-instance_method" title="#update (instance method)">#<strong>update</strong>(id: "", metadata: nil, description: nil, sources: nil, destination_ids: nil) ⇒ NgrokAPI::Models::EventSubscription </a>
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
</span>
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
<span class="summary_desc"><div class='inline'>
|
|
393
|
+
<p>Update an Event Subscription.</p>
|
|
394
|
+
</div></span>
|
|
395
|
+
|
|
396
|
+
</li>
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
<li class="public ">
|
|
400
|
+
<span class="summary_signature">
|
|
401
|
+
|
|
402
|
+
<a href="#update!-instance_method" title="#update! (instance method)">#<strong>update!</strong>(id: "", metadata: nil, description: nil, sources: nil, destination_ids: nil) ⇒ NgrokAPI::Models::EventSubscription </a>
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
</span>
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
<span class="summary_desc"><div class='inline'>
|
|
417
|
+
<p>Update an Event Subscription.</p>
|
|
418
|
+
</div></span>
|
|
419
|
+
|
|
420
|
+
</li>
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
</ul>
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
<div id="constructor_details" class="method_details_list">
|
|
427
|
+
<h2>Constructor Details</h2>
|
|
428
|
+
|
|
429
|
+
<div class="method_details first">
|
|
430
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
431
|
+
|
|
432
|
+
#<strong>initialize</strong>(client:) ⇒ <tt><span class='object_link'><a href="" title="NgrokAPI::Services::EventSubscriptionsClient (class)">EventSubscriptionsClient</a></span></tt>
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
</h3><div class="docstring">
|
|
439
|
+
<div class="discussion">
|
|
440
|
+
|
|
441
|
+
<p>Returns a new instance of EventSubscriptionsClient.</p>
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
</div>
|
|
445
|
+
</div>
|
|
446
|
+
<div class="tags">
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
</div><table class="source_code">
|
|
450
|
+
<tr>
|
|
451
|
+
<td>
|
|
452
|
+
<pre class="lines">
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
15
|
|
456
|
+
16
|
|
457
|
+
17</pre>
|
|
458
|
+
</td>
|
|
459
|
+
<td>
|
|
460
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/event_subscriptions_client.rb', line 15</span>
|
|
461
|
+
|
|
462
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>client:</span><span class='rparen'>)</span>
|
|
463
|
+
<span class='ivar'>@client</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span>
|
|
464
|
+
<span class='kw'>end</span></pre>
|
|
465
|
+
</td>
|
|
466
|
+
</tr>
|
|
467
|
+
</table>
|
|
468
|
+
</div>
|
|
469
|
+
|
|
470
|
+
</div>
|
|
471
|
+
|
|
472
|
+
<div id="instance_attr_details" class="attr_details">
|
|
473
|
+
<h2>Instance Attribute Details</h2>
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
<span id=""></span>
|
|
477
|
+
<div class="method_details first">
|
|
478
|
+
<h3 class="signature first" id="client-instance_method">
|
|
479
|
+
|
|
480
|
+
#<strong>client</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
</h3><div class="docstring">
|
|
487
|
+
<div class="discussion">
|
|
488
|
+
|
|
489
|
+
<p>Returns the value of attribute client.</p>
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
</div>
|
|
493
|
+
</div>
|
|
494
|
+
<div class="tags">
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
</div><table class="source_code">
|
|
498
|
+
<tr>
|
|
499
|
+
<td>
|
|
500
|
+
<pre class="lines">
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
13
|
|
504
|
+
14
|
|
505
|
+
15</pre>
|
|
506
|
+
</td>
|
|
507
|
+
<td>
|
|
508
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/event_subscriptions_client.rb', line 13</span>
|
|
509
|
+
|
|
510
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_client'>client</span>
|
|
511
|
+
<span class='ivar'>@client</span>
|
|
512
|
+
<span class='kw'>end</span></pre>
|
|
513
|
+
</td>
|
|
514
|
+
</tr>
|
|
515
|
+
</table>
|
|
516
|
+
</div>
|
|
517
|
+
|
|
518
|
+
</div>
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
<div id="instance_method_details" class="method_details_list">
|
|
522
|
+
<h2>Instance Method Details</h2>
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
<div class="method_details first">
|
|
526
|
+
<h3 class="signature first" id="create-instance_method">
|
|
527
|
+
|
|
528
|
+
#<strong>create</strong>(metadata: "", description: "", sources: [], destination_ids: []) ⇒ <tt><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">NgrokAPI::Models::EventSubscription</a></span></tt>
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
</h3><div class="docstring">
|
|
535
|
+
<div class="discussion">
|
|
536
|
+
|
|
537
|
+
<p>Create an Event Subscription.</p>
|
|
538
|
+
|
|
539
|
+
<p><a href="https://ngrok.com/docs/api#api-event-subscriptions-create">ngrok.com/docs/api#api-event-subscriptions-create</a></p>
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
</div>
|
|
543
|
+
</div>
|
|
544
|
+
<div class="tags">
|
|
545
|
+
<p class="tag_title">Parameters:</p>
|
|
546
|
+
<ul class="param">
|
|
547
|
+
|
|
548
|
+
<li>
|
|
549
|
+
|
|
550
|
+
<span class='name'>metadata</span>
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
—
|
|
560
|
+
<div class='inline'>
|
|
561
|
+
<p>Arbitrary customer supplied information intended to be machine readable. Optional, max 4096 chars.</p>
|
|
562
|
+
</div>
|
|
563
|
+
|
|
564
|
+
</li>
|
|
565
|
+
|
|
566
|
+
<li>
|
|
567
|
+
|
|
568
|
+
<span class='name'>description</span>
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
—
|
|
578
|
+
<div class='inline'>
|
|
579
|
+
<p>Arbitrary customer supplied information intended to be human readable. Optional, max 255 chars.</p>
|
|
580
|
+
</div>
|
|
581
|
+
|
|
582
|
+
</li>
|
|
583
|
+
|
|
584
|
+
<li>
|
|
585
|
+
|
|
586
|
+
<span class='name'>sources</span>
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
<span class='type'>(<tt>List<EventSourceReplace></tt>)</span>
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
—
|
|
596
|
+
<div class='inline'>
|
|
597
|
+
<p>Sources containing the types for which this event subscription will trigger</p>
|
|
598
|
+
</div>
|
|
599
|
+
|
|
600
|
+
</li>
|
|
601
|
+
|
|
602
|
+
<li>
|
|
603
|
+
|
|
604
|
+
<span class='name'>destination_ids</span>
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
<span class='type'>(<tt>List<string></tt>)</span>
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
—
|
|
614
|
+
<div class='inline'>
|
|
615
|
+
<p>A list of Event Destination IDs which should be used for this Event Stream. Event Streams are required to have at least one Event Destination.</p>
|
|
616
|
+
</div>
|
|
617
|
+
|
|
618
|
+
</li>
|
|
619
|
+
|
|
620
|
+
</ul>
|
|
621
|
+
|
|
622
|
+
<p class="tag_title">Returns:</p>
|
|
623
|
+
<ul class="return">
|
|
624
|
+
|
|
625
|
+
<li>
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">NgrokAPI::Models::EventSubscription</a></span></tt>)</span>
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
—
|
|
633
|
+
<div class='inline'>
|
|
634
|
+
<p>result from the API request</p>
|
|
635
|
+
</div>
|
|
636
|
+
|
|
637
|
+
</li>
|
|
638
|
+
|
|
639
|
+
</ul>
|
|
640
|
+
|
|
641
|
+
</div><table class="source_code">
|
|
642
|
+
<tr>
|
|
643
|
+
<td>
|
|
644
|
+
<pre class="lines">
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
29
|
|
648
|
+
30
|
|
649
|
+
31
|
|
650
|
+
32
|
|
651
|
+
33
|
|
652
|
+
34
|
|
653
|
+
35
|
|
654
|
+
36
|
|
655
|
+
37
|
|
656
|
+
38
|
|
657
|
+
39
|
|
658
|
+
40
|
|
659
|
+
41
|
|
660
|
+
42
|
|
661
|
+
43
|
|
662
|
+
44
|
|
663
|
+
45</pre>
|
|
664
|
+
</td>
|
|
665
|
+
<td>
|
|
666
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/event_subscriptions_client.rb', line 29</span>
|
|
667
|
+
|
|
668
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span>
|
|
669
|
+
<span class='label'>metadata:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
|
670
|
+
<span class='label'>description:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
|
671
|
+
<span class='label'>sources:</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
|
672
|
+
<span class='label'>destination_ids:</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
|
673
|
+
<span class='rparen'>)</span>
|
|
674
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/event_subscriptions</span><span class='tstring_end'>'</span></span>
|
|
675
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
676
|
+
<span class='rbrace'>}</span>
|
|
677
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
678
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:metadata</span><span class='rbracket'>]</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>
|
|
679
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:description</span><span class='rbracket'>]</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>
|
|
680
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:sources</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_sources'>sources</span> <span class='kw'>if</span> <span class='id identifier rubyid_sources'>sources</span>
|
|
681
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:destination_ids</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_destination_ids'>destination_ids</span> <span class='kw'>if</span> <span class='id identifier rubyid_destination_ids'>destination_ids</span>
|
|
682
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
|
683
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">EventSubscription</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/EventSubscription.html#initialize-instance_method" title="NgrokAPI::Models::EventSubscription#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>result:</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
|
684
|
+
<span class='kw'>end</span></pre>
|
|
685
|
+
</td>
|
|
686
|
+
</tr>
|
|
687
|
+
</table>
|
|
688
|
+
</div>
|
|
689
|
+
|
|
690
|
+
<div class="method_details ">
|
|
691
|
+
<h3 class="signature " id="delete-instance_method">
|
|
692
|
+
|
|
693
|
+
#<strong>delete</strong>(id: "") ⇒ <tt>NgrokAPI::Models::Empty</tt>
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
</h3><div class="docstring">
|
|
700
|
+
<div class="discussion">
|
|
701
|
+
|
|
702
|
+
<p>Delete an Event Subscription.</p>
|
|
703
|
+
|
|
704
|
+
<p><a href="https://ngrok.com/docs/api#api-event-subscriptions-delete">ngrok.com/docs/api#api-event-subscriptions-delete</a></p>
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
</div>
|
|
708
|
+
</div>
|
|
709
|
+
<div class="tags">
|
|
710
|
+
<p class="tag_title">Parameters:</p>
|
|
711
|
+
<ul class="param">
|
|
712
|
+
|
|
713
|
+
<li>
|
|
714
|
+
|
|
715
|
+
<span class='name'>id</span>
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
—
|
|
725
|
+
<div class='inline'>
|
|
726
|
+
<p>a resource identifier</p>
|
|
727
|
+
</div>
|
|
728
|
+
|
|
729
|
+
</li>
|
|
730
|
+
|
|
731
|
+
</ul>
|
|
732
|
+
|
|
733
|
+
<p class="tag_title">Returns:</p>
|
|
734
|
+
<ul class="return">
|
|
735
|
+
|
|
736
|
+
<li>
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
<span class='type'>(<tt>NgrokAPI::Models::Empty</tt>)</span>
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
—
|
|
744
|
+
<div class='inline'>
|
|
745
|
+
<p>result from the API request</p>
|
|
746
|
+
</div>
|
|
747
|
+
|
|
748
|
+
</li>
|
|
749
|
+
|
|
750
|
+
</ul>
|
|
751
|
+
|
|
752
|
+
</div><table class="source_code">
|
|
753
|
+
<tr>
|
|
754
|
+
<td>
|
|
755
|
+
<pre class="lines">
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
54
|
|
759
|
+
55
|
|
760
|
+
56
|
|
761
|
+
57
|
|
762
|
+
58
|
|
763
|
+
59
|
|
764
|
+
60
|
|
765
|
+
61
|
|
766
|
+
62</pre>
|
|
767
|
+
</td>
|
|
768
|
+
<td>
|
|
769
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/event_subscriptions_client.rb', line 54</span>
|
|
770
|
+
|
|
771
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span>
|
|
772
|
+
<span class='label'>id:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
|
773
|
+
<span class='rparen'>)</span>
|
|
774
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/event_subscriptions/%{id}</span><span class='tstring_end'>'</span></span>
|
|
775
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
776
|
+
<span class='label'>id:</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span>
|
|
777
|
+
<span class='rbrace'>}</span>
|
|
778
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='rparen'>)</span>
|
|
779
|
+
<span class='kw'>end</span></pre>
|
|
780
|
+
</td>
|
|
781
|
+
</tr>
|
|
782
|
+
</table>
|
|
783
|
+
</div>
|
|
784
|
+
|
|
785
|
+
<div class="method_details ">
|
|
786
|
+
<h3 class="signature " id="delete!-instance_method">
|
|
787
|
+
|
|
788
|
+
#<strong>delete!</strong>(id: "") ⇒ <tt>NgrokAPI::Models::Empty</tt>
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
</h3><div class="docstring">
|
|
795
|
+
<div class="discussion">
|
|
796
|
+
|
|
797
|
+
<p>Delete an Event Subscription. Throws an exception if API error.</p>
|
|
798
|
+
|
|
799
|
+
<p><a href="https://ngrok.com/docs/api#api-event-subscriptions-delete">ngrok.com/docs/api#api-event-subscriptions-delete</a></p>
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
</div>
|
|
803
|
+
</div>
|
|
804
|
+
<div class="tags">
|
|
805
|
+
<p class="tag_title">Parameters:</p>
|
|
806
|
+
<ul class="param">
|
|
807
|
+
|
|
808
|
+
<li>
|
|
809
|
+
|
|
810
|
+
<span class='name'>id</span>
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
—
|
|
820
|
+
<div class='inline'>
|
|
821
|
+
<p>a resource identifier</p>
|
|
822
|
+
</div>
|
|
823
|
+
|
|
824
|
+
</li>
|
|
825
|
+
|
|
826
|
+
</ul>
|
|
827
|
+
|
|
828
|
+
<p class="tag_title">Returns:</p>
|
|
829
|
+
<ul class="return">
|
|
830
|
+
|
|
831
|
+
<li>
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
<span class='type'>(<tt>NgrokAPI::Models::Empty</tt>)</span>
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
—
|
|
839
|
+
<div class='inline'>
|
|
840
|
+
<p>result from the API request</p>
|
|
841
|
+
</div>
|
|
842
|
+
|
|
843
|
+
</li>
|
|
844
|
+
|
|
845
|
+
</ul>
|
|
846
|
+
|
|
847
|
+
</div><table class="source_code">
|
|
848
|
+
<tr>
|
|
849
|
+
<td>
|
|
850
|
+
<pre class="lines">
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
72
|
|
854
|
+
73
|
|
855
|
+
74
|
|
856
|
+
75
|
|
857
|
+
76
|
|
858
|
+
77
|
|
859
|
+
78
|
|
860
|
+
79
|
|
861
|
+
80</pre>
|
|
862
|
+
</td>
|
|
863
|
+
<td>
|
|
864
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/event_subscriptions_client.rb', line 72</span>
|
|
865
|
+
|
|
866
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_delete!'>delete!</span><span class='lparen'>(</span>
|
|
867
|
+
<span class='label'>id:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
|
868
|
+
<span class='rparen'>)</span>
|
|
869
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/event_subscriptions/%{id}</span><span class='tstring_end'>'</span></span>
|
|
870
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
871
|
+
<span class='label'>id:</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span>
|
|
872
|
+
<span class='rbrace'>}</span>
|
|
873
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
874
|
+
<span class='kw'>end</span></pre>
|
|
875
|
+
</td>
|
|
876
|
+
</tr>
|
|
877
|
+
</table>
|
|
878
|
+
</div>
|
|
879
|
+
|
|
880
|
+
<div class="method_details ">
|
|
881
|
+
<h3 class="signature " id="get-instance_method">
|
|
882
|
+
|
|
883
|
+
#<strong>get</strong>(id: "") ⇒ <tt><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">NgrokAPI::Models::EventSubscription</a></span></tt>
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
</h3><div class="docstring">
|
|
890
|
+
<div class="discussion">
|
|
891
|
+
|
|
892
|
+
<p>Get an Event Subscription by ID.</p>
|
|
893
|
+
|
|
894
|
+
<p><a href="https://ngrok.com/docs/api#api-event-subscriptions-get">ngrok.com/docs/api#api-event-subscriptions-get</a></p>
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
</div>
|
|
898
|
+
</div>
|
|
899
|
+
<div class="tags">
|
|
900
|
+
<p class="tag_title">Parameters:</p>
|
|
901
|
+
<ul class="param">
|
|
902
|
+
|
|
903
|
+
<li>
|
|
904
|
+
|
|
905
|
+
<span class='name'>id</span>
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
—
|
|
915
|
+
<div class='inline'>
|
|
916
|
+
<p>a resource identifier</p>
|
|
917
|
+
</div>
|
|
918
|
+
|
|
919
|
+
</li>
|
|
920
|
+
|
|
921
|
+
</ul>
|
|
922
|
+
|
|
923
|
+
<p class="tag_title">Returns:</p>
|
|
924
|
+
<ul class="return">
|
|
925
|
+
|
|
926
|
+
<li>
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">NgrokAPI::Models::EventSubscription</a></span></tt>)</span>
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
—
|
|
934
|
+
<div class='inline'>
|
|
935
|
+
<p>result from the API request</p>
|
|
936
|
+
</div>
|
|
937
|
+
|
|
938
|
+
</li>
|
|
939
|
+
|
|
940
|
+
</ul>
|
|
941
|
+
|
|
942
|
+
</div><table class="source_code">
|
|
943
|
+
<tr>
|
|
944
|
+
<td>
|
|
945
|
+
<pre class="lines">
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
89
|
|
949
|
+
90
|
|
950
|
+
91
|
|
951
|
+
92
|
|
952
|
+
93
|
|
953
|
+
94
|
|
954
|
+
95
|
|
955
|
+
96
|
|
956
|
+
97
|
|
957
|
+
98
|
|
958
|
+
99</pre>
|
|
959
|
+
</td>
|
|
960
|
+
<td>
|
|
961
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/event_subscriptions_client.rb', line 89</span>
|
|
962
|
+
|
|
963
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span>
|
|
964
|
+
<span class='label'>id:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
|
965
|
+
<span class='rparen'>)</span>
|
|
966
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/event_subscriptions/%{id}</span><span class='tstring_end'>'</span></span>
|
|
967
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
968
|
+
<span class='label'>id:</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span>
|
|
969
|
+
<span class='rbrace'>}</span>
|
|
970
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
971
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
|
972
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">EventSubscription</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/EventSubscription.html#initialize-instance_method" title="NgrokAPI::Models::EventSubscription#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>result:</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
|
973
|
+
<span class='kw'>end</span></pre>
|
|
974
|
+
</td>
|
|
975
|
+
</tr>
|
|
976
|
+
</table>
|
|
977
|
+
</div>
|
|
978
|
+
|
|
979
|
+
<div class="method_details ">
|
|
980
|
+
<h3 class="signature " id="get!-instance_method">
|
|
981
|
+
|
|
982
|
+
#<strong>get!</strong>(id: "") ⇒ <tt><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">NgrokAPI::Models::EventSubscription</a></span></tt>
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
</h3><div class="docstring">
|
|
989
|
+
<div class="discussion">
|
|
990
|
+
|
|
991
|
+
<p>Get an Event Subscription by ID. Throws an exception if API error.</p>
|
|
992
|
+
|
|
993
|
+
<p><a href="https://ngrok.com/docs/api#api-event-subscriptions-get">ngrok.com/docs/api#api-event-subscriptions-get</a></p>
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
</div>
|
|
997
|
+
</div>
|
|
998
|
+
<div class="tags">
|
|
999
|
+
<p class="tag_title">Parameters:</p>
|
|
1000
|
+
<ul class="param">
|
|
1001
|
+
|
|
1002
|
+
<li>
|
|
1003
|
+
|
|
1004
|
+
<span class='name'>id</span>
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
—
|
|
1014
|
+
<div class='inline'>
|
|
1015
|
+
<p>a resource identifier</p>
|
|
1016
|
+
</div>
|
|
1017
|
+
|
|
1018
|
+
</li>
|
|
1019
|
+
|
|
1020
|
+
</ul>
|
|
1021
|
+
|
|
1022
|
+
<p class="tag_title">Returns:</p>
|
|
1023
|
+
<ul class="return">
|
|
1024
|
+
|
|
1025
|
+
<li>
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">NgrokAPI::Models::EventSubscription</a></span></tt>)</span>
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
—
|
|
1033
|
+
<div class='inline'>
|
|
1034
|
+
<p>result from the API request</p>
|
|
1035
|
+
</div>
|
|
1036
|
+
|
|
1037
|
+
</li>
|
|
1038
|
+
|
|
1039
|
+
</ul>
|
|
1040
|
+
|
|
1041
|
+
</div><table class="source_code">
|
|
1042
|
+
<tr>
|
|
1043
|
+
<td>
|
|
1044
|
+
<pre class="lines">
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
109
|
|
1048
|
+
110
|
|
1049
|
+
111
|
|
1050
|
+
112
|
|
1051
|
+
113
|
|
1052
|
+
114
|
|
1053
|
+
115
|
|
1054
|
+
116
|
|
1055
|
+
117
|
|
1056
|
+
118
|
|
1057
|
+
119</pre>
|
|
1058
|
+
</td>
|
|
1059
|
+
<td>
|
|
1060
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/event_subscriptions_client.rb', line 109</span>
|
|
1061
|
+
|
|
1062
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get!'>get!</span><span class='lparen'>(</span>
|
|
1063
|
+
<span class='label'>id:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
|
1064
|
+
<span class='rparen'>)</span>
|
|
1065
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/event_subscriptions/%{id}</span><span class='tstring_end'>'</span></span>
|
|
1066
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
1067
|
+
<span class='label'>id:</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span>
|
|
1068
|
+
<span class='rbrace'>}</span>
|
|
1069
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
1070
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
1071
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">EventSubscription</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/EventSubscription.html#initialize-instance_method" title="NgrokAPI::Models::EventSubscription#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>result:</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
|
1072
|
+
<span class='kw'>end</span></pre>
|
|
1073
|
+
</td>
|
|
1074
|
+
</tr>
|
|
1075
|
+
</table>
|
|
1076
|
+
</div>
|
|
1077
|
+
|
|
1078
|
+
<div class="method_details ">
|
|
1079
|
+
<h3 class="signature " id="list-instance_method">
|
|
1080
|
+
|
|
1081
|
+
#<strong>list</strong>(before_id: nil, limit: nil, url: nil) ⇒ <tt><span class='object_link'><a href="../Models/Listable.html" title="NgrokAPI::Models::Listable (class)">NgrokAPI::Models::Listable</a></span></tt>
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
</h3><div class="docstring">
|
|
1088
|
+
<div class="discussion">
|
|
1089
|
+
|
|
1090
|
+
<p>List this Account's Event Subscriptions.</p>
|
|
1091
|
+
|
|
1092
|
+
<p><a href="https://ngrok.com/docs/api#api-event-subscriptions-list">ngrok.com/docs/api#api-event-subscriptions-list</a></p>
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
</div>
|
|
1096
|
+
</div>
|
|
1097
|
+
<div class="tags">
|
|
1098
|
+
<p class="tag_title">Parameters:</p>
|
|
1099
|
+
<ul class="param">
|
|
1100
|
+
|
|
1101
|
+
<li>
|
|
1102
|
+
|
|
1103
|
+
<span class='name'>before_id</span>
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
</li>
|
|
1113
|
+
|
|
1114
|
+
<li>
|
|
1115
|
+
|
|
1116
|
+
<span class='name'>limit</span>
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
</li>
|
|
1126
|
+
|
|
1127
|
+
<li>
|
|
1128
|
+
|
|
1129
|
+
<span class='name'>url</span>
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
—
|
|
1139
|
+
<div class='inline'>
|
|
1140
|
+
<p>optional and mutually exclusive from before_id and limit</p>
|
|
1141
|
+
</div>
|
|
1142
|
+
|
|
1143
|
+
</li>
|
|
1144
|
+
|
|
1145
|
+
</ul>
|
|
1146
|
+
|
|
1147
|
+
<p class="tag_title">Returns:</p>
|
|
1148
|
+
<ul class="return">
|
|
1149
|
+
|
|
1150
|
+
<li>
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/Listable.html" title="NgrokAPI::Models::Listable (class)">NgrokAPI::Models::Listable</a></span></tt>)</span>
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
—
|
|
1158
|
+
<div class='inline'>
|
|
1159
|
+
<p>result from the API request</p>
|
|
1160
|
+
</div>
|
|
1161
|
+
|
|
1162
|
+
</li>
|
|
1163
|
+
|
|
1164
|
+
</ul>
|
|
1165
|
+
|
|
1166
|
+
</div><table class="source_code">
|
|
1167
|
+
<tr>
|
|
1168
|
+
<td>
|
|
1169
|
+
<pre class="lines">
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
130
|
|
1173
|
+
131
|
|
1174
|
+
132
|
|
1175
|
+
133
|
|
1176
|
+
134
|
|
1177
|
+
135
|
|
1178
|
+
136
|
|
1179
|
+
137
|
|
1180
|
+
138
|
|
1181
|
+
139
|
|
1182
|
+
140
|
|
1183
|
+
141
|
|
1184
|
+
142
|
|
1185
|
+
143
|
|
1186
|
+
144
|
|
1187
|
+
145
|
|
1188
|
+
146
|
|
1189
|
+
147</pre>
|
|
1190
|
+
</td>
|
|
1191
|
+
<td>
|
|
1192
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/event_subscriptions_client.rb', line 130</span>
|
|
1193
|
+
|
|
1194
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span>
|
|
1195
|
+
<span class='label'>before_id:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
1196
|
+
<span class='label'>limit:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
1197
|
+
<span class='label'>url:</span> <span class='kw'>nil</span>
|
|
1198
|
+
<span class='rparen'>)</span>
|
|
1199
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span>
|
|
1200
|
+
<span class='label'>before_id:</span> <span class='id identifier rubyid_before_id'>before_id</span><span class='comma'>,</span>
|
|
1201
|
+
<span class='label'>limit:</span> <span class='id identifier rubyid_limit'>limit</span><span class='comma'>,</span>
|
|
1202
|
+
<span class='label'>url:</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span>
|
|
1203
|
+
<span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#PATH-constant" title="NgrokAPI::Services::EventSubscriptionsClient::PATH (constant)">PATH</a></span></span>
|
|
1204
|
+
<span class='rparen'>)</span>
|
|
1205
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/Listable.html" title="NgrokAPI::Models::Listable (class)">Listable</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/Listable.html#initialize-instance_method" title="NgrokAPI::Models::Listable#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
|
1206
|
+
<span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span>
|
|
1207
|
+
<span class='label'>result:</span> <span class='id identifier rubyid_result'>result</span><span class='comma'>,</span>
|
|
1208
|
+
<span class='label'>list_property:</span> <span class='const'><span class='object_link'><a href="#LIST_PROPERTY-constant" title="NgrokAPI::Services::EventSubscriptionsClient::LIST_PROPERTY (constant)">LIST_PROPERTY</a></span></span><span class='comma'>,</span>
|
|
1209
|
+
<span class='label'>klass:</span> <span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">EventSubscription</a></span></span>
|
|
1210
|
+
<span class='rparen'>)</span>
|
|
1211
|
+
<span class='kw'>end</span></pre>
|
|
1212
|
+
</td>
|
|
1213
|
+
</tr>
|
|
1214
|
+
</table>
|
|
1215
|
+
</div>
|
|
1216
|
+
|
|
1217
|
+
<div class="method_details ">
|
|
1218
|
+
<h3 class="signature " id="update-instance_method">
|
|
1219
|
+
|
|
1220
|
+
#<strong>update</strong>(id: "", metadata: nil, description: nil, sources: nil, destination_ids: nil) ⇒ <tt><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">NgrokAPI::Models::EventSubscription</a></span></tt>
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
</h3><div class="docstring">
|
|
1227
|
+
<div class="discussion">
|
|
1228
|
+
|
|
1229
|
+
<p>Update an Event Subscription.</p>
|
|
1230
|
+
|
|
1231
|
+
<p><a href="https://ngrok.com/docs/api#api-event-subscriptions-update">ngrok.com/docs/api#api-event-subscriptions-update</a></p>
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
</div>
|
|
1235
|
+
</div>
|
|
1236
|
+
<div class="tags">
|
|
1237
|
+
<p class="tag_title">Parameters:</p>
|
|
1238
|
+
<ul class="param">
|
|
1239
|
+
|
|
1240
|
+
<li>
|
|
1241
|
+
|
|
1242
|
+
<span class='name'>id</span>
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
—
|
|
1252
|
+
<div class='inline'>
|
|
1253
|
+
<p>Unique identifier for this Event Subscription.</p>
|
|
1254
|
+
</div>
|
|
1255
|
+
|
|
1256
|
+
</li>
|
|
1257
|
+
|
|
1258
|
+
<li>
|
|
1259
|
+
|
|
1260
|
+
<span class='name'>metadata</span>
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
—
|
|
1270
|
+
<div class='inline'>
|
|
1271
|
+
<p>Arbitrary customer supplied information intended to be machine readable. Optional, max 4096 chars.</p>
|
|
1272
|
+
</div>
|
|
1273
|
+
|
|
1274
|
+
</li>
|
|
1275
|
+
|
|
1276
|
+
<li>
|
|
1277
|
+
|
|
1278
|
+
<span class='name'>description</span>
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
—
|
|
1288
|
+
<div class='inline'>
|
|
1289
|
+
<p>Arbitrary customer supplied information intended to be human readable. Optional, max 255 chars.</p>
|
|
1290
|
+
</div>
|
|
1291
|
+
|
|
1292
|
+
</li>
|
|
1293
|
+
|
|
1294
|
+
<li>
|
|
1295
|
+
|
|
1296
|
+
<span class='name'>sources</span>
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
<span class='type'>(<tt>List<EventSourceReplace></tt>)</span>
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
—
|
|
1306
|
+
<div class='inline'>
|
|
1307
|
+
<p>Sources containing the types for which this event subscription will trigger</p>
|
|
1308
|
+
</div>
|
|
1309
|
+
|
|
1310
|
+
</li>
|
|
1311
|
+
|
|
1312
|
+
<li>
|
|
1313
|
+
|
|
1314
|
+
<span class='name'>destination_ids</span>
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
<span class='type'>(<tt>List<string></tt>)</span>
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
—
|
|
1324
|
+
<div class='inline'>
|
|
1325
|
+
<p>A list of Event Destination IDs which should be used for this Event Stream. Event Streams are required to have at least one Event Destination.</p>
|
|
1326
|
+
</div>
|
|
1327
|
+
|
|
1328
|
+
</li>
|
|
1329
|
+
|
|
1330
|
+
</ul>
|
|
1331
|
+
|
|
1332
|
+
<p class="tag_title">Returns:</p>
|
|
1333
|
+
<ul class="return">
|
|
1334
|
+
|
|
1335
|
+
<li>
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">NgrokAPI::Models::EventSubscription</a></span></tt>)</span>
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
—
|
|
1343
|
+
<div class='inline'>
|
|
1344
|
+
<p>result from the API request</p>
|
|
1345
|
+
</div>
|
|
1346
|
+
|
|
1347
|
+
</li>
|
|
1348
|
+
|
|
1349
|
+
</ul>
|
|
1350
|
+
|
|
1351
|
+
</div><table class="source_code">
|
|
1352
|
+
<tr>
|
|
1353
|
+
<td>
|
|
1354
|
+
<pre class="lines">
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
160
|
|
1358
|
+
161
|
|
1359
|
+
162
|
|
1360
|
+
163
|
|
1361
|
+
164
|
|
1362
|
+
165
|
|
1363
|
+
166
|
|
1364
|
+
167
|
|
1365
|
+
168
|
|
1366
|
+
169
|
|
1367
|
+
170
|
|
1368
|
+
171
|
|
1369
|
+
172
|
|
1370
|
+
173
|
|
1371
|
+
174
|
|
1372
|
+
175
|
|
1373
|
+
176
|
|
1374
|
+
177
|
|
1375
|
+
178</pre>
|
|
1376
|
+
</td>
|
|
1377
|
+
<td>
|
|
1378
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/event_subscriptions_client.rb', line 160</span>
|
|
1379
|
+
|
|
1380
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span>
|
|
1381
|
+
<span class='label'>id:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
|
1382
|
+
<span class='label'>metadata:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
1383
|
+
<span class='label'>description:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
1384
|
+
<span class='label'>sources:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
1385
|
+
<span class='label'>destination_ids:</span> <span class='kw'>nil</span>
|
|
1386
|
+
<span class='rparen'>)</span>
|
|
1387
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/event_subscriptions/%{id}</span><span class='tstring_end'>'</span></span>
|
|
1388
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
1389
|
+
<span class='label'>id:</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span>
|
|
1390
|
+
<span class='rbrace'>}</span>
|
|
1391
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
1392
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:metadata</span><span class='rbracket'>]</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>
|
|
1393
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:description</span><span class='rbracket'>]</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>
|
|
1394
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:sources</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_sources'>sources</span> <span class='kw'>if</span> <span class='id identifier rubyid_sources'>sources</span>
|
|
1395
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:destination_ids</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_destination_ids'>destination_ids</span> <span class='kw'>if</span> <span class='id identifier rubyid_destination_ids'>destination_ids</span>
|
|
1396
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_patch'>patch</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
|
1397
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">EventSubscription</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/EventSubscription.html#initialize-instance_method" title="NgrokAPI::Models::EventSubscription#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>result:</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
|
1398
|
+
<span class='kw'>end</span></pre>
|
|
1399
|
+
</td>
|
|
1400
|
+
</tr>
|
|
1401
|
+
</table>
|
|
1402
|
+
</div>
|
|
1403
|
+
|
|
1404
|
+
<div class="method_details ">
|
|
1405
|
+
<h3 class="signature " id="update!-instance_method">
|
|
1406
|
+
|
|
1407
|
+
#<strong>update!</strong>(id: "", metadata: nil, description: nil, sources: nil, destination_ids: nil) ⇒ <tt><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">NgrokAPI::Models::EventSubscription</a></span></tt>
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
</h3><div class="docstring">
|
|
1414
|
+
<div class="discussion">
|
|
1415
|
+
|
|
1416
|
+
<p>Update an Event Subscription. Throws an exception if API error.</p>
|
|
1417
|
+
|
|
1418
|
+
<p><a href="https://ngrok.com/docs/api#api-event-subscriptions-update">ngrok.com/docs/api#api-event-subscriptions-update</a></p>
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
</div>
|
|
1422
|
+
</div>
|
|
1423
|
+
<div class="tags">
|
|
1424
|
+
<p class="tag_title">Parameters:</p>
|
|
1425
|
+
<ul class="param">
|
|
1426
|
+
|
|
1427
|
+
<li>
|
|
1428
|
+
|
|
1429
|
+
<span class='name'>id</span>
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
—
|
|
1439
|
+
<div class='inline'>
|
|
1440
|
+
<p>Unique identifier for this Event Subscription.</p>
|
|
1441
|
+
</div>
|
|
1442
|
+
|
|
1443
|
+
</li>
|
|
1444
|
+
|
|
1445
|
+
<li>
|
|
1446
|
+
|
|
1447
|
+
<span class='name'>metadata</span>
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
—
|
|
1457
|
+
<div class='inline'>
|
|
1458
|
+
<p>Arbitrary customer supplied information intended to be machine readable. Optional, max 4096 chars.</p>
|
|
1459
|
+
</div>
|
|
1460
|
+
|
|
1461
|
+
</li>
|
|
1462
|
+
|
|
1463
|
+
<li>
|
|
1464
|
+
|
|
1465
|
+
<span class='name'>description</span>
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
—
|
|
1475
|
+
<div class='inline'>
|
|
1476
|
+
<p>Arbitrary customer supplied information intended to be human readable. Optional, max 255 chars.</p>
|
|
1477
|
+
</div>
|
|
1478
|
+
|
|
1479
|
+
</li>
|
|
1480
|
+
|
|
1481
|
+
<li>
|
|
1482
|
+
|
|
1483
|
+
<span class='name'>sources</span>
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
<span class='type'>(<tt>List<EventSourceReplace></tt>)</span>
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
—
|
|
1493
|
+
<div class='inline'>
|
|
1494
|
+
<p>Sources containing the types for which this event subscription will trigger</p>
|
|
1495
|
+
</div>
|
|
1496
|
+
|
|
1497
|
+
</li>
|
|
1498
|
+
|
|
1499
|
+
<li>
|
|
1500
|
+
|
|
1501
|
+
<span class='name'>destination_ids</span>
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
<span class='type'>(<tt>List<string></tt>)</span>
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1508
|
+
|
|
1509
|
+
|
|
1510
|
+
—
|
|
1511
|
+
<div class='inline'>
|
|
1512
|
+
<p>A list of Event Destination IDs which should be used for this Event Stream. Event Streams are required to have at least one Event Destination.</p>
|
|
1513
|
+
</div>
|
|
1514
|
+
|
|
1515
|
+
</li>
|
|
1516
|
+
|
|
1517
|
+
</ul>
|
|
1518
|
+
|
|
1519
|
+
<p class="tag_title">Returns:</p>
|
|
1520
|
+
<ul class="return">
|
|
1521
|
+
|
|
1522
|
+
<li>
|
|
1523
|
+
|
|
1524
|
+
|
|
1525
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">NgrokAPI::Models::EventSubscription</a></span></tt>)</span>
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
|
|
1529
|
+
—
|
|
1530
|
+
<div class='inline'>
|
|
1531
|
+
<p>result from the API request</p>
|
|
1532
|
+
</div>
|
|
1533
|
+
|
|
1534
|
+
</li>
|
|
1535
|
+
|
|
1536
|
+
</ul>
|
|
1537
|
+
|
|
1538
|
+
</div><table class="source_code">
|
|
1539
|
+
<tr>
|
|
1540
|
+
<td>
|
|
1541
|
+
<pre class="lines">
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
192
|
|
1545
|
+
193
|
|
1546
|
+
194
|
|
1547
|
+
195
|
|
1548
|
+
196
|
|
1549
|
+
197
|
|
1550
|
+
198
|
|
1551
|
+
199
|
|
1552
|
+
200
|
|
1553
|
+
201
|
|
1554
|
+
202
|
|
1555
|
+
203
|
|
1556
|
+
204
|
|
1557
|
+
205
|
|
1558
|
+
206
|
|
1559
|
+
207
|
|
1560
|
+
208
|
|
1561
|
+
209
|
|
1562
|
+
210</pre>
|
|
1563
|
+
</td>
|
|
1564
|
+
<td>
|
|
1565
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/event_subscriptions_client.rb', line 192</span>
|
|
1566
|
+
|
|
1567
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_update!'>update!</span><span class='lparen'>(</span>
|
|
1568
|
+
<span class='label'>id:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
|
1569
|
+
<span class='label'>metadata:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
1570
|
+
<span class='label'>description:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
1571
|
+
<span class='label'>sources:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
1572
|
+
<span class='label'>destination_ids:</span> <span class='kw'>nil</span>
|
|
1573
|
+
<span class='rparen'>)</span>
|
|
1574
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/event_subscriptions/%{id}</span><span class='tstring_end'>'</span></span>
|
|
1575
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
1576
|
+
<span class='label'>id:</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span>
|
|
1577
|
+
<span class='rbrace'>}</span>
|
|
1578
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
1579
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:metadata</span><span class='rbracket'>]</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>
|
|
1580
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:description</span><span class='rbracket'>]</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>
|
|
1581
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:sources</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_sources'>sources</span> <span class='kw'>if</span> <span class='id identifier rubyid_sources'>sources</span>
|
|
1582
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:destination_ids</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_destination_ids'>destination_ids</span> <span class='kw'>if</span> <span class='id identifier rubyid_destination_ids'>destination_ids</span>
|
|
1583
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_patch'>patch</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
1584
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/EventSubscription.html" title="NgrokAPI::Models::EventSubscription (class)">EventSubscription</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/EventSubscription.html#initialize-instance_method" title="NgrokAPI::Models::EventSubscription#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>result:</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
|
1585
|
+
<span class='kw'>end</span></pre>
|
|
1586
|
+
</td>
|
|
1587
|
+
</tr>
|
|
1588
|
+
</table>
|
|
1589
|
+
</div>
|
|
1590
|
+
|
|
1591
|
+
</div>
|
|
1592
|
+
|
|
1593
|
+
</div>
|
|
1594
|
+
|
|
1595
|
+
<div id="footer">
|
|
1596
|
+
Generated on Mon Oct 4 23:24:18 2021 by
|
|
1597
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1598
|
+
0.9.26 (ruby-3.0.1).
|
|
1599
|
+
</div>
|
|
1600
|
+
|
|
1601
|
+
</div>
|
|
1602
|
+
</body>
|
|
1603
|
+
</html>
|