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,23 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe NgrokAPI::Models::EndpointTrafficPolicy do
|
6
|
+
before(:each) do
|
7
|
+
@client = class_double("EndpointTrafficPolicysClient")
|
8
|
+
@endpoint_traffic_policy = NgrokAPI::Models::EndpointTrafficPolicy.new(client: @client, attrs: endpoint_traffic_policy_result)
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "#==" do
|
12
|
+
it "is equal if the results are the same" do
|
13
|
+
other = NgrokAPI::Models::EndpointTrafficPolicy.new(client: @client, attrs: endpoint_traffic_policy_result)
|
14
|
+
expect(@endpoint_traffic_policy == other).to eq true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#to_s" do
|
19
|
+
it "stringifies as result.to_s" do
|
20
|
+
expect(@endpoint_traffic_policy.to_s).to eq endpoint_traffic_policy_result.to_s
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe NgrokAPI::Models::EndpointUserAgentFilter do
|
6
|
+
before(:each) do
|
7
|
+
@client = class_double("EndpointUserAgentFiltersClient")
|
8
|
+
@endpoint_user_agent_filter = NgrokAPI::Models::EndpointUserAgentFilter.new(client: @client, attrs: endpoint_user_agent_filter_result)
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "#==" do
|
12
|
+
it "is equal if the results are the same" do
|
13
|
+
other = NgrokAPI::Models::EndpointUserAgentFilter.new(client: @client, attrs: endpoint_user_agent_filter_result)
|
14
|
+
expect(@endpoint_user_agent_filter == other).to eq true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#to_s" do
|
19
|
+
it "stringifies as result.to_s" do
|
20
|
+
expect(@endpoint_user_agent_filter.to_s).to eq endpoint_user_agent_filter_result.to_s
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe NgrokAPI::Models::EventTargetAzureLogsIngestion do
|
6
|
+
before(:each) do
|
7
|
+
@client = class_double("EventTargetAzureLogsIngestionsClient")
|
8
|
+
@event_target_azure_logs_ingestion = NgrokAPI::Models::EventTargetAzureLogsIngestion.new(client: @client, attrs: event_target_azure_logs_ingestion_result)
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "#==" do
|
12
|
+
it "is equal if the results are the same" do
|
13
|
+
other = NgrokAPI::Models::EventTargetAzureLogsIngestion.new(client: @client, attrs: event_target_azure_logs_ingestion_result)
|
14
|
+
expect(@event_target_azure_logs_ingestion == other).to eq true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#to_s" do
|
19
|
+
it "stringifies as result.to_s" do
|
20
|
+
expect(@event_target_azure_logs_ingestion.to_s).to eq event_target_azure_logs_ingestion_result.to_s
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -38,6 +38,8 @@ RSpec.describe NgrokAPI::Models::HTTPSEdgeRoute do
|
|
38
38
|
new_saml = 'New saml'
|
39
39
|
new_oidc = 'New oidc'
|
40
40
|
new_websocket_tcp_converter = 'New websocket_tcp_converter'
|
41
|
+
new_user_agent_filter = 'New user_agent_filter'
|
42
|
+
new_traffic_policy = 'New traffic_policy'
|
41
43
|
expect(@https_edge_route.client).to receive(:update)
|
42
44
|
@https_edge_route.update(
|
43
45
|
match_type: new_match_type,
|
@@ -54,7 +56,9 @@ RSpec.describe NgrokAPI::Models::HTTPSEdgeRoute 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
|
+
traffic_policy: new_traffic_policy
|
58
62
|
)
|
59
63
|
expect(@https_edge_route.match_type).to eq new_match_type
|
60
64
|
expect(@https_edge_route.match).to eq new_match
|
@@ -71,6 +75,8 @@ RSpec.describe NgrokAPI::Models::HTTPSEdgeRoute do
|
|
71
75
|
expect(@https_edge_route.saml).to eq new_saml
|
72
76
|
expect(@https_edge_route.oidc).to eq new_oidc
|
73
77
|
expect(@https_edge_route.websocket_tcp_converter).to eq new_websocket_tcp_converter
|
78
|
+
expect(@https_edge_route.user_agent_filter).to eq new_user_agent_filter
|
79
|
+
expect(@https_edge_route.traffic_policy).to eq new_traffic_policy
|
74
80
|
end
|
75
81
|
end
|
76
82
|
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe NgrokAPI::Models::StaticBackend do
|
6
|
+
before(:each) do
|
7
|
+
@client = class_double("StaticBackendsClient")
|
8
|
+
@static_backend = NgrokAPI::Models::StaticBackend.new(client: @client, attrs: static_backend_result)
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "#==" do
|
12
|
+
it "is equal if the results are the same" do
|
13
|
+
other = NgrokAPI::Models::StaticBackend.new(client: @client, attrs: static_backend_result)
|
14
|
+
expect(@static_backend == other).to eq true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#to_s" do
|
19
|
+
it "stringifies as result.to_s" do
|
20
|
+
expect(@static_backend.to_s).to eq static_backend_result.to_s
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "#delete" do
|
25
|
+
it "calls delete on the client" do
|
26
|
+
expect(@static_backend.client).to receive(:delete)
|
27
|
+
@static_backend.delete
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
describe "#update" do
|
32
|
+
it "calls update on the client" do
|
33
|
+
new_description = 'New description'
|
34
|
+
new_metadata = 'New metadata'
|
35
|
+
new_address = 'New address'
|
36
|
+
new_tls = 'New tls'
|
37
|
+
expect(@static_backend.client).to receive(:update)
|
38
|
+
@static_backend.update(
|
39
|
+
description: new_description,
|
40
|
+
metadata: new_metadata,
|
41
|
+
address: new_address,
|
42
|
+
tls: new_tls
|
43
|
+
)
|
44
|
+
expect(@static_backend.description).to eq new_description
|
45
|
+
expect(@static_backend.metadata).to eq new_metadata
|
46
|
+
expect(@static_backend.address).to eq new_address
|
47
|
+
expect(@static_backend.tls).to eq new_tls
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe NgrokAPI::Models::StaticBackendTLS do
|
6
|
+
before(:each) do
|
7
|
+
@client = class_double("StaticBackendTLSsClient")
|
8
|
+
@static_backend_tls = NgrokAPI::Models::StaticBackendTLS.new(client: @client, attrs: static_backend_tls_result)
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "#==" do
|
12
|
+
it "is equal if the results are the same" do
|
13
|
+
other = NgrokAPI::Models::StaticBackendTLS.new(client: @client, attrs: static_backend_tls_result)
|
14
|
+
expect(@static_backend_tls == other).to eq true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#to_s" do
|
19
|
+
it "stringifies as result.to_s" do
|
20
|
+
expect(@static_backend_tls.to_s).to eq static_backend_tls_result.to_s
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -28,19 +28,22 @@ RSpec.describe NgrokAPI::Models::TCPEdge do
|
|
28
28
|
new_hostports = 'New hostports'
|
29
29
|
new_backend = 'New backend'
|
30
30
|
new_ip_restriction = 'New ip_restriction'
|
31
|
+
new_traffic_policy = 'New traffic_policy'
|
31
32
|
expect(@tcp_edge.client).to receive(:update)
|
32
33
|
@tcp_edge.update(
|
33
34
|
description: new_description,
|
34
35
|
metadata: new_metadata,
|
35
36
|
hostports: new_hostports,
|
36
37
|
backend: new_backend,
|
37
|
-
ip_restriction: new_ip_restriction
|
38
|
+
ip_restriction: new_ip_restriction,
|
39
|
+
traffic_policy: new_traffic_policy
|
38
40
|
)
|
39
41
|
expect(@tcp_edge.description).to eq new_description
|
40
42
|
expect(@tcp_edge.metadata).to eq new_metadata
|
41
43
|
expect(@tcp_edge.hostports).to eq new_hostports
|
42
44
|
expect(@tcp_edge.backend).to eq new_backend
|
43
45
|
expect(@tcp_edge.ip_restriction).to eq new_ip_restriction
|
46
|
+
expect(@tcp_edge.traffic_policy).to eq new_traffic_policy
|
44
47
|
end
|
45
48
|
end
|
46
49
|
|
@@ -30,6 +30,7 @@ RSpec.describe NgrokAPI::Models::TLSEdge do
|
|
30
30
|
new_ip_restriction = 'New ip_restriction'
|
31
31
|
new_mutual_tls = 'New mutual_tls'
|
32
32
|
new_tls_termination = 'New tls_termination'
|
33
|
+
new_traffic_policy = 'New traffic_policy'
|
33
34
|
expect(@tls_edge.client).to receive(:update)
|
34
35
|
@tls_edge.update(
|
35
36
|
description: new_description,
|
@@ -38,7 +39,8 @@ RSpec.describe NgrokAPI::Models::TLSEdge do
|
|
38
39
|
backend: new_backend,
|
39
40
|
ip_restriction: new_ip_restriction,
|
40
41
|
mutual_tls: new_mutual_tls,
|
41
|
-
tls_termination: new_tls_termination
|
42
|
+
tls_termination: new_tls_termination,
|
43
|
+
traffic_policy: new_traffic_policy
|
42
44
|
)
|
43
45
|
expect(@tls_edge.description).to eq new_description
|
44
46
|
expect(@tls_edge.metadata).to eq new_metadata
|
@@ -47,6 +49,7 @@ RSpec.describe NgrokAPI::Models::TLSEdge do
|
|
47
49
|
expect(@tls_edge.ip_restriction).to eq new_ip_restriction
|
48
50
|
expect(@tls_edge.mutual_tls).to eq new_mutual_tls
|
49
51
|
expect(@tls_edge.tls_termination).to eq new_tls_termination
|
52
|
+
expect(@tls_edge.traffic_policy).to eq new_traffic_policy
|
50
53
|
end
|
51
54
|
end
|
52
55
|
|
@@ -0,0 +1,178 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe NgrokAPI::Services::BotUsersClient do
|
6
|
+
let(:base_url) { 'https://api.ngrok.com' }
|
7
|
+
let(:path) { '/bot_users' }
|
8
|
+
let(:not_found) do
|
9
|
+
NgrokAPI::Errors::NotFoundError.new(response: bot_user_result)
|
10
|
+
end
|
11
|
+
|
12
|
+
before(:each) do
|
13
|
+
@client = class_double("HttpClient")
|
14
|
+
@bot_users_client = NgrokAPI::Services::BotUsersClient.new(client: @client)
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#create" do
|
18
|
+
it "will make a post request and return an instance of NgrokAPI::Models::BotUser" do
|
19
|
+
path = '/bot_users'
|
20
|
+
replacements = {
|
21
|
+
}
|
22
|
+
data = {}
|
23
|
+
data[:name] = "New name"
|
24
|
+
data[:active] = "New active"
|
25
|
+
expect(@client).to receive(:post).with(path % replacements, data: data).
|
26
|
+
and_return(bot_user_result)
|
27
|
+
result = @bot_users_client.create(
|
28
|
+
name: "New name",
|
29
|
+
active: "New active"
|
30
|
+
)
|
31
|
+
expect(result.class).to eq(NgrokAPI::Models::BotUser)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
describe "#create!" do
|
36
|
+
it "will make a post request and return an instance of NgrokAPI::Models::BotUser" do
|
37
|
+
path = '/bot_users'
|
38
|
+
replacements = {
|
39
|
+
}
|
40
|
+
data = {}
|
41
|
+
data[:name] = "New name"
|
42
|
+
data[:active] = "New active"
|
43
|
+
expect(@client).to receive(:post).with(path % replacements, data: data).
|
44
|
+
and_return(bot_user_result)
|
45
|
+
result = @bot_users_client.create(
|
46
|
+
name: "New name",
|
47
|
+
active: "New active"
|
48
|
+
)
|
49
|
+
expect(result.class).to eq(NgrokAPI::Models::BotUser)
|
50
|
+
# expect(result.id).to eq(bot_user_result["id"])
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe "#delete" do
|
55
|
+
it "will make a delete request" do
|
56
|
+
path = '/bot_users/%{id}'
|
57
|
+
replacements = {
|
58
|
+
id: api_key_result["id"],
|
59
|
+
}
|
60
|
+
expect(@client).to receive(:delete).with(path % replacements).and_return(nil)
|
61
|
+
@bot_users_client.delete(
|
62
|
+
id: api_key_result["id"]
|
63
|
+
)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
describe "#delete!" do
|
68
|
+
it "will make a delete request" do
|
69
|
+
path = '/bot_users/%{id}'
|
70
|
+
replacements = {
|
71
|
+
id: api_key_result["id"],
|
72
|
+
}
|
73
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).and_return(nil)
|
74
|
+
@bot_users_client.delete!(
|
75
|
+
id: api_key_result["id"]
|
76
|
+
)
|
77
|
+
end
|
78
|
+
|
79
|
+
it "will make a delete request and return NotFoundError if 404" do
|
80
|
+
path = '/bot_users/%{id}'
|
81
|
+
replacements = {
|
82
|
+
id: api_key_result["id"],
|
83
|
+
}
|
84
|
+
expect do
|
85
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).
|
86
|
+
and_raise(NgrokAPI::Errors::NotFoundError)
|
87
|
+
result = @bot_users_client.delete!(
|
88
|
+
id: api_key_result["id"]
|
89
|
+
)
|
90
|
+
expect(result).to be nil
|
91
|
+
end.to raise_error(NgrokAPI::Errors::NotFoundError)
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
describe "#get" do
|
96
|
+
it "will make a get request and return an instance of NgrokAPI::Models::BotUser" do
|
97
|
+
path = '/bot_users/%{id}'
|
98
|
+
replacements = {
|
99
|
+
id: bot_user_result["id"],
|
100
|
+
}
|
101
|
+
data = {}
|
102
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
103
|
+
and_return(bot_user_result)
|
104
|
+
result = @bot_users_client.get(
|
105
|
+
id: bot_user_result["id"]
|
106
|
+
)
|
107
|
+
expect(result.class).to eq(NgrokAPI::Models::BotUser)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
describe "#get!" do
|
112
|
+
it "will make a get request and return an instance of NgrokAPI::Models::BotUser" do
|
113
|
+
path = '/bot_users/%{id}'
|
114
|
+
replacements = {
|
115
|
+
id: bot_user_result["id"],
|
116
|
+
}
|
117
|
+
data = {}
|
118
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
119
|
+
and_return(bot_user_result)
|
120
|
+
result = @bot_users_client.get(
|
121
|
+
id: bot_user_result["id"]
|
122
|
+
)
|
123
|
+
expect(result.class).to eq(NgrokAPI::Models::BotUser)
|
124
|
+
# expect(result.id).to eq(bot_user_result["id"])
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
describe "#list" do
|
129
|
+
it "will make a call to list (a GET request) and return a NgrokAPI::Models::Listable" do
|
130
|
+
expect(@client).to receive(:list).
|
131
|
+
and_return(bot_user_results)
|
132
|
+
url = base_url + path + "?before_id=" + api_key_result["id"] + "&limit=1"
|
133
|
+
result = @bot_users_client.list(url: url)
|
134
|
+
expect(result.class).to eq(NgrokAPI::Models::Listable)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
describe "#update" do
|
139
|
+
it "will make a patch request and return an instance of NgrokAPI::Models::BotUser" do
|
140
|
+
path = '/bot_users/%{id}'
|
141
|
+
replacements = {
|
142
|
+
id: bot_user_result["id"],
|
143
|
+
}
|
144
|
+
data = {}
|
145
|
+
data[:name] = "New name"
|
146
|
+
data[:active] = "New active"
|
147
|
+
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
148
|
+
and_return(bot_user_result)
|
149
|
+
result = @bot_users_client.update(
|
150
|
+
id: bot_user_result["id"],
|
151
|
+
name: "New name",
|
152
|
+
active: "New active"
|
153
|
+
)
|
154
|
+
expect(result.class).to eq(NgrokAPI::Models::BotUser)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
describe "#update!" do
|
159
|
+
it "will make a patch request and return an instance of NgrokAPI::Models::BotUser" do
|
160
|
+
path = '/bot_users/%{id}'
|
161
|
+
replacements = {
|
162
|
+
id: bot_user_result["id"],
|
163
|
+
}
|
164
|
+
data = {}
|
165
|
+
data[:name] = "New name"
|
166
|
+
data[:active] = "New active"
|
167
|
+
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
168
|
+
and_return(bot_user_result)
|
169
|
+
result = @bot_users_client.update(
|
170
|
+
id: bot_user_result["id"],
|
171
|
+
name: "New name",
|
172
|
+
active: "New active"
|
173
|
+
)
|
174
|
+
expect(result.class).to eq(NgrokAPI::Models::BotUser)
|
175
|
+
# expect(result.id).to eq(bot_user_result["id"])
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
@@ -31,7 +31,8 @@ RSpec.describe NgrokAPI::Services::CredentialsClient do
|
|
31
31
|
metadata: "New metadata",
|
32
32
|
acl: "New acl",
|
33
33
|
owner_id: "New owner_id",
|
34
|
-
owner_email: "New owner_email"
|
34
|
+
owner_email: "New owner_email",
|
35
|
+
precomputed_token: "New precomputed_token"
|
35
36
|
)
|
36
37
|
expect(result.class).to eq(NgrokAPI::Models::Credential)
|
37
38
|
end
|
@@ -54,7 +55,8 @@ RSpec.describe NgrokAPI::Services::CredentialsClient do
|
|
54
55
|
metadata: "New metadata",
|
55
56
|
acl: "New acl",
|
56
57
|
owner_id: "New owner_id",
|
57
|
-
owner_email: "New owner_email"
|
58
|
+
owner_email: "New owner_email",
|
59
|
+
precomputed_token: "New precomputed_token"
|
58
60
|
)
|
59
61
|
expect(result.class).to eq(NgrokAPI::Models::Credential)
|
60
62
|
# expect(result.id).to eq(credential_result["id"])
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe NgrokAPI::Services::EdgeRouteTrafficPolicyModuleClient do
|
6
|
+
let(:base_url) { 'https://api.ngrok.com' }
|
7
|
+
let(:path) { '/edges/https/%{edge_id}/routes/%{id}/traffic_policy' }
|
8
|
+
let(:not_found) do
|
9
|
+
NgrokAPI::Errors::NotFoundError.new(response: endpoint_traffic_policy_result)
|
10
|
+
end
|
11
|
+
|
12
|
+
before(:each) do
|
13
|
+
@client = class_double("HttpClient")
|
14
|
+
@edge_route_traffic_policy_module_client = NgrokAPI::Services::EdgeRouteTrafficPolicyModuleClient.new(client: @client)
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#replace" do
|
18
|
+
it "will make a put request and return an instance of NgrokAPI::Models::EndpointTrafficPolicy" do
|
19
|
+
path = '/edges/https/%{edge_id}/routes/%{id}/traffic_policy'
|
20
|
+
replacements = {
|
21
|
+
edge_id: endpoint_traffic_policy_result["edge_id"],
|
22
|
+
id: endpoint_traffic_policy_result["id"],
|
23
|
+
}
|
24
|
+
data = "New a_module"
|
25
|
+
expect(@client).to receive(:put).with(path % replacements, data: data).
|
26
|
+
and_return(endpoint_traffic_policy_result)
|
27
|
+
result = @edge_route_traffic_policy_module_client.replace(
|
28
|
+
edge_id: endpoint_traffic_policy_result["edge_id"],
|
29
|
+
id: endpoint_traffic_policy_result["id"],
|
30
|
+
a_module: "New a_module"
|
31
|
+
)
|
32
|
+
expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe "#replace!" do
|
37
|
+
it "will make a put request and return an instance of NgrokAPI::Models::EndpointTrafficPolicy" do
|
38
|
+
path = '/edges/https/%{edge_id}/routes/%{id}/traffic_policy'
|
39
|
+
replacements = {
|
40
|
+
edge_id: endpoint_traffic_policy_result["edge_id"],
|
41
|
+
id: endpoint_traffic_policy_result["id"],
|
42
|
+
}
|
43
|
+
data = "New a_module"
|
44
|
+
expect(@client).to receive(:put).with(path % replacements, data: data).
|
45
|
+
and_return(endpoint_traffic_policy_result)
|
46
|
+
result = @edge_route_traffic_policy_module_client.replace(
|
47
|
+
edge_id: endpoint_traffic_policy_result["edge_id"],
|
48
|
+
id: endpoint_traffic_policy_result["id"],
|
49
|
+
a_module: "New a_module"
|
50
|
+
)
|
51
|
+
expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
|
52
|
+
# expect(result.id).to eq(endpoint_traffic_policy_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::EndpointTrafficPolicy" do
|
58
|
+
path = '/edges/https/%{edge_id}/routes/%{id}/traffic_policy'
|
59
|
+
replacements = {
|
60
|
+
edge_id: endpoint_traffic_policy_result["edge_id"],
|
61
|
+
id: endpoint_traffic_policy_result["id"],
|
62
|
+
}
|
63
|
+
data = {}
|
64
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
65
|
+
and_return(endpoint_traffic_policy_result)
|
66
|
+
result = @edge_route_traffic_policy_module_client.get(
|
67
|
+
edge_id: endpoint_traffic_policy_result["edge_id"],
|
68
|
+
id: endpoint_traffic_policy_result["id"]
|
69
|
+
)
|
70
|
+
expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
describe "#get!" do
|
75
|
+
it "will make a get request and return an instance of NgrokAPI::Models::EndpointTrafficPolicy" do
|
76
|
+
path = '/edges/https/%{edge_id}/routes/%{id}/traffic_policy'
|
77
|
+
replacements = {
|
78
|
+
edge_id: endpoint_traffic_policy_result["edge_id"],
|
79
|
+
id: endpoint_traffic_policy_result["id"],
|
80
|
+
}
|
81
|
+
data = {}
|
82
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
83
|
+
and_return(endpoint_traffic_policy_result)
|
84
|
+
result = @edge_route_traffic_policy_module_client.get(
|
85
|
+
edge_id: endpoint_traffic_policy_result["edge_id"],
|
86
|
+
id: endpoint_traffic_policy_result["id"]
|
87
|
+
)
|
88
|
+
expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
|
89
|
+
# expect(result.id).to eq(endpoint_traffic_policy_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}/traffic_policy'
|
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_traffic_policy_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}/traffic_policy'
|
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_traffic_policy_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}/traffic_policy'
|
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_traffic_policy_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
|