ngrok-api 0.22.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/CHANGELOG.md +9 -1
- data/Gemfile +11 -11
- data/Gemfile.lock +175 -0
- data/README.md +21 -0
- data/doc/NgrokAPI/Client.html +26 -20
- data/doc/NgrokAPI/Error.html +2 -2
- data/doc/NgrokAPI/Errors/NotFoundError.html +2 -2
- data/doc/NgrokAPI/Errors.html +2 -2
- data/doc/NgrokAPI/HttpClient.html +2 -2
- data/doc/NgrokAPI/Models/APIKey.html +2 -2
- data/doc/NgrokAPI/Models/AWSAuth.html +2 -2
- data/doc/NgrokAPI/Models/AWSCredentials.html +2 -2
- data/doc/NgrokAPI/Models/AWSRole.html +2 -2
- data/doc/NgrokAPI/Models/AbuseReport.html +2 -2
- data/doc/NgrokAPI/Models/AbuseReportHostname.html +2 -2
- data/doc/NgrokAPI/Models/AgentIngress.html +2 -2
- data/doc/NgrokAPI/Models/AgentIngressCertJob.html +2 -2
- data/doc/NgrokAPI/Models/AgentIngressCertPolicy.html +2 -2
- data/doc/NgrokAPI/Models/AgentIngressCertStatus.html +2 -2
- data/doc/NgrokAPI/Models/ApplicationSession.html +2 -2
- data/doc/NgrokAPI/Models/ApplicationUser.html +2 -2
- data/doc/NgrokAPI/Models/BotUser.html +2 -2
- data/doc/NgrokAPI/Models/BrowserSession.html +2 -2
- data/doc/NgrokAPI/Models/CertificateAuthority.html +2 -2
- data/doc/NgrokAPI/Models/Credential.html +2 -2
- data/doc/NgrokAPI/Models/Endpoint.html +1394 -180
- data/doc/NgrokAPI/Models/EndpointBackend.html +2 -2
- data/doc/NgrokAPI/Models/EndpointBackendMutate.html +2 -2
- data/doc/NgrokAPI/Models/EndpointCircuitBreaker.html +2 -2
- data/doc/NgrokAPI/Models/EndpointCompression.html +2 -2
- data/doc/NgrokAPI/Models/EndpointIPPolicy.html +2 -2
- data/doc/NgrokAPI/Models/EndpointIPPolicyMutate.html +2 -2
- data/doc/NgrokAPI/Models/EndpointMutualTLS.html +2 -2
- data/doc/NgrokAPI/Models/EndpointMutualTLSMutate.html +2 -2
- data/doc/NgrokAPI/Models/EndpointOAuth.html +2 -2
- data/doc/NgrokAPI/Models/EndpointOAuthAmazon.html +2 -2
- data/doc/NgrokAPI/Models/EndpointOAuthFacebook.html +2 -2
- data/doc/NgrokAPI/Models/EndpointOAuthGitHub.html +2 -2
- data/doc/NgrokAPI/Models/EndpointOAuthGitLab.html +2 -2
- data/doc/NgrokAPI/Models/EndpointOAuthGoogle.html +2 -2
- data/doc/NgrokAPI/Models/EndpointOAuthLinkedIn.html +2 -2
- data/doc/NgrokAPI/Models/EndpointOAuthMicrosoft.html +2 -2
- data/doc/NgrokAPI/Models/EndpointOAuthProvider.html +2 -2
- data/doc/NgrokAPI/Models/EndpointOAuthTwitch.html +2 -2
- data/doc/NgrokAPI/Models/EndpointOIDC.html +2 -2
- data/doc/NgrokAPI/Models/EndpointRequestHeaders.html +2 -2
- data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +2 -2
- data/doc/NgrokAPI/Models/EndpointSAML.html +2 -2
- data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +2 -2
- data/doc/NgrokAPI/Models/EndpointTLSTermination.html +2 -2
- data/doc/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +2 -2
- data/doc/NgrokAPI/Models/EndpointTrafficPolicy.html +669 -0
- data/doc/NgrokAPI/Models/EndpointUserAgentFilter.html +2 -2
- data/doc/NgrokAPI/Models/EndpointWebhookValidation.html +2 -2
- data/doc/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +2 -2
- data/doc/NgrokAPI/Models/EventDestination.html +2 -2
- data/doc/NgrokAPI/Models/EventSource.html +2 -2
- data/doc/NgrokAPI/Models/EventSourceList.html +2 -2
- data/doc/NgrokAPI/Models/EventSourceReplace.html +2 -2
- data/doc/NgrokAPI/Models/EventSubscription.html +2 -2
- data/doc/NgrokAPI/Models/EventTarget.html +91 -17
- data/doc/NgrokAPI/Models/EventTargetAzureLogsIngestion.html +965 -0
- data/doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html +2 -2
- data/doc/NgrokAPI/Models/EventTargetDatadog.html +2 -2
- data/doc/NgrokAPI/Models/EventTargetFirehose.html +2 -2
- data/doc/NgrokAPI/Models/EventTargetKinesis.html +2 -2
- data/doc/NgrokAPI/Models/FailoverBackend.html +2 -2
- data/doc/NgrokAPI/Models/HTTPResponseBackend.html +2 -2
- data/doc/NgrokAPI/Models/HTTPSEdge.html +2 -2
- data/doc/NgrokAPI/Models/HTTPSEdgeRoute.html +36 -36
- data/doc/NgrokAPI/Models/IPPolicy.html +2 -2
- data/doc/NgrokAPI/Models/IPPolicyRule.html +2 -2
- data/doc/NgrokAPI/Models/IPRestriction.html +2 -2
- data/doc/NgrokAPI/Models/IdentityProvider.html +2 -2
- data/doc/NgrokAPI/Models/Listable.html +2 -2
- data/doc/NgrokAPI/Models/Location.html +2 -2
- data/doc/NgrokAPI/Models/Ref.html +2 -2
- data/doc/NgrokAPI/Models/ReservedAddr.html +2 -2
- data/doc/NgrokAPI/Models/ReservedDomain.html +2 -2
- data/doc/NgrokAPI/Models/ReservedDomainCertJob.html +2 -2
- data/doc/NgrokAPI/Models/ReservedDomainCertPolicy.html +2 -2
- data/doc/NgrokAPI/Models/ReservedDomainCertStatus.html +2 -2
- data/doc/NgrokAPI/Models/SSHCertificateAuthority.html +2 -2
- data/doc/NgrokAPI/Models/SSHCredential.html +2 -2
- data/doc/NgrokAPI/Models/SSHHostCertificate.html +2 -2
- data/doc/NgrokAPI/Models/SSHUserCertificate.html +2 -2
- data/doc/NgrokAPI/Models/StaticBackend.html +2 -2
- data/doc/NgrokAPI/Models/StaticBackendTLS.html +2 -2
- data/doc/NgrokAPI/Models/TCPEdge.html +15 -15
- data/doc/NgrokAPI/Models/TLSCertificate.html +2 -2
- data/doc/NgrokAPI/Models/TLSCertificateSANs.html +2 -2
- data/doc/NgrokAPI/Models/TLSEdge.html +22 -22
- data/doc/NgrokAPI/Models/Tunnel.html +2 -2
- data/doc/NgrokAPI/Models/TunnelGroupBackend.html +2 -2
- data/doc/NgrokAPI/Models/TunnelSession.html +2 -2
- data/doc/NgrokAPI/Models/UserAgent.html +2 -2
- data/doc/NgrokAPI/Models/WeightedBackend.html +2 -2
- data/doc/NgrokAPI/Models.html +4 -4
- data/doc/NgrokAPI/PagedIterator.html +2 -2
- data/doc/NgrokAPI/Services/APIKeysClient.html +3 -3
- data/doc/NgrokAPI/Services/AbuseReportsClient.html +3 -3
- data/doc/NgrokAPI/Services/AgentIngressesClient.html +2 -2
- data/doc/NgrokAPI/Services/ApplicationSessionsClient.html +2 -2
- data/doc/NgrokAPI/Services/ApplicationUsersClient.html +2 -2
- data/doc/NgrokAPI/Services/BotUsersClient.html +2 -2
- data/doc/NgrokAPI/Services/CertificateAuthoritiesClient.html +3 -3
- data/doc/NgrokAPI/Services/CredentialsClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/EdgeRouteTrafficPolicyModuleClient.html +1149 -0
- data/doc/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/EdgesHTTPSClient.html +2 -2
- data/doc/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +26 -26
- data/doc/NgrokAPI/Services/EdgesTCPClient.html +26 -26
- data/doc/NgrokAPI/Services/EdgesTLSClient.html +26 -26
- data/doc/NgrokAPI/Services/EndpointsClient.html +1243 -137
- data/doc/NgrokAPI/Services/EventDestinationsClient.html +2 -2
- data/doc/NgrokAPI/Services/EventSourcesClient.html +2 -2
- data/doc/NgrokAPI/Services/EventSubscriptionsClient.html +2 -2
- data/doc/NgrokAPI/Services/FailoverBackendsClient.html +3 -3
- data/doc/NgrokAPI/Services/HTTPResponseBackendsClient.html +2 -2
- data/doc/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +2 -2
- 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 +15 -15
- data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +3 -3
- data/doc/NgrokAPI/Services/SSHCredentialsClient.html +3 -3
- data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +3 -3
- data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +3 -3
- data/doc/NgrokAPI/Services/StaticBackendsClient.html +3 -3
- data/doc/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/TCPEdgeTrafficPolicyModuleClient.html +1039 -0
- data/doc/NgrokAPI/Services/TLSCertificatesClient.html +3 -3
- data/doc/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +2 -2
- data/doc/NgrokAPI/Services/TLSEdgeTrafficPolicyModuleClient.html +1039 -0
- data/doc/NgrokAPI/Services/TunnelGroupBackendsClient.html +3 -3
- data/doc/NgrokAPI/Services/TunnelSessionsClient.html +3 -3
- data/doc/NgrokAPI/Services/TunnelsClient.html +3 -3
- data/doc/NgrokAPI/Services/WeightedBackendsClient.html +3 -3
- data/doc/NgrokAPI/Services.html +4 -4
- data/doc/NgrokAPI.html +4 -4
- data/doc/_index.html +21 -28
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +21 -2
- data/doc/index.html +21 -2
- data/doc/method_list.html +1377 -1241
- data/doc/top-level-namespace.html +2 -2
- data/docs/NgrokAPI/Client.html +26 -20
- data/docs/NgrokAPI/Error.html +2 -2
- data/docs/NgrokAPI/Errors/NotFoundError.html +2 -2
- data/docs/NgrokAPI/Errors.html +2 -2
- data/docs/NgrokAPI/HttpClient.html +2 -2
- data/docs/NgrokAPI/Models/APIKey.html +2 -2
- data/docs/NgrokAPI/Models/AWSAuth.html +2 -2
- data/docs/NgrokAPI/Models/AWSCredentials.html +2 -2
- data/docs/NgrokAPI/Models/AWSRole.html +2 -2
- data/docs/NgrokAPI/Models/AbuseReport.html +2 -2
- data/docs/NgrokAPI/Models/AbuseReportHostname.html +2 -2
- data/docs/NgrokAPI/Models/AgentIngress.html +2 -2
- data/docs/NgrokAPI/Models/AgentIngressCertJob.html +2 -2
- data/docs/NgrokAPI/Models/AgentIngressCertPolicy.html +2 -2
- data/docs/NgrokAPI/Models/AgentIngressCertStatus.html +2 -2
- data/docs/NgrokAPI/Models/ApplicationSession.html +2 -2
- data/docs/NgrokAPI/Models/ApplicationUser.html +2 -2
- data/docs/NgrokAPI/Models/BotUser.html +2 -2
- data/docs/NgrokAPI/Models/BrowserSession.html +2 -2
- data/docs/NgrokAPI/Models/CertificateAuthority.html +2 -2
- data/docs/NgrokAPI/Models/Credential.html +2 -2
- data/docs/NgrokAPI/Models/Endpoint.html +1394 -180
- data/docs/NgrokAPI/Models/EndpointBackend.html +2 -2
- data/docs/NgrokAPI/Models/EndpointBackendMutate.html +2 -2
- data/docs/NgrokAPI/Models/EndpointCircuitBreaker.html +2 -2
- data/docs/NgrokAPI/Models/EndpointCompression.html +2 -2
- data/docs/NgrokAPI/Models/EndpointIPPolicy.html +2 -2
- data/docs/NgrokAPI/Models/EndpointIPPolicyMutate.html +2 -2
- data/docs/NgrokAPI/Models/EndpointMutualTLS.html +2 -2
- data/docs/NgrokAPI/Models/EndpointMutualTLSMutate.html +2 -2
- data/docs/NgrokAPI/Models/EndpointOAuth.html +2 -2
- data/docs/NgrokAPI/Models/EndpointOAuthAmazon.html +2 -2
- data/docs/NgrokAPI/Models/EndpointOAuthFacebook.html +2 -2
- data/docs/NgrokAPI/Models/EndpointOAuthGitHub.html +2 -2
- data/docs/NgrokAPI/Models/EndpointOAuthGitLab.html +2 -2
- data/docs/NgrokAPI/Models/EndpointOAuthGoogle.html +2 -2
- data/docs/NgrokAPI/Models/EndpointOAuthLinkedIn.html +2 -2
- data/docs/NgrokAPI/Models/EndpointOAuthMicrosoft.html +2 -2
- data/docs/NgrokAPI/Models/EndpointOAuthProvider.html +2 -2
- data/docs/NgrokAPI/Models/EndpointOAuthTwitch.html +2 -2
- data/docs/NgrokAPI/Models/EndpointOIDC.html +2 -2
- data/docs/NgrokAPI/Models/EndpointRequestHeaders.html +2 -2
- data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +2 -2
- data/docs/NgrokAPI/Models/EndpointSAML.html +2 -2
- data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +2 -2
- data/docs/NgrokAPI/Models/EndpointTLSTermination.html +2 -2
- data/docs/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +2 -2
- data/docs/NgrokAPI/Models/EndpointTrafficPolicy.html +669 -0
- data/docs/NgrokAPI/Models/EndpointUserAgentFilter.html +2 -2
- data/docs/NgrokAPI/Models/EndpointWebhookValidation.html +2 -2
- data/docs/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +2 -2
- data/docs/NgrokAPI/Models/EventDestination.html +2 -2
- data/docs/NgrokAPI/Models/EventSource.html +2 -2
- data/docs/NgrokAPI/Models/EventSourceList.html +2 -2
- data/docs/NgrokAPI/Models/EventSourceReplace.html +2 -2
- data/docs/NgrokAPI/Models/EventSubscription.html +2 -2
- data/docs/NgrokAPI/Models/EventTarget.html +91 -17
- data/docs/NgrokAPI/Models/EventTargetAzureLogsIngestion.html +965 -0
- data/docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html +2 -2
- data/docs/NgrokAPI/Models/EventTargetDatadog.html +2 -2
- data/docs/NgrokAPI/Models/EventTargetFirehose.html +2 -2
- data/docs/NgrokAPI/Models/EventTargetKinesis.html +2 -2
- data/docs/NgrokAPI/Models/FailoverBackend.html +2 -2
- data/docs/NgrokAPI/Models/HTTPResponseBackend.html +2 -2
- data/docs/NgrokAPI/Models/HTTPSEdge.html +2 -2
- data/docs/NgrokAPI/Models/HTTPSEdgeRoute.html +36 -36
- data/docs/NgrokAPI/Models/IPPolicy.html +2 -2
- data/docs/NgrokAPI/Models/IPPolicyRule.html +2 -2
- data/docs/NgrokAPI/Models/IPRestriction.html +2 -2
- data/docs/NgrokAPI/Models/IdentityProvider.html +2 -2
- data/docs/NgrokAPI/Models/Listable.html +2 -2
- data/docs/NgrokAPI/Models/Location.html +2 -2
- data/docs/NgrokAPI/Models/Ref.html +2 -2
- data/docs/NgrokAPI/Models/ReservedAddr.html +2 -2
- data/docs/NgrokAPI/Models/ReservedDomain.html +2 -2
- data/docs/NgrokAPI/Models/ReservedDomainCertJob.html +2 -2
- data/docs/NgrokAPI/Models/ReservedDomainCertPolicy.html +2 -2
- data/docs/NgrokAPI/Models/ReservedDomainCertStatus.html +2 -2
- data/docs/NgrokAPI/Models/SSHCertificateAuthority.html +2 -2
- data/docs/NgrokAPI/Models/SSHCredential.html +2 -2
- data/docs/NgrokAPI/Models/SSHHostCertificate.html +2 -2
- data/docs/NgrokAPI/Models/SSHUserCertificate.html +2 -2
- data/docs/NgrokAPI/Models/StaticBackend.html +2 -2
- data/docs/NgrokAPI/Models/StaticBackendTLS.html +2 -2
- data/docs/NgrokAPI/Models/TCPEdge.html +15 -15
- data/docs/NgrokAPI/Models/TLSCertificate.html +2 -2
- data/docs/NgrokAPI/Models/TLSCertificateSANs.html +2 -2
- data/docs/NgrokAPI/Models/TLSEdge.html +22 -22
- data/docs/NgrokAPI/Models/Tunnel.html +2 -2
- data/docs/NgrokAPI/Models/TunnelGroupBackend.html +2 -2
- data/docs/NgrokAPI/Models/TunnelSession.html +2 -2
- data/docs/NgrokAPI/Models/UserAgent.html +2 -2
- data/docs/NgrokAPI/Models/WeightedBackend.html +2 -2
- data/docs/NgrokAPI/Models.html +4 -4
- data/docs/NgrokAPI/PagedIterator.html +2 -2
- data/docs/NgrokAPI/Services/APIKeysClient.html +3 -3
- data/docs/NgrokAPI/Services/AbuseReportsClient.html +3 -3
- data/docs/NgrokAPI/Services/AgentIngressesClient.html +2 -2
- data/docs/NgrokAPI/Services/ApplicationSessionsClient.html +2 -2
- data/docs/NgrokAPI/Services/ApplicationUsersClient.html +2 -2
- data/docs/NgrokAPI/Services/BotUsersClient.html +2 -2
- data/docs/NgrokAPI/Services/CertificateAuthoritiesClient.html +3 -3
- data/docs/NgrokAPI/Services/CredentialsClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/EdgeRouteTrafficPolicyModuleClient.html +1149 -0
- data/docs/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/EdgesHTTPSClient.html +2 -2
- data/docs/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +26 -26
- data/docs/NgrokAPI/Services/EdgesTCPClient.html +26 -26
- data/docs/NgrokAPI/Services/EdgesTLSClient.html +26 -26
- data/docs/NgrokAPI/Services/EndpointsClient.html +1243 -137
- data/docs/NgrokAPI/Services/EventDestinationsClient.html +2 -2
- data/docs/NgrokAPI/Services/EventSourcesClient.html +2 -2
- data/docs/NgrokAPI/Services/EventSubscriptionsClient.html +2 -2
- data/docs/NgrokAPI/Services/FailoverBackendsClient.html +3 -3
- data/docs/NgrokAPI/Services/HTTPResponseBackendsClient.html +2 -2
- data/docs/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +2 -2
- 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 +15 -15
- data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +3 -3
- data/docs/NgrokAPI/Services/SSHCredentialsClient.html +3 -3
- data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +3 -3
- data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +3 -3
- data/docs/NgrokAPI/Services/StaticBackendsClient.html +3 -3
- data/docs/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/TCPEdgeTrafficPolicyModuleClient.html +1039 -0
- data/docs/NgrokAPI/Services/TLSCertificatesClient.html +3 -3
- data/docs/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +2 -2
- data/docs/NgrokAPI/Services/TLSEdgeTrafficPolicyModuleClient.html +1039 -0
- data/docs/NgrokAPI/Services/TunnelGroupBackendsClient.html +3 -3
- data/docs/NgrokAPI/Services/TunnelSessionsClient.html +3 -3
- data/docs/NgrokAPI/Services/TunnelsClient.html +3 -3
- data/docs/NgrokAPI/Services/WeightedBackendsClient.html +3 -3
- data/docs/NgrokAPI/Services.html +4 -4
- data/docs/NgrokAPI.html +4 -4
- data/docs/_index.html +21 -28
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +21 -2
- data/docs/index.html +21 -2
- data/docs/method_list.html +1377 -1241
- data/docs/top-level-namespace.html +2 -2
- data/lib/ngrokapi/client.rb +3 -0
- data/lib/ngrokapi/models/endpoint.rb +67 -1
- data/lib/ngrokapi/models/{endpoint_policy.rb → endpoint_traffic_policy.rb} +3 -5
- data/lib/ngrokapi/models/event_target.rb +3 -1
- data/lib/ngrokapi/models/event_target_azure_logs_ingestion.rb +41 -0
- data/lib/ngrokapi/models/https_edge_route.rb +5 -5
- data/lib/ngrokapi/models/tcp_edge.rb +5 -5
- data/lib/ngrokapi/models/tls_edge.rb +5 -5
- data/lib/ngrokapi/services/{edge_route_policy_module_client.rb → edge_route_traffic_policy_module_client.rb} +25 -25
- data/lib/ngrokapi/services/edges_https_routes_client.rb +12 -12
- data/lib/ngrokapi/services/edges_tcp_client.rb +12 -12
- data/lib/ngrokapi/services/edges_tls_client.rb +12 -12
- data/lib/ngrokapi/services/endpoints_client.rb +143 -2
- data/lib/ngrokapi/services/reserved_domains_client.rb +4 -4
- data/lib/ngrokapi/services/{tcp_edge_policy_module_client.rb → tcp_edge_traffic_policy_module_client.rb} +25 -25
- data/lib/ngrokapi/services/{tls_edge_policy_module_client.rb → tls_edge_traffic_policy_module_client.rb} +25 -25
- data/lib/ngrokapi/version.rb +1 -1
- data/spec/ngrokapi/client_spec.rb +3 -0
- data/spec/ngrokapi/models/endpoint_spec.rb +30 -0
- data/spec/ngrokapi/models/endpoint_traffic_policy_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 +3 -3
- data/spec/ngrokapi/models/tcp_edge_spec.rb +3 -3
- data/spec/ngrokapi/models/tls_edge_spec.rb +3 -3
- data/spec/ngrokapi/services/edge_route_traffic_policy_module_client_spec.rb +139 -0
- data/spec/ngrokapi/services/edges_https_routes_client_spec.rb +12 -8
- data/spec/ngrokapi/services/edges_tcp_client_spec.rb +12 -8
- data/spec/ngrokapi/services/edges_tls_client_spec.rb +12 -8
- data/spec/ngrokapi/services/endpoints_client_spec.rb +147 -0
- data/spec/ngrokapi/services/reserved_domains_client_spec.rb +8 -4
- 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 +6 -11
- metadata +23 -14
- data/lib/ngrokapi/models/endpoint_action.rb +0 -33
- data/lib/ngrokapi/models/endpoint_rule.rb +0 -35
- data/spec/ngrokapi/models/endpoint_action_spec.rb +0 -23
- data/spec/ngrokapi/models/endpoint_policy_spec.rb +0 -23
- data/spec/ngrokapi/models/endpoint_rule_spec.rb +0 -23
- data/spec/ngrokapi/services/edge_route_policy_module_client_spec.rb +0 -139
- data/spec/ngrokapi/services/tcp_edge_policy_module_client_spec.rb +0 -125
- data/spec/ngrokapi/services/tls_edge_policy_module_client_spec.rb +0 -125
@@ -39,7 +39,7 @@ RSpec.describe NgrokAPI::Models::HTTPSEdgeRoute do
|
|
39
39
|
new_oidc = 'New oidc'
|
40
40
|
new_websocket_tcp_converter = 'New websocket_tcp_converter'
|
41
41
|
new_user_agent_filter = 'New user_agent_filter'
|
42
|
-
|
42
|
+
new_traffic_policy = 'New traffic_policy'
|
43
43
|
expect(@https_edge_route.client).to receive(:update)
|
44
44
|
@https_edge_route.update(
|
45
45
|
match_type: new_match_type,
|
@@ -58,7 +58,7 @@ RSpec.describe NgrokAPI::Models::HTTPSEdgeRoute do
|
|
58
58
|
oidc: new_oidc,
|
59
59
|
websocket_tcp_converter: new_websocket_tcp_converter,
|
60
60
|
user_agent_filter: new_user_agent_filter,
|
61
|
-
|
61
|
+
traffic_policy: new_traffic_policy
|
62
62
|
)
|
63
63
|
expect(@https_edge_route.match_type).to eq new_match_type
|
64
64
|
expect(@https_edge_route.match).to eq new_match
|
@@ -76,7 +76,7 @@ RSpec.describe NgrokAPI::Models::HTTPSEdgeRoute do
|
|
76
76
|
expect(@https_edge_route.oidc).to eq new_oidc
|
77
77
|
expect(@https_edge_route.websocket_tcp_converter).to eq new_websocket_tcp_converter
|
78
78
|
expect(@https_edge_route.user_agent_filter).to eq new_user_agent_filter
|
79
|
-
expect(@https_edge_route.
|
79
|
+
expect(@https_edge_route.traffic_policy).to eq new_traffic_policy
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
@@ -28,7 +28,7 @@ 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
|
-
|
31
|
+
new_traffic_policy = 'New traffic_policy'
|
32
32
|
expect(@tcp_edge.client).to receive(:update)
|
33
33
|
@tcp_edge.update(
|
34
34
|
description: new_description,
|
@@ -36,14 +36,14 @@ RSpec.describe NgrokAPI::Models::TCPEdge do
|
|
36
36
|
hostports: new_hostports,
|
37
37
|
backend: new_backend,
|
38
38
|
ip_restriction: new_ip_restriction,
|
39
|
-
|
39
|
+
traffic_policy: new_traffic_policy
|
40
40
|
)
|
41
41
|
expect(@tcp_edge.description).to eq new_description
|
42
42
|
expect(@tcp_edge.metadata).to eq new_metadata
|
43
43
|
expect(@tcp_edge.hostports).to eq new_hostports
|
44
44
|
expect(@tcp_edge.backend).to eq new_backend
|
45
45
|
expect(@tcp_edge.ip_restriction).to eq new_ip_restriction
|
46
|
-
expect(@tcp_edge.
|
46
|
+
expect(@tcp_edge.traffic_policy).to eq new_traffic_policy
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
@@ -30,7 +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
|
-
|
33
|
+
new_traffic_policy = 'New traffic_policy'
|
34
34
|
expect(@tls_edge.client).to receive(:update)
|
35
35
|
@tls_edge.update(
|
36
36
|
description: new_description,
|
@@ -40,7 +40,7 @@ RSpec.describe NgrokAPI::Models::TLSEdge do
|
|
40
40
|
ip_restriction: new_ip_restriction,
|
41
41
|
mutual_tls: new_mutual_tls,
|
42
42
|
tls_termination: new_tls_termination,
|
43
|
-
|
43
|
+
traffic_policy: new_traffic_policy
|
44
44
|
)
|
45
45
|
expect(@tls_edge.description).to eq new_description
|
46
46
|
expect(@tls_edge.metadata).to eq new_metadata
|
@@ -49,7 +49,7 @@ RSpec.describe NgrokAPI::Models::TLSEdge do
|
|
49
49
|
expect(@tls_edge.ip_restriction).to eq new_ip_restriction
|
50
50
|
expect(@tls_edge.mutual_tls).to eq new_mutual_tls
|
51
51
|
expect(@tls_edge.tls_termination).to eq new_tls_termination
|
52
|
-
expect(@tls_edge.
|
52
|
+
expect(@tls_edge.traffic_policy).to eq new_traffic_policy
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
@@ -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
|
@@ -37,7 +37,7 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
37
37
|
data[:oidc] = "New oidc"
|
38
38
|
data[:websocket_tcp_converter] = "New websocket_tcp_converter"
|
39
39
|
data[:user_agent_filter] = "New user_agent_filter"
|
40
|
-
data[:
|
40
|
+
data[:traffic_policy] = "New traffic_policy"
|
41
41
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
42
42
|
and_return(https_edge_route_result)
|
43
43
|
result = @edges_https_routes_client.create(
|
@@ -58,7 +58,8 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
58
58
|
oidc: "New oidc",
|
59
59
|
websocket_tcp_converter: "New websocket_tcp_converter",
|
60
60
|
user_agent_filter: "New user_agent_filter",
|
61
|
-
policy: "New policy"
|
61
|
+
policy: "New policy",
|
62
|
+
traffic_policy: "New traffic_policy"
|
62
63
|
)
|
63
64
|
expect(result.class).to eq(NgrokAPI::Models::HTTPSEdgeRoute)
|
64
65
|
end
|
@@ -87,7 +88,7 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
87
88
|
data[:oidc] = "New oidc"
|
88
89
|
data[:websocket_tcp_converter] = "New websocket_tcp_converter"
|
89
90
|
data[:user_agent_filter] = "New user_agent_filter"
|
90
|
-
data[:
|
91
|
+
data[:traffic_policy] = "New traffic_policy"
|
91
92
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
92
93
|
and_return(https_edge_route_result)
|
93
94
|
result = @edges_https_routes_client.create(
|
@@ -108,7 +109,8 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
108
109
|
oidc: "New oidc",
|
109
110
|
websocket_tcp_converter: "New websocket_tcp_converter",
|
110
111
|
user_agent_filter: "New user_agent_filter",
|
111
|
-
policy: "New policy"
|
112
|
+
policy: "New policy",
|
113
|
+
traffic_policy: "New traffic_policy"
|
112
114
|
)
|
113
115
|
expect(result.class).to eq(NgrokAPI::Models::HTTPSEdgeRoute)
|
114
116
|
# expect(result.id).to eq(https_edge_route_result["id"])
|
@@ -176,7 +178,7 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
176
178
|
data[:oidc] = "New oidc"
|
177
179
|
data[:websocket_tcp_converter] = "New websocket_tcp_converter"
|
178
180
|
data[:user_agent_filter] = "New user_agent_filter"
|
179
|
-
data[:
|
181
|
+
data[:traffic_policy] = "New traffic_policy"
|
180
182
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
181
183
|
and_return(https_edge_route_result)
|
182
184
|
result = @edges_https_routes_client.update(
|
@@ -198,7 +200,8 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
198
200
|
oidc: "New oidc",
|
199
201
|
websocket_tcp_converter: "New websocket_tcp_converter",
|
200
202
|
user_agent_filter: "New user_agent_filter",
|
201
|
-
policy: "New policy"
|
203
|
+
policy: "New policy",
|
204
|
+
traffic_policy: "New traffic_policy"
|
202
205
|
)
|
203
206
|
expect(result.class).to eq(NgrokAPI::Models::HTTPSEdgeRoute)
|
204
207
|
end
|
@@ -228,7 +231,7 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
228
231
|
data[:oidc] = "New oidc"
|
229
232
|
data[:websocket_tcp_converter] = "New websocket_tcp_converter"
|
230
233
|
data[:user_agent_filter] = "New user_agent_filter"
|
231
|
-
data[:
|
234
|
+
data[:traffic_policy] = "New traffic_policy"
|
232
235
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
233
236
|
and_return(https_edge_route_result)
|
234
237
|
result = @edges_https_routes_client.update(
|
@@ -250,7 +253,8 @@ RSpec.describe NgrokAPI::Services::EdgesHTTPSRoutesClient do
|
|
250
253
|
oidc: "New oidc",
|
251
254
|
websocket_tcp_converter: "New websocket_tcp_converter",
|
252
255
|
user_agent_filter: "New user_agent_filter",
|
253
|
-
policy: "New policy"
|
256
|
+
policy: "New policy",
|
257
|
+
traffic_policy: "New traffic_policy"
|
254
258
|
)
|
255
259
|
expect(result.class).to eq(NgrokAPI::Models::HTTPSEdgeRoute)
|
256
260
|
# expect(result.id).to eq(https_edge_route_result["id"])
|
@@ -25,7 +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[:
|
28
|
+
data[:traffic_policy] = "New traffic_policy"
|
29
29
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
30
30
|
and_return(tcp_edge_result)
|
31
31
|
result = @edges_tcp_client.create(
|
@@ -34,7 +34,8 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
34
34
|
hostports: "New hostports",
|
35
35
|
backend: "New backend",
|
36
36
|
ip_restriction: "New ip_restriction",
|
37
|
-
policy: "New policy"
|
37
|
+
policy: "New policy",
|
38
|
+
traffic_policy: "New traffic_policy"
|
38
39
|
)
|
39
40
|
expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
|
40
41
|
end
|
@@ -51,7 +52,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
51
52
|
data[:hostports] = "New hostports"
|
52
53
|
data[:backend] = "New backend"
|
53
54
|
data[:ip_restriction] = "New ip_restriction"
|
54
|
-
data[:
|
55
|
+
data[:traffic_policy] = "New traffic_policy"
|
55
56
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
56
57
|
and_return(tcp_edge_result)
|
57
58
|
result = @edges_tcp_client.create(
|
@@ -60,7 +61,8 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
60
61
|
hostports: "New hostports",
|
61
62
|
backend: "New backend",
|
62
63
|
ip_restriction: "New ip_restriction",
|
63
|
-
policy: "New policy"
|
64
|
+
policy: "New policy",
|
65
|
+
traffic_policy: "New traffic_policy"
|
64
66
|
)
|
65
67
|
expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
|
66
68
|
# expect(result.id).to eq(tcp_edge_result["id"])
|
@@ -122,7 +124,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
122
124
|
data[:hostports] = "New hostports"
|
123
125
|
data[:backend] = "New backend"
|
124
126
|
data[:ip_restriction] = "New ip_restriction"
|
125
|
-
data[:
|
127
|
+
data[:traffic_policy] = "New traffic_policy"
|
126
128
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
127
129
|
and_return(tcp_edge_result)
|
128
130
|
result = @edges_tcp_client.update(
|
@@ -132,7 +134,8 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
132
134
|
hostports: "New hostports",
|
133
135
|
backend: "New backend",
|
134
136
|
ip_restriction: "New ip_restriction",
|
135
|
-
policy: "New policy"
|
137
|
+
policy: "New policy",
|
138
|
+
traffic_policy: "New traffic_policy"
|
136
139
|
)
|
137
140
|
expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
|
138
141
|
end
|
@@ -150,7 +153,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
150
153
|
data[:hostports] = "New hostports"
|
151
154
|
data[:backend] = "New backend"
|
152
155
|
data[:ip_restriction] = "New ip_restriction"
|
153
|
-
data[:
|
156
|
+
data[:traffic_policy] = "New traffic_policy"
|
154
157
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
155
158
|
and_return(tcp_edge_result)
|
156
159
|
result = @edges_tcp_client.update(
|
@@ -160,7 +163,8 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
|
|
160
163
|
hostports: "New hostports",
|
161
164
|
backend: "New backend",
|
162
165
|
ip_restriction: "New ip_restriction",
|
163
|
-
policy: "New policy"
|
166
|
+
policy: "New policy",
|
167
|
+
traffic_policy: "New traffic_policy"
|
164
168
|
)
|
165
169
|
expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
|
166
170
|
# expect(result.id).to eq(tcp_edge_result["id"])
|
@@ -27,7 +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[:
|
30
|
+
data[:traffic_policy] = "New traffic_policy"
|
31
31
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
32
32
|
and_return(tls_edge_result)
|
33
33
|
result = @edges_tls_client.create(
|
@@ -38,7 +38,8 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
38
38
|
ip_restriction: "New ip_restriction",
|
39
39
|
mutual_tls: "New mutual_tls",
|
40
40
|
tls_termination: "New tls_termination",
|
41
|
-
policy: "New policy"
|
41
|
+
policy: "New policy",
|
42
|
+
traffic_policy: "New traffic_policy"
|
42
43
|
)
|
43
44
|
expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
|
44
45
|
end
|
@@ -57,7 +58,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
57
58
|
data[:ip_restriction] = "New ip_restriction"
|
58
59
|
data[:mutual_tls] = "New mutual_tls"
|
59
60
|
data[:tls_termination] = "New tls_termination"
|
60
|
-
data[:
|
61
|
+
data[:traffic_policy] = "New traffic_policy"
|
61
62
|
expect(@client).to receive(:post).with(path % replacements, data: data).
|
62
63
|
and_return(tls_edge_result)
|
63
64
|
result = @edges_tls_client.create(
|
@@ -68,7 +69,8 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
68
69
|
ip_restriction: "New ip_restriction",
|
69
70
|
mutual_tls: "New mutual_tls",
|
70
71
|
tls_termination: "New tls_termination",
|
71
|
-
policy: "New policy"
|
72
|
+
policy: "New policy",
|
73
|
+
traffic_policy: "New traffic_policy"
|
72
74
|
)
|
73
75
|
expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
|
74
76
|
# expect(result.id).to eq(tls_edge_result["id"])
|
@@ -132,7 +134,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
132
134
|
data[:ip_restriction] = "New ip_restriction"
|
133
135
|
data[:mutual_tls] = "New mutual_tls"
|
134
136
|
data[:tls_termination] = "New tls_termination"
|
135
|
-
data[:
|
137
|
+
data[:traffic_policy] = "New traffic_policy"
|
136
138
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
137
139
|
and_return(tls_edge_result)
|
138
140
|
result = @edges_tls_client.update(
|
@@ -144,7 +146,8 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
144
146
|
ip_restriction: "New ip_restriction",
|
145
147
|
mutual_tls: "New mutual_tls",
|
146
148
|
tls_termination: "New tls_termination",
|
147
|
-
policy: "New policy"
|
149
|
+
policy: "New policy",
|
150
|
+
traffic_policy: "New traffic_policy"
|
148
151
|
)
|
149
152
|
expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
|
150
153
|
end
|
@@ -164,7 +167,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
164
167
|
data[:ip_restriction] = "New ip_restriction"
|
165
168
|
data[:mutual_tls] = "New mutual_tls"
|
166
169
|
data[:tls_termination] = "New tls_termination"
|
167
|
-
data[:
|
170
|
+
data[:traffic_policy] = "New traffic_policy"
|
168
171
|
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
169
172
|
and_return(tls_edge_result)
|
170
173
|
result = @edges_tls_client.update(
|
@@ -176,7 +179,8 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
|
|
176
179
|
ip_restriction: "New ip_restriction",
|
177
180
|
mutual_tls: "New mutual_tls",
|
178
181
|
tls_termination: "New tls_termination",
|
179
|
-
policy: "New policy"
|
182
|
+
policy: "New policy",
|
183
|
+
traffic_policy: "New traffic_policy"
|
180
184
|
)
|
181
185
|
expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
|
182
186
|
# expect(result.id).to eq(tls_edge_result["id"])
|
@@ -14,6 +14,59 @@ RSpec.describe NgrokAPI::Services::EndpointsClient do
|
|
14
14
|
@endpoints_client = NgrokAPI::Services::EndpointsClient.new(client: @client)
|
15
15
|
end
|
16
16
|
|
17
|
+
describe "#create" do
|
18
|
+
it "will make a post request and return an instance of NgrokAPI::Models::Endpoint" do
|
19
|
+
path = '/endpoints'
|
20
|
+
replacements = {
|
21
|
+
}
|
22
|
+
data = {}
|
23
|
+
data[:url] = "New url"
|
24
|
+
data[:type] = "New type"
|
25
|
+
data[:traffic_policy] = "New traffic_policy"
|
26
|
+
data[:description] = "New description"
|
27
|
+
data[:metadata] = "New metadata"
|
28
|
+
data[:bindings] = "New bindings"
|
29
|
+
expect(@client).to receive(:post).with(path % replacements, data: data).
|
30
|
+
and_return(endpoint_result)
|
31
|
+
result = @endpoints_client.create(
|
32
|
+
url: "New url",
|
33
|
+
type: "New type",
|
34
|
+
traffic_policy: "New traffic_policy",
|
35
|
+
description: "New description",
|
36
|
+
metadata: "New metadata",
|
37
|
+
bindings: "New bindings"
|
38
|
+
)
|
39
|
+
expect(result.class).to eq(NgrokAPI::Models::Endpoint)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
describe "#create!" do
|
44
|
+
it "will make a post request and return an instance of NgrokAPI::Models::Endpoint" do
|
45
|
+
path = '/endpoints'
|
46
|
+
replacements = {
|
47
|
+
}
|
48
|
+
data = {}
|
49
|
+
data[:url] = "New url"
|
50
|
+
data[:type] = "New type"
|
51
|
+
data[:traffic_policy] = "New traffic_policy"
|
52
|
+
data[:description] = "New description"
|
53
|
+
data[:metadata] = "New metadata"
|
54
|
+
data[:bindings] = "New bindings"
|
55
|
+
expect(@client).to receive(:post).with(path % replacements, data: data).
|
56
|
+
and_return(endpoint_result)
|
57
|
+
result = @endpoints_client.create(
|
58
|
+
url: "New url",
|
59
|
+
type: "New type",
|
60
|
+
traffic_policy: "New traffic_policy",
|
61
|
+
description: "New description",
|
62
|
+
metadata: "New metadata",
|
63
|
+
bindings: "New bindings"
|
64
|
+
)
|
65
|
+
expect(result.class).to eq(NgrokAPI::Models::Endpoint)
|
66
|
+
# expect(result.id).to eq(endpoint_result["id"])
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
17
70
|
describe "#list" do
|
18
71
|
it "will make a call to list (a GET request) and return a NgrokAPI::Models::Listable" do
|
19
72
|
expect(@client).to receive(:list).
|
@@ -56,4 +109,98 @@ RSpec.describe NgrokAPI::Services::EndpointsClient do
|
|
56
109
|
# expect(result.id).to eq(endpoint_result["id"])
|
57
110
|
end
|
58
111
|
end
|
112
|
+
|
113
|
+
describe "#update" do
|
114
|
+
it "will make a patch request and return an instance of NgrokAPI::Models::Endpoint" do
|
115
|
+
path = '/endpoints/%{id}'
|
116
|
+
replacements = {
|
117
|
+
id: endpoint_result["id"],
|
118
|
+
}
|
119
|
+
data = {}
|
120
|
+
data[:url] = "New url"
|
121
|
+
data[:traffic_policy] = "New traffic_policy"
|
122
|
+
data[:description] = "New description"
|
123
|
+
data[:metadata] = "New metadata"
|
124
|
+
data[:bindings] = "New bindings"
|
125
|
+
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
126
|
+
and_return(endpoint_result)
|
127
|
+
result = @endpoints_client.update(
|
128
|
+
id: endpoint_result["id"],
|
129
|
+
url: "New url",
|
130
|
+
traffic_policy: "New traffic_policy",
|
131
|
+
description: "New description",
|
132
|
+
metadata: "New metadata",
|
133
|
+
bindings: "New bindings"
|
134
|
+
)
|
135
|
+
expect(result.class).to eq(NgrokAPI::Models::Endpoint)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
describe "#update!" do
|
140
|
+
it "will make a patch request and return an instance of NgrokAPI::Models::Endpoint" do
|
141
|
+
path = '/endpoints/%{id}'
|
142
|
+
replacements = {
|
143
|
+
id: endpoint_result["id"],
|
144
|
+
}
|
145
|
+
data = {}
|
146
|
+
data[:url] = "New url"
|
147
|
+
data[:traffic_policy] = "New traffic_policy"
|
148
|
+
data[:description] = "New description"
|
149
|
+
data[:metadata] = "New metadata"
|
150
|
+
data[:bindings] = "New bindings"
|
151
|
+
expect(@client).to receive(:patch).with(path % replacements, data: data).
|
152
|
+
and_return(endpoint_result)
|
153
|
+
result = @endpoints_client.update(
|
154
|
+
id: endpoint_result["id"],
|
155
|
+
url: "New url",
|
156
|
+
traffic_policy: "New traffic_policy",
|
157
|
+
description: "New description",
|
158
|
+
metadata: "New metadata",
|
159
|
+
bindings: "New bindings"
|
160
|
+
)
|
161
|
+
expect(result.class).to eq(NgrokAPI::Models::Endpoint)
|
162
|
+
# expect(result.id).to eq(endpoint_result["id"])
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
describe "#delete" do
|
167
|
+
it "will make a delete request" do
|
168
|
+
path = '/endpoints/%{id}'
|
169
|
+
replacements = {
|
170
|
+
id: api_key_result["id"],
|
171
|
+
}
|
172
|
+
expect(@client).to receive(:delete).with(path % replacements).and_return(nil)
|
173
|
+
@endpoints_client.delete(
|
174
|
+
id: api_key_result["id"]
|
175
|
+
)
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
describe "#delete!" do
|
180
|
+
it "will make a delete request" do
|
181
|
+
path = '/endpoints/%{id}'
|
182
|
+
replacements = {
|
183
|
+
id: api_key_result["id"],
|
184
|
+
}
|
185
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).and_return(nil)
|
186
|
+
@endpoints_client.delete!(
|
187
|
+
id: api_key_result["id"]
|
188
|
+
)
|
189
|
+
end
|
190
|
+
|
191
|
+
it "will make a delete request and return NotFoundError if 404" do
|
192
|
+
path = '/endpoints/%{id}'
|
193
|
+
replacements = {
|
194
|
+
id: api_key_result["id"],
|
195
|
+
}
|
196
|
+
expect do
|
197
|
+
expect(@client).to receive(:delete).with(path % replacements, danger: true).
|
198
|
+
and_raise(NgrokAPI::Errors::NotFoundError)
|
199
|
+
result = @endpoints_client.delete!(
|
200
|
+
id: api_key_result["id"]
|
201
|
+
)
|
202
|
+
expect(result).to be nil
|
203
|
+
end.to raise_error(NgrokAPI::Errors::NotFoundError)
|
204
|
+
end
|
205
|
+
end
|
59
206
|
end
|
@@ -37,7 +37,8 @@ RSpec.describe NgrokAPI::Services::ReservedDomainsClient do
|
|
37
37
|
http_endpoint_configuration_id: "New http_endpoint_configuration_id",
|
38
38
|
https_endpoint_configuration_id: "New https_endpoint_configuration_id",
|
39
39
|
certificate_id: "New certificate_id",
|
40
|
-
certificate_management_policy: "New certificate_management_policy"
|
40
|
+
certificate_management_policy: "New certificate_management_policy",
|
41
|
+
error_redirect_url: "New error_redirect_url"
|
41
42
|
)
|
42
43
|
expect(result.class).to eq(NgrokAPI::Models::ReservedDomain)
|
43
44
|
end
|
@@ -66,7 +67,8 @@ RSpec.describe NgrokAPI::Services::ReservedDomainsClient do
|
|
66
67
|
http_endpoint_configuration_id: "New http_endpoint_configuration_id",
|
67
68
|
https_endpoint_configuration_id: "New https_endpoint_configuration_id",
|
68
69
|
certificate_id: "New certificate_id",
|
69
|
-
certificate_management_policy: "New certificate_management_policy"
|
70
|
+
certificate_management_policy: "New certificate_management_policy",
|
71
|
+
error_redirect_url: "New error_redirect_url"
|
70
72
|
)
|
71
73
|
expect(result.class).to eq(NgrokAPI::Models::ReservedDomain)
|
72
74
|
# expect(result.id).to eq(reserved_domain_result["id"])
|
@@ -178,7 +180,8 @@ RSpec.describe NgrokAPI::Services::ReservedDomainsClient do
|
|
178
180
|
https_endpoint_configuration_id: "New https_endpoint_configuration_id",
|
179
181
|
certificate_id: "New certificate_id",
|
180
182
|
certificate_management_policy: "New certificate_management_policy",
|
181
|
-
region: "New region"
|
183
|
+
region: "New region",
|
184
|
+
error_redirect_url: "New error_redirect_url"
|
182
185
|
)
|
183
186
|
expect(result.class).to eq(NgrokAPI::Models::ReservedDomain)
|
184
187
|
end
|
@@ -205,7 +208,8 @@ RSpec.describe NgrokAPI::Services::ReservedDomainsClient do
|
|
205
208
|
https_endpoint_configuration_id: "New https_endpoint_configuration_id",
|
206
209
|
certificate_id: "New certificate_id",
|
207
210
|
certificate_management_policy: "New certificate_management_policy",
|
208
|
-
region: "New region"
|
211
|
+
region: "New region",
|
212
|
+
error_redirect_url: "New error_redirect_url"
|
209
213
|
)
|
210
214
|
expect(result.class).to eq(NgrokAPI::Models::ReservedDomain)
|
211
215
|
# expect(result.id).to eq(reserved_domain_result["id"])
|