ngrok-api 0.21.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/doc/NgrokAPI/Client.html +166 -110
- data/doc/NgrokAPI/Error.html +3 -3
- data/doc/NgrokAPI/Errors/NotFoundError.html +3 -3
- data/doc/NgrokAPI/Errors.html +3 -3
- data/doc/NgrokAPI/HttpClient.html +4 -4
- data/doc/NgrokAPI/Models/APIKey.html +3 -3
- data/doc/NgrokAPI/Models/AWSAuth.html +3 -3
- data/doc/NgrokAPI/Models/AWSCredentials.html +3 -3
- data/doc/NgrokAPI/Models/AWSRole.html +3 -3
- data/doc/NgrokAPI/Models/AbuseReport.html +3 -3
- data/doc/NgrokAPI/Models/AbuseReportHostname.html +3 -3
- data/doc/NgrokAPI/Models/AgentIngress.html +3 -3
- data/doc/NgrokAPI/Models/AgentIngressCertJob.html +3 -3
- data/doc/NgrokAPI/Models/AgentIngressCertPolicy.html +3 -3
- data/doc/NgrokAPI/Models/AgentIngressCertStatus.html +3 -3
- data/doc/NgrokAPI/Models/ApplicationSession.html +3 -3
- data/doc/NgrokAPI/Models/ApplicationUser.html +3 -3
- data/doc/NgrokAPI/Models/BotUser.html +1051 -0
- data/doc/NgrokAPI/Models/BrowserSession.html +3 -3
- data/doc/NgrokAPI/Models/CertificateAuthority.html +3 -3
- data/doc/NgrokAPI/Models/Credential.html +3 -3
- data/doc/NgrokAPI/Models/Endpoint.html +3 -3
- data/doc/NgrokAPI/Models/EndpointAction.html +669 -0
- data/doc/NgrokAPI/Models/EndpointBackend.html +3 -3
- data/doc/NgrokAPI/Models/EndpointBackendMutate.html +3 -3
- data/doc/NgrokAPI/Models/EndpointCircuitBreaker.html +3 -3
- data/doc/NgrokAPI/Models/EndpointCompression.html +3 -3
- data/doc/NgrokAPI/Models/EndpointIPPolicy.html +3 -3
- data/doc/NgrokAPI/Models/EndpointIPPolicyMutate.html +3 -3
- data/doc/NgrokAPI/Models/EndpointMutualTLS.html +3 -3
- data/doc/NgrokAPI/Models/EndpointMutualTLSMutate.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuth.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthAmazon.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthFacebook.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthGitHub.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthGitLab.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthGoogle.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthLinkedIn.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthMicrosoft.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthProvider.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthTwitch.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOIDC.html +3 -3
- data/doc/NgrokAPI/Models/EndpointPolicy.html +743 -0
- data/doc/NgrokAPI/Models/EndpointRequestHeaders.html +3 -3
- data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +3 -3
- data/doc/NgrokAPI/Models/EndpointRule.html +743 -0
- data/doc/NgrokAPI/Models/EndpointSAML.html +18 -96
- data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +18 -96
- data/doc/NgrokAPI/Models/EndpointTLSTermination.html +3 -3
- data/doc/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +3 -3
- data/doc/NgrokAPI/Models/EndpointTrafficPolicy.html +669 -0
- data/doc/NgrokAPI/Models/EndpointUserAgentFilter.html +743 -0
- data/doc/NgrokAPI/Models/EndpointWebhookValidation.html +3 -3
- data/doc/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +3 -3
- data/doc/NgrokAPI/Models/EventDestination.html +3 -3
- data/doc/NgrokAPI/Models/EventSource.html +19 -167
- data/doc/NgrokAPI/Models/EventSourceList.html +3 -3
- data/doc/NgrokAPI/Models/EventSourceReplace.html +19 -167
- data/doc/NgrokAPI/Models/EventSubscription.html +3 -3
- data/doc/NgrokAPI/Models/EventTarget.html +32 -32
- data/doc/NgrokAPI/Models/EventTargetAzureLogsIngestion.html +965 -0
- data/doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html +3 -3
- data/doc/NgrokAPI/Models/EventTargetDatadog.html +3 -3
- data/doc/NgrokAPI/Models/EventTargetFirehose.html +3 -3
- data/doc/NgrokAPI/Models/EventTargetKinesis.html +3 -3
- data/doc/NgrokAPI/Models/FailoverBackend.html +3 -3
- data/doc/NgrokAPI/Models/HTTPResponseBackend.html +3 -3
- data/doc/NgrokAPI/Models/HTTPSEdge.html +3 -3
- data/doc/NgrokAPI/Models/HTTPSEdgeRoute.html +197 -37
- data/doc/NgrokAPI/Models/IPPolicy.html +27 -101
- data/doc/NgrokAPI/Models/IPPolicyRule.html +3 -3
- data/doc/NgrokAPI/Models/IPRestriction.html +3 -3
- data/doc/NgrokAPI/Models/IdentityProvider.html +3 -3
- data/doc/NgrokAPI/Models/Listable.html +3 -3
- data/doc/NgrokAPI/Models/Location.html +3 -3
- data/doc/NgrokAPI/Models/Ref.html +3 -3
- data/doc/NgrokAPI/Models/ReservedAddr.html +22 -96
- data/doc/NgrokAPI/Models/ReservedDomain.html +25 -173
- data/doc/NgrokAPI/Models/ReservedDomainCertJob.html +3 -3
- data/doc/NgrokAPI/Models/ReservedDomainCertPolicy.html +3 -3
- data/doc/NgrokAPI/Models/ReservedDomainCertStatus.html +3 -3
- data/doc/NgrokAPI/Models/SSHCertificateAuthority.html +3 -3
- data/doc/NgrokAPI/Models/SSHCredential.html +3 -3
- data/doc/NgrokAPI/Models/SSHHostCertificate.html +3 -3
- data/doc/NgrokAPI/Models/SSHUserCertificate.html +3 -3
- data/doc/NgrokAPI/Models/StaticBackend.html +1211 -0
- data/doc/NgrokAPI/Models/StaticBackendTLS.html +595 -0
- data/doc/NgrokAPI/Models/TCPEdge.html +112 -32
- data/doc/NgrokAPI/Models/TLSCertificate.html +3 -3
- data/doc/NgrokAPI/Models/TLSCertificateSANs.html +3 -3
- data/doc/NgrokAPI/Models/TLSEdge.html +112 -32
- data/doc/NgrokAPI/Models/Tunnel.html +3 -3
- data/doc/NgrokAPI/Models/TunnelGroupBackend.html +3 -3
- data/doc/NgrokAPI/Models/TunnelSession.html +3 -3
- data/doc/NgrokAPI/Models/UserAgent.html +3 -3
- data/doc/NgrokAPI/Models/WeightedBackend.html +3 -3
- data/doc/NgrokAPI/Models.html +5 -5
- data/doc/NgrokAPI/PagedIterator.html +3 -3
- data/doc/NgrokAPI/Services/APIKeysClient.html +4 -4
- data/doc/NgrokAPI/Services/AbuseReportsClient.html +4 -4
- data/doc/NgrokAPI/Services/AgentIngressesClient.html +3 -3
- data/doc/NgrokAPI/Services/ApplicationSessionsClient.html +3 -3
- data/doc/NgrokAPI/Services/ApplicationUsersClient.html +3 -3
- data/doc/NgrokAPI/Services/BotUsersClient.html +1717 -0
- data/doc/NgrokAPI/Services/CertificateAuthoritiesClient.html +4 -4
- data/doc/NgrokAPI/Services/CredentialsClient.html +10 -10
- data/doc/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRoutePolicyModuleClient.html +1149 -0
- data/doc/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteTrafficPolicyModuleClient.html +1149 -0
- data/doc/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html +1149 -0
- data/doc/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgesHTTPSClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +233 -93
- data/doc/NgrokAPI/Services/EdgesTCPClient.html +159 -79
- data/doc/NgrokAPI/Services/EdgesTLSClient.html +159 -79
- data/doc/NgrokAPI/Services/EndpointsClient.html +4 -4
- data/doc/NgrokAPI/Services/EventDestinationsClient.html +3 -3
- data/doc/NgrokAPI/Services/EventSourcesClient.html +3 -3
- data/doc/NgrokAPI/Services/EventSubscriptionsClient.html +7 -7
- data/doc/NgrokAPI/Services/FailoverBackendsClient.html +4 -4
- data/doc/NgrokAPI/Services/HTTPResponseBackendsClient.html +3 -3
- data/doc/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/IPPoliciesClient.html +4 -4
- data/doc/NgrokAPI/Services/IPPolicyRulesClient.html +4 -4
- data/doc/NgrokAPI/Services/IPRestrictionsClient.html +4 -4
- data/doc/NgrokAPI/Services/ReservedAddrsClient.html +4 -4
- data/doc/NgrokAPI/Services/ReservedDomainsClient.html +18 -18
- data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +4 -4
- data/doc/NgrokAPI/Services/SSHCredentialsClient.html +6 -6
- data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +4 -4
- data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +8 -8
- data/doc/NgrokAPI/Services/StaticBackendsClient.html +1879 -0
- data/doc/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/TCPEdgePolicyModuleClient.html +1039 -0
- data/doc/NgrokAPI/Services/TCPEdgeTrafficPolicyModuleClient.html +1039 -0
- data/doc/NgrokAPI/Services/TLSCertificatesClient.html +8 -8
- data/doc/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/TLSEdgePolicyModuleClient.html +1039 -0
- data/doc/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/TLSEdgeTrafficPolicyModuleClient.html +1039 -0
- data/doc/NgrokAPI/Services/TunnelGroupBackendsClient.html +4 -4
- data/doc/NgrokAPI/Services/TunnelSessionsClient.html +6 -6
- data/doc/NgrokAPI/Services/TunnelsClient.html +4 -4
- data/doc/NgrokAPI/Services/WeightedBackendsClient.html +4 -4
- data/doc/NgrokAPI/Services.html +5 -5
- data/doc/NgrokAPI.html +4 -4
- data/doc/_index.html +88 -4
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +3 -3
- data/doc/frames.html +10 -5
- data/doc/index.html +3 -3
- data/doc/method_list.html +1752 -832
- data/doc/top-level-namespace.html +3 -3
- data/docs/NgrokAPI/Client.html +166 -110
- data/docs/NgrokAPI/Error.html +3 -3
- data/docs/NgrokAPI/Errors/NotFoundError.html +3 -3
- data/docs/NgrokAPI/Errors.html +3 -3
- data/docs/NgrokAPI/HttpClient.html +4 -4
- data/docs/NgrokAPI/Models/APIKey.html +3 -3
- data/docs/NgrokAPI/Models/AWSAuth.html +3 -3
- data/docs/NgrokAPI/Models/AWSCredentials.html +3 -3
- data/docs/NgrokAPI/Models/AWSRole.html +3 -3
- data/docs/NgrokAPI/Models/AbuseReport.html +3 -3
- data/docs/NgrokAPI/Models/AbuseReportHostname.html +3 -3
- data/docs/NgrokAPI/Models/AgentIngress.html +3 -3
- data/docs/NgrokAPI/Models/AgentIngressCertJob.html +3 -3
- data/docs/NgrokAPI/Models/AgentIngressCertPolicy.html +3 -3
- data/docs/NgrokAPI/Models/AgentIngressCertStatus.html +3 -3
- data/docs/NgrokAPI/Models/ApplicationSession.html +3 -3
- data/docs/NgrokAPI/Models/ApplicationUser.html +3 -3
- data/docs/NgrokAPI/Models/BotUser.html +1051 -0
- data/docs/NgrokAPI/Models/BrowserSession.html +3 -3
- data/docs/NgrokAPI/Models/CertificateAuthority.html +3 -3
- data/docs/NgrokAPI/Models/Credential.html +3 -3
- data/docs/NgrokAPI/Models/Endpoint.html +3 -3
- data/docs/NgrokAPI/Models/EndpointAction.html +669 -0
- data/docs/NgrokAPI/Models/EndpointBackend.html +3 -3
- data/docs/NgrokAPI/Models/EndpointBackendMutate.html +3 -3
- data/docs/NgrokAPI/Models/EndpointCircuitBreaker.html +3 -3
- data/docs/NgrokAPI/Models/EndpointCompression.html +3 -3
- data/docs/NgrokAPI/Models/EndpointIPPolicy.html +3 -3
- data/docs/NgrokAPI/Models/EndpointIPPolicyMutate.html +3 -3
- data/docs/NgrokAPI/Models/EndpointMutualTLS.html +3 -3
- data/docs/NgrokAPI/Models/EndpointMutualTLSMutate.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuth.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthAmazon.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthFacebook.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthGitHub.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthGitLab.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthGoogle.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthLinkedIn.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthMicrosoft.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthProvider.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthTwitch.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOIDC.html +3 -3
- data/docs/NgrokAPI/Models/EndpointPolicy.html +743 -0
- data/docs/NgrokAPI/Models/EndpointRequestHeaders.html +3 -3
- data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +3 -3
- data/docs/NgrokAPI/Models/EndpointRule.html +743 -0
- data/docs/NgrokAPI/Models/EndpointSAML.html +18 -96
- data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +18 -96
- data/docs/NgrokAPI/Models/EndpointTLSTermination.html +3 -3
- data/docs/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +3 -3
- data/docs/NgrokAPI/Models/EndpointTrafficPolicy.html +669 -0
- data/docs/NgrokAPI/Models/EndpointUserAgentFilter.html +743 -0
- data/docs/NgrokAPI/Models/EndpointWebhookValidation.html +3 -3
- data/docs/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +3 -3
- data/docs/NgrokAPI/Models/EventDestination.html +3 -3
- data/docs/NgrokAPI/Models/EventSource.html +19 -167
- data/docs/NgrokAPI/Models/EventSourceList.html +3 -3
- data/docs/NgrokAPI/Models/EventSourceReplace.html +19 -167
- data/docs/NgrokAPI/Models/EventSubscription.html +3 -3
- data/docs/NgrokAPI/Models/EventTarget.html +32 -32
- data/docs/NgrokAPI/Models/EventTargetAzureLogsIngestion.html +965 -0
- data/docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html +3 -3
- data/docs/NgrokAPI/Models/EventTargetDatadog.html +3 -3
- data/docs/NgrokAPI/Models/EventTargetFirehose.html +3 -3
- data/docs/NgrokAPI/Models/EventTargetKinesis.html +3 -3
- data/docs/NgrokAPI/Models/FailoverBackend.html +3 -3
- data/docs/NgrokAPI/Models/HTTPResponseBackend.html +3 -3
- data/docs/NgrokAPI/Models/HTTPSEdge.html +3 -3
- data/docs/NgrokAPI/Models/HTTPSEdgeRoute.html +197 -37
- data/docs/NgrokAPI/Models/IPPolicy.html +27 -101
- data/docs/NgrokAPI/Models/IPPolicyRule.html +3 -3
- data/docs/NgrokAPI/Models/IPRestriction.html +3 -3
- data/docs/NgrokAPI/Models/IdentityProvider.html +3 -3
- data/docs/NgrokAPI/Models/Listable.html +3 -3
- data/docs/NgrokAPI/Models/Location.html +3 -3
- data/docs/NgrokAPI/Models/Ref.html +3 -3
- data/docs/NgrokAPI/Models/ReservedAddr.html +22 -96
- data/docs/NgrokAPI/Models/ReservedDomain.html +25 -173
- data/docs/NgrokAPI/Models/ReservedDomainCertJob.html +3 -3
- data/docs/NgrokAPI/Models/ReservedDomainCertPolicy.html +3 -3
- data/docs/NgrokAPI/Models/ReservedDomainCertStatus.html +3 -3
- data/docs/NgrokAPI/Models/SSHCertificateAuthority.html +3 -3
- data/docs/NgrokAPI/Models/SSHCredential.html +3 -3
- data/docs/NgrokAPI/Models/SSHHostCertificate.html +3 -3
- data/docs/NgrokAPI/Models/SSHUserCertificate.html +3 -3
- data/docs/NgrokAPI/Models/StaticBackend.html +1211 -0
- data/docs/NgrokAPI/Models/StaticBackendTLS.html +595 -0
- data/docs/NgrokAPI/Models/TCPEdge.html +112 -32
- data/docs/NgrokAPI/Models/TLSCertificate.html +3 -3
- data/docs/NgrokAPI/Models/TLSCertificateSANs.html +3 -3
- data/docs/NgrokAPI/Models/TLSEdge.html +112 -32
- data/docs/NgrokAPI/Models/Tunnel.html +3 -3
- data/docs/NgrokAPI/Models/TunnelGroupBackend.html +3 -3
- data/docs/NgrokAPI/Models/TunnelSession.html +3 -3
- data/docs/NgrokAPI/Models/UserAgent.html +3 -3
- data/docs/NgrokAPI/Models/WeightedBackend.html +3 -3
- data/docs/NgrokAPI/Models.html +5 -5
- data/docs/NgrokAPI/PagedIterator.html +3 -3
- data/docs/NgrokAPI/Services/APIKeysClient.html +4 -4
- data/docs/NgrokAPI/Services/AbuseReportsClient.html +4 -4
- data/docs/NgrokAPI/Services/AgentIngressesClient.html +3 -3
- data/docs/NgrokAPI/Services/ApplicationSessionsClient.html +3 -3
- data/docs/NgrokAPI/Services/ApplicationUsersClient.html +3 -3
- data/docs/NgrokAPI/Services/BotUsersClient.html +1717 -0
- data/docs/NgrokAPI/Services/CertificateAuthoritiesClient.html +4 -4
- data/docs/NgrokAPI/Services/CredentialsClient.html +10 -10
- data/docs/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRoutePolicyModuleClient.html +1149 -0
- data/docs/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteTrafficPolicyModuleClient.html +1149 -0
- data/docs/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html +1149 -0
- data/docs/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgesHTTPSClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +233 -93
- data/docs/NgrokAPI/Services/EdgesTCPClient.html +159 -79
- data/docs/NgrokAPI/Services/EdgesTLSClient.html +159 -79
- data/docs/NgrokAPI/Services/EndpointsClient.html +4 -4
- data/docs/NgrokAPI/Services/EventDestinationsClient.html +3 -3
- data/docs/NgrokAPI/Services/EventSourcesClient.html +3 -3
- data/docs/NgrokAPI/Services/EventSubscriptionsClient.html +7 -7
- data/docs/NgrokAPI/Services/FailoverBackendsClient.html +4 -4
- data/docs/NgrokAPI/Services/HTTPResponseBackendsClient.html +3 -3
- data/docs/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/IPPoliciesClient.html +4 -4
- data/docs/NgrokAPI/Services/IPPolicyRulesClient.html +4 -4
- data/docs/NgrokAPI/Services/IPRestrictionsClient.html +4 -4
- data/docs/NgrokAPI/Services/ReservedAddrsClient.html +4 -4
- data/docs/NgrokAPI/Services/ReservedDomainsClient.html +18 -18
- data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +4 -4
- data/docs/NgrokAPI/Services/SSHCredentialsClient.html +6 -6
- data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +4 -4
- data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +8 -8
- data/docs/NgrokAPI/Services/StaticBackendsClient.html +1879 -0
- data/docs/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/TCPEdgePolicyModuleClient.html +1039 -0
- data/docs/NgrokAPI/Services/TCPEdgeTrafficPolicyModuleClient.html +1039 -0
- data/docs/NgrokAPI/Services/TLSCertificatesClient.html +8 -8
- data/docs/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/TLSEdgePolicyModuleClient.html +1039 -0
- data/docs/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/TLSEdgeTrafficPolicyModuleClient.html +1039 -0
- data/docs/NgrokAPI/Services/TunnelGroupBackendsClient.html +4 -4
- data/docs/NgrokAPI/Services/TunnelSessionsClient.html +6 -6
- data/docs/NgrokAPI/Services/TunnelsClient.html +4 -4
- data/docs/NgrokAPI/Services/WeightedBackendsClient.html +4 -4
- data/docs/NgrokAPI/Services.html +5 -5
- data/docs/NgrokAPI.html +4 -4
- data/docs/_index.html +88 -4
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +3 -3
- data/docs/frames.html +10 -5
- data/docs/index.html +3 -3
- data/docs/method_list.html +1752 -832
- data/docs/top-level-namespace.html +3 -3
- data/lib/ngrokapi/client.rb +6 -0
- data/lib/ngrokapi/models/bot_user.rb +70 -0
- data/lib/ngrokapi/models/endpoint_saml.rb +0 -4
- data/lib/ngrokapi/models/endpoint_saml_mutate.rb +0 -4
- data/lib/ngrokapi/models/endpoint_traffic_policy.rb +33 -0
- data/lib/ngrokapi/models/endpoint_user_agent_filter.rb +35 -0
- data/lib/ngrokapi/models/event_source.rb +0 -4
- data/lib/ngrokapi/models/event_source_replace.rb +1 -5
- data/lib/ngrokapi/models/event_target.rb +3 -3
- data/lib/ngrokapi/models/event_target_azure_logs_ingestion.rb +41 -0
- data/lib/ngrokapi/models/https_edge_route.rb +13 -3
- data/lib/ngrokapi/models/ip_policy.rb +1 -3
- data/lib/ngrokapi/models/reserved_addr.rb +1 -3
- data/lib/ngrokapi/models/reserved_domain.rb +0 -4
- data/lib/ngrokapi/models/static_backend.rb +80 -0
- data/lib/ngrokapi/models/static_backend_tls.rb +31 -0
- data/lib/ngrokapi/models/tcp_edge.rb +8 -3
- data/lib/ngrokapi/models/tls_edge.rb +8 -3
- data/lib/ngrokapi/services/bot_users_client.rb +223 -0
- data/lib/ngrokapi/services/credentials_client.rb +2 -2
- data/lib/ngrokapi/services/edge_route_traffic_policy_module_client.rb +120 -0
- data/lib/ngrokapi/services/edge_route_user_agent_filter_module_client.rb +120 -0
- data/lib/ngrokapi/services/edges_https_routes_client.rb +20 -4
- data/lib/ngrokapi/services/edges_tcp_client.rb +12 -4
- data/lib/ngrokapi/services/edges_tls_client.rb +12 -4
- data/lib/ngrokapi/services/reserved_domains_client.rb +6 -6
- data/lib/ngrokapi/services/static_backends_client.rb +242 -0
- data/lib/ngrokapi/services/tcp_edge_traffic_policy_module_client.rb +108 -0
- data/lib/ngrokapi/services/tls_edge_traffic_policy_module_client.rb +108 -0
- data/lib/ngrokapi/version.rb +1 -1
- data/spec/ngrokapi/client_spec.rb +8 -0
- data/spec/ngrokapi/models/bot_user_spec.rb +44 -0
- data/spec/ngrokapi/models/endpoint_traffic_policy_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_user_agent_filter_spec.rb +23 -0
- data/spec/ngrokapi/models/event_target_azure_logs_ingestion_spec.rb +23 -0
- data/spec/ngrokapi/models/https_edge_route_spec.rb +7 -1
- data/spec/ngrokapi/models/static_backend_spec.rb +50 -0
- data/spec/ngrokapi/models/static_backend_tls_spec.rb +23 -0
- data/spec/ngrokapi/models/tcp_edge_spec.rb +4 -1
- data/spec/ngrokapi/models/tls_edge_spec.rb +4 -1
- data/spec/ngrokapi/services/bot_users_client_spec.rb +178 -0
- data/spec/ngrokapi/services/credentials_client_spec.rb +4 -2
- data/spec/ngrokapi/services/edge_route_traffic_policy_module_client_spec.rb +139 -0
- data/spec/ngrokapi/services/edge_route_user_agent_filter_module_client_spec.rb +139 -0
- data/spec/ngrokapi/services/edges_https_routes_client_spec.rb +24 -4
- data/spec/ngrokapi/services/edges_tcp_client_spec.rb +16 -4
- data/spec/ngrokapi/services/edges_tls_client_spec.rb +16 -4
- data/spec/ngrokapi/services/reserved_domains_client_spec.rb +8 -4
- data/spec/ngrokapi/services/static_backends_client_spec.rb +194 -0
- data/spec/ngrokapi/services/tcp_edge_traffic_policy_module_client_spec.rb +125 -0
- data/spec/ngrokapi/services/tls_edge_traffic_policy_module_client_spec.rb +125 -0
- data/spec/spec_helper.rb +59 -0
- metadata +62 -2
@@ -0,0 +1,139 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe NgrokAPI::Services::EdgeRouteUserAgentFilterModuleClient do
|
6
|
+
let(:base_url) { 'https://api.ngrok.com' }
|
7
|
+
let(:path) { '/edges/https/%{edge_id}/routes/%{id}/user_agent_filter' }
|
8
|
+
let(:not_found) do
|
9
|
+
NgrokAPI::Errors::NotFoundError.new(response: endpoint_user_agent_filter_result)
|
10
|
+
end
|
11
|
+
|
12
|
+
before(:each) do
|
13
|
+
@client = class_double("HttpClient")
|
14
|
+
@edge_route_user_agent_filter_module_client = NgrokAPI::Services::EdgeRouteUserAgentFilterModuleClient.new(client: @client)
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#replace" do
|
18
|
+
it "will make a put request and return an instance of NgrokAPI::Models::EndpointUserAgentFilter" do
|
19
|
+
path = '/edges/https/%{edge_id}/routes/%{id}/user_agent_filter'
|
20
|
+
replacements = {
|
21
|
+
edge_id: endpoint_user_agent_filter_result["edge_id"],
|
22
|
+
id: endpoint_user_agent_filter_result["id"],
|
23
|
+
}
|
24
|
+
data = "New a_module"
|
25
|
+
expect(@client).to receive(:put).with(path % replacements, data: data).
|
26
|
+
and_return(endpoint_user_agent_filter_result)
|
27
|
+
result = @edge_route_user_agent_filter_module_client.replace(
|
28
|
+
edge_id: endpoint_user_agent_filter_result["edge_id"],
|
29
|
+
id: endpoint_user_agent_filter_result["id"],
|
30
|
+
a_module: "New a_module"
|
31
|
+
)
|
32
|
+
expect(result.class).to eq(NgrokAPI::Models::EndpointUserAgentFilter)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe "#replace!" do
|
37
|
+
it "will make a put request and return an instance of NgrokAPI::Models::EndpointUserAgentFilter" do
|
38
|
+
path = '/edges/https/%{edge_id}/routes/%{id}/user_agent_filter'
|
39
|
+
replacements = {
|
40
|
+
edge_id: endpoint_user_agent_filter_result["edge_id"],
|
41
|
+
id: endpoint_user_agent_filter_result["id"],
|
42
|
+
}
|
43
|
+
data = "New a_module"
|
44
|
+
expect(@client).to receive(:put).with(path % replacements, data: data).
|
45
|
+
and_return(endpoint_user_agent_filter_result)
|
46
|
+
result = @edge_route_user_agent_filter_module_client.replace(
|
47
|
+
edge_id: endpoint_user_agent_filter_result["edge_id"],
|
48
|
+
id: endpoint_user_agent_filter_result["id"],
|
49
|
+
a_module: "New a_module"
|
50
|
+
)
|
51
|
+
expect(result.class).to eq(NgrokAPI::Models::EndpointUserAgentFilter)
|
52
|
+
# expect(result.id).to eq(endpoint_user_agent_filter_result["id"])
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe "#get" do
|
57
|
+
it "will make a get request and return an instance of NgrokAPI::Models::EndpointUserAgentFilter" do
|
58
|
+
path = '/edges/https/%{edge_id}/routes/%{id}/user_agent_filter'
|
59
|
+
replacements = {
|
60
|
+
edge_id: endpoint_user_agent_filter_result["edge_id"],
|
61
|
+
id: endpoint_user_agent_filter_result["id"],
|
62
|
+
}
|
63
|
+
data = {}
|
64
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
65
|
+
and_return(endpoint_user_agent_filter_result)
|
66
|
+
result = @edge_route_user_agent_filter_module_client.get(
|
67
|
+
edge_id: endpoint_user_agent_filter_result["edge_id"],
|
68
|
+
id: endpoint_user_agent_filter_result["id"]
|
69
|
+
)
|
70
|
+
expect(result.class).to eq(NgrokAPI::Models::EndpointUserAgentFilter)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
describe "#get!" do
|
75
|
+
it "will make a get request and return an instance of NgrokAPI::Models::EndpointUserAgentFilter" do
|
76
|
+
path = '/edges/https/%{edge_id}/routes/%{id}/user_agent_filter'
|
77
|
+
replacements = {
|
78
|
+
edge_id: endpoint_user_agent_filter_result["edge_id"],
|
79
|
+
id: endpoint_user_agent_filter_result["id"],
|
80
|
+
}
|
81
|
+
data = {}
|
82
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
83
|
+
and_return(endpoint_user_agent_filter_result)
|
84
|
+
result = @edge_route_user_agent_filter_module_client.get(
|
85
|
+
edge_id: endpoint_user_agent_filter_result["edge_id"],
|
86
|
+
id: endpoint_user_agent_filter_result["id"]
|
87
|
+
)
|
88
|
+
expect(result.class).to eq(NgrokAPI::Models::EndpointUserAgentFilter)
|
89
|
+
# expect(result.id).to eq(endpoint_user_agent_filter_result["id"])
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
describe "#delete" do
|
94
|
+
it "will make a delete request" do
|
95
|
+
path = '/edges/https/%{edge_id}/routes/%{id}/user_agent_filter'
|
96
|
+
replacements = {
|
97
|
+
edge_id: api_key_result["edge_id"],
|
98
|
+
id: api_key_result["id"],
|
99
|
+
}
|
100
|
+
expect(@client).to receive(:delete).with(path % replacements).and_return(nil)
|
101
|
+
@edge_route_user_agent_filter_module_client.delete(
|
102
|
+
edge_id: api_key_result["edge_id"],
|
103
|
+
id: api_key_result["id"]
|
104
|
+
)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
describe "#delete!" do
|
109
|
+
it "will make a delete request" do
|
110
|
+
path = '/edges/https/%{edge_id}/routes/%{id}/user_agent_filter'
|
111
|
+
replacements = {
|
112
|
+
edge_id: api_key_result["edge_id"],
|
113
|
+
id: api_key_result["id"],
|
114
|
+
}
|
115
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).and_return(nil)
|
116
|
+
@edge_route_user_agent_filter_module_client.delete!(
|
117
|
+
edge_id: api_key_result["edge_id"],
|
118
|
+
id: api_key_result["id"]
|
119
|
+
)
|
120
|
+
end
|
121
|
+
|
122
|
+
it "will make a delete request and return NotFoundError if 404" do
|
123
|
+
path = '/edges/https/%{edge_id}/routes/%{id}/user_agent_filter'
|
124
|
+
replacements = {
|
125
|
+
edge_id: api_key_result["edge_id"],
|
126
|
+
id: api_key_result["id"],
|
127
|
+
}
|
128
|
+
expect do
|
129
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).
|
130
|
+
and_raise(NgrokAPI::Errors::NotFoundError)
|
131
|
+
result = @edge_route_user_agent_filter_module_client.delete!(
|
132
|
+
edge_id: api_key_result["edge_id"],
|
133
|
+
id: api_key_result["id"]
|
134
|
+
)
|
135
|
+
expect(result).to be nil
|
136
|
+
end.to raise_error(NgrokAPI::Errors::NotFoundError)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
@@ -36,6 +36,8 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
36
36
|
data[:saml] = "New saml"
|
37
37
|
data[:oidc] = "New oidc"
|
38
38
|
data[:websocket_tcp_converter] = "New websocket_tcp_converter"
|
39
|
+
data[:user_agent_filter] = "New user_agent_filter"
|
40
|
+
data[:traffic_policy] = "New traffic_policy"
|
39
41
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
40
42
|
and_return(https_edge_route_result)
|
41
43
|
result = @edges_https_routes_client.create(
|
@@ -54,7 +56,10 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
54
56
|
oauth: "New oauth",
|
55
57
|
saml: "New saml",
|
56
58
|
oidc: "New oidc",
|
57
|
-
websocket_tcp_converter: "New websocket_tcp_converter"
|
59
|
+
websocket_tcp_converter: "New websocket_tcp_converter",
|
60
|
+
user_agent_filter: "New user_agent_filter",
|
61
|
+
policy: "New policy",
|
62
|
+
traffic_policy: "New traffic_policy"
|
58
63
|
)
|
59
64
|
expect(result.class).to eq(NgrokAPI::Models::HTTPSEdgeRoute)
|
60
65
|
end
|
@@ -82,6 +87,8 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
82
87
|
data[:saml] = "New saml"
|
83
88
|
data[:oidc] = "New oidc"
|
84
89
|
data[:websocket_tcp_converter] = "New websocket_tcp_converter"
|
90
|
+
data[:user_agent_filter] = "New user_agent_filter"
|
91
|
+
data[:traffic_policy] = "New traffic_policy"
|
85
92
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
86
93
|
and_return(https_edge_route_result)
|
87
94
|
result = @edges_https_routes_client.create(
|
@@ -100,7 +107,10 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
100
107
|
oauth: "New oauth",
|
101
108
|
saml: "New saml",
|
102
109
|
oidc: "New oidc",
|
103
|
-
websocket_tcp_converter: "New websocket_tcp_converter"
|
110
|
+
websocket_tcp_converter: "New websocket_tcp_converter",
|
111
|
+
user_agent_filter: "New user_agent_filter",
|
112
|
+
policy: "New policy",
|
113
|
+
traffic_policy: "New traffic_policy"
|
104
114
|
)
|
105
115
|
expect(result.class).to eq(NgrokAPI::Models::HTTPSEdgeRoute)
|
106
116
|
# expect(result.id).to eq(https_edge_route_result["id"])
|
@@ -167,6 +177,8 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
167
177
|
data[:saml] = "New saml"
|
168
178
|
data[:oidc] = "New oidc"
|
169
179
|
data[:websocket_tcp_converter] = "New websocket_tcp_converter"
|
180
|
+
data[:user_agent_filter] = "New user_agent_filter"
|
181
|
+
data[:traffic_policy] = "New traffic_policy"
|
170
182
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
171
183
|
and_return(https_edge_route_result)
|
172
184
|
result = @edges_https_routes_client.update(
|
@@ -186,7 +198,10 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
186
198
|
oauth: "New oauth",
|
187
199
|
saml: "New saml",
|
188
200
|
oidc: "New oidc",
|
189
|
-
websocket_tcp_converter: "New websocket_tcp_converter"
|
201
|
+
websocket_tcp_converter: "New websocket_tcp_converter",
|
202
|
+
user_agent_filter: "New user_agent_filter",
|
203
|
+
policy: "New policy",
|
204
|
+
traffic_policy: "New traffic_policy"
|
190
205
|
)
|
191
206
|
expect(result.class).to eq(NgrokAPI::Models::HTTPSEdgeRoute)
|
192
207
|
end
|
@@ -215,6 +230,8 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
215
230
|
data[:saml] = "New saml"
|
216
231
|
data[:oidc] = "New oidc"
|
217
232
|
data[:websocket_tcp_converter] = "New websocket_tcp_converter"
|
233
|
+
data[:user_agent_filter] = "New user_agent_filter"
|
234
|
+
data[:traffic_policy] = "New traffic_policy"
|
218
235
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
219
236
|
and_return(https_edge_route_result)
|
220
237
|
result = @edges_https_routes_client.update(
|
@@ -234,7 +251,10 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
234
251
|
oauth: "New oauth",
|
235
252
|
saml: "New saml",
|
236
253
|
oidc: "New oidc",
|
237
|
-
websocket_tcp_converter: "New websocket_tcp_converter"
|
254
|
+
websocket_tcp_converter: "New websocket_tcp_converter",
|
255
|
+
user_agent_filter: "New user_agent_filter",
|
256
|
+
policy: "New policy",
|
257
|
+
traffic_policy: "New traffic_policy"
|
238
258
|
)
|
239
259
|
expect(result.class).to eq(NgrokAPI::Models::HTTPSEdgeRoute)
|
240
260
|
# expect(result.id).to eq(https_edge_route_result["id"])
|
@@ -25,6 +25,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
25
25
|
data[:hostports] = "New hostports"
|
26
26
|
data[:backend] = "New backend"
|
27
27
|
data[:ip_restriction] = "New ip_restriction"
|
28
|
+
data[:traffic_policy] = "New traffic_policy"
|
28
29
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
29
30
|
and_return(tcp_edge_result)
|
30
31
|
result = @edges_tcp_client.create(
|
@@ -32,7 +33,9 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
32
33
|
metadata: "New metadata",
|
33
34
|
hostports: "New hostports",
|
34
35
|
backend: "New backend",
|
35
|
-
ip_restriction: "New ip_restriction"
|
36
|
+
ip_restriction: "New ip_restriction",
|
37
|
+
policy: "New policy",
|
38
|
+
traffic_policy: "New traffic_policy"
|
36
39
|
)
|
37
40
|
expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
|
38
41
|
end
|
@@ -49,6 +52,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
49
52
|
data[:hostports] = "New hostports"
|
50
53
|
data[:backend] = "New backend"
|
51
54
|
data[:ip_restriction] = "New ip_restriction"
|
55
|
+
data[:traffic_policy] = "New traffic_policy"
|
52
56
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
53
57
|
and_return(tcp_edge_result)
|
54
58
|
result = @edges_tcp_client.create(
|
@@ -56,7 +60,9 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
56
60
|
metadata: "New metadata",
|
57
61
|
hostports: "New hostports",
|
58
62
|
backend: "New backend",
|
59
|
-
ip_restriction: "New ip_restriction"
|
63
|
+
ip_restriction: "New ip_restriction",
|
64
|
+
policy: "New policy",
|
65
|
+
traffic_policy: "New traffic_policy"
|
60
66
|
)
|
61
67
|
expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
|
62
68
|
# expect(result.id).to eq(tcp_edge_result["id"])
|
@@ -118,6 +124,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
118
124
|
data[:hostports] = "New hostports"
|
119
125
|
data[:backend] = "New backend"
|
120
126
|
data[:ip_restriction] = "New ip_restriction"
|
127
|
+
data[:traffic_policy] = "New traffic_policy"
|
121
128
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
122
129
|
and_return(tcp_edge_result)
|
123
130
|
result = @edges_tcp_client.update(
|
@@ -126,7 +133,9 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
126
133
|
metadata: "New metadata",
|
127
134
|
hostports: "New hostports",
|
128
135
|
backend: "New backend",
|
129
|
-
ip_restriction: "New ip_restriction"
|
136
|
+
ip_restriction: "New ip_restriction",
|
137
|
+
policy: "New policy",
|
138
|
+
traffic_policy: "New traffic_policy"
|
130
139
|
)
|
131
140
|
expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
|
132
141
|
end
|
@@ -144,6 +153,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
144
153
|
data[:hostports] = "New hostports"
|
145
154
|
data[:backend] = "New backend"
|
146
155
|
data[:ip_restriction] = "New ip_restriction"
|
156
|
+
data[:traffic_policy] = "New traffic_policy"
|
147
157
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
148
158
|
and_return(tcp_edge_result)
|
149
159
|
result = @edges_tcp_client.update(
|
@@ -152,7 +162,9 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
152
162
|
metadata: "New metadata",
|
153
163
|
hostports: "New hostports",
|
154
164
|
backend: "New backend",
|
155
|
-
ip_restriction: "New ip_restriction"
|
165
|
+
ip_restriction: "New ip_restriction",
|
166
|
+
policy: "New policy",
|
167
|
+
traffic_policy: "New traffic_policy"
|
156
168
|
)
|
157
169
|
expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
|
158
170
|
# expect(result.id).to eq(tcp_edge_result["id"])
|
@@ -27,6 +27,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
27
27
|
data[:ip_restriction] = "New ip_restriction"
|
28
28
|
data[:mutual_tls] = "New mutual_tls"
|
29
29
|
data[:tls_termination] = "New tls_termination"
|
30
|
+
data[:traffic_policy] = "New traffic_policy"
|
30
31
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
31
32
|
and_return(tls_edge_result)
|
32
33
|
result = @edges_tls_client.create(
|
@@ -36,7 +37,9 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
36
37
|
backend: "New backend",
|
37
38
|
ip_restriction: "New ip_restriction",
|
38
39
|
mutual_tls: "New mutual_tls",
|
39
|
-
tls_termination: "New tls_termination"
|
40
|
+
tls_termination: "New tls_termination",
|
41
|
+
policy: "New policy",
|
42
|
+
traffic_policy: "New traffic_policy"
|
40
43
|
)
|
41
44
|
expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
|
42
45
|
end
|
@@ -55,6 +58,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
55
58
|
data[:ip_restriction] = "New ip_restriction"
|
56
59
|
data[:mutual_tls] = "New mutual_tls"
|
57
60
|
data[:tls_termination] = "New tls_termination"
|
61
|
+
data[:traffic_policy] = "New traffic_policy"
|
58
62
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
59
63
|
and_return(tls_edge_result)
|
60
64
|
result = @edges_tls_client.create(
|
@@ -64,7 +68,9 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
64
68
|
backend: "New backend",
|
65
69
|
ip_restriction: "New ip_restriction",
|
66
70
|
mutual_tls: "New mutual_tls",
|
67
|
-
tls_termination: "New tls_termination"
|
71
|
+
tls_termination: "New tls_termination",
|
72
|
+
policy: "New policy",
|
73
|
+
traffic_policy: "New traffic_policy"
|
68
74
|
)
|
69
75
|
expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
|
70
76
|
# expect(result.id).to eq(tls_edge_result["id"])
|
@@ -128,6 +134,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
128
134
|
data[:ip_restriction] = "New ip_restriction"
|
129
135
|
data[:mutual_tls] = "New mutual_tls"
|
130
136
|
data[:tls_termination] = "New tls_termination"
|
137
|
+
data[:traffic_policy] = "New traffic_policy"
|
131
138
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
132
139
|
and_return(tls_edge_result)
|
133
140
|
result = @edges_tls_client.update(
|
@@ -138,7 +145,9 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
138
145
|
backend: "New backend",
|
139
146
|
ip_restriction: "New ip_restriction",
|
140
147
|
mutual_tls: "New mutual_tls",
|
141
|
-
tls_termination: "New tls_termination"
|
148
|
+
tls_termination: "New tls_termination",
|
149
|
+
policy: "New policy",
|
150
|
+
traffic_policy: "New traffic_policy"
|
142
151
|
)
|
143
152
|
expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
|
144
153
|
end
|
@@ -158,6 +167,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
158
167
|
data[:ip_restriction] = "New ip_restriction"
|
159
168
|
data[:mutual_tls] = "New mutual_tls"
|
160
169
|
data[:tls_termination] = "New tls_termination"
|
170
|
+
data[:traffic_policy] = "New traffic_policy"
|
161
171
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
162
172
|
and_return(tls_edge_result)
|
163
173
|
result = @edges_tls_client.update(
|
@@ -168,7 +178,9 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
168
178
|
backend: "New backend",
|
169
179
|
ip_restriction: "New ip_restriction",
|
170
180
|
mutual_tls: "New mutual_tls",
|
171
|
-
tls_termination: "New tls_termination"
|
181
|
+
tls_termination: "New tls_termination",
|
182
|
+
policy: "New policy",
|
183
|
+
traffic_policy: "New traffic_policy"
|
172
184
|
)
|
173
185
|
expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
|
174
186
|
# expect(result.id).to eq(tls_edge_result["id"])
|
@@ -37,7 +37,8 @@ RSpec.describe NgrokAPI::Services::ReservedDomainsClient do
|
|
37
37
|
http_endpoint_configuration_id: "New http_endpoint_configuration_id",
|
38
38
|
https_endpoint_configuration_id: "New https_endpoint_configuration_id",
|
39
39
|
certificate_id: "New certificate_id",
|
40
|
-
certificate_management_policy: "New certificate_management_policy"
|
40
|
+
certificate_management_policy: "New certificate_management_policy",
|
41
|
+
error_redirect_url: "New error_redirect_url"
|
41
42
|
)
|
42
43
|
expect(result.class).to eq(NgrokAPI::Models::ReservedDomain)
|
43
44
|
end
|
@@ -66,7 +67,8 @@ RSpec.describe NgrokAPI::Services::ReservedDomainsClient do
|
|
66
67
|
http_endpoint_configuration_id: "New http_endpoint_configuration_id",
|
67
68
|
https_endpoint_configuration_id: "New https_endpoint_configuration_id",
|
68
69
|
certificate_id: "New certificate_id",
|
69
|
-
certificate_management_policy: "New certificate_management_policy"
|
70
|
+
certificate_management_policy: "New certificate_management_policy",
|
71
|
+
error_redirect_url: "New error_redirect_url"
|
70
72
|
)
|
71
73
|
expect(result.class).to eq(NgrokAPI::Models::ReservedDomain)
|
72
74
|
# expect(result.id).to eq(reserved_domain_result["id"])
|
@@ -178,7 +180,8 @@ RSpec.describe NgrokAPI::Services::ReservedDomainsClient do
|
|
178
180
|
https_endpoint_configuration_id: "New https_endpoint_configuration_id",
|
179
181
|
certificate_id: "New certificate_id",
|
180
182
|
certificate_management_policy: "New certificate_management_policy",
|
181
|
-
region: "New region"
|
183
|
+
region: "New region",
|
184
|
+
error_redirect_url: "New error_redirect_url"
|
182
185
|
)
|
183
186
|
expect(result.class).to eq(NgrokAPI::Models::ReservedDomain)
|
184
187
|
end
|
@@ -205,7 +208,8 @@ RSpec.describe NgrokAPI::Services::ReservedDomainsClient do
|
|
205
208
|
https_endpoint_configuration_id: "New https_endpoint_configuration_id",
|
206
209
|
certificate_id: "New certificate_id",
|
207
210
|
certificate_management_policy: "New certificate_management_policy",
|
208
|
-
region: "New region"
|
211
|
+
region: "New region",
|
212
|
+
error_redirect_url: "New error_redirect_url"
|
209
213
|
)
|
210
214
|
expect(result.class).to eq(NgrokAPI::Models::ReservedDomain)
|
211
215
|
# expect(result.id).to eq(reserved_domain_result["id"])
|
@@ -0,0 +1,194 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe NgrokAPI::Services::StaticBackendsClient do
|
6
|
+
let(:base_url) { 'https://api.ngrok.com' }
|
7
|
+
let(:path) { '/backends/static' }
|
8
|
+
let(:not_found) do
|
9
|
+
NgrokAPI::Errors::NotFoundError.new(response: static_backend_result)
|
10
|
+
end
|
11
|
+
|
12
|
+
before(:each) do
|
13
|
+
@client = class_double("HttpClient")
|
14
|
+
@static_backends_client = NgrokAPI::Services::StaticBackendsClient.new(client: @client)
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#create" do
|
18
|
+
it "will make a post request and return an instance of NgrokAPI::Models::StaticBackend" do
|
19
|
+
path = '/backends/static'
|
20
|
+
replacements = {
|
21
|
+
}
|
22
|
+
data = {}
|
23
|
+
data[:description] = "New description"
|
24
|
+
data[:metadata] = "New metadata"
|
25
|
+
data[:address] = "New address"
|
26
|
+
data[:tls] = "New tls"
|
27
|
+
expect(@client).to receive(:post).with(path % replacements, data: data).
|
28
|
+
and_return(static_backend_result)
|
29
|
+
result = @static_backends_client.create(
|
30
|
+
description: "New description",
|
31
|
+
metadata: "New metadata",
|
32
|
+
address: "New address",
|
33
|
+
tls: "New tls"
|
34
|
+
)
|
35
|
+
expect(result.class).to eq(NgrokAPI::Models::StaticBackend)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
describe "#create!" do
|
40
|
+
it "will make a post request and return an instance of NgrokAPI::Models::StaticBackend" do
|
41
|
+
path = '/backends/static'
|
42
|
+
replacements = {
|
43
|
+
}
|
44
|
+
data = {}
|
45
|
+
data[:description] = "New description"
|
46
|
+
data[:metadata] = "New metadata"
|
47
|
+
data[:address] = "New address"
|
48
|
+
data[:tls] = "New tls"
|
49
|
+
expect(@client).to receive(:post).with(path % replacements, data: data).
|
50
|
+
and_return(static_backend_result)
|
51
|
+
result = @static_backends_client.create(
|
52
|
+
description: "New description",
|
53
|
+
metadata: "New metadata",
|
54
|
+
address: "New address",
|
55
|
+
tls: "New tls"
|
56
|
+
)
|
57
|
+
expect(result.class).to eq(NgrokAPI::Models::StaticBackend)
|
58
|
+
# expect(result.id).to eq(static_backend_result["id"])
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe "#delete" do
|
63
|
+
it "will make a delete request" do
|
64
|
+
path = '/backends/static/%{id}'
|
65
|
+
replacements = {
|
66
|
+
id: api_key_result["id"],
|
67
|
+
}
|
68
|
+
expect(@client).to receive(:delete).with(path % replacements).and_return(nil)
|
69
|
+
@static_backends_client.delete(
|
70
|
+
id: api_key_result["id"]
|
71
|
+
)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
describe "#delete!" do
|
76
|
+
it "will make a delete request" do
|
77
|
+
path = '/backends/static/%{id}'
|
78
|
+
replacements = {
|
79
|
+
id: api_key_result["id"],
|
80
|
+
}
|
81
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).and_return(nil)
|
82
|
+
@static_backends_client.delete!(
|
83
|
+
id: api_key_result["id"]
|
84
|
+
)
|
85
|
+
end
|
86
|
+
|
87
|
+
it "will make a delete request and return NotFoundError if 404" do
|
88
|
+
path = '/backends/static/%{id}'
|
89
|
+
replacements = {
|
90
|
+
id: api_key_result["id"],
|
91
|
+
}
|
92
|
+
expect do
|
93
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).
|
94
|
+
and_raise(NgrokAPI::Errors::NotFoundError)
|
95
|
+
result = @static_backends_client.delete!(
|
96
|
+
id: api_key_result["id"]
|
97
|
+
)
|
98
|
+
expect(result).to be nil
|
99
|
+
end.to raise_error(NgrokAPI::Errors::NotFoundError)
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
describe "#get" do
|
104
|
+
it "will make a get request and return an instance of NgrokAPI::Models::StaticBackend" do
|
105
|
+
path = '/backends/static/%{id}'
|
106
|
+
replacements = {
|
107
|
+
id: static_backend_result["id"],
|
108
|
+
}
|
109
|
+
data = {}
|
110
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
111
|
+
and_return(static_backend_result)
|
112
|
+
result = @static_backends_client.get(
|
113
|
+
id: static_backend_result["id"]
|
114
|
+
)
|
115
|
+
expect(result.class).to eq(NgrokAPI::Models::StaticBackend)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
describe "#get!" do
|
120
|
+
it "will make a get request and return an instance of NgrokAPI::Models::StaticBackend" do
|
121
|
+
path = '/backends/static/%{id}'
|
122
|
+
replacements = {
|
123
|
+
id: static_backend_result["id"],
|
124
|
+
}
|
125
|
+
data = {}
|
126
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
127
|
+
and_return(static_backend_result)
|
128
|
+
result = @static_backends_client.get(
|
129
|
+
id: static_backend_result["id"]
|
130
|
+
)
|
131
|
+
expect(result.class).to eq(NgrokAPI::Models::StaticBackend)
|
132
|
+
# expect(result.id).to eq(static_backend_result["id"])
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
describe "#list" do
|
137
|
+
it "will make a call to list (a GET request) and return a NgrokAPI::Models::Listable" do
|
138
|
+
expect(@client).to receive(:list).
|
139
|
+
and_return(static_backend_results)
|
140
|
+
url = base_url + path + "?before_id=" + api_key_result["id"] + "&limit=1"
|
141
|
+
result = @static_backends_client.list(url: url)
|
142
|
+
expect(result.class).to eq(NgrokAPI::Models::Listable)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
describe "#update" do
|
147
|
+
it "will make a patch request and return an instance of NgrokAPI::Models::StaticBackend" do
|
148
|
+
path = '/backends/static/%{id}'
|
149
|
+
replacements = {
|
150
|
+
id: static_backend_result["id"],
|
151
|
+
}
|
152
|
+
data = {}
|
153
|
+
data[:description] = "New description"
|
154
|
+
data[:metadata] = "New metadata"
|
155
|
+
data[:address] = "New address"
|
156
|
+
data[:tls] = "New tls"
|
157
|
+
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
158
|
+
and_return(static_backend_result)
|
159
|
+
result = @static_backends_client.update(
|
160
|
+
id: static_backend_result["id"],
|
161
|
+
description: "New description",
|
162
|
+
metadata: "New metadata",
|
163
|
+
address: "New address",
|
164
|
+
tls: "New tls"
|
165
|
+
)
|
166
|
+
expect(result.class).to eq(NgrokAPI::Models::StaticBackend)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
describe "#update!" do
|
171
|
+
it "will make a patch request and return an instance of NgrokAPI::Models::StaticBackend" do
|
172
|
+
path = '/backends/static/%{id}'
|
173
|
+
replacements = {
|
174
|
+
id: static_backend_result["id"],
|
175
|
+
}
|
176
|
+
data = {}
|
177
|
+
data[:description] = "New description"
|
178
|
+
data[:metadata] = "New metadata"
|
179
|
+
data[:address] = "New address"
|
180
|
+
data[:tls] = "New tls"
|
181
|
+
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
182
|
+
and_return(static_backend_result)
|
183
|
+
result = @static_backends_client.update(
|
184
|
+
id: static_backend_result["id"],
|
185
|
+
description: "New description",
|
186
|
+
metadata: "New metadata",
|
187
|
+
address: "New address",
|
188
|
+
tls: "New tls"
|
189
|
+
)
|
190
|
+
expect(result.class).to eq(NgrokAPI::Models::StaticBackend)
|
191
|
+
# expect(result.id).to eq(static_backend_result["id"])
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|