ngrok-api 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/doc/NgrokAPI/Client.html +19 -19
- 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 +2 -2
- 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 +3 -3
- 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 +3 -3
- data/doc/_index.html +21 -28
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +2 -2
- data/doc/index.html +2 -2
- data/doc/method_list.html +1089 -1129
- data/doc/top-level-namespace.html +2 -2
- data/docs/NgrokAPI/Client.html +19 -19
- 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 +2 -2
- 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 +3 -3
- 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 +3 -3
- data/docs/_index.html +21 -28
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +2 -2
- data/docs/index.html +2 -2
- data/docs/method_list.html +1089 -1129
- data/docs/top-level-namespace.html +2 -2
- 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/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/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/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 +21 -13
- 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
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Code generated for API Clients. DO NOT EDIT.
|
4
|
-
|
5
|
-
module NgrokAPI
|
6
|
-
module Models
|
7
|
-
class EndpointAction
|
8
|
-
attr_reader :client,
|
9
|
-
:attrs,
|
10
|
-
:type,
|
11
|
-
:config
|
12
|
-
|
13
|
-
def initialize(client: nil, attrs: {})
|
14
|
-
@client = client
|
15
|
-
@attrs = attrs
|
16
|
-
@type = @attrs['type']
|
17
|
-
@config = @attrs['config']
|
18
|
-
end
|
19
|
-
|
20
|
-
def ==(other)
|
21
|
-
@attrs == other.attrs
|
22
|
-
end
|
23
|
-
|
24
|
-
def to_s
|
25
|
-
@attrs.to_s
|
26
|
-
end
|
27
|
-
|
28
|
-
def to_h
|
29
|
-
@attrs.to_h
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Code generated for API Clients. DO NOT EDIT.
|
4
|
-
|
5
|
-
module NgrokAPI
|
6
|
-
module Models
|
7
|
-
class EndpointRule
|
8
|
-
attr_reader :client,
|
9
|
-
:attrs,
|
10
|
-
:expressions,
|
11
|
-
:actions,
|
12
|
-
:name
|
13
|
-
|
14
|
-
def initialize(client: nil, attrs: {})
|
15
|
-
@client = client
|
16
|
-
@attrs = attrs
|
17
|
-
@expressions = @attrs['expressions']
|
18
|
-
@actions = @attrs['actions']
|
19
|
-
@name = @attrs['name']
|
20
|
-
end
|
21
|
-
|
22
|
-
def ==(other)
|
23
|
-
@attrs == other.attrs
|
24
|
-
end
|
25
|
-
|
26
|
-
def to_s
|
27
|
-
@attrs.to_s
|
28
|
-
end
|
29
|
-
|
30
|
-
def to_h
|
31
|
-
@attrs.to_h
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# Code generated for API Clients. DO NOT EDIT.
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
|
5
|
-
RSpec.describe NgrokAPI::Models::EndpointAction do
|
6
|
-
before(:each) do
|
7
|
-
@client = class_double("EndpointActionsClient")
|
8
|
-
@endpoint_action = NgrokAPI::Models::EndpointAction.new(client: @client, attrs: endpoint_action_result)
|
9
|
-
end
|
10
|
-
|
11
|
-
describe "#==" do
|
12
|
-
it "is equal if the results are the same" do
|
13
|
-
other = NgrokAPI::Models::EndpointAction.new(client: @client, attrs: endpoint_action_result)
|
14
|
-
expect(@endpoint_action == other).to eq true
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
describe "#to_s" do
|
19
|
-
it "stringifies as result.to_s" do
|
20
|
-
expect(@endpoint_action.to_s).to eq endpoint_action_result.to_s
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# Code generated for API Clients. DO NOT EDIT.
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
|
5
|
-
RSpec.describe NgrokAPI::Models::EndpointPolicy do
|
6
|
-
before(:each) do
|
7
|
-
@client = class_double("EndpointPolicysClient")
|
8
|
-
@endpoint_policy = NgrokAPI::Models::EndpointPolicy.new(client: @client, attrs: endpoint_policy_result)
|
9
|
-
end
|
10
|
-
|
11
|
-
describe "#==" do
|
12
|
-
it "is equal if the results are the same" do
|
13
|
-
other = NgrokAPI::Models::EndpointPolicy.new(client: @client, attrs: endpoint_policy_result)
|
14
|
-
expect(@endpoint_policy == other).to eq true
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
describe "#to_s" do
|
19
|
-
it "stringifies as result.to_s" do
|
20
|
-
expect(@endpoint_policy.to_s).to eq endpoint_policy_result.to_s
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# Code generated for API Clients. DO NOT EDIT.
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
|
5
|
-
RSpec.describe NgrokAPI::Models::EndpointRule do
|
6
|
-
before(:each) do
|
7
|
-
@client = class_double("EndpointRulesClient")
|
8
|
-
@endpoint_rule = NgrokAPI::Models::EndpointRule.new(client: @client, attrs: endpoint_rule_result)
|
9
|
-
end
|
10
|
-
|
11
|
-
describe "#==" do
|
12
|
-
it "is equal if the results are the same" do
|
13
|
-
other = NgrokAPI::Models::EndpointRule.new(client: @client, attrs: endpoint_rule_result)
|
14
|
-
expect(@endpoint_rule == other).to eq true
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
describe "#to_s" do
|
19
|
-
it "stringifies as result.to_s" do
|
20
|
-
expect(@endpoint_rule.to_s).to eq endpoint_rule_result.to_s
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,139 +0,0 @@
|
|
1
|
-
# Code generated for API Clients. DO NOT EDIT.
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
|
5
|
-
RSpec.describe NgrokAPI::Services::EdgeRoutePolicyModuleClient do
|
6
|
-
let(:base_url) { 'https://api.ngrok.com' }
|
7
|
-
let(:path) { '/edges/https/%{edge_id}/routes/%{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
|
-
@edge_route_policy_module_client = NgrokAPI::Services::EdgeRoutePolicyModuleClient.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/https/%{edge_id}/routes/%{id}/policy'
|
20
|
-
replacements = {
|
21
|
-
edge_id: endpoint_policy_result["edge_id"],
|
22
|
-
id: endpoint_policy_result["id"],
|
23
|
-
}
|
24
|
-
data = "New a_module"
|
25
|
-
expect(@client).to receive(:put).with(path % replacements, data: data).
|
26
|
-
and_return(endpoint_policy_result)
|
27
|
-
result = @edge_route_policy_module_client.replace(
|
28
|
-
edge_id: endpoint_policy_result["edge_id"],
|
29
|
-
id: endpoint_policy_result["id"],
|
30
|
-
a_module: "New a_module"
|
31
|
-
)
|
32
|
-
expect(result.class).to eq(NgrokAPI::Models::EndpointPolicy)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
describe "#replace!" do
|
37
|
-
it "will make a put request and return an instance of NgrokAPI::Models::EndpointPolicy" do
|
38
|
-
path = '/edges/https/%{edge_id}/routes/%{id}/policy'
|
39
|
-
replacements = {
|
40
|
-
edge_id: endpoint_policy_result["edge_id"],
|
41
|
-
id: endpoint_policy_result["id"],
|
42
|
-
}
|
43
|
-
data = "New a_module"
|
44
|
-
expect(@client).to receive(:put).with(path % replacements, data: data).
|
45
|
-
and_return(endpoint_policy_result)
|
46
|
-
result = @edge_route_policy_module_client.replace(
|
47
|
-
edge_id: endpoint_policy_result["edge_id"],
|
48
|
-
id: endpoint_policy_result["id"],
|
49
|
-
a_module: "New a_module"
|
50
|
-
)
|
51
|
-
expect(result.class).to eq(NgrokAPI::Models::EndpointPolicy)
|
52
|
-
# expect(result.id).to eq(endpoint_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::EndpointPolicy" do
|
58
|
-
path = '/edges/https/%{edge_id}/routes/%{id}/policy'
|
59
|
-
replacements = {
|
60
|
-
edge_id: endpoint_policy_result["edge_id"],
|
61
|
-
id: endpoint_policy_result["id"],
|
62
|
-
}
|
63
|
-
data = {}
|
64
|
-
expect(@client).to receive(:get).with(path % replacements, data: data).
|
65
|
-
and_return(endpoint_policy_result)
|
66
|
-
result = @edge_route_policy_module_client.get(
|
67
|
-
edge_id: endpoint_policy_result["edge_id"],
|
68
|
-
id: endpoint_policy_result["id"]
|
69
|
-
)
|
70
|
-
expect(result.class).to eq(NgrokAPI::Models::EndpointPolicy)
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
describe "#get!" do
|
75
|
-
it "will make a get request and return an instance of NgrokAPI::Models::EndpointPolicy" do
|
76
|
-
path = '/edges/https/%{edge_id}/routes/%{id}/policy'
|
77
|
-
replacements = {
|
78
|
-
edge_id: endpoint_policy_result["edge_id"],
|
79
|
-
id: endpoint_policy_result["id"],
|
80
|
-
}
|
81
|
-
data = {}
|
82
|
-
expect(@client).to receive(:get).with(path % replacements, data: data).
|
83
|
-
and_return(endpoint_policy_result)
|
84
|
-
result = @edge_route_policy_module_client.get(
|
85
|
-
edge_id: endpoint_policy_result["edge_id"],
|
86
|
-
id: endpoint_policy_result["id"]
|
87
|
-
)
|
88
|
-
expect(result.class).to eq(NgrokAPI::Models::EndpointPolicy)
|
89
|
-
# expect(result.id).to eq(endpoint_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}/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_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}/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_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}/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_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
|
@@ -1,125 +0,0 @@
|
|
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
|
@@ -1,125 +0,0 @@
|
|
1
|
-
# Code generated for API Clients. DO NOT EDIT.
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
|
5
|
-
RSpec.describe NgrokAPI::Services::TLSEdgePolicyModuleClient do
|
6
|
-
let(:base_url) { 'https://api.ngrok.com' }
|
7
|
-
let(:path) { '/edges/tls/%{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
|
-
@tls_edge_policy_module_client = NgrokAPI::Services::TLSEdgePolicyModuleClient.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/tls/%{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 = @tls_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/tls/%{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 = @tls_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/tls/%{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 = @tls_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/tls/%{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 = @tls_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/tls/%{id}/policy'
|
88
|
-
replacements = {
|
89
|
-
id: api_key_result["id"],
|
90
|
-
}
|
91
|
-
expect(@client).to receive(:delete).with(path % replacements).and_return(nil)
|
92
|
-
@tls_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/tls/%{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
|
-
@tls_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/tls/%{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 = @tls_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
|