ngrok-api 0.22.0 → 0.24.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/.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
|
@@ -28,11 +28,11 @@ module NgrokAPI
|
|
|
28
28
|
# @param [EndpointIPPolicyMutate] ip_restriction
|
|
29
29
|
# @param [EndpointMutualTLSMutate] mutual_tls
|
|
30
30
|
# @param [EndpointTLSTermination] tls_termination
|
|
31
|
-
# @param [
|
|
31
|
+
# @param [EndpointTrafficPolicy] traffic_policy the traffic policy associated with this edge or null
|
|
32
32
|
# @return [NgrokAPI::Models::TLSEdge] result from the API request
|
|
33
33
|
#
|
|
34
34
|
# https://ngrok.com/docs/api#api-edges-tls-create
|
|
35
|
-
def create(description: "", metadata: "", hostports: nil, backend: nil, ip_restriction: nil, mutual_tls: nil, tls_termination: nil, policy: nil)
|
|
35
|
+
def create(description: "", metadata: "", hostports: nil, backend: nil, ip_restriction: nil, mutual_tls: nil, tls_termination: nil, policy: nil, traffic_policy: nil)
|
|
36
36
|
path = '/edges/tls'
|
|
37
37
|
replacements = {
|
|
38
38
|
}
|
|
@@ -44,7 +44,7 @@ module NgrokAPI
|
|
|
44
44
|
data[:ip_restriction] = ip_restriction if ip_restriction
|
|
45
45
|
data[:mutual_tls] = mutual_tls if mutual_tls
|
|
46
46
|
data[:tls_termination] = tls_termination if tls_termination
|
|
47
|
-
data[:
|
|
47
|
+
data[:traffic_policy] = traffic_policy if traffic_policy
|
|
48
48
|
result = @client.post(path % replacements, data: data)
|
|
49
49
|
NgrokAPI::Models::TLSEdge.new(client: self, attrs: result)
|
|
50
50
|
end
|
|
@@ -60,11 +60,11 @@ module NgrokAPI
|
|
|
60
60
|
# @param [EndpointIPPolicyMutate] ip_restriction
|
|
61
61
|
# @param [EndpointMutualTLSMutate] mutual_tls
|
|
62
62
|
# @param [EndpointTLSTermination] tls_termination
|
|
63
|
-
# @param [
|
|
63
|
+
# @param [EndpointTrafficPolicy] traffic_policy the traffic policy associated with this edge or null
|
|
64
64
|
# @return [NgrokAPI::Models::TLSEdge] result from the API request
|
|
65
65
|
#
|
|
66
66
|
# https://ngrok.com/docs/api#api-edges-tls-create
|
|
67
|
-
def create!(description: "", metadata: "", hostports: nil, backend: nil, ip_restriction: nil, mutual_tls: nil, tls_termination: nil, policy: nil)
|
|
67
|
+
def create!(description: "", metadata: "", hostports: nil, backend: nil, ip_restriction: nil, mutual_tls: nil, tls_termination: nil, policy: nil, traffic_policy: nil)
|
|
68
68
|
path = '/edges/tls'
|
|
69
69
|
replacements = {
|
|
70
70
|
}
|
|
@@ -76,7 +76,7 @@ module NgrokAPI
|
|
|
76
76
|
data[:ip_restriction] = ip_restriction if ip_restriction
|
|
77
77
|
data[:mutual_tls] = mutual_tls if mutual_tls
|
|
78
78
|
data[:tls_termination] = tls_termination if tls_termination
|
|
79
|
-
data[:
|
|
79
|
+
data[:traffic_policy] = traffic_policy if traffic_policy
|
|
80
80
|
result = @client.post(path % replacements, data: data, danger: true)
|
|
81
81
|
NgrokAPI::Models::TLSEdge.new(client: self, attrs: result)
|
|
82
82
|
end
|
|
@@ -183,11 +183,11 @@ module NgrokAPI
|
|
|
183
183
|
# @param [EndpointIPPolicyMutate] ip_restriction
|
|
184
184
|
# @param [EndpointMutualTLSMutate] mutual_tls
|
|
185
185
|
# @param [EndpointTLSTermination] tls_termination
|
|
186
|
-
# @param [
|
|
186
|
+
# @param [EndpointTrafficPolicy] traffic_policy the traffic policy associated with this edge or null
|
|
187
187
|
# @return [NgrokAPI::Models::TLSEdge] result from the API request
|
|
188
188
|
#
|
|
189
189
|
# https://ngrok.com/docs/api#api-edges-tls-update
|
|
190
|
-
def update(id: "", description: nil, metadata: nil, hostports: nil, backend: nil, ip_restriction: nil, mutual_tls: nil, tls_termination: nil, policy: nil)
|
|
190
|
+
def update(id: "", description: nil, metadata: nil, hostports: nil, backend: nil, ip_restriction: nil, mutual_tls: nil, tls_termination: nil, policy: nil, traffic_policy: nil)
|
|
191
191
|
path = '/edges/tls/%{id}'
|
|
192
192
|
replacements = {
|
|
193
193
|
id: id,
|
|
@@ -200,7 +200,7 @@ module NgrokAPI
|
|
|
200
200
|
data[:ip_restriction] = ip_restriction if ip_restriction
|
|
201
201
|
data[:mutual_tls] = mutual_tls if mutual_tls
|
|
202
202
|
data[:tls_termination] = tls_termination if tls_termination
|
|
203
|
-
data[:
|
|
203
|
+
data[:traffic_policy] = traffic_policy if traffic_policy
|
|
204
204
|
result = @client.patch(path % replacements, data: data)
|
|
205
205
|
NgrokAPI::Models::TLSEdge.new(client: self, attrs: result)
|
|
206
206
|
end
|
|
@@ -220,11 +220,11 @@ module NgrokAPI
|
|
|
220
220
|
# @param [EndpointIPPolicyMutate] ip_restriction
|
|
221
221
|
# @param [EndpointMutualTLSMutate] mutual_tls
|
|
222
222
|
# @param [EndpointTLSTermination] tls_termination
|
|
223
|
-
# @param [
|
|
223
|
+
# @param [EndpointTrafficPolicy] traffic_policy the traffic policy associated with this edge or null
|
|
224
224
|
# @return [NgrokAPI::Models::TLSEdge] result from the API request
|
|
225
225
|
#
|
|
226
226
|
# https://ngrok.com/docs/api#api-edges-tls-update
|
|
227
|
-
def update!(id: "", description: nil, metadata: nil, hostports: nil, backend: nil, ip_restriction: nil, mutual_tls: nil, tls_termination: nil, policy: nil)
|
|
227
|
+
def update!(id: "", description: nil, metadata: nil, hostports: nil, backend: nil, ip_restriction: nil, mutual_tls: nil, tls_termination: nil, policy: nil, traffic_policy: nil)
|
|
228
228
|
path = '/edges/tls/%{id}'
|
|
229
229
|
replacements = {
|
|
230
230
|
id: id,
|
|
@@ -237,7 +237,7 @@ module NgrokAPI
|
|
|
237
237
|
data[:ip_restriction] = ip_restriction if ip_restriction
|
|
238
238
|
data[:mutual_tls] = mutual_tls if mutual_tls
|
|
239
239
|
data[:tls_termination] = tls_termination if tls_termination
|
|
240
|
-
data[:
|
|
240
|
+
data[:traffic_policy] = traffic_policy if traffic_policy
|
|
241
241
|
result = @client.patch(path % replacements, data: data, danger: true)
|
|
242
242
|
NgrokAPI::Models::TLSEdge.new(client: self, attrs: result)
|
|
243
243
|
end
|
|
@@ -11,10 +11,10 @@ module NgrokAPI
|
|
|
11
11
|
#
|
|
12
12
|
# https://ngrok.com/docs/api#api-endpoints
|
|
13
13
|
class EndpointsClient
|
|
14
|
-
# The List Property from the resulting API for list calls
|
|
15
|
-
LIST_PROPERTY = 'endpoints'
|
|
16
14
|
# The API path for the requests
|
|
17
15
|
PATH = '/endpoints'
|
|
16
|
+
# The List Property from the resulting API for list calls
|
|
17
|
+
LIST_PROPERTY = 'endpoints'
|
|
18
18
|
|
|
19
19
|
attr_reader :client
|
|
20
20
|
|
|
@@ -22,6 +22,61 @@ module NgrokAPI
|
|
|
22
22
|
@client = client
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
+
##
|
|
26
|
+
# Create an endpoint, currently available only for cloud endpoints
|
|
27
|
+
#
|
|
28
|
+
# @param [string] url the url of the endpoint
|
|
29
|
+
# @param [string] type whether the endpoint is ``ephemeral`` (served directly by an agent-initiated tunnel) or ``edge`` (served by an edge) or ``cloud (represents a cloud endpoint)``
|
|
30
|
+
# @param [string] traffic_policy The traffic policy attached to this endpoint
|
|
31
|
+
# @param [string] description user-supplied description of the associated tunnel
|
|
32
|
+
# @param [string] metadata user-supplied metadata of the associated tunnel or edge object
|
|
33
|
+
# @param [List<string>] bindings the bindings associated with this endpoint
|
|
34
|
+
# @return [NgrokAPI::Models::Endpoint] result from the API request
|
|
35
|
+
#
|
|
36
|
+
# https://ngrok.com/docs/api#api-endpoints-create
|
|
37
|
+
def create(url: "", type: "", traffic_policy: "", description: nil, metadata: nil, bindings: nil)
|
|
38
|
+
path = '/endpoints'
|
|
39
|
+
replacements = {
|
|
40
|
+
}
|
|
41
|
+
data = {}
|
|
42
|
+
data[:url] = url if url
|
|
43
|
+
data[:type] = type if type
|
|
44
|
+
data[:traffic_policy] = traffic_policy if traffic_policy
|
|
45
|
+
data[:description] = description if description
|
|
46
|
+
data[:metadata] = metadata if metadata
|
|
47
|
+
data[:bindings] = bindings if bindings
|
|
48
|
+
result = @client.post(path % replacements, data: data)
|
|
49
|
+
NgrokAPI::Models::Endpoint.new(client: self, attrs: result)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
##
|
|
53
|
+
# Create an endpoint, currently available only for cloud endpoints
|
|
54
|
+
# Throws an exception if API error.
|
|
55
|
+
#
|
|
56
|
+
# @param [string] url the url of the endpoint
|
|
57
|
+
# @param [string] type whether the endpoint is ``ephemeral`` (served directly by an agent-initiated tunnel) or ``edge`` (served by an edge) or ``cloud (represents a cloud endpoint)``
|
|
58
|
+
# @param [string] traffic_policy The traffic policy attached to this endpoint
|
|
59
|
+
# @param [string] description user-supplied description of the associated tunnel
|
|
60
|
+
# @param [string] metadata user-supplied metadata of the associated tunnel or edge object
|
|
61
|
+
# @param [List<string>] bindings the bindings associated with this endpoint
|
|
62
|
+
# @return [NgrokAPI::Models::Endpoint] result from the API request
|
|
63
|
+
#
|
|
64
|
+
# https://ngrok.com/docs/api#api-endpoints-create
|
|
65
|
+
def create!(url: "", type: "", traffic_policy: "", description: nil, metadata: nil, bindings: nil)
|
|
66
|
+
path = '/endpoints'
|
|
67
|
+
replacements = {
|
|
68
|
+
}
|
|
69
|
+
data = {}
|
|
70
|
+
data[:url] = url if url
|
|
71
|
+
data[:type] = type if type
|
|
72
|
+
data[:traffic_policy] = traffic_policy if traffic_policy
|
|
73
|
+
data[:description] = description if description
|
|
74
|
+
data[:metadata] = metadata if metadata
|
|
75
|
+
data[:bindings] = bindings if bindings
|
|
76
|
+
result = @client.post(path % replacements, data: data, danger: true)
|
|
77
|
+
NgrokAPI::Models::Endpoint.new(client: self, attrs: result)
|
|
78
|
+
end
|
|
79
|
+
|
|
25
80
|
##
|
|
26
81
|
# List all active endpoints on the account
|
|
27
82
|
#
|
|
@@ -109,6 +164,92 @@ module NgrokAPI
|
|
|
109
164
|
result = @client.get(path % replacements, data: data, danger: true)
|
|
110
165
|
NgrokAPI::Models::Endpoint.new(client: self, attrs: result)
|
|
111
166
|
end
|
|
167
|
+
|
|
168
|
+
##
|
|
169
|
+
# Update an Endpoint by ID, currently available only for cloud endpoints
|
|
170
|
+
#
|
|
171
|
+
# @param [string] id unique endpoint resource identifier
|
|
172
|
+
# @param [string] url the url of the endpoint
|
|
173
|
+
# @param [string] traffic_policy The traffic policy attached to this endpoint
|
|
174
|
+
# @param [string] description user-supplied description of the associated tunnel
|
|
175
|
+
# @param [string] metadata user-supplied metadata of the associated tunnel or edge object
|
|
176
|
+
# @param [List<string>] bindings the bindings associated with this endpoint
|
|
177
|
+
# @return [NgrokAPI::Models::Endpoint] result from the API request
|
|
178
|
+
#
|
|
179
|
+
# https://ngrok.com/docs/api#api-endpoints-update
|
|
180
|
+
def update(id: "", url: nil, traffic_policy: nil, description: nil, metadata: nil, bindings: nil)
|
|
181
|
+
path = '/endpoints/%{id}'
|
|
182
|
+
replacements = {
|
|
183
|
+
id: id,
|
|
184
|
+
}
|
|
185
|
+
data = {}
|
|
186
|
+
data[:url] = url if url
|
|
187
|
+
data[:traffic_policy] = traffic_policy if traffic_policy
|
|
188
|
+
data[:description] = description if description
|
|
189
|
+
data[:metadata] = metadata if metadata
|
|
190
|
+
data[:bindings] = bindings if bindings
|
|
191
|
+
result = @client.patch(path % replacements, data: data)
|
|
192
|
+
NgrokAPI::Models::Endpoint.new(client: self, attrs: result)
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
##
|
|
196
|
+
# Update an Endpoint by ID, currently available only for cloud endpoints
|
|
197
|
+
# Throws an exception if API error.
|
|
198
|
+
#
|
|
199
|
+
# @param [string] id unique endpoint resource identifier
|
|
200
|
+
# @param [string] url the url of the endpoint
|
|
201
|
+
# @param [string] traffic_policy The traffic policy attached to this endpoint
|
|
202
|
+
# @param [string] description user-supplied description of the associated tunnel
|
|
203
|
+
# @param [string] metadata user-supplied metadata of the associated tunnel or edge object
|
|
204
|
+
# @param [List<string>] bindings the bindings associated with this endpoint
|
|
205
|
+
# @return [NgrokAPI::Models::Endpoint] result from the API request
|
|
206
|
+
#
|
|
207
|
+
# https://ngrok.com/docs/api#api-endpoints-update
|
|
208
|
+
def update!(id: "", url: nil, traffic_policy: nil, description: nil, metadata: nil, bindings: nil)
|
|
209
|
+
path = '/endpoints/%{id}'
|
|
210
|
+
replacements = {
|
|
211
|
+
id: id,
|
|
212
|
+
}
|
|
213
|
+
data = {}
|
|
214
|
+
data[:url] = url if url
|
|
215
|
+
data[:traffic_policy] = traffic_policy if traffic_policy
|
|
216
|
+
data[:description] = description if description
|
|
217
|
+
data[:metadata] = metadata if metadata
|
|
218
|
+
data[:bindings] = bindings if bindings
|
|
219
|
+
result = @client.patch(path % replacements, data: data, danger: true)
|
|
220
|
+
NgrokAPI::Models::Endpoint.new(client: self, attrs: result)
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
##
|
|
224
|
+
# Delete an Endpoint by ID, currently available only for cloud endpoints
|
|
225
|
+
#
|
|
226
|
+
# @param [string] id a resource identifier
|
|
227
|
+
# @return [NgrokAPI::Models::Empty] result from the API request
|
|
228
|
+
#
|
|
229
|
+
# https://ngrok.com/docs/api#api-endpoints-delete
|
|
230
|
+
def delete(id: "")
|
|
231
|
+
path = '/endpoints/%{id}'
|
|
232
|
+
replacements = {
|
|
233
|
+
id: id,
|
|
234
|
+
}
|
|
235
|
+
@client.delete(path % replacements)
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
##
|
|
239
|
+
# Delete an Endpoint by ID, currently available only for cloud endpoints
|
|
240
|
+
# Throws an exception if API error.
|
|
241
|
+
#
|
|
242
|
+
# @param [string] id a resource identifier
|
|
243
|
+
# @return [NgrokAPI::Models::Empty] result from the API request
|
|
244
|
+
#
|
|
245
|
+
# https://ngrok.com/docs/api#api-endpoints-delete
|
|
246
|
+
def delete!(id: "")
|
|
247
|
+
path = '/endpoints/%{id}'
|
|
248
|
+
replacements = {
|
|
249
|
+
id: id,
|
|
250
|
+
}
|
|
251
|
+
@client.delete(path % replacements, danger: true)
|
|
252
|
+
end
|
|
112
253
|
end
|
|
113
254
|
end
|
|
114
255
|
end
|
|
@@ -35,7 +35,7 @@ module NgrokAPI
|
|
|
35
35
|
# @return [NgrokAPI::Models::ReservedDomain] result from the API request
|
|
36
36
|
#
|
|
37
37
|
# https://ngrok.com/docs/api#api-reserved-domains-create
|
|
38
|
-
def create(name: "", domain: "", region: "", description: "", metadata: "", http_endpoint_configuration_id: nil, https_endpoint_configuration_id: nil, certificate_id: nil, certificate_management_policy: nil)
|
|
38
|
+
def create(name: "", domain: "", region: "", description: "", metadata: "", http_endpoint_configuration_id: nil, https_endpoint_configuration_id: nil, certificate_id: nil, certificate_management_policy: nil, error_redirect_url: nil)
|
|
39
39
|
path = '/reserved_domains'
|
|
40
40
|
replacements = {
|
|
41
41
|
}
|
|
@@ -63,7 +63,7 @@ module NgrokAPI
|
|
|
63
63
|
# @return [NgrokAPI::Models::ReservedDomain] result from the API request
|
|
64
64
|
#
|
|
65
65
|
# https://ngrok.com/docs/api#api-reserved-domains-create
|
|
66
|
-
def create!(name: "", domain: "", region: "", description: "", metadata: "", http_endpoint_configuration_id: nil, https_endpoint_configuration_id: nil, certificate_id: nil, certificate_management_policy: nil)
|
|
66
|
+
def create!(name: "", domain: "", region: "", description: "", metadata: "", http_endpoint_configuration_id: nil, https_endpoint_configuration_id: nil, certificate_id: nil, certificate_management_policy: nil, error_redirect_url: nil)
|
|
67
67
|
path = '/reserved_domains'
|
|
68
68
|
replacements = {
|
|
69
69
|
}
|
|
@@ -208,7 +208,7 @@ module NgrokAPI
|
|
|
208
208
|
# @return [NgrokAPI::Models::ReservedDomain] result from the API request
|
|
209
209
|
#
|
|
210
210
|
# https://ngrok.com/docs/api#api-reserved-domains-update
|
|
211
|
-
def update(id: "", description: nil, metadata: nil, http_endpoint_configuration_id: nil, https_endpoint_configuration_id: nil, certificate_id: nil, certificate_management_policy: nil, region: nil)
|
|
211
|
+
def update(id: "", description: nil, metadata: nil, http_endpoint_configuration_id: nil, https_endpoint_configuration_id: nil, certificate_id: nil, certificate_management_policy: nil, region: nil, error_redirect_url: nil)
|
|
212
212
|
path = '/reserved_domains/%{id}'
|
|
213
213
|
replacements = {
|
|
214
214
|
id: id,
|
|
@@ -234,7 +234,7 @@ module NgrokAPI
|
|
|
234
234
|
# @return [NgrokAPI::Models::ReservedDomain] result from the API request
|
|
235
235
|
#
|
|
236
236
|
# https://ngrok.com/docs/api#api-reserved-domains-update
|
|
237
|
-
def update!(id: "", description: nil, metadata: nil, http_endpoint_configuration_id: nil, https_endpoint_configuration_id: nil, certificate_id: nil, certificate_management_policy: nil, region: nil)
|
|
237
|
+
def update!(id: "", description: nil, metadata: nil, http_endpoint_configuration_id: nil, https_endpoint_configuration_id: nil, certificate_id: nil, certificate_management_policy: nil, region: nil, error_redirect_url: nil)
|
|
238
238
|
path = '/reserved_domains/%{id}'
|
|
239
239
|
replacements = {
|
|
240
240
|
id: id,
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
module NgrokAPI
|
|
6
6
|
module Services
|
|
7
7
|
##
|
|
8
|
-
# https://ngrok.com/docs/api#api-tcp-edge-policy-module
|
|
9
|
-
class
|
|
8
|
+
# https://ngrok.com/docs/api#api-tcp-edge-traffic-policy-module
|
|
9
|
+
class TCPEdgeTrafficPolicyModuleClient
|
|
10
10
|
# The API path for the requests
|
|
11
|
-
PATH = '/edges/tcp/%{id}/
|
|
11
|
+
PATH = '/edges/tcp/%{id}/traffic_policy'
|
|
12
12
|
|
|
13
13
|
attr_reader :client
|
|
14
14
|
|
|
@@ -18,73 +18,73 @@ module NgrokAPI
|
|
|
18
18
|
|
|
19
19
|
##
|
|
20
20
|
# @param [string] id
|
|
21
|
-
# @param [
|
|
22
|
-
# @return [NgrokAPI::Models::
|
|
21
|
+
# @param [EndpointTrafficPolicy] a_module
|
|
22
|
+
# @return [NgrokAPI::Models::EndpointTrafficPolicy] result from the API request
|
|
23
23
|
#
|
|
24
|
-
# https://ngrok.com/docs/api#api-tcp-edge-policy-module-replace
|
|
24
|
+
# https://ngrok.com/docs/api#api-tcp-edge-traffic-policy-module-replace
|
|
25
25
|
def replace(id: "", a_module: nil)
|
|
26
|
-
path = '/edges/tcp/%{id}/
|
|
26
|
+
path = '/edges/tcp/%{id}/traffic_policy'
|
|
27
27
|
replacements = {
|
|
28
28
|
id: id,
|
|
29
29
|
}
|
|
30
30
|
data = a_module
|
|
31
31
|
result = @client.put(path % replacements, data: data)
|
|
32
|
-
NgrokAPI::Models::
|
|
32
|
+
NgrokAPI::Models::EndpointTrafficPolicy.new(client: self, attrs: result)
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
##
|
|
36
36
|
# @param [string] id
|
|
37
|
-
# @param [
|
|
38
|
-
# @return [NgrokAPI::Models::
|
|
37
|
+
# @param [EndpointTrafficPolicy] a_module
|
|
38
|
+
# @return [NgrokAPI::Models::EndpointTrafficPolicy] result from the API request
|
|
39
39
|
#
|
|
40
|
-
# https://ngrok.com/docs/api#api-tcp-edge-policy-module-replace
|
|
40
|
+
# https://ngrok.com/docs/api#api-tcp-edge-traffic-policy-module-replace
|
|
41
41
|
def replace!(id: "", a_module: nil)
|
|
42
|
-
path = '/edges/tcp/%{id}/
|
|
42
|
+
path = '/edges/tcp/%{id}/traffic_policy'
|
|
43
43
|
replacements = {
|
|
44
44
|
id: id,
|
|
45
45
|
}
|
|
46
46
|
data = a_module
|
|
47
47
|
result = @client.put(path % replacements, data: data, danger: true)
|
|
48
|
-
NgrokAPI::Models::
|
|
48
|
+
NgrokAPI::Models::EndpointTrafficPolicy.new(client: self, attrs: result)
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
##
|
|
52
52
|
# @param [string] id a resource identifier
|
|
53
|
-
# @return [NgrokAPI::Models::
|
|
53
|
+
# @return [NgrokAPI::Models::EndpointTrafficPolicy] result from the API request
|
|
54
54
|
#
|
|
55
|
-
# https://ngrok.com/docs/api#api-tcp-edge-policy-module-get
|
|
55
|
+
# https://ngrok.com/docs/api#api-tcp-edge-traffic-policy-module-get
|
|
56
56
|
def get(id: "")
|
|
57
|
-
path = '/edges/tcp/%{id}/
|
|
57
|
+
path = '/edges/tcp/%{id}/traffic_policy'
|
|
58
58
|
replacements = {
|
|
59
59
|
id: id,
|
|
60
60
|
}
|
|
61
61
|
data = {}
|
|
62
62
|
result = @client.get(path % replacements, data: data)
|
|
63
|
-
NgrokAPI::Models::
|
|
63
|
+
NgrokAPI::Models::EndpointTrafficPolicy.new(client: self, attrs: result)
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
##
|
|
67
67
|
# @param [string] id a resource identifier
|
|
68
|
-
# @return [NgrokAPI::Models::
|
|
68
|
+
# @return [NgrokAPI::Models::EndpointTrafficPolicy] result from the API request
|
|
69
69
|
#
|
|
70
|
-
# https://ngrok.com/docs/api#api-tcp-edge-policy-module-get
|
|
70
|
+
# https://ngrok.com/docs/api#api-tcp-edge-traffic-policy-module-get
|
|
71
71
|
def get!(id: "")
|
|
72
|
-
path = '/edges/tcp/%{id}/
|
|
72
|
+
path = '/edges/tcp/%{id}/traffic_policy'
|
|
73
73
|
replacements = {
|
|
74
74
|
id: id,
|
|
75
75
|
}
|
|
76
76
|
data = {}
|
|
77
77
|
result = @client.get(path % replacements, data: data, danger: true)
|
|
78
|
-
NgrokAPI::Models::
|
|
78
|
+
NgrokAPI::Models::EndpointTrafficPolicy.new(client: self, attrs: result)
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
##
|
|
82
82
|
# @param [string] id a resource identifier
|
|
83
83
|
# @return [NgrokAPI::Models::Empty] result from the API request
|
|
84
84
|
#
|
|
85
|
-
# https://ngrok.com/docs/api#api-tcp-edge-policy-module-delete
|
|
85
|
+
# https://ngrok.com/docs/api#api-tcp-edge-traffic-policy-module-delete
|
|
86
86
|
def delete(id: "")
|
|
87
|
-
path = '/edges/tcp/%{id}/
|
|
87
|
+
path = '/edges/tcp/%{id}/traffic_policy'
|
|
88
88
|
replacements = {
|
|
89
89
|
id: id,
|
|
90
90
|
}
|
|
@@ -95,9 +95,9 @@ module NgrokAPI
|
|
|
95
95
|
# @param [string] id a resource identifier
|
|
96
96
|
# @return [NgrokAPI::Models::Empty] result from the API request
|
|
97
97
|
#
|
|
98
|
-
# https://ngrok.com/docs/api#api-tcp-edge-policy-module-delete
|
|
98
|
+
# https://ngrok.com/docs/api#api-tcp-edge-traffic-policy-module-delete
|
|
99
99
|
def delete!(id: "")
|
|
100
|
-
path = '/edges/tcp/%{id}/
|
|
100
|
+
path = '/edges/tcp/%{id}/traffic_policy'
|
|
101
101
|
replacements = {
|
|
102
102
|
id: id,
|
|
103
103
|
}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
module NgrokAPI
|
|
6
6
|
module Services
|
|
7
7
|
##
|
|
8
|
-
# https://ngrok.com/docs/api#api-tls-edge-policy-module
|
|
9
|
-
class
|
|
8
|
+
# https://ngrok.com/docs/api#api-tls-edge-traffic-policy-module
|
|
9
|
+
class TLSEdgeTrafficPolicyModuleClient
|
|
10
10
|
# The API path for the requests
|
|
11
|
-
PATH = '/edges/tls/%{id}/
|
|
11
|
+
PATH = '/edges/tls/%{id}/traffic_policy'
|
|
12
12
|
|
|
13
13
|
attr_reader :client
|
|
14
14
|
|
|
@@ -18,73 +18,73 @@ module NgrokAPI
|
|
|
18
18
|
|
|
19
19
|
##
|
|
20
20
|
# @param [string] id
|
|
21
|
-
# @param [
|
|
22
|
-
# @return [NgrokAPI::Models::
|
|
21
|
+
# @param [EndpointTrafficPolicy] a_module
|
|
22
|
+
# @return [NgrokAPI::Models::EndpointTrafficPolicy] result from the API request
|
|
23
23
|
#
|
|
24
|
-
# https://ngrok.com/docs/api#api-tls-edge-policy-module-replace
|
|
24
|
+
# https://ngrok.com/docs/api#api-tls-edge-traffic-policy-module-replace
|
|
25
25
|
def replace(id: "", a_module: nil)
|
|
26
|
-
path = '/edges/tls/%{id}/
|
|
26
|
+
path = '/edges/tls/%{id}/traffic_policy'
|
|
27
27
|
replacements = {
|
|
28
28
|
id: id,
|
|
29
29
|
}
|
|
30
30
|
data = a_module
|
|
31
31
|
result = @client.put(path % replacements, data: data)
|
|
32
|
-
NgrokAPI::Models::
|
|
32
|
+
NgrokAPI::Models::EndpointTrafficPolicy.new(client: self, attrs: result)
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
##
|
|
36
36
|
# @param [string] id
|
|
37
|
-
# @param [
|
|
38
|
-
# @return [NgrokAPI::Models::
|
|
37
|
+
# @param [EndpointTrafficPolicy] a_module
|
|
38
|
+
# @return [NgrokAPI::Models::EndpointTrafficPolicy] result from the API request
|
|
39
39
|
#
|
|
40
|
-
# https://ngrok.com/docs/api#api-tls-edge-policy-module-replace
|
|
40
|
+
# https://ngrok.com/docs/api#api-tls-edge-traffic-policy-module-replace
|
|
41
41
|
def replace!(id: "", a_module: nil)
|
|
42
|
-
path = '/edges/tls/%{id}/
|
|
42
|
+
path = '/edges/tls/%{id}/traffic_policy'
|
|
43
43
|
replacements = {
|
|
44
44
|
id: id,
|
|
45
45
|
}
|
|
46
46
|
data = a_module
|
|
47
47
|
result = @client.put(path % replacements, data: data, danger: true)
|
|
48
|
-
NgrokAPI::Models::
|
|
48
|
+
NgrokAPI::Models::EndpointTrafficPolicy.new(client: self, attrs: result)
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
##
|
|
52
52
|
# @param [string] id a resource identifier
|
|
53
|
-
# @return [NgrokAPI::Models::
|
|
53
|
+
# @return [NgrokAPI::Models::EndpointTrafficPolicy] result from the API request
|
|
54
54
|
#
|
|
55
|
-
# https://ngrok.com/docs/api#api-tls-edge-policy-module-get
|
|
55
|
+
# https://ngrok.com/docs/api#api-tls-edge-traffic-policy-module-get
|
|
56
56
|
def get(id: "")
|
|
57
|
-
path = '/edges/tls/%{id}/
|
|
57
|
+
path = '/edges/tls/%{id}/traffic_policy'
|
|
58
58
|
replacements = {
|
|
59
59
|
id: id,
|
|
60
60
|
}
|
|
61
61
|
data = {}
|
|
62
62
|
result = @client.get(path % replacements, data: data)
|
|
63
|
-
NgrokAPI::Models::
|
|
63
|
+
NgrokAPI::Models::EndpointTrafficPolicy.new(client: self, attrs: result)
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
##
|
|
67
67
|
# @param [string] id a resource identifier
|
|
68
|
-
# @return [NgrokAPI::Models::
|
|
68
|
+
# @return [NgrokAPI::Models::EndpointTrafficPolicy] result from the API request
|
|
69
69
|
#
|
|
70
|
-
# https://ngrok.com/docs/api#api-tls-edge-policy-module-get
|
|
70
|
+
# https://ngrok.com/docs/api#api-tls-edge-traffic-policy-module-get
|
|
71
71
|
def get!(id: "")
|
|
72
|
-
path = '/edges/tls/%{id}/
|
|
72
|
+
path = '/edges/tls/%{id}/traffic_policy'
|
|
73
73
|
replacements = {
|
|
74
74
|
id: id,
|
|
75
75
|
}
|
|
76
76
|
data = {}
|
|
77
77
|
result = @client.get(path % replacements, data: data, danger: true)
|
|
78
|
-
NgrokAPI::Models::
|
|
78
|
+
NgrokAPI::Models::EndpointTrafficPolicy.new(client: self, attrs: result)
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
##
|
|
82
82
|
# @param [string] id a resource identifier
|
|
83
83
|
# @return [NgrokAPI::Models::Empty] result from the API request
|
|
84
84
|
#
|
|
85
|
-
# https://ngrok.com/docs/api#api-tls-edge-policy-module-delete
|
|
85
|
+
# https://ngrok.com/docs/api#api-tls-edge-traffic-policy-module-delete
|
|
86
86
|
def delete(id: "")
|
|
87
|
-
path = '/edges/tls/%{id}/
|
|
87
|
+
path = '/edges/tls/%{id}/traffic_policy'
|
|
88
88
|
replacements = {
|
|
89
89
|
id: id,
|
|
90
90
|
}
|
|
@@ -95,9 +95,9 @@ module NgrokAPI
|
|
|
95
95
|
# @param [string] id a resource identifier
|
|
96
96
|
# @return [NgrokAPI::Models::Empty] result from the API request
|
|
97
97
|
#
|
|
98
|
-
# https://ngrok.com/docs/api#api-tls-edge-policy-module-delete
|
|
98
|
+
# https://ngrok.com/docs/api#api-tls-edge-traffic-policy-module-delete
|
|
99
99
|
def delete!(id: "")
|
|
100
|
-
path = '/edges/tls/%{id}/
|
|
100
|
+
path = '/edges/tls/%{id}/traffic_policy'
|
|
101
101
|
replacements = {
|
|
102
102
|
id: id,
|
|
103
103
|
}
|
data/lib/ngrokapi/version.rb
CHANGED
|
@@ -190,12 +190,15 @@ RSpec.describe NgrokAPI::Client do
|
|
|
190
190
|
expect(ns.https_edge_route_oidc.class).to eq(NgrokAPI::Services::EdgeRouteOIDCModuleClient)
|
|
191
191
|
expect(ns.https_edge_route_websocket_tcp_converter.class).to eq(NgrokAPI::Services::EdgeRouteWebsocketTCPConverterModuleClient)
|
|
192
192
|
expect(ns.https_edge_route_user_agent_filter.class).to eq(NgrokAPI::Services::EdgeRouteUserAgentFilterModuleClient)
|
|
193
|
+
expect(ns.https_edge_route_traffic_policy.class).to eq(NgrokAPI::Services::EdgeRouteTrafficPolicyModuleClient)
|
|
193
194
|
expect(ns.tcp_edge_backend.class).to eq(NgrokAPI::Services::TCPEdgeBackendModuleClient)
|
|
194
195
|
expect(ns.tcp_edge_ip_restriction.class).to eq(NgrokAPI::Services::TCPEdgeIPRestrictionModuleClient)
|
|
196
|
+
expect(ns.tcp_edge_traffic_policy.class).to eq(NgrokAPI::Services::TCPEdgeTrafficPolicyModuleClient)
|
|
195
197
|
expect(ns.tls_edge_backend.class).to eq(NgrokAPI::Services::TLSEdgeBackendModuleClient)
|
|
196
198
|
expect(ns.tls_edge_ip_restriction.class).to eq(NgrokAPI::Services::TLSEdgeIPRestrictionModuleClient)
|
|
197
199
|
expect(ns.tls_edge_mutual_tls.class).to eq(NgrokAPI::Services::TLSEdgeMutualTLSModuleClient)
|
|
198
200
|
expect(ns.tls_edge_tls_termination.class).to eq(NgrokAPI::Services::TLSEdgeTLSTerminationModuleClient)
|
|
201
|
+
expect(ns.tls_edge_traffic_policy.class).to eq(NgrokAPI::Services::TLSEdgeTrafficPolicyModuleClient)
|
|
199
202
|
end
|
|
200
203
|
end
|
|
201
204
|
end
|
|
@@ -20,4 +20,34 @@ RSpec.describe NgrokAPI::Models::Endpoint do
|
|
|
20
20
|
expect(@endpoint.to_s).to eq endpoint_result.to_s
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
|
+
|
|
24
|
+
describe "#update" do
|
|
25
|
+
it "calls update on the client" do
|
|
26
|
+
new_url = 'New url'
|
|
27
|
+
new_traffic_policy = 'New traffic_policy'
|
|
28
|
+
new_description = 'New description'
|
|
29
|
+
new_metadata = 'New metadata'
|
|
30
|
+
new_bindings = 'New bindings'
|
|
31
|
+
expect(@endpoint.client).to receive(:update)
|
|
32
|
+
@endpoint.update(
|
|
33
|
+
url: new_url,
|
|
34
|
+
traffic_policy: new_traffic_policy,
|
|
35
|
+
description: new_description,
|
|
36
|
+
metadata: new_metadata,
|
|
37
|
+
bindings: new_bindings
|
|
38
|
+
)
|
|
39
|
+
expect(@endpoint.url).to eq new_url
|
|
40
|
+
expect(@endpoint.traffic_policy).to eq new_traffic_policy
|
|
41
|
+
expect(@endpoint.description).to eq new_description
|
|
42
|
+
expect(@endpoint.metadata).to eq new_metadata
|
|
43
|
+
expect(@endpoint.bindings).to eq new_bindings
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe "#delete" do
|
|
48
|
+
it "calls delete on the client" do
|
|
49
|
+
expect(@endpoint.client).to receive(:delete)
|
|
50
|
+
@endpoint.delete
|
|
51
|
+
end
|
|
52
|
+
end
|
|
23
53
|
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
|
|
5
|
+
RSpec.describe NgrokAPI::Models::EndpointTrafficPolicy do
|
|
6
|
+
before(:each) do
|
|
7
|
+
@client = class_double("EndpointTrafficPolicysClient")
|
|
8
|
+
@endpoint_traffic_policy = NgrokAPI::Models::EndpointTrafficPolicy.new(client: @client, attrs: endpoint_traffic_policy_result)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
describe "#==" do
|
|
12
|
+
it "is equal if the results are the same" do
|
|
13
|
+
other = NgrokAPI::Models::EndpointTrafficPolicy.new(client: @client, attrs: endpoint_traffic_policy_result)
|
|
14
|
+
expect(@endpoint_traffic_policy == other).to eq true
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
describe "#to_s" do
|
|
19
|
+
it "stringifies as result.to_s" do
|
|
20
|
+
expect(@endpoint_traffic_policy.to_s).to eq endpoint_traffic_policy_result.to_s
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
|
|
5
|
+
RSpec.describe NgrokAPI::Models::EventTargetAzureLogsIngestion do
|
|
6
|
+
before(:each) do
|
|
7
|
+
@client = class_double("EventTargetAzureLogsIngestionsClient")
|
|
8
|
+
@event_target_azure_logs_ingestion = NgrokAPI::Models::EventTargetAzureLogsIngestion.new(client: @client, attrs: event_target_azure_logs_ingestion_result)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
describe "#==" do
|
|
12
|
+
it "is equal if the results are the same" do
|
|
13
|
+
other = NgrokAPI::Models::EventTargetAzureLogsIngestion.new(client: @client, attrs: event_target_azure_logs_ingestion_result)
|
|
14
|
+
expect(@event_target_azure_logs_ingestion == other).to eq true
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
describe "#to_s" do
|
|
19
|
+
it "stringifies as result.to_s" do
|
|
20
|
+
expect(@event_target_azure_logs_ingestion.to_s).to eq event_target_azure_logs_ingestion_result.to_s
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|