ngrok-api 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/doc/NgrokAPI/Client.html +152 -96
- 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/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 +18 -92
- 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 +3 -3
- data/doc/NgrokAPI/Services/CredentialsClient.html +9 -9
- 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/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 +3 -3
- 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 +3 -3
- 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 +3 -3
- data/doc/NgrokAPI/Services/IPPolicyRulesClient.html +3 -3
- data/doc/NgrokAPI/Services/IPRestrictionsClient.html +3 -3
- data/doc/NgrokAPI/Services/ReservedAddrsClient.html +3 -3
- data/doc/NgrokAPI/Services/ReservedDomainsClient.html +6 -6
- data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +3 -3
- data/doc/NgrokAPI/Services/SSHCredentialsClient.html +5 -5
- data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +3 -3
- data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +7 -7
- 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/TLSCertificatesClient.html +7 -7
- 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/TunnelGroupBackendsClient.html +3 -3
- data/doc/NgrokAPI/Services/TunnelSessionsClient.html +5 -5
- data/doc/NgrokAPI/Services/TunnelsClient.html +3 -3
- 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 +95 -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 +1778 -818
- data/doc/top-level-namespace.html +3 -3
- data/docs/NgrokAPI/Client.html +152 -96
- 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/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 +18 -92
- 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 +3 -3
- data/docs/NgrokAPI/Services/CredentialsClient.html +9 -9
- 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/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 +3 -3
- 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 +3 -3
- 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 +3 -3
- data/docs/NgrokAPI/Services/IPPolicyRulesClient.html +3 -3
- data/docs/NgrokAPI/Services/IPRestrictionsClient.html +3 -3
- data/docs/NgrokAPI/Services/ReservedAddrsClient.html +3 -3
- data/docs/NgrokAPI/Services/ReservedDomainsClient.html +6 -6
- data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +3 -3
- data/docs/NgrokAPI/Services/SSHCredentialsClient.html +5 -5
- data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +3 -3
- data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +7 -7
- 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/TLSCertificatesClient.html +7 -7
- 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/TunnelGroupBackendsClient.html +3 -3
- data/docs/NgrokAPI/Services/TunnelSessionsClient.html +5 -5
- data/docs/NgrokAPI/Services/TunnelsClient.html +3 -3
- 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 +95 -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 +1778 -818
- 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_action.rb +33 -0
- data/lib/ngrokapi/models/endpoint_policy.rb +35 -0
- data/lib/ngrokapi/models/endpoint_rule.rb +35 -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_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 +0 -2
- 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_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 +2 -2
- data/lib/ngrokapi/services/static_backends_client.rb +242 -0
- data/lib/ngrokapi/services/tcp_edge_policy_module_client.rb +108 -0
- data/lib/ngrokapi/services/tls_edge_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_action_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_policy_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_rule_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_user_agent_filter_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_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 +20 -4
- data/spec/ngrokapi/services/edges_tcp_client_spec.rb +12 -4
- data/spec/ngrokapi/services/edges_tls_client_spec.rb +12 -4
- data/spec/ngrokapi/services/static_backends_client_spec.rb +194 -0
- data/spec/ngrokapi/services/tcp_edge_policy_module_client_spec.rb +125 -0
- data/spec/ngrokapi/services/tls_edge_policy_module_client_spec.rb +125 -0
- data/spec/spec_helper.rb +64 -0
- metadata +54 -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[:policy] = "New 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,9 @@ 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"
|
|
58
62
|
)
|
|
59
63
|
expect(result.class).to eq(NgrokAPI::Models::HTTPSEdgeRoute)
|
|
60
64
|
end
|
|
@@ -82,6 +86,8 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
|
82
86
|
data[:saml] = "New saml"
|
|
83
87
|
data[:oidc] = "New oidc"
|
|
84
88
|
data[:websocket_tcp_converter] = "New websocket_tcp_converter"
|
|
89
|
+
data[:user_agent_filter] = "New user_agent_filter"
|
|
90
|
+
data[:policy] = "New policy"
|
|
85
91
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
|
86
92
|
and_return(https_edge_route_result)
|
|
87
93
|
result = @edges_https_routes_client.create(
|
|
@@ -100,7 +106,9 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
|
100
106
|
oauth: "New oauth",
|
|
101
107
|
saml: "New saml",
|
|
102
108
|
oidc: "New oidc",
|
|
103
|
-
websocket_tcp_converter: "New websocket_tcp_converter"
|
|
109
|
+
websocket_tcp_converter: "New websocket_tcp_converter",
|
|
110
|
+
user_agent_filter: "New user_agent_filter",
|
|
111
|
+
policy: "New policy"
|
|
104
112
|
)
|
|
105
113
|
expect(result.class).to eq(NgrokAPI::Models::HTTPSEdgeRoute)
|
|
106
114
|
# expect(result.id).to eq(https_edge_route_result["id"])
|
|
@@ -167,6 +175,8 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
|
167
175
|
data[:saml] = "New saml"
|
|
168
176
|
data[:oidc] = "New oidc"
|
|
169
177
|
data[:websocket_tcp_converter] = "New websocket_tcp_converter"
|
|
178
|
+
data[:user_agent_filter] = "New user_agent_filter"
|
|
179
|
+
data[:policy] = "New policy"
|
|
170
180
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
|
171
181
|
and_return(https_edge_route_result)
|
|
172
182
|
result = @edges_https_routes_client.update(
|
|
@@ -186,7 +196,9 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
|
186
196
|
oauth: "New oauth",
|
|
187
197
|
saml: "New saml",
|
|
188
198
|
oidc: "New oidc",
|
|
189
|
-
websocket_tcp_converter: "New websocket_tcp_converter"
|
|
199
|
+
websocket_tcp_converter: "New websocket_tcp_converter",
|
|
200
|
+
user_agent_filter: "New user_agent_filter",
|
|
201
|
+
policy: "New policy"
|
|
190
202
|
)
|
|
191
203
|
expect(result.class).to eq(NgrokAPI::Models::HTTPSEdgeRoute)
|
|
192
204
|
end
|
|
@@ -215,6 +227,8 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
|
215
227
|
data[:saml] = "New saml"
|
|
216
228
|
data[:oidc] = "New oidc"
|
|
217
229
|
data[:websocket_tcp_converter] = "New websocket_tcp_converter"
|
|
230
|
+
data[:user_agent_filter] = "New user_agent_filter"
|
|
231
|
+
data[:policy] = "New policy"
|
|
218
232
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
|
219
233
|
and_return(https_edge_route_result)
|
|
220
234
|
result = @edges_https_routes_client.update(
|
|
@@ -234,7 +248,9 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
|
234
248
|
oauth: "New oauth",
|
|
235
249
|
saml: "New saml",
|
|
236
250
|
oidc: "New oidc",
|
|
237
|
-
websocket_tcp_converter: "New websocket_tcp_converter"
|
|
251
|
+
websocket_tcp_converter: "New websocket_tcp_converter",
|
|
252
|
+
user_agent_filter: "New user_agent_filter",
|
|
253
|
+
policy: "New policy"
|
|
238
254
|
)
|
|
239
255
|
expect(result.class).to eq(NgrokAPI::Models::HTTPSEdgeRoute)
|
|
240
256
|
# 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[:policy] = "New 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,8 @@ 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"
|
|
36
38
|
)
|
|
37
39
|
expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
|
|
38
40
|
end
|
|
@@ -49,6 +51,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
|
49
51
|
data[:hostports] = "New hostports"
|
|
50
52
|
data[:backend] = "New backend"
|
|
51
53
|
data[:ip_restriction] = "New ip_restriction"
|
|
54
|
+
data[:policy] = "New policy"
|
|
52
55
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
|
53
56
|
and_return(tcp_edge_result)
|
|
54
57
|
result = @edges_tcp_client.create(
|
|
@@ -56,7 +59,8 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
|
56
59
|
metadata: "New metadata",
|
|
57
60
|
hostports: "New hostports",
|
|
58
61
|
backend: "New backend",
|
|
59
|
-
ip_restriction: "New ip_restriction"
|
|
62
|
+
ip_restriction: "New ip_restriction",
|
|
63
|
+
policy: "New policy"
|
|
60
64
|
)
|
|
61
65
|
expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
|
|
62
66
|
# expect(result.id).to eq(tcp_edge_result["id"])
|
|
@@ -118,6 +122,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
|
118
122
|
data[:hostports] = "New hostports"
|
|
119
123
|
data[:backend] = "New backend"
|
|
120
124
|
data[:ip_restriction] = "New ip_restriction"
|
|
125
|
+
data[:policy] = "New policy"
|
|
121
126
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
|
122
127
|
and_return(tcp_edge_result)
|
|
123
128
|
result = @edges_tcp_client.update(
|
|
@@ -126,7 +131,8 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
|
126
131
|
metadata: "New metadata",
|
|
127
132
|
hostports: "New hostports",
|
|
128
133
|
backend: "New backend",
|
|
129
|
-
ip_restriction: "New ip_restriction"
|
|
134
|
+
ip_restriction: "New ip_restriction",
|
|
135
|
+
policy: "New policy"
|
|
130
136
|
)
|
|
131
137
|
expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
|
|
132
138
|
end
|
|
@@ -144,6 +150,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
|
144
150
|
data[:hostports] = "New hostports"
|
|
145
151
|
data[:backend] = "New backend"
|
|
146
152
|
data[:ip_restriction] = "New ip_restriction"
|
|
153
|
+
data[:policy] = "New policy"
|
|
147
154
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
|
148
155
|
and_return(tcp_edge_result)
|
|
149
156
|
result = @edges_tcp_client.update(
|
|
@@ -152,7 +159,8 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
|
152
159
|
metadata: "New metadata",
|
|
153
160
|
hostports: "New hostports",
|
|
154
161
|
backend: "New backend",
|
|
155
|
-
ip_restriction: "New ip_restriction"
|
|
162
|
+
ip_restriction: "New ip_restriction",
|
|
163
|
+
policy: "New policy"
|
|
156
164
|
)
|
|
157
165
|
expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
|
|
158
166
|
# 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[:policy] = "New 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,8 @@ 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"
|
|
40
42
|
)
|
|
41
43
|
expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
|
|
42
44
|
end
|
|
@@ -55,6 +57,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
|
55
57
|
data[:ip_restriction] = "New ip_restriction"
|
|
56
58
|
data[:mutual_tls] = "New mutual_tls"
|
|
57
59
|
data[:tls_termination] = "New tls_termination"
|
|
60
|
+
data[:policy] = "New policy"
|
|
58
61
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
|
59
62
|
and_return(tls_edge_result)
|
|
60
63
|
result = @edges_tls_client.create(
|
|
@@ -64,7 +67,8 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
|
64
67
|
backend: "New backend",
|
|
65
68
|
ip_restriction: "New ip_restriction",
|
|
66
69
|
mutual_tls: "New mutual_tls",
|
|
67
|
-
tls_termination: "New tls_termination"
|
|
70
|
+
tls_termination: "New tls_termination",
|
|
71
|
+
policy: "New policy"
|
|
68
72
|
)
|
|
69
73
|
expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
|
|
70
74
|
# expect(result.id).to eq(tls_edge_result["id"])
|
|
@@ -128,6 +132,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
|
128
132
|
data[:ip_restriction] = "New ip_restriction"
|
|
129
133
|
data[:mutual_tls] = "New mutual_tls"
|
|
130
134
|
data[:tls_termination] = "New tls_termination"
|
|
135
|
+
data[:policy] = "New policy"
|
|
131
136
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
|
132
137
|
and_return(tls_edge_result)
|
|
133
138
|
result = @edges_tls_client.update(
|
|
@@ -138,7 +143,8 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
|
138
143
|
backend: "New backend",
|
|
139
144
|
ip_restriction: "New ip_restriction",
|
|
140
145
|
mutual_tls: "New mutual_tls",
|
|
141
|
-
tls_termination: "New tls_termination"
|
|
146
|
+
tls_termination: "New tls_termination",
|
|
147
|
+
policy: "New policy"
|
|
142
148
|
)
|
|
143
149
|
expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
|
|
144
150
|
end
|
|
@@ -158,6 +164,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
|
158
164
|
data[:ip_restriction] = "New ip_restriction"
|
|
159
165
|
data[:mutual_tls] = "New mutual_tls"
|
|
160
166
|
data[:tls_termination] = "New tls_termination"
|
|
167
|
+
data[:policy] = "New policy"
|
|
161
168
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
|
162
169
|
and_return(tls_edge_result)
|
|
163
170
|
result = @edges_tls_client.update(
|
|
@@ -168,7 +175,8 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
|
168
175
|
backend: "New backend",
|
|
169
176
|
ip_restriction: "New ip_restriction",
|
|
170
177
|
mutual_tls: "New mutual_tls",
|
|
171
|
-
tls_termination: "New tls_termination"
|
|
178
|
+
tls_termination: "New tls_termination",
|
|
179
|
+
policy: "New policy"
|
|
172
180
|
)
|
|
173
181
|
expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
|
|
174
182
|
# expect(result.id).to eq(tls_edge_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
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
|
|
5
|
+
RSpec.describe NgrokAPI::Services::TCPEdgePolicyModuleClient do
|
|
6
|
+
let(:base_url) { 'https://api.ngrok.com' }
|
|
7
|
+
let(:path) { '/edges/tcp/%{id}/policy' }
|
|
8
|
+
let(:not_found) do
|
|
9
|
+
NgrokAPI::Errors::NotFoundError.new(response: endpoint_policy_result)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
before(:each) do
|
|
13
|
+
@client = class_double("HttpClient")
|
|
14
|
+
@tcp_edge_policy_module_client = NgrokAPI::Services::TCPEdgePolicyModuleClient.new(client: @client)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
describe "#replace" do
|
|
18
|
+
it "will make a put request and return an instance of NgrokAPI::Models::EndpointPolicy" do
|
|
19
|
+
path = '/edges/tcp/%{id}/policy'
|
|
20
|
+
replacements = {
|
|
21
|
+
id: endpoint_policy_result["id"],
|
|
22
|
+
}
|
|
23
|
+
data = "New a_module"
|
|
24
|
+
expect(@client).to receive(:put).with(path % replacements, data: data).
|
|
25
|
+
and_return(endpoint_policy_result)
|
|
26
|
+
result = @tcp_edge_policy_module_client.replace(
|
|
27
|
+
id: endpoint_policy_result["id"],
|
|
28
|
+
a_module: "New a_module"
|
|
29
|
+
)
|
|
30
|
+
expect(result.class).to eq(NgrokAPI::Models::EndpointPolicy)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
describe "#replace!" do
|
|
35
|
+
it "will make a put request and return an instance of NgrokAPI::Models::EndpointPolicy" do
|
|
36
|
+
path = '/edges/tcp/%{id}/policy'
|
|
37
|
+
replacements = {
|
|
38
|
+
id: endpoint_policy_result["id"],
|
|
39
|
+
}
|
|
40
|
+
data = "New a_module"
|
|
41
|
+
expect(@client).to receive(:put).with(path % replacements, data: data).
|
|
42
|
+
and_return(endpoint_policy_result)
|
|
43
|
+
result = @tcp_edge_policy_module_client.replace(
|
|
44
|
+
id: endpoint_policy_result["id"],
|
|
45
|
+
a_module: "New a_module"
|
|
46
|
+
)
|
|
47
|
+
expect(result.class).to eq(NgrokAPI::Models::EndpointPolicy)
|
|
48
|
+
# expect(result.id).to eq(endpoint_policy_result["id"])
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe "#get" do
|
|
53
|
+
it "will make a get request and return an instance of NgrokAPI::Models::EndpointPolicy" do
|
|
54
|
+
path = '/edges/tcp/%{id}/policy'
|
|
55
|
+
replacements = {
|
|
56
|
+
id: endpoint_policy_result["id"],
|
|
57
|
+
}
|
|
58
|
+
data = {}
|
|
59
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
|
60
|
+
and_return(endpoint_policy_result)
|
|
61
|
+
result = @tcp_edge_policy_module_client.get(
|
|
62
|
+
id: endpoint_policy_result["id"]
|
|
63
|
+
)
|
|
64
|
+
expect(result.class).to eq(NgrokAPI::Models::EndpointPolicy)
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
describe "#get!" do
|
|
69
|
+
it "will make a get request and return an instance of NgrokAPI::Models::EndpointPolicy" do
|
|
70
|
+
path = '/edges/tcp/%{id}/policy'
|
|
71
|
+
replacements = {
|
|
72
|
+
id: endpoint_policy_result["id"],
|
|
73
|
+
}
|
|
74
|
+
data = {}
|
|
75
|
+
expect(@client).to receive(:get).with(path % replacements, data: data).
|
|
76
|
+
and_return(endpoint_policy_result)
|
|
77
|
+
result = @tcp_edge_policy_module_client.get(
|
|
78
|
+
id: endpoint_policy_result["id"]
|
|
79
|
+
)
|
|
80
|
+
expect(result.class).to eq(NgrokAPI::Models::EndpointPolicy)
|
|
81
|
+
# expect(result.id).to eq(endpoint_policy_result["id"])
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
describe "#delete" do
|
|
86
|
+
it "will make a delete request" do
|
|
87
|
+
path = '/edges/tcp/%{id}/policy'
|
|
88
|
+
replacements = {
|
|
89
|
+
id: api_key_result["id"],
|
|
90
|
+
}
|
|
91
|
+
expect(@client).to receive(:delete).with(path % replacements).and_return(nil)
|
|
92
|
+
@tcp_edge_policy_module_client.delete(
|
|
93
|
+
id: api_key_result["id"]
|
|
94
|
+
)
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
describe "#delete!" do
|
|
99
|
+
it "will make a delete request" do
|
|
100
|
+
path = '/edges/tcp/%{id}/policy'
|
|
101
|
+
replacements = {
|
|
102
|
+
id: api_key_result["id"],
|
|
103
|
+
}
|
|
104
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).and_return(nil)
|
|
105
|
+
@tcp_edge_policy_module_client.delete!(
|
|
106
|
+
id: api_key_result["id"]
|
|
107
|
+
)
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
it "will make a delete request and return NotFoundError if 404" do
|
|
111
|
+
path = '/edges/tcp/%{id}/policy'
|
|
112
|
+
replacements = {
|
|
113
|
+
id: api_key_result["id"],
|
|
114
|
+
}
|
|
115
|
+
expect do
|
|
116
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).
|
|
117
|
+
and_raise(NgrokAPI::Errors::NotFoundError)
|
|
118
|
+
result = @tcp_edge_policy_module_client.delete!(
|
|
119
|
+
id: api_key_result["id"]
|
|
120
|
+
)
|
|
121
|
+
expect(result).to be nil
|
|
122
|
+
end.to raise_error(NgrokAPI::Errors::NotFoundError)
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|