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
|
##
|
@@ -36,7 +38,30 @@ module NgrokAPI
|
|
36
38
|
data[:headers] = headers if headers
|
37
39
|
data[:status_code] = status_code if status_code
|
38
40
|
result = @client.post(path % replacements, data: data)
|
39
|
-
NgrokAPI::Models::HTTPResponseBackend.new(client: self,
|
41
|
+
NgrokAPI::Models::HTTPResponseBackend.new(client: self, attrs: result)
|
42
|
+
end
|
43
|
+
|
44
|
+
##
|
45
|
+
# @param [string] description human-readable description of this backend. Optional
|
46
|
+
# @param [string] metadata arbitrary user-defined machine-readable data of this backend. Optional
|
47
|
+
# @param [string] body body to return as fixed content
|
48
|
+
# @param [Map<string, string>] headers headers to return
|
49
|
+
# @param [int32] status_code status code to return
|
50
|
+
# @return [NgrokAPI::Models::HTTPResponseBackend] result from the API request
|
51
|
+
#
|
52
|
+
# https://ngrok.com/docs/api#api-http-response-backends-create
|
53
|
+
def create!(description: "", metadata: "", body: "", headers: {}, status_code: nil)
|
54
|
+
path = '/backends/http_response'
|
55
|
+
replacements = {
|
56
|
+
}
|
57
|
+
data = {}
|
58
|
+
data[:description] = description if description
|
59
|
+
data[:metadata] = metadata if metadata
|
60
|
+
data[:body] = body if body
|
61
|
+
data[:headers] = headers if headers
|
62
|
+
data[:status_code] = status_code if status_code
|
63
|
+
result = @client.post(path % replacements, data: data, danger: true)
|
64
|
+
NgrokAPI::Models::HTTPResponseBackend.new(client: self, attrs: result)
|
40
65
|
end
|
41
66
|
|
42
67
|
##
|
@@ -77,7 +102,7 @@ module NgrokAPI
|
|
77
102
|
}
|
78
103
|
data = {}
|
79
104
|
result = @client.get(path % replacements, data: data)
|
80
|
-
NgrokAPI::Models::HTTPResponseBackend.new(client: self,
|
105
|
+
NgrokAPI::Models::HTTPResponseBackend.new(client: self, attrs: result)
|
81
106
|
end
|
82
107
|
|
83
108
|
##
|
@@ -92,7 +117,7 @@ module NgrokAPI
|
|
92
117
|
}
|
93
118
|
data = {}
|
94
119
|
result = @client.get(path % replacements, data: data, danger: true)
|
95
|
-
NgrokAPI::Models::HTTPResponseBackend.new(client: self,
|
120
|
+
NgrokAPI::Models::HTTPResponseBackend.new(client: self, attrs: result)
|
96
121
|
end
|
97
122
|
|
98
123
|
##
|
@@ -102,8 +127,7 @@ module NgrokAPI
|
|
102
127
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
103
128
|
#
|
104
129
|
# https://ngrok.com/docs/api#api-http-response-backends-list
|
105
|
-
def list(before_id: nil, limit: nil,
|
106
|
-
url: nil)
|
130
|
+
def list(before_id: nil, limit: nil, url: nil)
|
107
131
|
result = @client.list(
|
108
132
|
before_id: before_id,
|
109
133
|
limit: limit,
|
@@ -113,7 +137,7 @@ module NgrokAPI
|
|
113
137
|
|
114
138
|
NgrokAPI::Models::Listable.new(
|
115
139
|
client: self,
|
116
|
-
|
140
|
+
attrs: result,
|
117
141
|
list_property: LIST_PROPERTY,
|
118
142
|
klass: NgrokAPI::Models::HTTPResponseBackend
|
119
143
|
)
|
@@ -126,8 +150,7 @@ module NgrokAPI
|
|
126
150
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
127
151
|
#
|
128
152
|
# https://ngrok.com/docs/api#api-http-response-backends-list
|
129
|
-
def list!(before_id: nil, limit: nil,
|
130
|
-
url: nil)
|
153
|
+
def list!(before_id: nil, limit: nil, url: nil)
|
131
154
|
result = @client.list(
|
132
155
|
before_id: before_id,
|
133
156
|
limit: limit,
|
@@ -138,7 +161,7 @@ module NgrokAPI
|
|
138
161
|
|
139
162
|
NgrokAPI::Models::Listable.new(
|
140
163
|
client: self,
|
141
|
-
|
164
|
+
attrs: result,
|
142
165
|
list_property: LIST_PROPERTY,
|
143
166
|
klass: NgrokAPI::Models::HTTPResponseBackend,
|
144
167
|
danger: true
|
@@ -167,7 +190,7 @@ module NgrokAPI
|
|
167
190
|
data[:headers] = headers if headers
|
168
191
|
data[:status_code] = status_code if status_code
|
169
192
|
result = @client.patch(path % replacements, data: data)
|
170
|
-
NgrokAPI::Models::HTTPResponseBackend.new(client: self,
|
193
|
+
NgrokAPI::Models::HTTPResponseBackend.new(client: self, attrs: result)
|
171
194
|
end
|
172
195
|
|
173
196
|
##
|
@@ -192,7 +215,7 @@ module NgrokAPI
|
|
192
215
|
data[:headers] = headers if headers
|
193
216
|
data[:status_code] = status_code if status_code
|
194
217
|
result = @client.patch(path % replacements, data: data, danger: true)
|
195
|
-
NgrokAPI::Models::HTTPResponseBackend.new(client: self,
|
218
|
+
NgrokAPI::Models::HTTPResponseBackend.new(client: self, attrs: result)
|
196
219
|
end
|
197
220
|
end
|
198
221
|
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
|
##
|
@@ -25,10 +27,9 @@ module NgrokAPI
|
|
25
27
|
replacements = {
|
26
28
|
id: id,
|
27
29
|
}
|
28
|
-
data =
|
29
|
-
data[:module] = a_module if a_module
|
30
|
+
data = a_module
|
30
31
|
result = @client.put(path % replacements, data: data)
|
31
|
-
NgrokAPI::Models::EndpointMutualTLS.new(client: self,
|
32
|
+
NgrokAPI::Models::EndpointMutualTLS.new(client: self, attrs: result)
|
32
33
|
end
|
33
34
|
|
34
35
|
##
|
@@ -42,10 +43,9 @@ module NgrokAPI
|
|
42
43
|
replacements = {
|
43
44
|
id: id,
|
44
45
|
}
|
45
|
-
data =
|
46
|
-
data[:module] = a_module if a_module
|
46
|
+
data = a_module
|
47
47
|
result = @client.put(path % replacements, data: data, danger: true)
|
48
|
-
NgrokAPI::Models::EndpointMutualTLS.new(client: self,
|
48
|
+
NgrokAPI::Models::EndpointMutualTLS.new(client: self, attrs: result)
|
49
49
|
end
|
50
50
|
|
51
51
|
##
|
@@ -60,7 +60,7 @@ module NgrokAPI
|
|
60
60
|
}
|
61
61
|
data = {}
|
62
62
|
result = @client.get(path % replacements, data: data)
|
63
|
-
NgrokAPI::Models::EndpointMutualTLS.new(client: self,
|
63
|
+
NgrokAPI::Models::EndpointMutualTLS.new(client: self, attrs: result)
|
64
64
|
end
|
65
65
|
|
66
66
|
##
|
@@ -75,7 +75,7 @@ module NgrokAPI
|
|
75
75
|
}
|
76
76
|
data = {}
|
77
77
|
result = @client.get(path % replacements, data: data, danger: true)
|
78
|
-
NgrokAPI::Models::EndpointMutualTLS.new(client: self,
|
78
|
+
NgrokAPI::Models::EndpointMutualTLS.new(client: self, attrs: result)
|
79
79
|
end
|
80
80
|
|
81
81
|
##
|
@@ -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
|
##
|
@@ -25,10 +27,9 @@ module NgrokAPI
|
|
25
27
|
replacements = {
|
26
28
|
id: id,
|
27
29
|
}
|
28
|
-
data =
|
29
|
-
data[:module] = a_module if a_module
|
30
|
+
data = a_module
|
30
31
|
result = @client.put(path % replacements, data: data)
|
31
|
-
NgrokAPI::Models::EndpointTLSTermination.new(client: self,
|
32
|
+
NgrokAPI::Models::EndpointTLSTermination.new(client: self, attrs: result)
|
32
33
|
end
|
33
34
|
|
34
35
|
##
|
@@ -42,10 +43,9 @@ module NgrokAPI
|
|
42
43
|
replacements = {
|
43
44
|
id: id,
|
44
45
|
}
|
45
|
-
data =
|
46
|
-
data[:module] = a_module if a_module
|
46
|
+
data = a_module
|
47
47
|
result = @client.put(path % replacements, data: data, danger: true)
|
48
|
-
NgrokAPI::Models::EndpointTLSTermination.new(client: self,
|
48
|
+
NgrokAPI::Models::EndpointTLSTermination.new(client: self, attrs: result)
|
49
49
|
end
|
50
50
|
|
51
51
|
##
|
@@ -60,7 +60,7 @@ module NgrokAPI
|
|
60
60
|
}
|
61
61
|
data = {}
|
62
62
|
result = @client.get(path % replacements, data: data)
|
63
|
-
NgrokAPI::Models::EndpointTLSTermination.new(client: self,
|
63
|
+
NgrokAPI::Models::EndpointTLSTermination.new(client: self, attrs: result)
|
64
64
|
end
|
65
65
|
|
66
66
|
##
|
@@ -75,7 +75,7 @@ module NgrokAPI
|
|
75
75
|
}
|
76
76
|
data = {}
|
77
77
|
result = @client.get(path % replacements, data: data, danger: true)
|
78
|
-
NgrokAPI::Models::EndpointTLSTermination.new(client: self,
|
78
|
+
NgrokAPI::Models::EndpointTLSTermination.new(client: self, attrs: result)
|
79
79
|
end
|
80
80
|
|
81
81
|
##
|
@@ -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
|
##
|
@@ -38,7 +40,28 @@ module NgrokAPI
|
|
38
40
|
data[:description] = description if description
|
39
41
|
data[:metadata] = metadata if metadata
|
40
42
|
result = @client.post(path % replacements, data: data)
|
41
|
-
NgrokAPI::Models::IPPolicy.new(client: self,
|
43
|
+
NgrokAPI::Models::IPPolicy.new(client: self, attrs: result)
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a new IP policy. It will not apply to any traffic until you associate to
|
48
|
+
# a traffic source via an endpoint configuration or IP restriction.
|
49
|
+
# Throws an exception if API error.
|
50
|
+
#
|
51
|
+
# @param [string] description human-readable description of the source IPs of this IP policy. optional, max 255 bytes.
|
52
|
+
# @param [string] metadata arbitrary user-defined machine-readable data of this IP policy. optional, max 4096 bytes.
|
53
|
+
# @return [NgrokAPI::Models::IPPolicy] result from the API request
|
54
|
+
#
|
55
|
+
# https://ngrok.com/docs/api#api-ip-policies-create
|
56
|
+
def create!(description: "", metadata: "", action: nil)
|
57
|
+
path = '/ip_policies'
|
58
|
+
replacements = {
|
59
|
+
}
|
60
|
+
data = {}
|
61
|
+
data[:description] = description if description
|
62
|
+
data[:metadata] = metadata if metadata
|
63
|
+
result = @client.post(path % replacements, data: data, danger: true)
|
64
|
+
NgrokAPI::Models::IPPolicy.new(client: self, attrs: result)
|
42
65
|
end
|
43
66
|
|
44
67
|
##
|
@@ -90,7 +113,7 @@ module NgrokAPI
|
|
90
113
|
}
|
91
114
|
data = {}
|
92
115
|
result = @client.get(path % replacements, data: data)
|
93
|
-
NgrokAPI::Models::IPPolicy.new(client: self,
|
116
|
+
NgrokAPI::Models::IPPolicy.new(client: self, attrs: result)
|
94
117
|
end
|
95
118
|
|
96
119
|
##
|
@@ -108,7 +131,7 @@ module NgrokAPI
|
|
108
131
|
}
|
109
132
|
data = {}
|
110
133
|
result = @client.get(path % replacements, data: data, danger: true)
|
111
|
-
NgrokAPI::Models::IPPolicy.new(client: self,
|
134
|
+
NgrokAPI::Models::IPPolicy.new(client: self, attrs: result)
|
112
135
|
end
|
113
136
|
|
114
137
|
##
|
@@ -120,8 +143,7 @@ module NgrokAPI
|
|
120
143
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
121
144
|
#
|
122
145
|
# https://ngrok.com/docs/api#api-ip-policies-list
|
123
|
-
def list(before_id: nil, limit: nil,
|
124
|
-
url: nil)
|
146
|
+
def list(before_id: nil, limit: nil, url: nil)
|
125
147
|
result = @client.list(
|
126
148
|
before_id: before_id,
|
127
149
|
limit: limit,
|
@@ -131,7 +153,7 @@ module NgrokAPI
|
|
131
153
|
|
132
154
|
NgrokAPI::Models::Listable.new(
|
133
155
|
client: self,
|
134
|
-
|
156
|
+
attrs: result,
|
135
157
|
list_property: LIST_PROPERTY,
|
136
158
|
klass: NgrokAPI::Models::IPPolicy
|
137
159
|
)
|
@@ -147,8 +169,7 @@ module NgrokAPI
|
|
147
169
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
148
170
|
#
|
149
171
|
# https://ngrok.com/docs/api#api-ip-policies-list
|
150
|
-
def list!(before_id: nil, limit: nil,
|
151
|
-
url: nil)
|
172
|
+
def list!(before_id: nil, limit: nil, url: nil)
|
152
173
|
result = @client.list(
|
153
174
|
before_id: before_id,
|
154
175
|
limit: limit,
|
@@ -159,7 +180,7 @@ module NgrokAPI
|
|
159
180
|
|
160
181
|
NgrokAPI::Models::Listable.new(
|
161
182
|
client: self,
|
162
|
-
|
183
|
+
attrs: result,
|
163
184
|
list_property: LIST_PROPERTY,
|
164
185
|
klass: NgrokAPI::Models::IPPolicy,
|
165
186
|
danger: true
|
@@ -184,7 +205,7 @@ module NgrokAPI
|
|
184
205
|
data[:description] = description if description
|
185
206
|
data[:metadata] = metadata if metadata
|
186
207
|
result = @client.patch(path % replacements, data: data)
|
187
|
-
NgrokAPI::Models::IPPolicy.new(client: self,
|
208
|
+
NgrokAPI::Models::IPPolicy.new(client: self, attrs: result)
|
188
209
|
end
|
189
210
|
|
190
211
|
##
|
@@ -206,7 +227,7 @@ module NgrokAPI
|
|
206
227
|
data[:description] = description if description
|
207
228
|
data[:metadata] = metadata if metadata
|
208
229
|
result = @client.patch(path % replacements, data: data, danger: true)
|
209
|
-
NgrokAPI::Models::IPPolicy.new(client: self,
|
230
|
+
NgrokAPI::Models::IPPolicy.new(client: self, attrs: result)
|
210
231
|
end
|
211
232
|
end
|
212
233
|
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,7 @@ module NgrokAPI
|
|
30
32
|
# @return [NgrokAPI::Models::IPPolicyRule] result from the API request
|
31
33
|
#
|
32
34
|
# https://ngrok.com/docs/api#api-ip-policy-rules-create
|
33
|
-
def create(description: "", metadata: "", cidr:, ip_policy_id:, action:
|
35
|
+
def create(description: "", metadata: "", cidr:, ip_policy_id:, action:)
|
34
36
|
path = '/ip_policy_rules'
|
35
37
|
replacements = {
|
36
38
|
}
|
@@ -41,7 +43,33 @@ module NgrokAPI
|
|
41
43
|
data[:ip_policy_id] = ip_policy_id if ip_policy_id
|
42
44
|
data[:action] = action if action
|
43
45
|
result = @client.post(path % replacements, data: data)
|
44
|
-
NgrokAPI::Models::IPPolicyRule.new(client: self,
|
46
|
+
NgrokAPI::Models::IPPolicyRule.new(client: self, attrs: result)
|
47
|
+
end
|
48
|
+
|
49
|
+
##
|
50
|
+
# Create a new IP policy rule attached to an IP Policy.
|
51
|
+
# Throws an exception if API error.
|
52
|
+
#
|
53
|
+
# @param [string] description human-readable description of the source IPs of this IP rule. optional, max 255 bytes.
|
54
|
+
# @param [string] metadata arbitrary user-defined machine-readable data of this IP policy rule. optional, max 4096 bytes.
|
55
|
+
# @param [string] cidr an IP or IP range specified in CIDR notation. IPv4 and IPv6 are both supported.
|
56
|
+
# @param [string] ip_policy_id ID of the IP policy this IP policy rule will be attached to
|
57
|
+
# @param [string] action the action to apply to the policy rule, either ``allow`` or ``deny``
|
58
|
+
# @return [NgrokAPI::Models::IPPolicyRule] result from the API request
|
59
|
+
#
|
60
|
+
# https://ngrok.com/docs/api#api-ip-policy-rules-create
|
61
|
+
def create!(description: "", metadata: "", cidr:, ip_policy_id:, action:)
|
62
|
+
path = '/ip_policy_rules'
|
63
|
+
replacements = {
|
64
|
+
}
|
65
|
+
data = {}
|
66
|
+
data[:description] = description if description
|
67
|
+
data[:metadata] = metadata if metadata
|
68
|
+
data[:cidr] = cidr if cidr
|
69
|
+
data[:ip_policy_id] = ip_policy_id if ip_policy_id
|
70
|
+
data[:action] = action if action
|
71
|
+
result = @client.post(path % replacements, data: data, danger: true)
|
72
|
+
NgrokAPI::Models::IPPolicyRule.new(client: self, attrs: result)
|
45
73
|
end
|
46
74
|
|
47
75
|
##
|
@@ -89,7 +117,7 @@ module NgrokAPI
|
|
89
117
|
}
|
90
118
|
data = {}
|
91
119
|
result = @client.get(path % replacements, data: data)
|
92
|
-
NgrokAPI::Models::IPPolicyRule.new(client: self,
|
120
|
+
NgrokAPI::Models::IPPolicyRule.new(client: self, attrs: result)
|
93
121
|
end
|
94
122
|
|
95
123
|
##
|
@@ -107,7 +135,7 @@ module NgrokAPI
|
|
107
135
|
}
|
108
136
|
data = {}
|
109
137
|
result = @client.get(path % replacements, data: data, danger: true)
|
110
|
-
NgrokAPI::Models::IPPolicyRule.new(client: self,
|
138
|
+
NgrokAPI::Models::IPPolicyRule.new(client: self, attrs: result)
|
111
139
|
end
|
112
140
|
|
113
141
|
##
|
@@ -119,8 +147,7 @@ module NgrokAPI
|
|
119
147
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
120
148
|
#
|
121
149
|
# https://ngrok.com/docs/api#api-ip-policy-rules-list
|
122
|
-
def list(before_id: nil, limit: nil,
|
123
|
-
url: nil)
|
150
|
+
def list(before_id: nil, limit: nil, url: nil)
|
124
151
|
result = @client.list(
|
125
152
|
before_id: before_id,
|
126
153
|
limit: limit,
|
@@ -130,7 +157,7 @@ module NgrokAPI
|
|
130
157
|
|
131
158
|
NgrokAPI::Models::Listable.new(
|
132
159
|
client: self,
|
133
|
-
|
160
|
+
attrs: result,
|
134
161
|
list_property: LIST_PROPERTY,
|
135
162
|
klass: NgrokAPI::Models::IPPolicyRule
|
136
163
|
)
|
@@ -146,8 +173,7 @@ module NgrokAPI
|
|
146
173
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
147
174
|
#
|
148
175
|
# https://ngrok.com/docs/api#api-ip-policy-rules-list
|
149
|
-
def list!(before_id: nil, limit: nil,
|
150
|
-
url: nil)
|
176
|
+
def list!(before_id: nil, limit: nil, url: nil)
|
151
177
|
result = @client.list(
|
152
178
|
before_id: before_id,
|
153
179
|
limit: limit,
|
@@ -158,7 +184,7 @@ module NgrokAPI
|
|
158
184
|
|
159
185
|
NgrokAPI::Models::Listable.new(
|
160
186
|
client: self,
|
161
|
-
|
187
|
+
attrs: result,
|
162
188
|
list_property: LIST_PROPERTY,
|
163
189
|
klass: NgrokAPI::Models::IPPolicyRule,
|
164
190
|
danger: true
|
@@ -185,7 +211,7 @@ module NgrokAPI
|
|
185
211
|
data[:metadata] = metadata if metadata
|
186
212
|
data[:cidr] = cidr if cidr
|
187
213
|
result = @client.patch(path % replacements, data: data)
|
188
|
-
NgrokAPI::Models::IPPolicyRule.new(client: self,
|
214
|
+
NgrokAPI::Models::IPPolicyRule.new(client: self, attrs: result)
|
189
215
|
end
|
190
216
|
|
191
217
|
##
|
@@ -209,7 +235,7 @@ module NgrokAPI
|
|
209
235
|
data[:metadata] = metadata if metadata
|
210
236
|
data[:cidr] = cidr if cidr
|
211
237
|
result = @client.patch(path % replacements, data: data, danger: true)
|
212
|
-
NgrokAPI::Models::IPPolicyRule.new(client: self,
|
238
|
+
NgrokAPI::Models::IPPolicyRule.new(client: self, attrs: result)
|
213
239
|
end
|
214
240
|
end
|
215
241
|
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
|
##
|
@@ -45,7 +47,33 @@ module NgrokAPI
|
|
45
47
|
data[:type] = type if type
|
46
48
|
data[:ip_policy_ids] = ip_policy_ids if ip_policy_ids
|
47
49
|
result = @client.post(path % replacements, data: data)
|
48
|
-
NgrokAPI::Models::IPRestriction.new(client: self,
|
50
|
+
NgrokAPI::Models::IPRestriction.new(client: self, attrs: result)
|
51
|
+
end
|
52
|
+
|
53
|
+
##
|
54
|
+
# Create a new IP restriction
|
55
|
+
# Throws an exception if API error.
|
56
|
+
#
|
57
|
+
# @param [string] description human-readable description of this IP restriction. optional, max 255 bytes.
|
58
|
+
# @param [string] metadata arbitrary user-defined machine-readable data of this IP restriction. optional, max 4096 bytes.
|
59
|
+
# @param [boolean] enforced true if the IP restriction will be enforced. if false, only warnings will be issued
|
60
|
+
# @param [string] type the type of IP restriction. this defines what traffic will be restricted with the attached policies. four values are currently supported: ``dashboard``, ``api``, ``agent``, and ``endpoints``
|
61
|
+
# @param [List<string>] ip_policy_ids the set of IP policy identifiers that are used to enforce the restriction
|
62
|
+
# @return [NgrokAPI::Models::IPRestriction] result from the API request
|
63
|
+
#
|
64
|
+
# https://ngrok.com/docs/api#api-ip-restrictions-create
|
65
|
+
def create!(description: "", metadata: "", enforced: False, type:, ip_policy_ids:)
|
66
|
+
path = '/ip_restrictions'
|
67
|
+
replacements = {
|
68
|
+
}
|
69
|
+
data = {}
|
70
|
+
data[:description] = description if description
|
71
|
+
data[:metadata] = metadata if metadata
|
72
|
+
data[:enforced] = enforced if enforced
|
73
|
+
data[:type] = type if type
|
74
|
+
data[:ip_policy_ids] = ip_policy_ids if ip_policy_ids
|
75
|
+
result = @client.post(path % replacements, data: data, danger: true)
|
76
|
+
NgrokAPI::Models::IPRestriction.new(client: self, attrs: result)
|
49
77
|
end
|
50
78
|
|
51
79
|
##
|
@@ -93,7 +121,7 @@ module NgrokAPI
|
|
93
121
|
}
|
94
122
|
data = {}
|
95
123
|
result = @client.get(path % replacements, data: data)
|
96
|
-
NgrokAPI::Models::IPRestriction.new(client: self,
|
124
|
+
NgrokAPI::Models::IPRestriction.new(client: self, attrs: result)
|
97
125
|
end
|
98
126
|
|
99
127
|
##
|
@@ -111,7 +139,7 @@ module NgrokAPI
|
|
111
139
|
}
|
112
140
|
data = {}
|
113
141
|
result = @client.get(path % replacements, data: data, danger: true)
|
114
|
-
NgrokAPI::Models::IPRestriction.new(client: self,
|
142
|
+
NgrokAPI::Models::IPRestriction.new(client: self, attrs: result)
|
115
143
|
end
|
116
144
|
|
117
145
|
##
|
@@ -123,8 +151,7 @@ module NgrokAPI
|
|
123
151
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
124
152
|
#
|
125
153
|
# https://ngrok.com/docs/api#api-ip-restrictions-list
|
126
|
-
def list(before_id: nil, limit: nil,
|
127
|
-
url: nil)
|
154
|
+
def list(before_id: nil, limit: nil, url: nil)
|
128
155
|
result = @client.list(
|
129
156
|
before_id: before_id,
|
130
157
|
limit: limit,
|
@@ -134,7 +161,7 @@ module NgrokAPI
|
|
134
161
|
|
135
162
|
NgrokAPI::Models::Listable.new(
|
136
163
|
client: self,
|
137
|
-
|
164
|
+
attrs: result,
|
138
165
|
list_property: LIST_PROPERTY,
|
139
166
|
klass: NgrokAPI::Models::IPRestriction
|
140
167
|
)
|
@@ -150,8 +177,7 @@ module NgrokAPI
|
|
150
177
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
151
178
|
#
|
152
179
|
# https://ngrok.com/docs/api#api-ip-restrictions-list
|
153
|
-
def list!(before_id: nil, limit: nil,
|
154
|
-
url: nil)
|
180
|
+
def list!(before_id: nil, limit: nil, url: nil)
|
155
181
|
result = @client.list(
|
156
182
|
before_id: before_id,
|
157
183
|
limit: limit,
|
@@ -162,7 +188,7 @@ module NgrokAPI
|
|
162
188
|
|
163
189
|
NgrokAPI::Models::Listable.new(
|
164
190
|
client: self,
|
165
|
-
|
191
|
+
attrs: result,
|
166
192
|
list_property: LIST_PROPERTY,
|
167
193
|
klass: NgrokAPI::Models::IPRestriction,
|
168
194
|
danger: true
|
@@ -191,7 +217,7 @@ module NgrokAPI
|
|
191
217
|
data[:enforced] = enforced if enforced
|
192
218
|
data[:ip_policy_ids] = ip_policy_ids if ip_policy_ids
|
193
219
|
result = @client.patch(path % replacements, data: data)
|
194
|
-
NgrokAPI::Models::IPRestriction.new(client: self,
|
220
|
+
NgrokAPI::Models::IPRestriction.new(client: self, attrs: result)
|
195
221
|
end
|
196
222
|
|
197
223
|
##
|
@@ -217,7 +243,7 @@ module NgrokAPI
|
|
217
243
|
data[:enforced] = enforced if enforced
|
218
244
|
data[:ip_policy_ids] = ip_policy_ids if ip_policy_ids
|
219
245
|
result = @client.patch(path % replacements, data: data, danger: true)
|
220
|
-
NgrokAPI::Models::IPRestriction.new(client: self,
|
246
|
+
NgrokAPI::Models::IPRestriction.new(client: self, attrs: result)
|
221
247
|
end
|
222
248
|
end
|
223
249
|
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
|
##
|
@@ -38,7 +40,29 @@ module NgrokAPI
|
|
38
40
|
data[:metadata] = metadata if metadata
|
39
41
|
data[:region] = region if region
|
40
42
|
result = @client.post(path % replacements, data: data)
|
41
|
-
NgrokAPI::Models::ReservedAddr.new(client: self,
|
43
|
+
NgrokAPI::Models::ReservedAddr.new(client: self, attrs: result)
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a new reserved address.
|
48
|
+
# Throws an exception if API error.
|
49
|
+
#
|
50
|
+
# @param [string] description human-readable description of what this reserved address will be used for
|
51
|
+
# @param [string] metadata arbitrary user-defined machine-readable data of this reserved address. Optional, max 4096 bytes.
|
52
|
+
# @param [string] region reserve the address in this geographic ngrok datacenter. Optional, default is us. (au, eu, ap, us, jp, in, sa)
|
53
|
+
# @return [NgrokAPI::Models::ReservedAddr] result from the API request
|
54
|
+
#
|
55
|
+
# https://ngrok.com/docs/api#api-reserved-addrs-create
|
56
|
+
def create!(description: "", metadata: "", region: "", endpoint_configuration_id: nil)
|
57
|
+
path = '/reserved_addrs'
|
58
|
+
replacements = {
|
59
|
+
}
|
60
|
+
data = {}
|
61
|
+
data[:description] = description if description
|
62
|
+
data[:metadata] = metadata if metadata
|
63
|
+
data[:region] = region if region
|
64
|
+
result = @client.post(path % replacements, data: data, danger: true)
|
65
|
+
NgrokAPI::Models::ReservedAddr.new(client: self, attrs: result)
|
42
66
|
end
|
43
67
|
|
44
68
|
##
|
@@ -86,7 +110,7 @@ module NgrokAPI
|
|
86
110
|
}
|
87
111
|
data = {}
|
88
112
|
result = @client.get(path % replacements, data: data)
|
89
|
-
NgrokAPI::Models::ReservedAddr.new(client: self,
|
113
|
+
NgrokAPI::Models::ReservedAddr.new(client: self, attrs: result)
|
90
114
|
end
|
91
115
|
|
92
116
|
##
|
@@ -104,7 +128,7 @@ module NgrokAPI
|
|
104
128
|
}
|
105
129
|
data = {}
|
106
130
|
result = @client.get(path % replacements, data: data, danger: true)
|
107
|
-
NgrokAPI::Models::ReservedAddr.new(client: self,
|
131
|
+
NgrokAPI::Models::ReservedAddr.new(client: self, attrs: result)
|
108
132
|
end
|
109
133
|
|
110
134
|
##
|
@@ -116,8 +140,7 @@ module NgrokAPI
|
|
116
140
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
117
141
|
#
|
118
142
|
# https://ngrok.com/docs/api#api-reserved-addrs-list
|
119
|
-
def list(before_id: nil, limit: nil,
|
120
|
-
url: nil)
|
143
|
+
def list(before_id: nil, limit: nil, url: nil)
|
121
144
|
result = @client.list(
|
122
145
|
before_id: before_id,
|
123
146
|
limit: limit,
|
@@ -127,7 +150,7 @@ module NgrokAPI
|
|
127
150
|
|
128
151
|
NgrokAPI::Models::Listable.new(
|
129
152
|
client: self,
|
130
|
-
|
153
|
+
attrs: result,
|
131
154
|
list_property: LIST_PROPERTY,
|
132
155
|
klass: NgrokAPI::Models::ReservedAddr
|
133
156
|
)
|
@@ -143,8 +166,7 @@ module NgrokAPI
|
|
143
166
|
# @return [NgrokAPI::Models::Listable] result from the API request
|
144
167
|
#
|
145
168
|
# https://ngrok.com/docs/api#api-reserved-addrs-list
|
146
|
-
def list!(before_id: nil, limit: nil,
|
147
|
-
url: nil)
|
169
|
+
def list!(before_id: nil, limit: nil, url: nil)
|
148
170
|
result = @client.list(
|
149
171
|
before_id: before_id,
|
150
172
|
limit: limit,
|
@@ -155,7 +177,7 @@ module NgrokAPI
|
|
155
177
|
|
156
178
|
NgrokAPI::Models::Listable.new(
|
157
179
|
client: self,
|
158
|
-
|
180
|
+
attrs: result,
|
159
181
|
list_property: LIST_PROPERTY,
|
160
182
|
klass: NgrokAPI::Models::ReservedAddr,
|
161
183
|
danger: true
|
@@ -180,7 +202,7 @@ module NgrokAPI
|
|
180
202
|
data[:description] = description if description
|
181
203
|
data[:metadata] = metadata if metadata
|
182
204
|
result = @client.patch(path % replacements, data: data)
|
183
|
-
NgrokAPI::Models::ReservedAddr.new(client: self,
|
205
|
+
NgrokAPI::Models::ReservedAddr.new(client: self, attrs: result)
|
184
206
|
end
|
185
207
|
|
186
208
|
##
|
@@ -202,7 +224,7 @@ module NgrokAPI
|
|
202
224
|
data[:description] = description if description
|
203
225
|
data[:metadata] = metadata if metadata
|
204
226
|
result = @client.patch(path % replacements, data: data, danger: true)
|
205
|
-
NgrokAPI::Models::ReservedAddr.new(client: self,
|
227
|
+
NgrokAPI::Models::ReservedAddr.new(client: self, attrs: result)
|
206
228
|
end
|
207
229
|
end
|
208
230
|
end
|