ngrok-api 0.18.0 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +7 -7
- data/.gitignore +15 -13
- data/.rubocop.yml +30 -28
- data/.rubocop_airbnb.yml +4 -2
- data/.simplecov +3 -1
- data/CHANGELOG.md +8 -0
- data/CODE_OF_CONDUCT.md +45 -0
- data/Gemfile +34 -32
- data/Guardfile +18 -16
- data/README.md +94 -61
- data/Rakefile +9 -7
- data/doc/NgrokAPI/Client.html +229 -125
- data/doc/NgrokAPI/Error.html +12 -12
- data/doc/NgrokAPI/Errors/NotFoundError.html +12 -12
- data/doc/NgrokAPI/Errors.html +4 -4
- data/doc/NgrokAPI/HttpClient.html +208 -65
- data/doc/NgrokAPI/Models/APIKey.html +220 -90
- data/doc/NgrokAPI/Models/AWSAuth.html +113 -61
- data/doc/NgrokAPI/Models/AWSCredentials.html +120 -68
- data/doc/NgrokAPI/Models/AWSRole.html +101 -49
- data/doc/NgrokAPI/Models/AbuseReport.html +165 -109
- data/doc/NgrokAPI/Models/AbuseReportHostname.html +113 -61
- data/doc/NgrokAPI/Models/AgentIngress.html +365 -155
- data/doc/NgrokAPI/Models/AgentIngressCertJob.html +817 -0
- data/doc/NgrokAPI/Models/AgentIngressCertPolicy.html +669 -0
- data/doc/NgrokAPI/Models/AgentIngressCertStatus.html +669 -0
- data/doc/NgrokAPI/Models/ApplicationSession.html +1414 -0
- data/doc/NgrokAPI/Models/ApplicationUser.html +1336 -0
- data/doc/NgrokAPI/Models/BrowserSession.html +743 -0
- data/doc/NgrokAPI/Models/CertificateAuthority.html +223 -167
- data/doc/NgrokAPI/Models/Credential.html +225 -95
- data/doc/NgrokAPI/Models/Endpoint.html +215 -159
- data/doc/NgrokAPI/Models/EndpointBackend.html +120 -68
- data/doc/NgrokAPI/Models/EndpointBackendMutate.html +120 -68
- data/doc/NgrokAPI/Models/EndpointCircuitBreaker.html +147 -95
- data/doc/NgrokAPI/Models/EndpointCompression.html +108 -56
- data/doc/NgrokAPI/Models/EndpointIPPolicy.html +120 -68
- data/doc/NgrokAPI/Models/EndpointIPPolicyMutate.html +120 -68
- data/doc/NgrokAPI/Models/EndpointMutualTLS.html +120 -68
- data/doc/NgrokAPI/Models/EndpointMutualTLSMutate.html +120 -68
- data/doc/NgrokAPI/Models/EndpointOAuth.html +166 -114
- data/doc/NgrokAPI/Models/EndpointOAuthAmazon.html +891 -0
- data/doc/NgrokAPI/Models/EndpointOAuthFacebook.html +149 -97
- data/doc/NgrokAPI/Models/EndpointOAuthGitHub.html +166 -114
- data/doc/NgrokAPI/Models/EndpointOAuthGitLab.html +891 -0
- data/doc/NgrokAPI/Models/EndpointOAuthGoogle.html +149 -97
- data/doc/NgrokAPI/Models/EndpointOAuthLinkedIn.html +891 -0
- data/doc/NgrokAPI/Models/EndpointOAuthMicrosoft.html +149 -97
- data/doc/NgrokAPI/Models/EndpointOAuthProvider.html +410 -62
- data/doc/NgrokAPI/Models/EndpointOAuthTwitch.html +891 -0
- data/doc/NgrokAPI/Models/EndpointOIDC.html +183 -131
- data/doc/NgrokAPI/Models/EndpointRequestHeaders.html +125 -73
- data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +125 -73
- data/doc/NgrokAPI/Models/EndpointSAML.html +244 -176
- data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +197 -141
- data/doc/NgrokAPI/Models/EndpointTLSTermination.html +125 -73
- data/doc/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +120 -68
- data/doc/NgrokAPI/Models/EndpointWebhookValidation.html +125 -73
- data/doc/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +108 -56
- data/doc/NgrokAPI/Models/EventDestination.html +178 -122
- data/doc/NgrokAPI/Models/EventSource.html +136 -80
- data/doc/NgrokAPI/Models/EventSourceList.html +112 -56
- data/doc/NgrokAPI/Models/EventSourceReplace.html +125 -73
- data/doc/NgrokAPI/Models/EventSubscription.html +178 -122
- data/doc/NgrokAPI/Models/EventTarget.html +206 -80
- data/doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html +120 -68
- data/doc/NgrokAPI/Models/EventTargetDatadog.html +817 -0
- data/doc/NgrokAPI/Models/EventTargetFirehose.html +120 -68
- data/doc/NgrokAPI/Models/EventTargetKinesis.html +113 -61
- data/doc/NgrokAPI/Models/FailoverBackend.html +186 -130
- data/doc/NgrokAPI/Models/HTTPResponseBackend.html +202 -146
- data/doc/NgrokAPI/Models/HTTPSEdge.html +207 -151
- data/doc/NgrokAPI/Models/HTTPSEdgeRoute.html +272 -216
- data/doc/NgrokAPI/Models/IPPolicy.html +178 -122
- data/doc/NgrokAPI/Models/IPPolicyRule.html +201 -145
- data/doc/NgrokAPI/Models/IPRestriction.html +190 -134
- data/doc/NgrokAPI/Models/IdentityProvider.html +669 -0
- data/doc/NgrokAPI/Models/Listable.html +130 -130
- data/doc/NgrokAPI/Models/Location.html +817 -0
- data/doc/NgrokAPI/Models/Ref.html +119 -63
- data/doc/NgrokAPI/Models/ReservedAddr.html +189 -133
- data/doc/NgrokAPI/Models/ReservedDomain.html +231 -175
- data/doc/NgrokAPI/Models/ReservedDomainCertJob.html +130 -78
- data/doc/NgrokAPI/Models/ReservedDomainCertPolicy.html +120 -68
- data/doc/NgrokAPI/Models/ReservedDomainCertStatus.html +120 -68
- data/doc/NgrokAPI/Models/SSHCertificateAuthority.html +197 -141
- data/doc/NgrokAPI/Models/SSHCredential.html +232 -102
- data/doc/NgrokAPI/Models/SSHHostCertificate.html +226 -170
- data/doc/NgrokAPI/Models/SSHUserCertificate.html +240 -184
- data/doc/NgrokAPI/Models/TCPEdge.html +204 -148
- data/doc/NgrokAPI/Models/TLSCertificate.html +279 -223
- data/doc/NgrokAPI/Models/TLSCertificateSANs.html +120 -68
- data/doc/NgrokAPI/Models/TLSEdge.html +216 -160
- data/doc/NgrokAPI/Models/Tunnel.html +205 -149
- data/doc/NgrokAPI/Models/TunnelGroupBackend.html +191 -135
- data/doc/NgrokAPI/Models/TunnelSession.html +193 -137
- data/doc/NgrokAPI/Models/UserAgent.html +965 -0
- data/doc/NgrokAPI/Models/WeightedBackend.html +186 -130
- data/doc/NgrokAPI/Models.html +6 -6
- data/doc/NgrokAPI/PagedIterator.html +53 -53
- data/doc/NgrokAPI/Services/APIKeysClient.html +302 -127
- data/doc/NgrokAPI/Services/AbuseReportsClient.html +176 -39
- data/doc/NgrokAPI/Services/AgentIngressesClient.html +366 -133
- data/doc/NgrokAPI/Services/ApplicationSessionsClient.html +1131 -0
- data/doc/NgrokAPI/Services/ApplicationUsersClient.html +1131 -0
- data/doc/NgrokAPI/Services/CertificateAuthoritiesClient.html +276 -123
- data/doc/NgrokAPI/Services/CredentialsClient.html +328 -133
- data/doc/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/EdgesHTTPSClient.html +319 -129
- data/doc/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +528 -113
- data/doc/NgrokAPI/Services/EdgesTCPClient.html +319 -129
- data/doc/NgrokAPI/Services/EdgesTLSClient.html +353 -133
- data/doc/NgrokAPI/Services/EndpointsClient.html +22 -26
- data/doc/NgrokAPI/Services/EventDestinationsClient.html +302 -127
- data/doc/NgrokAPI/Services/EventSourcesClient.html +244 -105
- data/doc/NgrokAPI/Services/EventSubscriptionsClient.html +302 -127
- data/doc/NgrokAPI/Services/FailoverBackendsClient.html +282 -127
- data/doc/NgrokAPI/Services/HTTPResponseBackendsClient.html +322 -129
- data/doc/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/IPPoliciesClient.html +258 -123
- data/doc/NgrokAPI/Services/IPPolicyRulesClient.html +317 -130
- data/doc/NgrokAPI/Services/IPRestrictionsClient.html +318 -127
- data/doc/NgrokAPI/Services/ReservedAddrsClient.html +278 -123
- data/doc/NgrokAPI/Services/ReservedDomainsClient.html +388 -171
- data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +318 -123
- data/doc/NgrokAPI/Services/SSHCredentialsClient.html +345 -132
- data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +354 -123
- data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +397 -126
- data/doc/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/TLSCertificatesClient.html +296 -125
- data/doc/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +22 -26
- data/doc/NgrokAPI/Services/TunnelGroupBackendsClient.html +282 -127
- data/doc/NgrokAPI/Services/TunnelSessionsClient.html +22 -26
- data/doc/NgrokAPI/Services/TunnelsClient.html +22 -26
- data/doc/NgrokAPI/Services/WeightedBackendsClient.html +285 -130
- data/doc/NgrokAPI/Services.html +6 -6
- data/doc/NgrokAPI.html +6 -6
- data/doc/_index.html +139 -8
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +55 -51
- data/doc/frames.html +1 -1
- data/doc/index.html +55 -51
- data/doc/method_list.html +4383 -2175
- data/doc/top-level-namespace.html +4 -4
- data/docs/NgrokAPI/Client.html +229 -125
- data/docs/NgrokAPI/Error.html +12 -12
- data/docs/NgrokAPI/Errors/NotFoundError.html +12 -12
- data/docs/NgrokAPI/Errors.html +4 -4
- data/docs/NgrokAPI/HttpClient.html +208 -65
- data/docs/NgrokAPI/Models/APIKey.html +220 -90
- data/docs/NgrokAPI/Models/AWSAuth.html +113 -61
- data/docs/NgrokAPI/Models/AWSCredentials.html +120 -68
- data/docs/NgrokAPI/Models/AWSRole.html +101 -49
- data/docs/NgrokAPI/Models/AbuseReport.html +165 -109
- data/docs/NgrokAPI/Models/AbuseReportHostname.html +113 -61
- data/docs/NgrokAPI/Models/AgentIngress.html +365 -155
- data/docs/NgrokAPI/Models/AgentIngressCertJob.html +817 -0
- data/docs/NgrokAPI/Models/AgentIngressCertPolicy.html +669 -0
- data/docs/NgrokAPI/Models/AgentIngressCertStatus.html +669 -0
- data/docs/NgrokAPI/Models/ApplicationSession.html +1414 -0
- data/docs/NgrokAPI/Models/ApplicationUser.html +1336 -0
- data/docs/NgrokAPI/Models/BrowserSession.html +743 -0
- data/docs/NgrokAPI/Models/CertificateAuthority.html +223 -167
- data/docs/NgrokAPI/Models/Credential.html +225 -95
- data/docs/NgrokAPI/Models/Endpoint.html +215 -159
- data/docs/NgrokAPI/Models/EndpointBackend.html +120 -68
- data/docs/NgrokAPI/Models/EndpointBackendMutate.html +120 -68
- data/docs/NgrokAPI/Models/EndpointCircuitBreaker.html +147 -95
- data/docs/NgrokAPI/Models/EndpointCompression.html +108 -56
- data/docs/NgrokAPI/Models/EndpointIPPolicy.html +120 -68
- data/docs/NgrokAPI/Models/EndpointIPPolicyMutate.html +120 -68
- data/docs/NgrokAPI/Models/EndpointMutualTLS.html +120 -68
- data/docs/NgrokAPI/Models/EndpointMutualTLSMutate.html +120 -68
- data/docs/NgrokAPI/Models/EndpointOAuth.html +166 -114
- data/docs/NgrokAPI/Models/EndpointOAuthAmazon.html +891 -0
- data/docs/NgrokAPI/Models/EndpointOAuthFacebook.html +149 -97
- data/docs/NgrokAPI/Models/EndpointOAuthGitHub.html +166 -114
- data/docs/NgrokAPI/Models/EndpointOAuthGitLab.html +891 -0
- data/docs/NgrokAPI/Models/EndpointOAuthGoogle.html +149 -97
- data/docs/NgrokAPI/Models/EndpointOAuthLinkedIn.html +891 -0
- data/docs/NgrokAPI/Models/EndpointOAuthMicrosoft.html +149 -97
- data/docs/NgrokAPI/Models/EndpointOAuthProvider.html +410 -62
- data/docs/NgrokAPI/Models/EndpointOAuthTwitch.html +891 -0
- data/docs/NgrokAPI/Models/EndpointOIDC.html +183 -131
- data/docs/NgrokAPI/Models/EndpointRequestHeaders.html +125 -73
- data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +125 -73
- data/docs/NgrokAPI/Models/EndpointSAML.html +244 -176
- data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +197 -141
- data/docs/NgrokAPI/Models/EndpointTLSTermination.html +125 -73
- data/docs/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +120 -68
- data/docs/NgrokAPI/Models/EndpointWebhookValidation.html +125 -73
- data/docs/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +108 -56
- data/docs/NgrokAPI/Models/EventDestination.html +178 -122
- data/docs/NgrokAPI/Models/EventSource.html +136 -80
- data/docs/NgrokAPI/Models/EventSourceList.html +112 -56
- data/docs/NgrokAPI/Models/EventSourceReplace.html +125 -73
- data/docs/NgrokAPI/Models/EventSubscription.html +178 -122
- data/docs/NgrokAPI/Models/EventTarget.html +206 -80
- data/docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html +120 -68
- data/docs/NgrokAPI/Models/EventTargetDatadog.html +817 -0
- data/docs/NgrokAPI/Models/EventTargetFirehose.html +120 -68
- data/docs/NgrokAPI/Models/EventTargetKinesis.html +113 -61
- data/docs/NgrokAPI/Models/FailoverBackend.html +186 -130
- data/docs/NgrokAPI/Models/HTTPResponseBackend.html +202 -146
- data/docs/NgrokAPI/Models/HTTPSEdge.html +207 -151
- data/docs/NgrokAPI/Models/HTTPSEdgeRoute.html +272 -216
- data/docs/NgrokAPI/Models/IPPolicy.html +178 -122
- data/docs/NgrokAPI/Models/IPPolicyRule.html +201 -145
- data/docs/NgrokAPI/Models/IPRestriction.html +190 -134
- data/docs/NgrokAPI/Models/IdentityProvider.html +669 -0
- data/docs/NgrokAPI/Models/Listable.html +130 -130
- data/docs/NgrokAPI/Models/Location.html +817 -0
- data/docs/NgrokAPI/Models/Ref.html +119 -63
- data/docs/NgrokAPI/Models/ReservedAddr.html +189 -133
- data/docs/NgrokAPI/Models/ReservedDomain.html +231 -175
- data/docs/NgrokAPI/Models/ReservedDomainCertJob.html +130 -78
- data/docs/NgrokAPI/Models/ReservedDomainCertPolicy.html +120 -68
- data/docs/NgrokAPI/Models/ReservedDomainCertStatus.html +120 -68
- data/docs/NgrokAPI/Models/SSHCertificateAuthority.html +197 -141
- data/docs/NgrokAPI/Models/SSHCredential.html +232 -102
- data/docs/NgrokAPI/Models/SSHHostCertificate.html +226 -170
- data/docs/NgrokAPI/Models/SSHUserCertificate.html +240 -184
- data/docs/NgrokAPI/Models/TCPEdge.html +204 -148
- data/docs/NgrokAPI/Models/TLSCertificate.html +279 -223
- data/docs/NgrokAPI/Models/TLSCertificateSANs.html +120 -68
- data/docs/NgrokAPI/Models/TLSEdge.html +216 -160
- data/docs/NgrokAPI/Models/Tunnel.html +205 -149
- data/docs/NgrokAPI/Models/TunnelGroupBackend.html +191 -135
- data/docs/NgrokAPI/Models/TunnelSession.html +193 -137
- data/docs/NgrokAPI/Models/UserAgent.html +965 -0
- data/docs/NgrokAPI/Models/WeightedBackend.html +186 -130
- data/docs/NgrokAPI/Models.html +6 -6
- data/docs/NgrokAPI/PagedIterator.html +53 -53
- data/docs/NgrokAPI/Services/APIKeysClient.html +302 -127
- data/docs/NgrokAPI/Services/AbuseReportsClient.html +176 -39
- data/docs/NgrokAPI/Services/AgentIngressesClient.html +366 -133
- data/docs/NgrokAPI/Services/ApplicationSessionsClient.html +1131 -0
- data/docs/NgrokAPI/Services/ApplicationUsersClient.html +1131 -0
- data/docs/NgrokAPI/Services/CertificateAuthoritiesClient.html +276 -123
- data/docs/NgrokAPI/Services/CredentialsClient.html +328 -133
- data/docs/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/EdgesHTTPSClient.html +319 -129
- data/docs/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +528 -113
- data/docs/NgrokAPI/Services/EdgesTCPClient.html +319 -129
- data/docs/NgrokAPI/Services/EdgesTLSClient.html +353 -133
- data/docs/NgrokAPI/Services/EndpointsClient.html +22 -26
- data/docs/NgrokAPI/Services/EventDestinationsClient.html +302 -127
- data/docs/NgrokAPI/Services/EventSourcesClient.html +244 -105
- data/docs/NgrokAPI/Services/EventSubscriptionsClient.html +302 -127
- data/docs/NgrokAPI/Services/FailoverBackendsClient.html +282 -127
- data/docs/NgrokAPI/Services/HTTPResponseBackendsClient.html +322 -129
- data/docs/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/IPPoliciesClient.html +258 -123
- data/docs/NgrokAPI/Services/IPPolicyRulesClient.html +317 -130
- data/docs/NgrokAPI/Services/IPRestrictionsClient.html +318 -127
- data/docs/NgrokAPI/Services/ReservedAddrsClient.html +278 -123
- data/docs/NgrokAPI/Services/ReservedDomainsClient.html +388 -171
- data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +318 -123
- data/docs/NgrokAPI/Services/SSHCredentialsClient.html +345 -132
- data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +354 -123
- data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +397 -126
- data/docs/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/TLSCertificatesClient.html +296 -125
- data/docs/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +22 -26
- data/docs/NgrokAPI/Services/TunnelGroupBackendsClient.html +282 -127
- data/docs/NgrokAPI/Services/TunnelSessionsClient.html +22 -26
- data/docs/NgrokAPI/Services/TunnelsClient.html +22 -26
- data/docs/NgrokAPI/Services/WeightedBackendsClient.html +285 -130
- data/docs/NgrokAPI/Services.html +6 -6
- data/docs/NgrokAPI.html +6 -6
- data/docs/_index.html +139 -8
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +55 -51
- data/docs/frames.html +1 -1
- data/docs/index.html +55 -51
- data/docs/method_list.html +4383 -2175
- data/docs/top-level-namespace.html +4 -4
- data/lib/ngrokapi/client.rb +21 -11
- data/lib/ngrokapi/error.rb +2 -0
- data/lib/ngrokapi/errors/not_found_error.rb +2 -0
- data/lib/ngrokapi/http_client.rb +153 -131
- data/lib/ngrokapi/models/abuse_report.rb +22 -12
- data/lib/ngrokapi/models/abuse_report_hostname.rb +13 -7
- data/lib/ngrokapi/models/agent_ingress.rb +33 -16
- data/lib/ngrokapi/models/agent_ingress_cert_job.rb +37 -0
- data/lib/ngrokapi/models/agent_ingress_cert_policy.rb +33 -0
- data/lib/ngrokapi/models/agent_ingress_cert_status.rb +33 -0
- data/lib/ngrokapi/models/api_key.rb +24 -12
- data/lib/ngrokapi/models/application_session.rb +67 -0
- data/lib/ngrokapi/models/application_user.rb +63 -0
- data/lib/ngrokapi/models/aws_auth.rb +13 -7
- data/lib/ngrokapi/models/aws_credentials.rb +13 -7
- data/lib/ngrokapi/models/aws_role.rb +12 -6
- data/lib/ngrokapi/models/browser_session.rb +35 -0
- data/lib/ngrokapi/models/certificate_authority.rb +26 -16
- data/lib/ngrokapi/models/credential.rb +25 -13
- data/lib/ngrokapi/models/endpoint.rb +28 -18
- data/lib/ngrokapi/models/endpoint_backend.rb +13 -7
- data/lib/ngrokapi/models/endpoint_backend_mutate.rb +13 -7
- data/lib/ngrokapi/models/endpoint_circuit_breaker.rb +17 -11
- data/lib/ngrokapi/models/endpoint_compression.rb +12 -6
- data/lib/ngrokapi/models/endpoint_ip_policy.rb +13 -7
- data/lib/ngrokapi/models/endpoint_ip_policy_mutate.rb +13 -7
- data/lib/ngrokapi/models/endpoint_mutual_tls.rb +13 -7
- data/lib/ngrokapi/models/endpoint_mutual_tls_mutate.rb +13 -7
- data/lib/ngrokapi/models/endpoint_o_auth.rb +18 -12
- data/lib/ngrokapi/models/endpoint_o_auth_amazon.rb +39 -0
- data/lib/ngrokapi/models/endpoint_o_auth_facebook.rb +16 -10
- data/lib/ngrokapi/models/endpoint_o_auth_git_hub.rb +18 -12
- data/lib/ngrokapi/models/endpoint_o_auth_git_lab.rb +39 -0
- data/lib/ngrokapi/models/endpoint_o_auth_google.rb +16 -10
- data/lib/ngrokapi/models/endpoint_o_auth_linked_in.rb +39 -0
- data/lib/ngrokapi/models/endpoint_o_auth_microsoft.rb +16 -10
- data/lib/ngrokapi/models/endpoint_o_auth_provider.rb +24 -10
- data/lib/ngrokapi/models/endpoint_o_auth_twitch.rb +39 -0
- data/lib/ngrokapi/models/endpoint_oidc.rb +20 -14
- data/lib/ngrokapi/models/endpoint_request_headers.rb +14 -8
- data/lib/ngrokapi/models/endpoint_response_headers.rb +14 -8
- data/lib/ngrokapi/models/endpoint_saml.rb +37 -21
- data/lib/ngrokapi/models/endpoint_saml_mutate.rb +26 -16
- data/lib/ngrokapi/models/endpoint_tls_termination.rb +14 -8
- data/lib/ngrokapi/models/endpoint_tls_termination_at_edge.rb +13 -7
- data/lib/ngrokapi/models/endpoint_webhook_validation.rb +14 -8
- data/lib/ngrokapi/models/endpoint_websocket_tcp_converter.rb +12 -6
- data/lib/ngrokapi/models/event_destination.rb +22 -12
- data/lib/ngrokapi/models/event_source.rb +19 -9
- data/lib/ngrokapi/models/event_source_list.rb +17 -7
- data/lib/ngrokapi/models/event_source_replace.rb +14 -8
- data/lib/ngrokapi/models/event_subscription.rb +22 -12
- data/lib/ngrokapi/models/event_target.rb +18 -10
- data/lib/ngrokapi/models/event_target_cloudwatch_logs.rb +13 -7
- data/lib/ngrokapi/models/event_target_datadog.rb +37 -0
- data/lib/ngrokapi/models/event_target_firehose.rb +13 -7
- data/lib/ngrokapi/models/event_target_kinesis.rb +13 -7
- data/lib/ngrokapi/models/failover_backend.rb +22 -12
- data/lib/ngrokapi/models/http_response_backend.rb +23 -13
- data/lib/ngrokapi/models/https_edge.rb +24 -14
- data/lib/ngrokapi/models/https_edge_route.rb +34 -24
- data/lib/ngrokapi/models/identity_provider.rb +33 -0
- data/lib/ngrokapi/models/ip_policy.rb +21 -11
- data/lib/ngrokapi/models/ip_policy_rule.rb +23 -13
- data/lib/ngrokapi/models/ip_restriction.rb +23 -13
- data/lib/ngrokapi/models/listable.rb +55 -53
- data/lib/ngrokapi/models/location.rb +37 -0
- data/lib/ngrokapi/models/ref.rb +17 -7
- data/lib/ngrokapi/models/reserved_addr.rb +23 -13
- data/lib/ngrokapi/models/reserved_domain.rb +29 -19
- data/lib/ngrokapi/models/reserved_domain_cert_job.rb +15 -9
- data/lib/ngrokapi/models/reserved_domain_cert_policy.rb +13 -7
- data/lib/ngrokapi/models/reserved_domain_cert_status.rb +13 -7
- data/lib/ngrokapi/models/ssh_certificate_authority.rb +22 -12
- data/lib/ngrokapi/models/ssh_credential.rb +25 -13
- data/lib/ngrokapi/models/ssh_host_certificate.rb +27 -17
- data/lib/ngrokapi/models/ssh_user_certificate.rb +29 -19
- data/lib/ngrokapi/models/tcp_edge.rb +23 -13
- data/lib/ngrokapi/models/tls_certificate.rb +36 -26
- data/lib/ngrokapi/models/tls_certificate_sa_ns.rb +13 -7
- data/lib/ngrokapi/models/tls_edge.rb +25 -15
- data/lib/ngrokapi/models/tunnel.rb +26 -16
- data/lib/ngrokapi/models/tunnel_group_backend.rb +23 -13
- data/lib/ngrokapi/models/tunnel_session.rb +25 -15
- data/lib/ngrokapi/models/user_agent.rb +41 -0
- data/lib/ngrokapi/models/weighted_backend.rb +22 -12
- data/lib/ngrokapi/paged_iterator.rb +44 -42
- data/lib/ngrokapi/services/abuse_reports_client.rb +27 -3
- data/lib/ngrokapi/services/agent_ingresses_client.rb +45 -14
- data/lib/ngrokapi/services/api_keys_client.rb +37 -12
- data/lib/ngrokapi/services/application_sessions_client.rb +141 -0
- data/lib/ngrokapi/services/application_users_client.rb +141 -0
- data/lib/ngrokapi/services/certificate_authorities_client.rb +33 -11
- data/lib/ngrokapi/services/credentials_client.rb +45 -16
- data/lib/ngrokapi/services/edge_route_backend_module_client.rb +8 -8
- data/lib/ngrokapi/services/edge_route_circuit_breaker_module_client.rb +8 -8
- data/lib/ngrokapi/services/edge_route_compression_module_client.rb +8 -8
- data/lib/ngrokapi/services/edge_route_ip_restriction_module_client.rb +8 -8
- data/lib/ngrokapi/services/edge_route_o_auth_module_client.rb +8 -8
- data/lib/ngrokapi/services/edge_route_oidc_module_client.rb +8 -8
- data/lib/ngrokapi/services/edge_route_request_headers_module_client.rb +8 -8
- data/lib/ngrokapi/services/edge_route_response_headers_module_client.rb +8 -8
- data/lib/ngrokapi/services/edge_route_saml_module_client.rb +8 -8
- data/lib/ngrokapi/services/edge_route_webhook_verification_module_client.rb +8 -8
- data/lib/ngrokapi/services/edge_route_websocket_tcp_converter_module_client.rb +8 -8
- data/lib/ngrokapi/services/edges_https_client.rb +37 -11
- data/lib/ngrokapi/services/edges_https_routes_client.rb +55 -5
- data/lib/ngrokapi/services/edges_tcp_client.rb +37 -11
- data/lib/ngrokapi/services/edges_tls_client.rb +41 -11
- data/lib/ngrokapi/services/endpoints_client.rb +8 -8
- data/lib/ngrokapi/services/event_destinations_client.rb +37 -13
- data/lib/ngrokapi/services/event_sources_client.rb +29 -7
- data/lib/ngrokapi/services/event_subscriptions_client.rb +35 -11
- data/lib/ngrokapi/services/failover_backends_client.rb +35 -13
- data/lib/ngrokapi/services/http_response_backends_client.rb +34 -11
- data/lib/ngrokapi/services/https_edge_mutual_tls_module_client.rb +8 -8
- data/lib/ngrokapi/services/https_edge_tls_termination_module_client.rb +8 -8
- data/lib/ngrokapi/services/ip_policies_client.rb +32 -11
- data/lib/ngrokapi/services/ip_policy_rules_client.rb +38 -12
- data/lib/ngrokapi/services/ip_restrictions_client.rb +37 -11
- data/lib/ngrokapi/services/reserved_addrs_client.rb +33 -11
- data/lib/ngrokapi/services/reserved_domains_client.rb +44 -16
- data/lib/ngrokapi/services/ssh_certificate_authorities_client.rb +37 -11
- data/lib/ngrokapi/services/ssh_credentials_client.rb +44 -15
- data/lib/ngrokapi/services/ssh_host_certificates_client.rb +41 -11
- data/lib/ngrokapi/services/ssh_user_certificates_client.rb +48 -14
- data/lib/ngrokapi/services/tcp_edge_backend_module_client.rb +8 -8
- data/lib/ngrokapi/services/tcp_edge_ip_restriction_module_client.rb +8 -8
- data/lib/ngrokapi/services/tls_certificates_client.rb +37 -13
- data/lib/ngrokapi/services/tls_edge_backend_module_client.rb +8 -8
- data/lib/ngrokapi/services/tls_edge_ip_restriction_module_client.rb +8 -8
- data/lib/ngrokapi/services/tls_edge_mutual_tls_module_client.rb +8 -8
- data/lib/ngrokapi/services/tls_edge_tls_termination_module_client.rb +8 -8
- data/lib/ngrokapi/services/tunnel_group_backends_client.rb +35 -13
- data/lib/ngrokapi/services/tunnel_sessions_client.rb +8 -8
- data/lib/ngrokapi/services/tunnels_client.rb +8 -8
- data/lib/ngrokapi/services/weighted_backends_client.rb +38 -16
- data/lib/ngrokapi/version.rb +9 -7
- data/lib/ngrokapi.rb +15 -13
- data/ngrok-api.gemspec +29 -27
- data/spec/ngrokapi/client_spec.rb +20 -6
- data/spec/ngrokapi/http_client_spec.rb +77 -75
- data/spec/ngrokapi/models/abuse_report_hostname_spec.rb +4 -2
- data/spec/ngrokapi/models/abuse_report_spec.rb +4 -2
- data/spec/ngrokapi/models/agent_ingress_cert_job_spec.rb +23 -0
- data/spec/ngrokapi/models/agent_ingress_cert_policy_spec.rb +23 -0
- data/spec/ngrokapi/models/agent_ingress_cert_status_spec.rb +23 -0
- data/spec/ngrokapi/models/agent_ingress_spec.rb +8 -3
- data/spec/ngrokapi/models/api_key_spec.rb +4 -2
- data/spec/ngrokapi/models/application_session_spec.rb +30 -0
- data/spec/ngrokapi/models/application_user_spec.rb +30 -0
- data/spec/ngrokapi/models/aws_auth_spec.rb +4 -2
- data/spec/ngrokapi/models/aws_credentials_spec.rb +4 -2
- data/spec/ngrokapi/models/aws_role_spec.rb +4 -2
- data/spec/ngrokapi/models/browser_session_spec.rb +23 -0
- data/spec/ngrokapi/models/certificate_authority_spec.rb +4 -2
- data/spec/ngrokapi/models/credential_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_backend_mutate_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_backend_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_circuit_breaker_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_compression_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_ip_policy_mutate_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_ip_policy_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_mutual_tls_mutate_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_mutual_tls_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_o_auth_amazon_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_o_auth_facebook_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_o_auth_git_hub_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_o_auth_git_lab_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_o_auth_google_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_o_auth_linked_in_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_o_auth_microsoft_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_o_auth_provider_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_o_auth_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_o_auth_twitch_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_oidc_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_request_headers_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_response_headers_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_saml_mutate_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_saml_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_tls_termination_at_edge_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_tls_termination_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_webhook_validation_spec.rb +4 -2
- data/spec/ngrokapi/models/endpoint_websocket_tcp_converter_spec.rb +4 -2
- data/spec/ngrokapi/models/event_destination_spec.rb +4 -2
- data/spec/ngrokapi/models/event_source_list_spec.rb +4 -2
- data/spec/ngrokapi/models/event_source_replace_spec.rb +4 -2
- data/spec/ngrokapi/models/event_source_spec.rb +4 -2
- data/spec/ngrokapi/models/event_subscription_spec.rb +4 -2
- data/spec/ngrokapi/models/event_target_cloudwatch_logs_spec.rb +4 -2
- data/spec/ngrokapi/models/event_target_datadog_spec.rb +23 -0
- data/spec/ngrokapi/models/event_target_firehose_spec.rb +4 -2
- data/spec/ngrokapi/models/event_target_kinesis_spec.rb +4 -2
- data/spec/ngrokapi/models/event_target_spec.rb +4 -2
- data/spec/ngrokapi/models/failover_backend_spec.rb +4 -2
- data/spec/ngrokapi/models/http_response_backend_spec.rb +4 -2
- data/spec/ngrokapi/models/https_edge_route_spec.rb +4 -2
- data/spec/ngrokapi/models/https_edge_spec.rb +4 -2
- data/spec/ngrokapi/models/identity_provider_spec.rb +23 -0
- data/spec/ngrokapi/models/ip_policy_rule_spec.rb +4 -2
- data/spec/ngrokapi/models/ip_policy_spec.rb +4 -2
- data/spec/ngrokapi/models/ip_restriction_spec.rb +4 -2
- data/spec/ngrokapi/models/listable_spec.rb +45 -43
- data/spec/ngrokapi/models/location_spec.rb +23 -0
- data/spec/ngrokapi/models/ref_spec.rb +4 -2
- data/spec/ngrokapi/models/reserved_addr_spec.rb +4 -2
- data/spec/ngrokapi/models/reserved_domain_cert_job_spec.rb +4 -2
- data/spec/ngrokapi/models/reserved_domain_cert_policy_spec.rb +4 -2
- data/spec/ngrokapi/models/reserved_domain_cert_status_spec.rb +4 -2
- data/spec/ngrokapi/models/reserved_domain_spec.rb +4 -2
- data/spec/ngrokapi/models/ssh_certificate_authority_spec.rb +4 -2
- data/spec/ngrokapi/models/ssh_credential_spec.rb +4 -2
- data/spec/ngrokapi/models/ssh_host_certificate_spec.rb +4 -2
- data/spec/ngrokapi/models/ssh_user_certificate_spec.rb +4 -2
- data/spec/ngrokapi/models/tcp_edge_spec.rb +4 -2
- data/spec/ngrokapi/models/tls_certificate_sa_ns_spec.rb +4 -2
- data/spec/ngrokapi/models/tls_certificate_spec.rb +4 -2
- data/spec/ngrokapi/models/tls_edge_spec.rb +4 -2
- data/spec/ngrokapi/models/tunnel_group_backend_spec.rb +4 -2
- data/spec/ngrokapi/models/tunnel_session_spec.rb +4 -2
- data/spec/ngrokapi/models/tunnel_spec.rb +4 -2
- data/spec/ngrokapi/models/user_agent_spec.rb +23 -0
- data/spec/ngrokapi/models/weighted_backend_spec.rb +4 -2
- data/spec/ngrokapi/paged_iterator_spec.rb +86 -84
- data/spec/ngrokapi/services/abuse_reports_client_spec.rb +21 -0
- data/spec/ngrokapi/services/agent_ingresses_client_spec.rb +34 -3
- data/spec/ngrokapi/services/api_keys_client_spec.rb +28 -1
- data/spec/ngrokapi/services/application_sessions_client_spec.rb +100 -0
- data/spec/ngrokapi/services/application_users_client_spec.rb +100 -0
- data/spec/ngrokapi/services/certificate_authorities_client_spec.rb +23 -0
- data/spec/ngrokapi/services/credentials_client_spec.rb +30 -1
- data/spec/ngrokapi/services/edge_route_backend_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/edge_route_circuit_breaker_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/edge_route_compression_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/edge_route_ip_restriction_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/edge_route_o_auth_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/edge_route_oidc_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/edge_route_request_headers_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/edge_route_response_headers_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/edge_route_saml_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/edge_route_webhook_verification_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/edge_route_websocket_tcp_converter_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/edges_https_client_spec.rb +27 -0
- data/spec/ngrokapi/services/edges_https_routes_client_spec.rb +49 -0
- data/spec/ngrokapi/services/edges_tcp_client_spec.rb +27 -0
- data/spec/ngrokapi/services/edges_tls_client_spec.rb +31 -0
- data/spec/ngrokapi/services/endpoints_client_spec.rb +2 -0
- data/spec/ngrokapi/services/event_destinations_client_spec.rb +26 -0
- data/spec/ngrokapi/services/event_sources_client_spec.rb +23 -0
- data/spec/ngrokapi/services/event_subscriptions_client_spec.rb +25 -0
- data/spec/ngrokapi/services/failover_backends_client_spec.rb +23 -0
- data/spec/ngrokapi/services/http_response_backends_client_spec.rb +27 -0
- data/spec/ngrokapi/services/https_edge_mutual_tls_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/https_edge_tls_termination_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/ip_policies_client_spec.rb +22 -0
- data/spec/ngrokapi/services/ip_policy_rules_client_spec.rb +27 -0
- data/spec/ngrokapi/services/ip_restrictions_client_spec.rb +27 -0
- data/spec/ngrokapi/services/reserved_addrs_client_spec.rb +24 -0
- data/spec/ngrokapi/services/reserved_domains_client_spec.rb +38 -3
- data/spec/ngrokapi/services/ssh_certificate_authorities_client_spec.rb +27 -0
- data/spec/ngrokapi/services/ssh_credentials_client_spec.rb +32 -1
- data/spec/ngrokapi/services/ssh_host_certificates_client_spec.rb +31 -0
- data/spec/ngrokapi/services/ssh_user_certificates_client_spec.rb +35 -0
- data/spec/ngrokapi/services/tcp_edge_backend_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/tcp_edge_ip_restriction_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/tls_certificates_client_spec.rb +25 -0
- data/spec/ngrokapi/services/tls_edge_backend_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/tls_edge_ip_restriction_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/tls_edge_mutual_tls_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/tls_edge_tls_termination_module_client_spec.rb +4 -4
- data/spec/ngrokapi/services/tunnel_group_backends_client_spec.rb +23 -0
- data/spec/ngrokapi/services/tunnel_sessions_client_spec.rb +2 -0
- data/spec/ngrokapi/services/tunnels_client_spec.rb +2 -0
- data/spec/ngrokapi/services/weighted_backends_client_spec.rb +23 -0
- data/spec/spec_helper.rb +94 -2
- metadata +68 -4
- data/doc/README +0 -94
- data/docs/README +0 -94
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Code generated for API Clients. DO NOT EDIT.
|
4
|
+
|
3
5
|
module NgrokAPI
|
4
6
|
module Services
|
5
7
|
##
|
@@ -42,7 +44,37 @@ module NgrokAPI
|
|
42
44
|
data[:mutual_tls] = mutual_tls if mutual_tls
|
43
45
|
data[:tls_termination] = tls_termination if tls_termination
|
44
46
|
result = @client.post(path % replacements, data: data)
|
45
|
-
NgrokAPI::Models::TLSEdge.new(client: self,
|
47
|
+
NgrokAPI::Models::TLSEdge.new(client: self, attrs: result)
|
48
|
+
end
|
49
|
+
|
50
|
+
##
|
51
|
+
# Create a TLS Edge
|
52
|
+
# Throws an exception if API error.
|
53
|
+
#
|
54
|
+
# @param [string] description human-readable description of what this edge will be used for; optional, max 255 bytes.
|
55
|
+
# @param [string] metadata arbitrary user-defined machine-readable data of this edge. Optional, max 4096 bytes.
|
56
|
+
# @param [List<string>] hostports hostports served by this edge
|
57
|
+
# @param [EndpointBackendMutate] backend edge modules
|
58
|
+
# @param [EndpointIPPolicyMutate] ip_restriction
|
59
|
+
# @param [EndpointMutualTLSMutate] mutual_tls
|
60
|
+
# @param [EndpointTLSTermination] tls_termination
|
61
|
+
# @return [NgrokAPI::Models::TLSEdge] result from the API request
|
62
|
+
#
|
63
|
+
# https://ngrok.com/docs/api#api-edges-tls-create
|
64
|
+
def create!(description: "", metadata: "", hostports: nil, backend: nil, ip_restriction: nil, mutual_tls: nil, tls_termination: nil)
|
65
|
+
path = '/edges/tls'
|
66
|
+
replacements = {
|
67
|
+
}
|
68
|
+
data = {}
|
69
|
+
data[:description] = description if description
|
70
|
+
data[:metadata] = metadata if metadata
|
71
|
+
data[:hostports] = hostports if hostports
|
72
|
+
data[:backend] = backend if backend
|
73
|
+
data[:ip_restriction] = ip_restriction if ip_restriction
|
74
|
+
data[:mutual_tls] = mutual_tls if mutual_tls
|
75
|
+
data[:tls_termination] = tls_termination if tls_termination
|
76
|
+
result = @client.post(path % replacements, data: data, danger: true)
|
77
|
+
NgrokAPI::Models::TLSEdge.new(client: self, attrs: result)
|
46
78
|
end
|
47
79
|
|
48
80
|
##
|
@@ -59,7 +91,7 @@ module NgrokAPI
|
|
59
91
|
}
|
60
92
|
data = {}
|
61
93
|
result = @client.get(path % replacements, data: data)
|
62
|
-
NgrokAPI::Models::TLSEdge.new(client: self,
|
94
|
+
NgrokAPI::Models::TLSEdge.new(client: self, attrs: result)
|
63
95
|
end
|
64
96
|
|
65
97
|
##
|
@@ -77,7 +109,7 @@ module NgrokAPI
|
|
77
109
|
}
|
78
110
|
data = {}
|
79
111
|
result = @client.get(path % replacements, data: data, danger: true)
|
80
|
-
NgrokAPI::Models::TLSEdge.new(client: self,
|
112
|
+
NgrokAPI::Models::TLSEdge.new(client: self, attrs: result)
|
81
113
|
end
|
82
114
|
|
83
115
|
##
|
@@ -89,8 +121,7 @@ module NgrokAPI
|
|
89
121
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
90
122
|
#
|
91
123
|
# https://ngrok.com/docs/api#api-edges-tls-list
|
92
|
-
def list(before_id: nil, limit: nil,
|
93
|
-
url: nil)
|
124
|
+
def list(before_id: nil, limit: nil, url: nil)
|
94
125
|
result = @client.list(
|
95
126
|
before_id: before_id,
|
96
127
|
limit: limit,
|
@@ -100,7 +131,7 @@ module NgrokAPI
|
|
100
131
|
|
101
132
|
NgrokAPI::Models::Listable.new(
|
102
133
|
client: self,
|
103
|
-
|
134
|
+
attrs: result,
|
104
135
|
list_property: LIST_PROPERTY,
|
105
136
|
klass: NgrokAPI::Models::TLSEdge
|
106
137
|
)
|
@@ -116,8 +147,7 @@ module NgrokAPI
|
|
116
147
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
117
148
|
#
|
118
149
|
# https://ngrok.com/docs/api#api-edges-tls-list
|
119
|
-
def list!(before_id: nil, limit: nil,
|
120
|
-
url: nil)
|
150
|
+
def list!(before_id: nil, limit: nil, url: nil)
|
121
151
|
result = @client.list(
|
122
152
|
before_id: before_id,
|
123
153
|
limit: limit,
|
@@ -128,7 +158,7 @@ module NgrokAPI
|
|
128
158
|
|
129
159
|
NgrokAPI::Models::Listable.new(
|
130
160
|
client: self,
|
131
|
-
|
161
|
+
attrs: result,
|
132
162
|
list_property: LIST_PROPERTY,
|
133
163
|
klass: NgrokAPI::Models::TLSEdge,
|
134
164
|
danger: true
|
@@ -166,7 +196,7 @@ module NgrokAPI
|
|
166
196
|
data[:mutual_tls] = mutual_tls if mutual_tls
|
167
197
|
data[:tls_termination] = tls_termination if tls_termination
|
168
198
|
result = @client.patch(path % replacements, data: data)
|
169
|
-
NgrokAPI::Models::TLSEdge.new(client: self,
|
199
|
+
NgrokAPI::Models::TLSEdge.new(client: self, attrs: result)
|
170
200
|
end
|
171
201
|
|
172
202
|
##
|
@@ -201,7 +231,7 @@ module NgrokAPI
|
|
201
231
|
data[:mutual_tls] = mutual_tls if mutual_tls
|
202
232
|
data[:tls_termination] = tls_termination if tls_termination
|
203
233
|
result = @client.patch(path % replacements, data: data, danger: true)
|
204
|
-
NgrokAPI::Models::TLSEdge.new(client: self,
|
234
|
+
NgrokAPI::Models::TLSEdge.new(client: self, attrs: result)
|
205
235
|
end
|
206
236
|
|
207
237
|
##
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Code generated for API Clients. DO NOT EDIT.
|
4
|
+
|
3
5
|
module NgrokAPI
|
4
6
|
module Services
|
5
7
|
##
|
@@ -29,8 +31,7 @@ module NgrokAPI
|
|
29
31
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
30
32
|
#
|
31
33
|
# https://ngrok.com/docs/api#api-endpoints-list
|
32
|
-
def list(before_id: nil, limit: nil,
|
33
|
-
url: nil)
|
34
|
+
def list(before_id: nil, limit: nil, url: nil)
|
34
35
|
result = @client.list(
|
35
36
|
before_id: before_id,
|
36
37
|
limit: limit,
|
@@ -40,7 +41,7 @@ module NgrokAPI
|
|
40
41
|
|
41
42
|
NgrokAPI::Models::Listable.new(
|
42
43
|
client: self,
|
43
|
-
|
44
|
+
attrs: result,
|
44
45
|
list_property: LIST_PROPERTY,
|
45
46
|
klass: NgrokAPI::Models::Endpoint
|
46
47
|
)
|
@@ -56,8 +57,7 @@ module NgrokAPI
|
|
56
57
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
57
58
|
#
|
58
59
|
# https://ngrok.com/docs/api#api-endpoints-list
|
59
|
-
def list!(before_id: nil, limit: nil,
|
60
|
-
url: nil)
|
60
|
+
def list!(before_id: nil, limit: nil, url: nil)
|
61
61
|
result = @client.list(
|
62
62
|
before_id: before_id,
|
63
63
|
limit: limit,
|
@@ -68,7 +68,7 @@ module NgrokAPI
|
|
68
68
|
|
69
69
|
NgrokAPI::Models::Listable.new(
|
70
70
|
client: self,
|
71
|
-
|
71
|
+
attrs: result,
|
72
72
|
list_property: LIST_PROPERTY,
|
73
73
|
klass: NgrokAPI::Models::Endpoint,
|
74
74
|
danger: true
|
@@ -89,7 +89,7 @@ module NgrokAPI
|
|
89
89
|
}
|
90
90
|
data = {}
|
91
91
|
result = @client.get(path % replacements, data: data)
|
92
|
-
NgrokAPI::Models::Endpoint.new(client: self,
|
92
|
+
NgrokAPI::Models::Endpoint.new(client: self, attrs: result)
|
93
93
|
end
|
94
94
|
|
95
95
|
##
|
@@ -107,7 +107,7 @@ module NgrokAPI
|
|
107
107
|
}
|
108
108
|
data = {}
|
109
109
|
result = @client.get(path % replacements, data: data, danger: true)
|
110
|
-
NgrokAPI::Models::Endpoint.new(client: self,
|
110
|
+
NgrokAPI::Models::Endpoint.new(client: self, attrs: result)
|
111
111
|
end
|
112
112
|
end
|
113
113
|
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Code generated for API Clients. DO NOT EDIT.
|
4
|
+
|
3
5
|
module NgrokAPI
|
4
6
|
module Services
|
5
7
|
##
|
@@ -18,8 +20,7 @@ module NgrokAPI
|
|
18
20
|
|
19
21
|
##
|
20
22
|
# Create a new Event Destination. It will not apply to anything until it is
|
21
|
-
# associated with an Event
|
22
|
-
# Endpoint Config.
|
23
|
+
# associated with an Event Subscription.
|
23
24
|
#
|
24
25
|
# @param [string] metadata Arbitrary user-defined machine-readable data of this Event Destination. Optional, max 4096 bytes.
|
25
26
|
# @param [string] description Human-readable description of the Event Destination. Optional, max 255 bytes.
|
@@ -38,7 +39,32 @@ module NgrokAPI
|
|
38
39
|
data[:format] = format if format
|
39
40
|
data[:target] = target if target
|
40
41
|
result = @client.post(path % replacements, data: data)
|
41
|
-
NgrokAPI::Models::EventDestination.new(client: self,
|
42
|
+
NgrokAPI::Models::EventDestination.new(client: self, attrs: result)
|
43
|
+
end
|
44
|
+
|
45
|
+
##
|
46
|
+
# Create a new Event Destination. It will not apply to anything until it is
|
47
|
+
# associated with an Event Subscription.
|
48
|
+
# Throws an exception if API error.
|
49
|
+
#
|
50
|
+
# @param [string] metadata Arbitrary user-defined machine-readable data of this Event Destination. Optional, max 4096 bytes.
|
51
|
+
# @param [string] description Human-readable description of the Event Destination. Optional, max 255 bytes.
|
52
|
+
# @param [string] format The output format you would like to serialize events into when sending to their target. Currently the only accepted value is ``JSON``.
|
53
|
+
# @param [EventTarget] target An object that encapsulates where and how to send your events. An event destination must contain exactly one of the following objects, leaving the rest null: ``kinesis``, ``firehose``, ``cloudwatch_logs``, or ``s3``.
|
54
|
+
# @return [NgrokAPI::Models::EventDestination] result from the API request
|
55
|
+
#
|
56
|
+
# https://ngrok.com/docs/api#api-event-destinations-create
|
57
|
+
def create!(metadata: "", description: "", format: "", target: nil, verify_with_test_event: nil)
|
58
|
+
path = '/event_destinations'
|
59
|
+
replacements = {
|
60
|
+
}
|
61
|
+
data = {}
|
62
|
+
data[:metadata] = metadata if metadata
|
63
|
+
data[:description] = description if description
|
64
|
+
data[:format] = format if format
|
65
|
+
data[:target] = target if target
|
66
|
+
result = @client.post(path % replacements, data: data, danger: true)
|
67
|
+
NgrokAPI::Models::EventDestination.new(client: self, attrs: result)
|
42
68
|
end
|
43
69
|
|
44
70
|
##
|
@@ -88,7 +114,7 @@ module NgrokAPI
|
|
88
114
|
}
|
89
115
|
data = {}
|
90
116
|
result = @client.get(path % replacements, data: data)
|
91
|
-
NgrokAPI::Models::EventDestination.new(client: self,
|
117
|
+
NgrokAPI::Models::EventDestination.new(client: self, attrs: result)
|
92
118
|
end
|
93
119
|
|
94
120
|
##
|
@@ -106,7 +132,7 @@ module NgrokAPI
|
|
106
132
|
}
|
107
133
|
data = {}
|
108
134
|
result = @client.get(path % replacements, data: data, danger: true)
|
109
|
-
NgrokAPI::Models::EventDestination.new(client: self,
|
135
|
+
NgrokAPI::Models::EventDestination.new(client: self, attrs: result)
|
110
136
|
end
|
111
137
|
|
112
138
|
##
|
@@ -118,8 +144,7 @@ module NgrokAPI
|
|
118
144
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
119
145
|
#
|
120
146
|
# https://ngrok.com/docs/api#api-event-destinations-list
|
121
|
-
def list(before_id: nil, limit: nil,
|
122
|
-
url: nil)
|
147
|
+
def list(before_id: nil, limit: nil, url: nil)
|
123
148
|
result = @client.list(
|
124
149
|
before_id: before_id,
|
125
150
|
limit: limit,
|
@@ -129,7 +154,7 @@ module NgrokAPI
|
|
129
154
|
|
130
155
|
NgrokAPI::Models::Listable.new(
|
131
156
|
client: self,
|
132
|
-
|
157
|
+
attrs: result,
|
133
158
|
list_property: LIST_PROPERTY,
|
134
159
|
klass: NgrokAPI::Models::EventDestination
|
135
160
|
)
|
@@ -145,8 +170,7 @@ module NgrokAPI
|
|
145
170
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
146
171
|
#
|
147
172
|
# https://ngrok.com/docs/api#api-event-destinations-list
|
148
|
-
def list!(before_id: nil, limit: nil,
|
149
|
-
url: nil)
|
173
|
+
def list!(before_id: nil, limit: nil, url: nil)
|
150
174
|
result = @client.list(
|
151
175
|
before_id: before_id,
|
152
176
|
limit: limit,
|
@@ -157,7 +181,7 @@ module NgrokAPI
|
|
157
181
|
|
158
182
|
NgrokAPI::Models::Listable.new(
|
159
183
|
client: self,
|
160
|
-
|
184
|
+
attrs: result,
|
161
185
|
list_property: LIST_PROPERTY,
|
162
186
|
klass: NgrokAPI::Models::EventDestination,
|
163
187
|
danger: true
|
@@ -186,7 +210,7 @@ module NgrokAPI
|
|
186
210
|
data[:format] = format if format
|
187
211
|
data[:target] = target if target
|
188
212
|
result = @client.patch(path % replacements, data: data)
|
189
|
-
NgrokAPI::Models::EventDestination.new(client: self,
|
213
|
+
NgrokAPI::Models::EventDestination.new(client: self, attrs: result)
|
190
214
|
end
|
191
215
|
|
192
216
|
##
|
@@ -212,7 +236,7 @@ module NgrokAPI
|
|
212
236
|
data[:format] = format if format
|
213
237
|
data[:target] = target if target
|
214
238
|
result = @client.patch(path % replacements, data: data, danger: true)
|
215
|
-
NgrokAPI::Models::EventDestination.new(client: self,
|
239
|
+
NgrokAPI::Models::EventDestination.new(client: self, attrs: result)
|
216
240
|
end
|
217
241
|
end
|
218
242
|
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Code generated for API Clients. DO NOT EDIT.
|
4
|
+
|
3
5
|
module NgrokAPI
|
4
6
|
module Services
|
5
7
|
##
|
@@ -30,7 +32,27 @@ module NgrokAPI
|
|
30
32
|
data = {}
|
31
33
|
data[:type] = type if type
|
32
34
|
result = @client.post(path % replacements, data: data)
|
33
|
-
NgrokAPI::Models::EventSource.new(client: self,
|
35
|
+
NgrokAPI::Models::EventSource.new(client: self, attrs: result)
|
36
|
+
end
|
37
|
+
|
38
|
+
##
|
39
|
+
# Add an additional type for which this event subscription will trigger
|
40
|
+
# Throws an exception if API error.
|
41
|
+
#
|
42
|
+
# @param [string] subscription_id The unique identifier for the Event Subscription that this Event Source is attached to.
|
43
|
+
# @param [string] type Type of event for which an event subscription will trigger
|
44
|
+
# @return [NgrokAPI::Models::EventSource] result from the API request
|
45
|
+
#
|
46
|
+
# https://ngrok.com/docs/api#api-event-sources-create
|
47
|
+
def create!(subscription_id: "", type: "", filter: "", fields: [])
|
48
|
+
path = '/event_subscriptions/%{subscription_id}/sources'
|
49
|
+
replacements = {
|
50
|
+
subscription_id: subscription_id,
|
51
|
+
}
|
52
|
+
data = {}
|
53
|
+
data[:type] = type if type
|
54
|
+
result = @client.post(path % replacements, data: data, danger: true)
|
55
|
+
NgrokAPI::Models::EventSource.new(client: self, attrs: result)
|
34
56
|
end
|
35
57
|
|
36
58
|
##
|
@@ -84,7 +106,7 @@ module NgrokAPI
|
|
84
106
|
}
|
85
107
|
data = {}
|
86
108
|
result = @client.get(path % replacements, data: data)
|
87
|
-
NgrokAPI::Models::EventSource.new(client: self,
|
109
|
+
NgrokAPI::Models::EventSource.new(client: self, attrs: result)
|
88
110
|
end
|
89
111
|
|
90
112
|
##
|
@@ -104,7 +126,7 @@ module NgrokAPI
|
|
104
126
|
}
|
105
127
|
data = {}
|
106
128
|
result = @client.get(path % replacements, data: data, danger: true)
|
107
|
-
NgrokAPI::Models::EventSource.new(client: self,
|
129
|
+
NgrokAPI::Models::EventSource.new(client: self, attrs: result)
|
108
130
|
end
|
109
131
|
|
110
132
|
##
|
@@ -121,7 +143,7 @@ module NgrokAPI
|
|
121
143
|
}
|
122
144
|
data = {}
|
123
145
|
result = @client.get(path % replacements, data: data)
|
124
|
-
NgrokAPI::Models::EventSourceList.new(client: self,
|
146
|
+
NgrokAPI::Models::EventSourceList.new(client: self, attrs: result)
|
125
147
|
end
|
126
148
|
|
127
149
|
##
|
@@ -139,7 +161,7 @@ module NgrokAPI
|
|
139
161
|
}
|
140
162
|
data = {}
|
141
163
|
result = @client.get(path % replacements, data: data, danger: true)
|
142
|
-
NgrokAPI::Models::EventSourceList.new(client: self,
|
164
|
+
NgrokAPI::Models::EventSourceList.new(client: self, attrs: result)
|
143
165
|
end
|
144
166
|
|
145
167
|
##
|
@@ -158,7 +180,7 @@ module NgrokAPI
|
|
158
180
|
}
|
159
181
|
data = {}
|
160
182
|
result = @client.patch(path % replacements, data: data)
|
161
|
-
NgrokAPI::Models::EventSource.new(client: self,
|
183
|
+
NgrokAPI::Models::EventSource.new(client: self, attrs: result)
|
162
184
|
end
|
163
185
|
|
164
186
|
##
|
@@ -178,7 +200,7 @@ module NgrokAPI
|
|
178
200
|
}
|
179
201
|
data = {}
|
180
202
|
result = @client.patch(path % replacements, data: data, danger: true)
|
181
|
-
NgrokAPI::Models::EventSource.new(client: self,
|
203
|
+
NgrokAPI::Models::EventSource.new(client: self, attrs: result)
|
182
204
|
end
|
183
205
|
end
|
184
206
|
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Code generated for API Clients. DO NOT EDIT.
|
4
|
+
|
3
5
|
module NgrokAPI
|
4
6
|
module Services
|
5
7
|
##
|
@@ -36,7 +38,31 @@ module NgrokAPI
|
|
36
38
|
data[:sources] = sources if sources
|
37
39
|
data[:destination_ids] = destination_ids if destination_ids
|
38
40
|
result = @client.post(path % replacements, data: data)
|
39
|
-
NgrokAPI::Models::EventSubscription.new(client: self,
|
41
|
+
NgrokAPI::Models::EventSubscription.new(client: self, attrs: result)
|
42
|
+
end
|
43
|
+
|
44
|
+
##
|
45
|
+
# Create an Event Subscription.
|
46
|
+
# Throws an exception if API error.
|
47
|
+
#
|
48
|
+
# @param [string] metadata Arbitrary customer supplied information intended to be machine readable. Optional, max 4096 chars.
|
49
|
+
# @param [string] description Arbitrary customer supplied information intended to be human readable. Optional, max 255 chars.
|
50
|
+
# @param [List<EventSourceReplace>] sources Sources containing the types for which this event subscription will trigger
|
51
|
+
# @param [List<string>] destination_ids A list of Event Destination IDs which should be used for this Event Subscription.
|
52
|
+
# @return [NgrokAPI::Models::EventSubscription] result from the API request
|
53
|
+
#
|
54
|
+
# https://ngrok.com/docs/api#api-event-subscriptions-create
|
55
|
+
def create!(metadata: "", description: "", sources: [], destination_ids: [])
|
56
|
+
path = '/event_subscriptions'
|
57
|
+
replacements = {
|
58
|
+
}
|
59
|
+
data = {}
|
60
|
+
data[:metadata] = metadata if metadata
|
61
|
+
data[:description] = description if description
|
62
|
+
data[:sources] = sources if sources
|
63
|
+
data[:destination_ids] = destination_ids if destination_ids
|
64
|
+
result = @client.post(path % replacements, data: data, danger: true)
|
65
|
+
NgrokAPI::Models::EventSubscription.new(client: self, attrs: result)
|
40
66
|
end
|
41
67
|
|
42
68
|
##
|
@@ -84,7 +110,7 @@ module NgrokAPI
|
|
84
110
|
}
|
85
111
|
data = {}
|
86
112
|
result = @client.get(path % replacements, data: data)
|
87
|
-
NgrokAPI::Models::EventSubscription.new(client: self,
|
113
|
+
NgrokAPI::Models::EventSubscription.new(client: self, attrs: result)
|
88
114
|
end
|
89
115
|
|
90
116
|
##
|
@@ -102,7 +128,7 @@ module NgrokAPI
|
|
102
128
|
}
|
103
129
|
data = {}
|
104
130
|
result = @client.get(path % replacements, data: data, danger: true)
|
105
|
-
NgrokAPI::Models::EventSubscription.new(client: self,
|
131
|
+
NgrokAPI::Models::EventSubscription.new(client: self, attrs: result)
|
106
132
|
end
|
107
133
|
|
108
134
|
##
|
@@ -114,8 +140,7 @@ module NgrokAPI
|
|
114
140
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
115
141
|
#
|
116
142
|
# https://ngrok.com/docs/api#api-event-subscriptions-list
|
117
|
-
def list(before_id: nil, limit: nil,
|
118
|
-
url: nil)
|
143
|
+
def list(before_id: nil, limit: nil, url: nil)
|
119
144
|
result = @client.list(
|
120
145
|
before_id: before_id,
|
121
146
|
limit: limit,
|
@@ -125,7 +150,7 @@ module NgrokAPI
|
|
125
150
|
|
126
151
|
NgrokAPI::Models::Listable.new(
|
127
152
|
client: self,
|
128
|
-
|
153
|
+
attrs: result,
|
129
154
|
list_property: LIST_PROPERTY,
|
130
155
|
klass: NgrokAPI::Models::EventSubscription
|
131
156
|
)
|
@@ -141,8 +166,7 @@ module NgrokAPI
|
|
141
166
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
142
167
|
#
|
143
168
|
# https://ngrok.com/docs/api#api-event-subscriptions-list
|
144
|
-
def list!(before_id: nil, limit: nil,
|
145
|
-
url: nil)
|
169
|
+
def list!(before_id: nil, limit: nil, url: nil)
|
146
170
|
result = @client.list(
|
147
171
|
before_id: before_id,
|
148
172
|
limit: limit,
|
@@ -153,7 +177,7 @@ module NgrokAPI
|
|
153
177
|
|
154
178
|
NgrokAPI::Models::Listable.new(
|
155
179
|
client: self,
|
156
|
-
|
180
|
+
attrs: result,
|
157
181
|
list_property: LIST_PROPERTY,
|
158
182
|
klass: NgrokAPI::Models::EventSubscription,
|
159
183
|
danger: true
|
@@ -182,7 +206,7 @@ module NgrokAPI
|
|
182
206
|
data[:sources] = sources if sources
|
183
207
|
data[:destination_ids] = destination_ids if destination_ids
|
184
208
|
result = @client.patch(path % replacements, data: data)
|
185
|
-
NgrokAPI::Models::EventSubscription.new(client: self,
|
209
|
+
NgrokAPI::Models::EventSubscription.new(client: self, attrs: result)
|
186
210
|
end
|
187
211
|
|
188
212
|
##
|
@@ -208,7 +232,7 @@ module NgrokAPI
|
|
208
232
|
data[:sources] = sources if sources
|
209
233
|
data[:destination_ids] = destination_ids if destination_ids
|
210
234
|
result = @client.patch(path % replacements, data: data, danger: true)
|
211
|
-
NgrokAPI::Models::EventSubscription.new(client: self,
|
235
|
+
NgrokAPI::Models::EventSubscription.new(client: self, attrs: result)
|
212
236
|
end
|
213
237
|
end
|
214
238
|
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Code generated for API Clients. DO NOT EDIT.
|
4
|
+
|
3
5
|
module NgrokAPI
|
4
6
|
module Services
|
5
7
|
##
|
@@ -39,11 +41,33 @@ module NgrokAPI
|
|
39
41
|
data[:metadata] = metadata if metadata
|
40
42
|
data[:backends] = backends if backends
|
41
43
|
result = @client.post(path % replacements, data: data)
|
42
|
-
NgrokAPI::Models::FailoverBackend.new(client: self,
|
44
|
+
NgrokAPI::Models::FailoverBackend.new(client: self, attrs: result)
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# Create a new Failover backend
|
49
|
+
# Throws an exception if API error.
|
50
|
+
#
|
51
|
+
# @param [string] description human-readable description of this backend. Optional
|
52
|
+
# @param [string] metadata arbitrary user-defined machine-readable data of this backend. Optional
|
53
|
+
# @param [List<string>] backends the ids of the child backends in order
|
54
|
+
# @return [NgrokAPI::Models::FailoverBackend] result from the API request
|
55
|
+
#
|
56
|
+
# https://ngrok.com/docs/api#api-failover-backends-create
|
57
|
+
def create!(description: "", metadata: "", backends: [])
|
58
|
+
path = '/backends/failover'
|
59
|
+
replacements = {
|
60
|
+
}
|
61
|
+
data = {}
|
62
|
+
data[:description] = description if description
|
63
|
+
data[:metadata] = metadata if metadata
|
64
|
+
data[:backends] = backends if backends
|
65
|
+
result = @client.post(path % replacements, data: data, danger: true)
|
66
|
+
NgrokAPI::Models::FailoverBackend.new(client: self, attrs: result)
|
43
67
|
end
|
44
68
|
|
45
69
|
##
|
46
|
-
# Delete a Failover backend by ID.
|
70
|
+
# Delete a Failover backend by ID.
|
47
71
|
#
|
48
72
|
# @param [string] id a resource identifier
|
49
73
|
# @return [NgrokAPI::Models::Empty] result from the API request
|
@@ -58,7 +82,7 @@ module NgrokAPI
|
|
58
82
|
end
|
59
83
|
|
60
84
|
##
|
61
|
-
# Delete a Failover backend by ID.
|
85
|
+
# Delete a Failover backend by ID.
|
62
86
|
# Throws an exception if API error.
|
63
87
|
#
|
64
88
|
# @param [string] id a resource identifier
|
@@ -87,7 +111,7 @@ module NgrokAPI
|
|
87
111
|
}
|
88
112
|
data = {}
|
89
113
|
result = @client.get(path % replacements, data: data)
|
90
|
-
NgrokAPI::Models::FailoverBackend.new(client: self,
|
114
|
+
NgrokAPI::Models::FailoverBackend.new(client: self, attrs: result)
|
91
115
|
end
|
92
116
|
|
93
117
|
##
|
@@ -105,7 +129,7 @@ module NgrokAPI
|
|
105
129
|
}
|
106
130
|
data = {}
|
107
131
|
result = @client.get(path % replacements, data: data, danger: true)
|
108
|
-
NgrokAPI::Models::FailoverBackend.new(client: self,
|
132
|
+
NgrokAPI::Models::FailoverBackend.new(client: self, attrs: result)
|
109
133
|
end
|
110
134
|
|
111
135
|
##
|
@@ -117,8 +141,7 @@ module NgrokAPI
|
|
117
141
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
118
142
|
#
|
119
143
|
# https://ngrok.com/docs/api#api-failover-backends-list
|
120
|
-
def list(before_id: nil, limit: nil,
|
121
|
-
url: nil)
|
144
|
+
def list(before_id: nil, limit: nil, url: nil)
|
122
145
|
result = @client.list(
|
123
146
|
before_id: before_id,
|
124
147
|
limit: limit,
|
@@ -128,7 +151,7 @@ module NgrokAPI
|
|
128
151
|
|
129
152
|
NgrokAPI::Models::Listable.new(
|
130
153
|
client: self,
|
131
|
-
|
154
|
+
attrs: result,
|
132
155
|
list_property: LIST_PROPERTY,
|
133
156
|
klass: NgrokAPI::Models::FailoverBackend
|
134
157
|
)
|
@@ -144,8 +167,7 @@ module NgrokAPI
|
|
144
167
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
145
168
|
#
|
146
169
|
# https://ngrok.com/docs/api#api-failover-backends-list
|
147
|
-
def list!(before_id: nil, limit: nil,
|
148
|
-
url: nil)
|
170
|
+
def list!(before_id: nil, limit: nil, url: nil)
|
149
171
|
result = @client.list(
|
150
172
|
before_id: before_id,
|
151
173
|
limit: limit,
|
@@ -156,7 +178,7 @@ module NgrokAPI
|
|
156
178
|
|
157
179
|
NgrokAPI::Models::Listable.new(
|
158
180
|
client: self,
|
159
|
-
|
181
|
+
attrs: result,
|
160
182
|
list_property: LIST_PROPERTY,
|
161
183
|
klass: NgrokAPI::Models::FailoverBackend,
|
162
184
|
danger: true
|
@@ -183,7 +205,7 @@ module NgrokAPI
|
|
183
205
|
data[:metadata] = metadata if metadata
|
184
206
|
data[:backends] = backends if backends
|
185
207
|
result = @client.patch(path % replacements, data: data)
|
186
|
-
NgrokAPI::Models::FailoverBackend.new(client: self,
|
208
|
+
NgrokAPI::Models::FailoverBackend.new(client: self, attrs: result)
|
187
209
|
end
|
188
210
|
|
189
211
|
##
|
@@ -207,7 +229,7 @@ module NgrokAPI
|
|
207
229
|
data[:metadata] = metadata if metadata
|
208
230
|
data[:backends] = backends if backends
|
209
231
|
result = @client.patch(path % replacements, data: data, danger: true)
|
210
|
-
NgrokAPI::Models::FailoverBackend.new(client: self,
|
232
|
+
NgrokAPI::Models::FailoverBackend.new(client: self, attrs: result)
|
211
233
|
end
|
212
234
|
end
|
213
235
|
end
|