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,14 +1,16 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
RSpec.describe NgrokAPI::Models::WeightedBackend do
|
4
6
|
before(:each) do
|
5
7
|
@client = class_double("WeightedBackendsClient")
|
6
|
-
@weighted_backend = NgrokAPI::Models::WeightedBackend.new(client: @client,
|
8
|
+
@weighted_backend = NgrokAPI::Models::WeightedBackend.new(client: @client, attrs: weighted_backend_result)
|
7
9
|
end
|
8
10
|
|
9
11
|
describe "#==" do
|
10
12
|
it "is equal if the results are the same" do
|
11
|
-
other = NgrokAPI::Models::WeightedBackend.new(client: @client,
|
13
|
+
other = NgrokAPI::Models::WeightedBackend.new(client: @client, attrs: weighted_backend_result)
|
12
14
|
expect(@weighted_backend == other).to eq true
|
13
15
|
end
|
14
16
|
end
|
@@ -1,84 +1,86 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
let(:
|
7
|
-
let(:
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
expect(
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
end
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe NgrokAPI::PagedIterator do
|
6
|
+
let(:client) { class_double("APIKeysClient") }
|
7
|
+
let(:uri) { "https://api.ngrok.com/api_keys" }
|
8
|
+
let(:next_page_uri) { "#{uri}?before_id=ak_1xuyYBCA83z5zo2MkBJ0JjvxPIs&limit=1" }
|
9
|
+
let(:results) do
|
10
|
+
{ "keys" => [api_key_result], "uri" => uri, "next_page_uri" => next_page_uri }
|
11
|
+
end
|
12
|
+
let(:empty_results) do
|
13
|
+
{ "keys" => [], "uri" => uri, "next_page_uri" => next_page_uri }
|
14
|
+
end
|
15
|
+
let(:empty_last_results) do
|
16
|
+
{ "keys" => [], "uri" => uri, "next_page_uri" => nil }
|
17
|
+
end
|
18
|
+
let(:item) { NgrokAPI::Models::APIKey.new(client: client, attrs: api_key_result) }
|
19
|
+
let(:page) do
|
20
|
+
NgrokAPI::Models::Listable.new(
|
21
|
+
client: client,
|
22
|
+
attrs: results,
|
23
|
+
list_property: 'keys',
|
24
|
+
klass: NgrokAPI::Models::APIKey
|
25
|
+
)
|
26
|
+
end
|
27
|
+
let(:empty_page) do
|
28
|
+
NgrokAPI::Models::Listable.new(
|
29
|
+
client: client,
|
30
|
+
attrs: empty_results,
|
31
|
+
list_property: 'keys',
|
32
|
+
klass: NgrokAPI::Models::APIKey
|
33
|
+
)
|
34
|
+
end
|
35
|
+
let(:empty_last_page) do
|
36
|
+
NgrokAPI::Models::Listable.new(
|
37
|
+
client: client,
|
38
|
+
attrs: empty_last_results,
|
39
|
+
list_property: 'keys',
|
40
|
+
klass: NgrokAPI::Models::APIKey
|
41
|
+
)
|
42
|
+
end
|
43
|
+
|
44
|
+
describe "#get_next" do
|
45
|
+
it "gets the next result from cache" do
|
46
|
+
paged_iterator = NgrokAPI::PagedIterator.new(
|
47
|
+
client: client,
|
48
|
+
page: page,
|
49
|
+
list_property: 'keys'
|
50
|
+
)
|
51
|
+
expect(page).not_to receive(:next_page_uri)
|
52
|
+
expect(paged_iterator.get_next).to eq(api_key_result)
|
53
|
+
end
|
54
|
+
|
55
|
+
it "gets the next result based on next_page_uri if not in cache" do
|
56
|
+
paged_iterator = NgrokAPI::PagedIterator.new(
|
57
|
+
client: client,
|
58
|
+
page: empty_page,
|
59
|
+
list_property: 'keys'
|
60
|
+
)
|
61
|
+
expect(empty_page).to receive(:attrs).and_return(item)
|
62
|
+
expect(empty_page).to receive(:next_page_uri)
|
63
|
+
expect(paged_iterator.get_next).to eq(nil)
|
64
|
+
end
|
65
|
+
|
66
|
+
it "gets the next result based on next_page_uri if not in cache (with data)" do
|
67
|
+
paged_iterator = NgrokAPI::PagedIterator.new(
|
68
|
+
client: client,
|
69
|
+
page: empty_page,
|
70
|
+
list_property: 'keys'
|
71
|
+
)
|
72
|
+
expect(client).to receive(:list).with({ danger: false, url: next_page_uri }).and_return(page)
|
73
|
+
expect(paged_iterator.get_next).to eq(api_key_result)
|
74
|
+
end
|
75
|
+
|
76
|
+
it "gets the next result based on next_page_uri if not in cache (without data)" do
|
77
|
+
paged_iterator = NgrokAPI::PagedIterator.new(
|
78
|
+
client: client,
|
79
|
+
page: empty_page,
|
80
|
+
list_property: 'keys'
|
81
|
+
)
|
82
|
+
expect(client).to receive(:list).with({ danger: false, url: next_page_uri }).and_return(empty_last_page)
|
83
|
+
expect(paged_iterator.get_next).to eq(nil)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
RSpec.describe NgrokAPI::Services::AbuseReportsClient do
|
@@ -30,6 +32,25 @@ RSpec.describe NgrokAPI::Services::AbuseReportsClient do
|
|
30
32
|
end
|
31
33
|
end
|
32
34
|
|
35
|
+
describe "#create!" do
|
36
|
+
it "will make a post request and return an instance of NgrokAPI::Models::AbuseReport" do
|
37
|
+
path = '/abuse_reports'
|
38
|
+
replacements = {
|
39
|
+
}
|
40
|
+
data = {}
|
41
|
+
data[:urls] = "New urls"
|
42
|
+
data[:metadata] = "New metadata"
|
43
|
+
expect(@client).to receive(:post).with(path % replacements, data: data).
|
44
|
+
and_return(abuse_report_result)
|
45
|
+
result = @abuse_reports_client.create(
|
46
|
+
urls: "New urls",
|
47
|
+
metadata: "New metadata"
|
48
|
+
)
|
49
|
+
expect(result.class).to eq(NgrokAPI::Models::AbuseReport)
|
50
|
+
# expect(result.id).to eq(abuse_report_result["id"])
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
33
54
|
describe "#get" do
|
34
55
|
it "will make a get request and return an instance of NgrokAPI::Models::AbuseReport" do
|
35
56
|
path = '/abuse_reports/%{id}'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
RSpec.describe NgrokAPI::Services::AgentIngressesClient do
|
@@ -21,14 +23,39 @@ RSpec.describe NgrokAPI::Services::AgentIngressesClient do
|
|
21
23
|
data[:description] = "New description"
|
22
24
|
data[:metadata] = "New metadata"
|
23
25
|
data[:domain] = "New domain"
|
26
|
+
data[:certificate_management_policy] = "New certificate_management_policy"
|
27
|
+
expect(@client).to receive(:post).with(path % replacements, data: data).
|
28
|
+
and_return(agent_ingress_result)
|
29
|
+
result = @agent_ingresses_client.create(
|
30
|
+
description: "New description",
|
31
|
+
metadata: "New metadata",
|
32
|
+
domain: "New domain",
|
33
|
+
certificate_management_policy: "New certificate_management_policy"
|
34
|
+
)
|
35
|
+
expect(result.class).to eq(NgrokAPI::Models::AgentIngress)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
describe "#create!" do
|
40
|
+
it "will make a post request and return an instance of NgrokAPI::Models::AgentIngress" do
|
41
|
+
path = '/agent_ingresses'
|
42
|
+
replacements = {
|
43
|
+
}
|
44
|
+
data = {}
|
45
|
+
data[:description] = "New description"
|
46
|
+
data[:metadata] = "New metadata"
|
47
|
+
data[:domain] = "New domain"
|
48
|
+
data[:certificate_management_policy] = "New certificate_management_policy"
|
24
49
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
25
50
|
and_return(agent_ingress_result)
|
26
51
|
result = @agent_ingresses_client.create(
|
27
52
|
description: "New description",
|
28
53
|
metadata: "New metadata",
|
29
|
-
domain: "New domain"
|
54
|
+
domain: "New domain",
|
55
|
+
certificate_management_policy: "New certificate_management_policy"
|
30
56
|
)
|
31
57
|
expect(result.class).to eq(NgrokAPI::Models::AgentIngress)
|
58
|
+
# expect(result.id).to eq(agent_ingress_result["id"])
|
32
59
|
end
|
33
60
|
end
|
34
61
|
|
@@ -125,12 +152,14 @@ RSpec.describe NgrokAPI::Services::AgentIngressesClient do
|
|
125
152
|
data = {}
|
126
153
|
data[:description] = "New description"
|
127
154
|
data[:metadata] = "New metadata"
|
155
|
+
data[:certificate_management_policy] = "New certificate_management_policy"
|
128
156
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
129
157
|
and_return(agent_ingress_result)
|
130
158
|
result = @agent_ingresses_client.update(
|
131
159
|
id: agent_ingress_result["id"],
|
132
160
|
description: "New description",
|
133
|
-
metadata: "New metadata"
|
161
|
+
metadata: "New metadata",
|
162
|
+
certificate_management_policy: "New certificate_management_policy"
|
134
163
|
)
|
135
164
|
expect(result.class).to eq(NgrokAPI::Models::AgentIngress)
|
136
165
|
end
|
@@ -145,12 +174,14 @@ RSpec.describe NgrokAPI::Services::AgentIngressesClient do
|
|
145
174
|
data = {}
|
146
175
|
data[:description] = "New description"
|
147
176
|
data[:metadata] = "New metadata"
|
177
|
+
data[:certificate_management_policy] = "New certificate_management_policy"
|
148
178
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
149
179
|
and_return(agent_ingress_result)
|
150
180
|
result = @agent_ingresses_client.update(
|
151
181
|
id: agent_ingress_result["id"],
|
152
182
|
description: "New description",
|
153
|
-
metadata: "New metadata"
|
183
|
+
metadata: "New metadata",
|
184
|
+
certificate_management_policy: "New certificate_management_policy"
|
154
185
|
)
|
155
186
|
expect(result.class).to eq(NgrokAPI::Models::AgentIngress)
|
156
187
|
# expect(result.id).to eq(agent_ingress_result["id"])
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
RSpec.describe NgrokAPI::Services::APIKeysClient do
|
@@ -20,16 +22,41 @@ RSpec.describe NgrokAPI::Services::APIKeysClient do
|
|
20
22
|
data = {}
|
21
23
|
data[:description] = "New description"
|
22
24
|
data[:metadata] = "New metadata"
|
25
|
+
data[:owner_id] = "New owner_id"
|
23
26
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
24
27
|
and_return(api_key_result)
|
25
28
|
result = @api_keys_client.create(
|
26
29
|
description: "New description",
|
27
|
-
metadata: "New metadata"
|
30
|
+
metadata: "New metadata",
|
31
|
+
owner_id: "New owner_id",
|
32
|
+
owner_email: "New owner_email"
|
28
33
|
)
|
29
34
|
expect(result.class).to eq(NgrokAPI::Models::APIKey)
|
30
35
|
end
|
31
36
|
end
|
32
37
|
|
38
|
+
describe "#create!" do
|
39
|
+
it "will make a post request and return an instance of NgrokAPI::Models::APIKey" do
|
40
|
+
path = '/api_keys'
|
41
|
+
replacements = {
|
42
|
+
}
|
43
|
+
data = {}
|
44
|
+
data[:description] = "New description"
|
45
|
+
data[:metadata] = "New metadata"
|
46
|
+
data[:owner_id] = "New owner_id"
|
47
|
+
expect(@client).to receive(:post).with(path % replacements, data: data).
|
48
|
+
and_return(api_key_result)
|
49
|
+
result = @api_keys_client.create(
|
50
|
+
description: "New description",
|
51
|
+
metadata: "New metadata",
|
52
|
+
owner_id: "New owner_id",
|
53
|
+
owner_email: "New owner_email"
|
54
|
+
)
|
55
|
+
expect(result.class).to eq(NgrokAPI::Models::APIKey)
|
56
|
+
# expect(result.id).to eq(api_key_result["id"])
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
33
60
|
describe "#delete" do
|
34
61
|
it "will make a delete request" do
|
35
62
|
path = '/api_keys/%{id}'
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe NgrokAPI::Services::ApplicationSessionsClient do
|
6
|
+
let(:base_url) { 'https://api.ngrok.com' }
|
7
|
+
let(:path) { '/app/sessions/%{id}' }
|
8
|
+
let(:not_found) do
|
9
|
+
NgrokAPI::Errors::NotFoundError.new(response: application_session_result)
|
10
|
+
end
|
11
|
+
|
12
|
+
before(:each) do
|
13
|
+
@client = class_double("HttpClient")
|
14
|
+
@application_sessions_client = NgrokAPI::Services::ApplicationSessionsClient.new(client: @client)
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#get" do
|
18
|
+
it "will make a get request and return an instance of NgrokAPI::Models::ApplicationSession" do
|
19
|
+
path = '/app/sessions/%{id}'
|
20
|
+
replacements = {
|
21
|
+
id: application_session_result["id"],
|
22
|
+
}
|
23
|
+
data = {}
|
24
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
25
|
+
and_return(application_session_result)
|
26
|
+
result = @application_sessions_client.get(
|
27
|
+
id: application_session_result["id"]
|
28
|
+
)
|
29
|
+
expect(result.class).to eq(NgrokAPI::Models::ApplicationSession)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe "#get!" do
|
34
|
+
it "will make a get request and return an instance of NgrokAPI::Models::ApplicationSession" do
|
35
|
+
path = '/app/sessions/%{id}'
|
36
|
+
replacements = {
|
37
|
+
id: application_session_result["id"],
|
38
|
+
}
|
39
|
+
data = {}
|
40
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
41
|
+
and_return(application_session_result)
|
42
|
+
result = @application_sessions_client.get(
|
43
|
+
id: application_session_result["id"]
|
44
|
+
)
|
45
|
+
expect(result.class).to eq(NgrokAPI::Models::ApplicationSession)
|
46
|
+
# expect(result.id).to eq(application_session_result["id"])
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe "#delete" do
|
51
|
+
it "will make a delete request" do
|
52
|
+
path = '/app/sessions/%{id}'
|
53
|
+
replacements = {
|
54
|
+
id: api_key_result["id"],
|
55
|
+
}
|
56
|
+
expect(@client).to receive(:delete).with(path % replacements).and_return(nil)
|
57
|
+
@application_sessions_client.delete(
|
58
|
+
id: api_key_result["id"]
|
59
|
+
)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
describe "#delete!" do
|
64
|
+
it "will make a delete request" do
|
65
|
+
path = '/app/sessions/%{id}'
|
66
|
+
replacements = {
|
67
|
+
id: api_key_result["id"],
|
68
|
+
}
|
69
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).and_return(nil)
|
70
|
+
@application_sessions_client.delete!(
|
71
|
+
id: api_key_result["id"]
|
72
|
+
)
|
73
|
+
end
|
74
|
+
|
75
|
+
it "will make a delete request and return NotFoundError if 404" do
|
76
|
+
path = '/app/sessions/%{id}'
|
77
|
+
replacements = {
|
78
|
+
id: api_key_result["id"],
|
79
|
+
}
|
80
|
+
expect do
|
81
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).
|
82
|
+
and_raise(NgrokAPI::Errors::NotFoundError)
|
83
|
+
result = @application_sessions_client.delete!(
|
84
|
+
id: api_key_result["id"]
|
85
|
+
)
|
86
|
+
expect(result).to be nil
|
87
|
+
end.to raise_error(NgrokAPI::Errors::NotFoundError)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
describe "#list" do
|
92
|
+
it "will make a call to list (a GET request) and return a NgrokAPI::Models::Listable" do
|
93
|
+
expect(@client).to receive(:list).
|
94
|
+
and_return(application_session_results)
|
95
|
+
url = base_url + path + "?before_id=" + api_key_result["id"] + "&limit=1"
|
96
|
+
result = @application_sessions_client.list(url: url)
|
97
|
+
expect(result.class).to eq(NgrokAPI::Models::Listable)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe NgrokAPI::Services::ApplicationUsersClient do
|
6
|
+
let(:base_url) { 'https://api.ngrok.com' }
|
7
|
+
let(:path) { '/app/users/%{id}' }
|
8
|
+
let(:not_found) do
|
9
|
+
NgrokAPI::Errors::NotFoundError.new(response: application_user_result)
|
10
|
+
end
|
11
|
+
|
12
|
+
before(:each) do
|
13
|
+
@client = class_double("HttpClient")
|
14
|
+
@application_users_client = NgrokAPI::Services::ApplicationUsersClient.new(client: @client)
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#get" do
|
18
|
+
it "will make a get request and return an instance of NgrokAPI::Models::ApplicationUser" do
|
19
|
+
path = '/app/users/%{id}'
|
20
|
+
replacements = {
|
21
|
+
id: application_user_result["id"],
|
22
|
+
}
|
23
|
+
data = {}
|
24
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
25
|
+
and_return(application_user_result)
|
26
|
+
result = @application_users_client.get(
|
27
|
+
id: application_user_result["id"]
|
28
|
+
)
|
29
|
+
expect(result.class).to eq(NgrokAPI::Models::ApplicationUser)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe "#get!" do
|
34
|
+
it "will make a get request and return an instance of NgrokAPI::Models::ApplicationUser" do
|
35
|
+
path = '/app/users/%{id}'
|
36
|
+
replacements = {
|
37
|
+
id: application_user_result["id"],
|
38
|
+
}
|
39
|
+
data = {}
|
40
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
41
|
+
and_return(application_user_result)
|
42
|
+
result = @application_users_client.get(
|
43
|
+
id: application_user_result["id"]
|
44
|
+
)
|
45
|
+
expect(result.class).to eq(NgrokAPI::Models::ApplicationUser)
|
46
|
+
# expect(result.id).to eq(application_user_result["id"])
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe "#delete" do
|
51
|
+
it "will make a delete request" do
|
52
|
+
path = '/app/users/%{id}'
|
53
|
+
replacements = {
|
54
|
+
id: api_key_result["id"],
|
55
|
+
}
|
56
|
+
expect(@client).to receive(:delete).with(path % replacements).and_return(nil)
|
57
|
+
@application_users_client.delete(
|
58
|
+
id: api_key_result["id"]
|
59
|
+
)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
describe "#delete!" do
|
64
|
+
it "will make a delete request" do
|
65
|
+
path = '/app/users/%{id}'
|
66
|
+
replacements = {
|
67
|
+
id: api_key_result["id"],
|
68
|
+
}
|
69
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).and_return(nil)
|
70
|
+
@application_users_client.delete!(
|
71
|
+
id: api_key_result["id"]
|
72
|
+
)
|
73
|
+
end
|
74
|
+
|
75
|
+
it "will make a delete request and return NotFoundError if 404" do
|
76
|
+
path = '/app/users/%{id}'
|
77
|
+
replacements = {
|
78
|
+
id: api_key_result["id"],
|
79
|
+
}
|
80
|
+
expect do
|
81
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).
|
82
|
+
and_raise(NgrokAPI::Errors::NotFoundError)
|
83
|
+
result = @application_users_client.delete!(
|
84
|
+
id: api_key_result["id"]
|
85
|
+
)
|
86
|
+
expect(result).to be nil
|
87
|
+
end.to raise_error(NgrokAPI::Errors::NotFoundError)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
describe "#list" do
|
92
|
+
it "will make a call to list (a GET request) and return a NgrokAPI::Models::Listable" do
|
93
|
+
expect(@client).to receive(:list).
|
94
|
+
and_return(application_user_results)
|
95
|
+
url = base_url + path + "?before_id=" + api_key_result["id"] + "&limit=1"
|
96
|
+
result = @application_users_client.list(url: url)
|
97
|
+
expect(result.class).to eq(NgrokAPI::Models::Listable)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
RSpec.describe NgrokAPI::Services::CertificateAuthoritiesClient do
|
@@ -32,6 +34,27 @@ RSpec.describe NgrokAPI::Services::CertificateAuthoritiesClient do
|
|
32
34
|
end
|
33
35
|
end
|
34
36
|
|
37
|
+
describe "#create!" do
|
38
|
+
it "will make a post request and return an instance of NgrokAPI::Models::CertificateAuthority" do
|
39
|
+
path = '/certificate_authorities'
|
40
|
+
replacements = {
|
41
|
+
}
|
42
|
+
data = {}
|
43
|
+
data[:description] = "New description"
|
44
|
+
data[:metadata] = "New metadata"
|
45
|
+
data[:ca_pem] = "New ca_pem"
|
46
|
+
expect(@client).to receive(:post).with(path % replacements, data: data).
|
47
|
+
and_return(certificate_authority_result)
|
48
|
+
result = @certificate_authorities_client.create(
|
49
|
+
description: "New description",
|
50
|
+
metadata: "New metadata",
|
51
|
+
ca_pem: "New ca_pem"
|
52
|
+
)
|
53
|
+
expect(result.class).to eq(NgrokAPI::Models::CertificateAuthority)
|
54
|
+
# expect(result.id).to eq(certificate_authority_result["id"])
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
35
58
|
describe "#delete" do
|
36
59
|
it "will make a delete request" do
|
37
60
|
path = '/certificate_authorities/%{id}'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
RSpec.describe NgrokAPI::Services::CredentialsClient do
|
@@ -21,17 +23,44 @@ RSpec.describe NgrokAPI::Services::CredentialsClient do
|
|
21
23
|
data[:description] = "New description"
|
22
24
|
data[:metadata] = "New metadata"
|
23
25
|
data[:acl] = "New acl"
|
26
|
+
data[:owner_id] = "New owner_id"
|
24
27
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
25
28
|
and_return(credential_result)
|
26
29
|
result = @credentials_client.create(
|
27
30
|
description: "New description",
|
28
31
|
metadata: "New metadata",
|
29
|
-
acl: "New acl"
|
32
|
+
acl: "New acl",
|
33
|
+
owner_id: "New owner_id",
|
34
|
+
owner_email: "New owner_email"
|
30
35
|
)
|
31
36
|
expect(result.class).to eq(NgrokAPI::Models::Credential)
|
32
37
|
end
|
33
38
|
end
|
34
39
|
|
40
|
+
describe "#create!" do
|
41
|
+
it "will make a post request and return an instance of NgrokAPI::Models::Credential" do
|
42
|
+
path = '/credentials'
|
43
|
+
replacements = {
|
44
|
+
}
|
45
|
+
data = {}
|
46
|
+
data[:description] = "New description"
|
47
|
+
data[:metadata] = "New metadata"
|
48
|
+
data[:acl] = "New acl"
|
49
|
+
data[:owner_id] = "New owner_id"
|
50
|
+
expect(@client).to receive(:post).with(path % replacements, data: data).
|
51
|
+
and_return(credential_result)
|
52
|
+
result = @credentials_client.create(
|
53
|
+
description: "New description",
|
54
|
+
metadata: "New metadata",
|
55
|
+
acl: "New acl",
|
56
|
+
owner_id: "New owner_id",
|
57
|
+
owner_email: "New owner_email"
|
58
|
+
)
|
59
|
+
expect(result.class).to eq(NgrokAPI::Models::Credential)
|
60
|
+
# expect(result.id).to eq(credential_result["id"])
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
35
64
|
describe "#delete" do
|
36
65
|
it "will make a delete request" do
|
37
66
|
path = '/credentials/%{id}'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
RSpec.describe NgrokAPI::Services::EdgeRouteBackendModuleClient do
|
@@ -19,8 +21,7 @@ RSpec.describe NgrokAPI::Services::EdgeRouteBackendModuleClient do
|
|
19
21
|
edge_id: endpoint_backend_result["edge_id"],
|
20
22
|
id: endpoint_backend_result["id"],
|
21
23
|
}
|
22
|
-
data =
|
23
|
-
data[:module] = "New a_module"
|
24
|
+
data = "New a_module"
|
24
25
|
expect(@client).to receive(:put).with(path % replacements, data: data).
|
25
26
|
and_return(endpoint_backend_result)
|
26
27
|
result = @edge_route_backend_module_client.replace(
|
@@ -39,8 +40,7 @@ RSpec.describe NgrokAPI::Services::EdgeRouteBackendModuleClient do
|
|
39
40
|
edge_id: endpoint_backend_result["edge_id"],
|
40
41
|
id: endpoint_backend_result["id"],
|
41
42
|
}
|
42
|
-
data =
|
43
|
-
data[:module] = "New a_module"
|
43
|
+
data = "New a_module"
|
44
44
|
expect(@client).to receive(:put).with(path % replacements, data: data).
|
45
45
|
and_return(endpoint_backend_result)
|
46
46
|
result = @edge_route_backend_module_client.replace(
|