ngrok-api 0.19.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +7 -7
- data/.gitignore +15 -13
- data/.rubocop.yml +30 -28
- data/.rubocop_airbnb.yml +4 -2
- data/.simplecov +3 -1
- data/CHANGELOG.md +12 -0
- data/CODE_OF_CONDUCT.md +45 -0
- data/Gemfile +34 -32
- data/Guardfile +18 -16
- data/README.md +94 -88
- data/Rakefile +9 -7
- data/doc/NgrokAPI/Client.html +295 -135
- data/doc/NgrokAPI/Error.html +12 -12
- data/doc/NgrokAPI/Errors/NotFoundError.html +12 -12
- data/doc/NgrokAPI/Errors.html +4 -4
- data/doc/NgrokAPI/HttpClient.html +74 -74
- data/doc/NgrokAPI/Models/APIKey.html +150 -72
- data/doc/NgrokAPI/Models/AWSAuth.html +36 -36
- data/doc/NgrokAPI/Models/AWSCredentials.html +36 -36
- data/doc/NgrokAPI/Models/AWSRole.html +32 -32
- data/doc/NgrokAPI/Models/AbuseReport.html +63 -59
- data/doc/NgrokAPI/Models/AbuseReportHostname.html +36 -36
- data/doc/NgrokAPI/Models/AgentIngress.html +245 -87
- data/doc/NgrokAPI/Models/AgentIngressCertJob.html +817 -0
- data/doc/NgrokAPI/Models/AgentIngressCertPolicy.html +669 -0
- data/doc/NgrokAPI/Models/AgentIngressCertStatus.html +669 -0
- data/doc/NgrokAPI/Models/ApplicationSession.html +1414 -0
- data/doc/NgrokAPI/Models/ApplicationUser.html +1336 -0
- data/doc/NgrokAPI/Models/BotUser.html +1051 -0
- data/doc/NgrokAPI/Models/BrowserSession.html +743 -0
- data/doc/NgrokAPI/Models/CertificateAuthority.html +93 -89
- data/doc/NgrokAPI/Models/Credential.html +154 -76
- data/doc/NgrokAPI/Models/Endpoint.html +87 -83
- data/doc/NgrokAPI/Models/EndpointAction.html +669 -0
- data/doc/NgrokAPI/Models/EndpointBackend.html +36 -36
- data/doc/NgrokAPI/Models/EndpointBackendMutate.html +36 -36
- data/doc/NgrokAPI/Models/EndpointCircuitBreaker.html +52 -52
- data/doc/NgrokAPI/Models/EndpointCompression.html +32 -32
- data/doc/NgrokAPI/Models/EndpointIPPolicy.html +36 -36
- data/doc/NgrokAPI/Models/EndpointIPPolicyMutate.html +36 -36
- data/doc/NgrokAPI/Models/EndpointMutualTLS.html +36 -36
- data/doc/NgrokAPI/Models/EndpointMutualTLSMutate.html +36 -36
- data/doc/NgrokAPI/Models/EndpointOAuth.html +56 -56
- data/doc/NgrokAPI/Models/EndpointOAuthAmazon.html +891 -0
- data/doc/NgrokAPI/Models/EndpointOAuthFacebook.html +48 -48
- data/doc/NgrokAPI/Models/EndpointOAuthGitHub.html +56 -56
- data/doc/NgrokAPI/Models/EndpointOAuthGitLab.html +891 -0
- data/doc/NgrokAPI/Models/EndpointOAuthGoogle.html +48 -48
- data/doc/NgrokAPI/Models/EndpointOAuthLinkedIn.html +891 -0
- data/doc/NgrokAPI/Models/EndpointOAuthMicrosoft.html +48 -48
- data/doc/NgrokAPI/Models/EndpointOAuthProvider.html +345 -49
- data/doc/NgrokAPI/Models/EndpointOAuthTwitch.html +891 -0
- data/doc/NgrokAPI/Models/EndpointOIDC.html +64 -64
- data/doc/NgrokAPI/Models/EndpointPolicy.html +743 -0
- data/doc/NgrokAPI/Models/EndpointRequestHeaders.html +40 -40
- data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +40 -40
- data/doc/NgrokAPI/Models/EndpointRule.html +743 -0
- data/doc/NgrokAPI/Models/EndpointSAML.html +103 -165
- data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +68 -142
- data/doc/NgrokAPI/Models/EndpointTLSTermination.html +40 -40
- data/doc/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +36 -36
- data/doc/NgrokAPI/Models/EndpointUserAgentFilter.html +743 -0
- data/doc/NgrokAPI/Models/EndpointWebhookValidation.html +40 -40
- data/doc/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +32 -32
- data/doc/NgrokAPI/Models/EventDestination.html +69 -65
- data/doc/NgrokAPI/Models/EventSource.html +39 -183
- data/doc/NgrokAPI/Models/EventSourceList.html +43 -39
- data/doc/NgrokAPI/Models/EventSourceReplace.html +29 -177
- data/doc/NgrokAPI/Models/EventSubscription.html +69 -65
- data/doc/NgrokAPI/Models/EventTarget.html +52 -52
- data/doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html +36 -36
- data/doc/NgrokAPI/Models/EventTargetDatadog.html +817 -0
- data/doc/NgrokAPI/Models/EventTargetFirehose.html +36 -36
- data/doc/NgrokAPI/Models/EventTargetKinesis.html +36 -36
- data/doc/NgrokAPI/Models/FailoverBackend.html +73 -69
- data/doc/NgrokAPI/Models/HTTPResponseBackend.html +81 -77
- data/doc/NgrokAPI/Models/HTTPSEdge.html +85 -81
- data/doc/NgrokAPI/Models/HTTPSEdgeRoute.html +297 -133
- data/doc/NgrokAPI/Models/IPPolicy.html +66 -136
- data/doc/NgrokAPI/Models/IPPolicyRule.html +81 -77
- data/doc/NgrokAPI/Models/IPRestriction.html +73 -69
- data/doc/NgrokAPI/Models/IdentityProvider.html +669 -0
- data/doc/NgrokAPI/Models/Listable.html +79 -79
- data/doc/NgrokAPI/Models/Location.html +817 -0
- data/doc/NgrokAPI/Models/Ref.html +43 -39
- data/doc/NgrokAPI/Models/ReservedAddr.html +67 -137
- data/doc/NgrokAPI/Models/ReservedDomain.html +83 -227
- data/doc/NgrokAPI/Models/ReservedDomainCertJob.html +44 -44
- data/doc/NgrokAPI/Models/ReservedDomainCertPolicy.html +36 -36
- data/doc/NgrokAPI/Models/ReservedDomainCertStatus.html +36 -36
- data/doc/NgrokAPI/Models/SSHCertificateAuthority.html +77 -73
- data/doc/NgrokAPI/Models/SSHCredential.html +154 -76
- data/doc/NgrokAPI/Models/SSHHostCertificate.html +97 -93
- data/doc/NgrokAPI/Models/SSHUserCertificate.html +105 -101
- data/doc/NgrokAPI/Models/StaticBackend.html +1211 -0
- data/doc/NgrokAPI/Models/StaticBackendTLS.html +595 -0
- data/doc/NgrokAPI/Models/TCPEdge.html +168 -84
- data/doc/NgrokAPI/Models/TLSCertificate.html +133 -129
- data/doc/NgrokAPI/Models/TLSCertificateSANs.html +36 -36
- data/doc/NgrokAPI/Models/TLSEdge.html +176 -92
- data/doc/NgrokAPI/Models/Tunnel.html +79 -75
- data/doc/NgrokAPI/Models/TunnelGroupBackend.html +77 -73
- data/doc/NgrokAPI/Models/TunnelSession.html +75 -71
- data/doc/NgrokAPI/Models/UserAgent.html +965 -0
- data/doc/NgrokAPI/Models/WeightedBackend.html +73 -69
- data/doc/NgrokAPI/Models.html +6 -6
- data/doc/NgrokAPI/PagedIterator.html +53 -53
- data/doc/NgrokAPI/Services/APIKeysClient.html +135 -95
- data/doc/NgrokAPI/Services/AbuseReportsClient.html +29 -29
- data/doc/NgrokAPI/Services/AgentIngressesClient.html +184 -104
- data/doc/NgrokAPI/Services/ApplicationSessionsClient.html +1131 -0
- data/doc/NgrokAPI/Services/ApplicationUsersClient.html +1131 -0
- data/doc/NgrokAPI/Services/BotUsersClient.html +1717 -0
- data/doc/NgrokAPI/Services/CertificateAuthoritiesClient.html +52 -52
- data/doc/NgrokAPI/Services/CredentialsClient.html +139 -99
- data/doc/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/EdgeRoutePolicyModuleClient.html +1149 -0
- data/doc/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html +1149 -0
- data/doc/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/EdgesHTTPSClient.html +52 -52
- data/doc/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +252 -112
- data/doc/NgrokAPI/Services/EdgesTCPClient.html +184 -104
- data/doc/NgrokAPI/Services/EdgesTLSClient.html +184 -104
- data/doc/NgrokAPI/Services/EndpointsClient.html +28 -28
- data/doc/NgrokAPI/Services/EventDestinationsClient.html +17 -17
- data/doc/NgrokAPI/Services/EventSourcesClient.html +52 -52
- data/doc/NgrokAPI/Services/EventSubscriptionsClient.html +56 -56
- data/doc/NgrokAPI/Services/FailoverBackendsClient.html +52 -52
- data/doc/NgrokAPI/Services/HTTPResponseBackendsClient.html +52 -52
- data/doc/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/IPPoliciesClient.html +52 -52
- data/doc/NgrokAPI/Services/IPPolicyRulesClient.html +58 -62
- data/doc/NgrokAPI/Services/IPRestrictionsClient.html +52 -52
- data/doc/NgrokAPI/Services/ReservedAddrsClient.html +52 -52
- data/doc/NgrokAPI/Services/ReservedDomainsClient.html +93 -89
- data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +52 -52
- data/doc/NgrokAPI/Services/SSHCredentialsClient.html +140 -100
- data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +52 -52
- data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +56 -56
- data/doc/NgrokAPI/Services/StaticBackendsClient.html +1879 -0
- data/doc/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/TCPEdgePolicyModuleClient.html +1039 -0
- data/doc/NgrokAPI/Services/TLSCertificatesClient.html +56 -56
- data/doc/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/TLSEdgePolicyModuleClient.html +1039 -0
- data/doc/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/TunnelGroupBackendsClient.html +52 -52
- data/doc/NgrokAPI/Services/TunnelSessionsClient.html +54 -54
- data/doc/NgrokAPI/Services/TunnelsClient.html +28 -28
- data/doc/NgrokAPI/Services/WeightedBackendsClient.html +53 -53
- data/doc/NgrokAPI/Services.html +6 -6
- data/doc/NgrokAPI.html +6 -6
- data/doc/_index.html +230 -8
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +45 -41
- data/doc/frames.html +10 -5
- data/doc/index.html +45 -41
- data/doc/method_list.html +3063 -647
- data/doc/top-level-namespace.html +4 -4
- data/docs/NgrokAPI/Client.html +295 -135
- data/docs/NgrokAPI/Error.html +12 -12
- data/docs/NgrokAPI/Errors/NotFoundError.html +12 -12
- data/docs/NgrokAPI/Errors.html +4 -4
- data/docs/NgrokAPI/HttpClient.html +74 -74
- data/docs/NgrokAPI/Models/APIKey.html +150 -72
- data/docs/NgrokAPI/Models/AWSAuth.html +36 -36
- data/docs/NgrokAPI/Models/AWSCredentials.html +36 -36
- data/docs/NgrokAPI/Models/AWSRole.html +32 -32
- data/docs/NgrokAPI/Models/AbuseReport.html +63 -59
- data/docs/NgrokAPI/Models/AbuseReportHostname.html +36 -36
- data/docs/NgrokAPI/Models/AgentIngress.html +245 -87
- data/docs/NgrokAPI/Models/AgentIngressCertJob.html +817 -0
- data/docs/NgrokAPI/Models/AgentIngressCertPolicy.html +669 -0
- data/docs/NgrokAPI/Models/AgentIngressCertStatus.html +669 -0
- data/docs/NgrokAPI/Models/ApplicationSession.html +1414 -0
- data/docs/NgrokAPI/Models/ApplicationUser.html +1336 -0
- data/docs/NgrokAPI/Models/BotUser.html +1051 -0
- data/docs/NgrokAPI/Models/BrowserSession.html +743 -0
- data/docs/NgrokAPI/Models/CertificateAuthority.html +93 -89
- data/docs/NgrokAPI/Models/Credential.html +154 -76
- data/docs/NgrokAPI/Models/Endpoint.html +87 -83
- data/docs/NgrokAPI/Models/EndpointAction.html +669 -0
- data/docs/NgrokAPI/Models/EndpointBackend.html +36 -36
- data/docs/NgrokAPI/Models/EndpointBackendMutate.html +36 -36
- data/docs/NgrokAPI/Models/EndpointCircuitBreaker.html +52 -52
- data/docs/NgrokAPI/Models/EndpointCompression.html +32 -32
- data/docs/NgrokAPI/Models/EndpointIPPolicy.html +36 -36
- data/docs/NgrokAPI/Models/EndpointIPPolicyMutate.html +36 -36
- data/docs/NgrokAPI/Models/EndpointMutualTLS.html +36 -36
- data/docs/NgrokAPI/Models/EndpointMutualTLSMutate.html +36 -36
- data/docs/NgrokAPI/Models/EndpointOAuth.html +56 -56
- data/docs/NgrokAPI/Models/EndpointOAuthAmazon.html +891 -0
- data/docs/NgrokAPI/Models/EndpointOAuthFacebook.html +48 -48
- data/docs/NgrokAPI/Models/EndpointOAuthGitHub.html +56 -56
- data/docs/NgrokAPI/Models/EndpointOAuthGitLab.html +891 -0
- data/docs/NgrokAPI/Models/EndpointOAuthGoogle.html +48 -48
- data/docs/NgrokAPI/Models/EndpointOAuthLinkedIn.html +891 -0
- data/docs/NgrokAPI/Models/EndpointOAuthMicrosoft.html +48 -48
- data/docs/NgrokAPI/Models/EndpointOAuthProvider.html +345 -49
- data/docs/NgrokAPI/Models/EndpointOAuthTwitch.html +891 -0
- data/docs/NgrokAPI/Models/EndpointOIDC.html +64 -64
- data/docs/NgrokAPI/Models/EndpointPolicy.html +743 -0
- data/docs/NgrokAPI/Models/EndpointRequestHeaders.html +40 -40
- data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +40 -40
- data/docs/NgrokAPI/Models/EndpointRule.html +743 -0
- data/docs/NgrokAPI/Models/EndpointSAML.html +103 -165
- data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +68 -142
- data/docs/NgrokAPI/Models/EndpointTLSTermination.html +40 -40
- data/docs/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +36 -36
- data/docs/NgrokAPI/Models/EndpointUserAgentFilter.html +743 -0
- data/docs/NgrokAPI/Models/EndpointWebhookValidation.html +40 -40
- data/docs/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +32 -32
- data/docs/NgrokAPI/Models/EventDestination.html +69 -65
- data/docs/NgrokAPI/Models/EventSource.html +39 -183
- data/docs/NgrokAPI/Models/EventSourceList.html +43 -39
- data/docs/NgrokAPI/Models/EventSourceReplace.html +29 -177
- data/docs/NgrokAPI/Models/EventSubscription.html +69 -65
- data/docs/NgrokAPI/Models/EventTarget.html +52 -52
- data/docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html +36 -36
- data/docs/NgrokAPI/Models/EventTargetDatadog.html +817 -0
- data/docs/NgrokAPI/Models/EventTargetFirehose.html +36 -36
- data/docs/NgrokAPI/Models/EventTargetKinesis.html +36 -36
- data/docs/NgrokAPI/Models/FailoverBackend.html +73 -69
- data/docs/NgrokAPI/Models/HTTPResponseBackend.html +81 -77
- data/docs/NgrokAPI/Models/HTTPSEdge.html +85 -81
- data/docs/NgrokAPI/Models/HTTPSEdgeRoute.html +297 -133
- data/docs/NgrokAPI/Models/IPPolicy.html +66 -136
- data/docs/NgrokAPI/Models/IPPolicyRule.html +81 -77
- data/docs/NgrokAPI/Models/IPRestriction.html +73 -69
- data/docs/NgrokAPI/Models/IdentityProvider.html +669 -0
- data/docs/NgrokAPI/Models/Listable.html +79 -79
- data/docs/NgrokAPI/Models/Location.html +817 -0
- data/docs/NgrokAPI/Models/Ref.html +43 -39
- data/docs/NgrokAPI/Models/ReservedAddr.html +67 -137
- data/docs/NgrokAPI/Models/ReservedDomain.html +83 -227
- data/docs/NgrokAPI/Models/ReservedDomainCertJob.html +44 -44
- data/docs/NgrokAPI/Models/ReservedDomainCertPolicy.html +36 -36
- data/docs/NgrokAPI/Models/ReservedDomainCertStatus.html +36 -36
- data/docs/NgrokAPI/Models/SSHCertificateAuthority.html +77 -73
- data/docs/NgrokAPI/Models/SSHCredential.html +154 -76
- data/docs/NgrokAPI/Models/SSHHostCertificate.html +97 -93
- data/docs/NgrokAPI/Models/SSHUserCertificate.html +105 -101
- data/docs/NgrokAPI/Models/StaticBackend.html +1211 -0
- data/docs/NgrokAPI/Models/StaticBackendTLS.html +595 -0
- data/docs/NgrokAPI/Models/TCPEdge.html +168 -84
- data/docs/NgrokAPI/Models/TLSCertificate.html +133 -129
- data/docs/NgrokAPI/Models/TLSCertificateSANs.html +36 -36
- data/docs/NgrokAPI/Models/TLSEdge.html +176 -92
- data/docs/NgrokAPI/Models/Tunnel.html +79 -75
- data/docs/NgrokAPI/Models/TunnelGroupBackend.html +77 -73
- data/docs/NgrokAPI/Models/TunnelSession.html +75 -71
- data/docs/NgrokAPI/Models/UserAgent.html +965 -0
- data/docs/NgrokAPI/Models/WeightedBackend.html +73 -69
- data/docs/NgrokAPI/Models.html +6 -6
- data/docs/NgrokAPI/PagedIterator.html +53 -53
- data/docs/NgrokAPI/Services/APIKeysClient.html +135 -95
- data/docs/NgrokAPI/Services/AbuseReportsClient.html +29 -29
- data/docs/NgrokAPI/Services/AgentIngressesClient.html +184 -104
- data/docs/NgrokAPI/Services/ApplicationSessionsClient.html +1131 -0
- data/docs/NgrokAPI/Services/ApplicationUsersClient.html +1131 -0
- data/docs/NgrokAPI/Services/BotUsersClient.html +1717 -0
- data/docs/NgrokAPI/Services/CertificateAuthoritiesClient.html +52 -52
- data/docs/NgrokAPI/Services/CredentialsClient.html +139 -99
- data/docs/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/EdgeRoutePolicyModuleClient.html +1149 -0
- data/docs/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html +1149 -0
- data/docs/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/EdgesHTTPSClient.html +52 -52
- data/docs/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +252 -112
- data/docs/NgrokAPI/Services/EdgesTCPClient.html +184 -104
- data/docs/NgrokAPI/Services/EdgesTLSClient.html +184 -104
- data/docs/NgrokAPI/Services/EndpointsClient.html +28 -28
- data/docs/NgrokAPI/Services/EventDestinationsClient.html +17 -17
- data/docs/NgrokAPI/Services/EventSourcesClient.html +52 -52
- data/docs/NgrokAPI/Services/EventSubscriptionsClient.html +56 -56
- data/docs/NgrokAPI/Services/FailoverBackendsClient.html +52 -52
- data/docs/NgrokAPI/Services/HTTPResponseBackendsClient.html +52 -52
- data/docs/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/IPPoliciesClient.html +52 -52
- data/docs/NgrokAPI/Services/IPPolicyRulesClient.html +58 -62
- data/docs/NgrokAPI/Services/IPRestrictionsClient.html +52 -52
- data/docs/NgrokAPI/Services/ReservedAddrsClient.html +52 -52
- data/docs/NgrokAPI/Services/ReservedDomainsClient.html +93 -89
- data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +52 -52
- data/docs/NgrokAPI/Services/SSHCredentialsClient.html +140 -100
- data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +52 -52
- data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +56 -56
- data/docs/NgrokAPI/Services/StaticBackendsClient.html +1879 -0
- data/docs/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/TCPEdgePolicyModuleClient.html +1039 -0
- data/docs/NgrokAPI/Services/TLSCertificatesClient.html +56 -56
- data/docs/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/TLSEdgePolicyModuleClient.html +1039 -0
- data/docs/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/TunnelGroupBackendsClient.html +52 -52
- data/docs/NgrokAPI/Services/TunnelSessionsClient.html +54 -54
- data/docs/NgrokAPI/Services/TunnelsClient.html +28 -28
- data/docs/NgrokAPI/Services/WeightedBackendsClient.html +53 -53
- data/docs/NgrokAPI/Services.html +6 -6
- data/docs/NgrokAPI.html +6 -6
- data/docs/_index.html +230 -8
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +45 -41
- data/docs/frames.html +10 -5
- data/docs/index.html +45 -41
- data/docs/method_list.html +3063 -647
- data/docs/top-level-namespace.html +4 -4
- data/lib/ngrokapi/client.rb +27 -11
- data/lib/ngrokapi/error.rb +2 -0
- data/lib/ngrokapi/errors/not_found_error.rb +2 -0
- data/lib/ngrokapi/http_client.rb +153 -150
- data/lib/ngrokapi/models/abuse_report.rb +7 -1
- data/lib/ngrokapi/models/abuse_report_hostname.rb +2 -0
- data/lib/ngrokapi/models/agent_ingress.rb +17 -4
- data/lib/ngrokapi/models/agent_ingress_cert_job.rb +37 -0
- data/lib/ngrokapi/models/agent_ingress_cert_policy.rb +33 -0
- data/lib/ngrokapi/models/agent_ingress_cert_status.rb +33 -0
- data/lib/ngrokapi/models/api_key.rb +10 -2
- data/lib/ngrokapi/models/application_session.rb +67 -0
- data/lib/ngrokapi/models/application_user.rb +63 -0
- data/lib/ngrokapi/models/aws_auth.rb +2 -0
- data/lib/ngrokapi/models/aws_credentials.rb +2 -0
- data/lib/ngrokapi/models/aws_role.rb +2 -0
- data/lib/ngrokapi/models/bot_user.rb +70 -0
- data/lib/ngrokapi/models/browser_session.rb +35 -0
- data/lib/ngrokapi/models/certificate_authority.rb +7 -1
- data/lib/ngrokapi/models/credential.rb +10 -2
- data/lib/ngrokapi/models/endpoint.rb +7 -1
- data/lib/ngrokapi/models/endpoint_action.rb +33 -0
- data/lib/ngrokapi/models/endpoint_backend.rb +2 -0
- data/lib/ngrokapi/models/endpoint_backend_mutate.rb +2 -0
- data/lib/ngrokapi/models/endpoint_circuit_breaker.rb +2 -0
- data/lib/ngrokapi/models/endpoint_compression.rb +2 -0
- data/lib/ngrokapi/models/endpoint_ip_policy.rb +2 -0
- data/lib/ngrokapi/models/endpoint_ip_policy_mutate.rb +2 -0
- data/lib/ngrokapi/models/endpoint_mutual_tls.rb +2 -0
- data/lib/ngrokapi/models/endpoint_mutual_tls_mutate.rb +2 -0
- data/lib/ngrokapi/models/endpoint_o_auth.rb +2 -0
- data/lib/ngrokapi/models/endpoint_o_auth_amazon.rb +39 -0
- data/lib/ngrokapi/models/endpoint_o_auth_facebook.rb +2 -0
- data/lib/ngrokapi/models/endpoint_o_auth_git_hub.rb +2 -0
- data/lib/ngrokapi/models/endpoint_o_auth_git_lab.rb +39 -0
- data/lib/ngrokapi/models/endpoint_o_auth_google.rb +2 -0
- data/lib/ngrokapi/models/endpoint_o_auth_linked_in.rb +39 -0
- data/lib/ngrokapi/models/endpoint_o_auth_microsoft.rb +2 -0
- data/lib/ngrokapi/models/endpoint_o_auth_provider.rb +11 -1
- data/lib/ngrokapi/models/endpoint_o_auth_twitch.rb +39 -0
- data/lib/ngrokapi/models/endpoint_oidc.rb +2 -0
- data/lib/ngrokapi/models/endpoint_policy.rb +35 -0
- data/lib/ngrokapi/models/endpoint_request_headers.rb +2 -0
- data/lib/ngrokapi/models/endpoint_response_headers.rb +2 -0
- data/lib/ngrokapi/models/endpoint_rule.rb +35 -0
- data/lib/ngrokapi/models/endpoint_saml.rb +13 -5
- data/lib/ngrokapi/models/endpoint_saml_mutate.rb +4 -2
- data/lib/ngrokapi/models/endpoint_tls_termination.rb +2 -0
- data/lib/ngrokapi/models/endpoint_tls_termination_at_edge.rb +2 -0
- data/lib/ngrokapi/models/endpoint_user_agent_filter.rb +35 -0
- data/lib/ngrokapi/models/endpoint_webhook_validation.rb +2 -0
- data/lib/ngrokapi/models/endpoint_websocket_tcp_converter.rb +2 -0
- data/lib/ngrokapi/models/event_destination.rb +7 -1
- data/lib/ngrokapi/models/event_source.rb +7 -5
- data/lib/ngrokapi/models/event_source_list.rb +7 -1
- data/lib/ngrokapi/models/event_source_replace.rb +3 -5
- data/lib/ngrokapi/models/event_subscription.rb +7 -1
- data/lib/ngrokapi/models/event_target.rb +4 -2
- data/lib/ngrokapi/models/event_target_cloudwatch_logs.rb +2 -0
- data/lib/ngrokapi/models/event_target_datadog.rb +37 -0
- data/lib/ngrokapi/models/event_target_firehose.rb +2 -0
- data/lib/ngrokapi/models/event_target_kinesis.rb +2 -0
- data/lib/ngrokapi/models/failover_backend.rb +7 -1
- data/lib/ngrokapi/models/http_response_backend.rb +7 -1
- data/lib/ngrokapi/models/https_edge.rb +7 -1
- data/lib/ngrokapi/models/https_edge_route.rb +20 -4
- data/lib/ngrokapi/models/identity_provider.rb +33 -0
- data/lib/ngrokapi/models/ip_policy.rb +8 -4
- data/lib/ngrokapi/models/ip_policy_rule.rb +7 -1
- data/lib/ngrokapi/models/ip_restriction.rb +7 -1
- data/lib/ngrokapi/models/listable.rb +55 -53
- data/lib/ngrokapi/models/location.rb +37 -0
- data/lib/ngrokapi/models/ref.rb +7 -1
- data/lib/ngrokapi/models/reserved_addr.rb +8 -4
- data/lib/ngrokapi/models/reserved_domain.rb +7 -5
- data/lib/ngrokapi/models/reserved_domain_cert_job.rb +2 -0
- data/lib/ngrokapi/models/reserved_domain_cert_policy.rb +2 -0
- data/lib/ngrokapi/models/reserved_domain_cert_status.rb +2 -0
- data/lib/ngrokapi/models/ssh_certificate_authority.rb +7 -1
- data/lib/ngrokapi/models/ssh_credential.rb +10 -2
- data/lib/ngrokapi/models/ssh_host_certificate.rb +7 -1
- data/lib/ngrokapi/models/ssh_user_certificate.rb +7 -1
- data/lib/ngrokapi/models/static_backend.rb +80 -0
- data/lib/ngrokapi/models/static_backend_tls.rb +31 -0
- data/lib/ngrokapi/models/tcp_edge.rb +15 -4
- data/lib/ngrokapi/models/tls_certificate.rb +7 -1
- data/lib/ngrokapi/models/tls_certificate_sa_ns.rb +2 -0
- data/lib/ngrokapi/models/tls_edge.rb +15 -4
- data/lib/ngrokapi/models/tunnel.rb +7 -1
- data/lib/ngrokapi/models/tunnel_group_backend.rb +7 -1
- data/lib/ngrokapi/models/tunnel_session.rb +7 -1
- data/lib/ngrokapi/models/user_agent.rb +41 -0
- data/lib/ngrokapi/models/weighted_backend.rb +7 -1
- data/lib/ngrokapi/paged_iterator.rb +44 -42
- data/lib/ngrokapi/services/abuse_reports_client.rb +2 -0
- data/lib/ngrokapi/services/agent_ingresses_client.rb +14 -4
- data/lib/ngrokapi/services/api_keys_client.rb +8 -2
- data/lib/ngrokapi/services/application_sessions_client.rb +141 -0
- data/lib/ngrokapi/services/application_users_client.rb +141 -0
- data/lib/ngrokapi/services/bot_users_client.rb +223 -0
- data/lib/ngrokapi/services/certificate_authorities_client.rb +2 -0
- data/lib/ngrokapi/services/credentials_client.rb +13 -7
- data/lib/ngrokapi/services/edge_route_backend_module_client.rb +2 -0
- data/lib/ngrokapi/services/edge_route_circuit_breaker_module_client.rb +2 -0
- data/lib/ngrokapi/services/edge_route_compression_module_client.rb +2 -0
- data/lib/ngrokapi/services/edge_route_ip_restriction_module_client.rb +2 -0
- data/lib/ngrokapi/services/edge_route_o_auth_module_client.rb +2 -0
- data/lib/ngrokapi/services/edge_route_oidc_module_client.rb +2 -0
- data/lib/ngrokapi/services/edge_route_policy_module_client.rb +120 -0
- data/lib/ngrokapi/services/edge_route_request_headers_module_client.rb +2 -0
- data/lib/ngrokapi/services/edge_route_response_headers_module_client.rb +2 -0
- data/lib/ngrokapi/services/edge_route_saml_module_client.rb +2 -0
- data/lib/ngrokapi/services/edge_route_user_agent_filter_module_client.rb +120 -0
- data/lib/ngrokapi/services/edge_route_webhook_verification_module_client.rb +2 -0
- data/lib/ngrokapi/services/edge_route_websocket_tcp_converter_module_client.rb +2 -0
- data/lib/ngrokapi/services/edges_https_client.rb +2 -0
- data/lib/ngrokapi/services/edges_https_routes_client.rb +22 -4
- data/lib/ngrokapi/services/edges_tcp_client.rb +14 -4
- data/lib/ngrokapi/services/edges_tls_client.rb +14 -4
- data/lib/ngrokapi/services/endpoints_client.rb +2 -0
- data/lib/ngrokapi/services/event_destinations_client.rb +4 -4
- data/lib/ngrokapi/services/event_sources_client.rb +2 -0
- data/lib/ngrokapi/services/event_subscriptions_client.rb +2 -0
- data/lib/ngrokapi/services/failover_backends_client.rb +2 -0
- data/lib/ngrokapi/services/http_response_backends_client.rb +2 -0
- data/lib/ngrokapi/services/https_edge_mutual_tls_module_client.rb +2 -0
- data/lib/ngrokapi/services/https_edge_tls_termination_module_client.rb +2 -0
- data/lib/ngrokapi/services/ip_policies_client.rb +2 -0
- data/lib/ngrokapi/services/ip_policy_rules_client.rb +4 -2
- data/lib/ngrokapi/services/ip_restrictions_client.rb +2 -0
- data/lib/ngrokapi/services/reserved_addrs_client.rb +2 -0
- data/lib/ngrokapi/services/reserved_domains_client.rb +12 -10
- data/lib/ngrokapi/services/ssh_certificate_authorities_client.rb +2 -0
- data/lib/ngrokapi/services/ssh_credentials_client.rb +12 -6
- data/lib/ngrokapi/services/ssh_host_certificates_client.rb +2 -0
- data/lib/ngrokapi/services/ssh_user_certificates_client.rb +6 -4
- data/lib/ngrokapi/services/static_backends_client.rb +242 -0
- data/lib/ngrokapi/services/tcp_edge_backend_module_client.rb +2 -0
- data/lib/ngrokapi/services/tcp_edge_ip_restriction_module_client.rb +2 -0
- data/lib/ngrokapi/services/tcp_edge_policy_module_client.rb +108 -0
- data/lib/ngrokapi/services/tls_certificates_client.rb +6 -4
- data/lib/ngrokapi/services/tls_edge_backend_module_client.rb +2 -0
- data/lib/ngrokapi/services/tls_edge_ip_restriction_module_client.rb +2 -0
- data/lib/ngrokapi/services/tls_edge_mutual_tls_module_client.rb +2 -0
- data/lib/ngrokapi/services/tls_edge_policy_module_client.rb +108 -0
- data/lib/ngrokapi/services/tls_edge_tls_termination_module_client.rb +2 -0
- data/lib/ngrokapi/services/tunnel_group_backends_client.rb +2 -0
- data/lib/ngrokapi/services/tunnel_sessions_client.rb +2 -0
- data/lib/ngrokapi/services/tunnels_client.rb +2 -0
- data/lib/ngrokapi/services/weighted_backends_client.rb +2 -0
- data/lib/ngrokapi/version.rb +9 -7
- data/lib/ngrokapi.rb +15 -13
- data/ngrok-api.gemspec +29 -27
- data/spec/ngrokapi/client_spec.rb +28 -6
- data/spec/ngrokapi/http_client_spec.rb +77 -75
- data/spec/ngrokapi/models/abuse_report_hostname_spec.rb +2 -0
- data/spec/ngrokapi/models/abuse_report_spec.rb +2 -0
- data/spec/ngrokapi/models/agent_ingress_cert_job_spec.rb +23 -0
- data/spec/ngrokapi/models/agent_ingress_cert_policy_spec.rb +23 -0
- data/spec/ngrokapi/models/agent_ingress_cert_status_spec.rb +23 -0
- data/spec/ngrokapi/models/agent_ingress_spec.rb +6 -1
- data/spec/ngrokapi/models/api_key_spec.rb +2 -0
- data/spec/ngrokapi/models/application_session_spec.rb +30 -0
- data/spec/ngrokapi/models/application_user_spec.rb +30 -0
- data/spec/ngrokapi/models/aws_auth_spec.rb +2 -0
- data/spec/ngrokapi/models/aws_credentials_spec.rb +2 -0
- data/spec/ngrokapi/models/aws_role_spec.rb +2 -0
- data/spec/ngrokapi/models/bot_user_spec.rb +44 -0
- data/spec/ngrokapi/models/browser_session_spec.rb +23 -0
- data/spec/ngrokapi/models/certificate_authority_spec.rb +2 -0
- data/spec/ngrokapi/models/credential_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_action_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_backend_mutate_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_backend_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_circuit_breaker_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_compression_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_ip_policy_mutate_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_ip_policy_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_mutual_tls_mutate_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_mutual_tls_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_o_auth_amazon_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_o_auth_facebook_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_o_auth_git_hub_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_o_auth_git_lab_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_o_auth_google_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_o_auth_linked_in_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_o_auth_microsoft_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_o_auth_provider_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_o_auth_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_o_auth_twitch_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_oidc_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_policy_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_request_headers_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_response_headers_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_rule_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_saml_mutate_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_saml_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_tls_termination_at_edge_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_tls_termination_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_user_agent_filter_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_webhook_validation_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_websocket_tcp_converter_spec.rb +2 -0
- data/spec/ngrokapi/models/event_destination_spec.rb +2 -0
- data/spec/ngrokapi/models/event_source_list_spec.rb +2 -0
- data/spec/ngrokapi/models/event_source_replace_spec.rb +2 -0
- data/spec/ngrokapi/models/event_source_spec.rb +2 -0
- data/spec/ngrokapi/models/event_subscription_spec.rb +2 -0
- data/spec/ngrokapi/models/event_target_cloudwatch_logs_spec.rb +2 -0
- data/spec/ngrokapi/models/event_target_datadog_spec.rb +23 -0
- data/spec/ngrokapi/models/event_target_firehose_spec.rb +2 -0
- data/spec/ngrokapi/models/event_target_kinesis_spec.rb +2 -0
- data/spec/ngrokapi/models/event_target_spec.rb +2 -0
- data/spec/ngrokapi/models/failover_backend_spec.rb +2 -0
- data/spec/ngrokapi/models/http_response_backend_spec.rb +2 -0
- data/spec/ngrokapi/models/https_edge_route_spec.rb +9 -1
- data/spec/ngrokapi/models/https_edge_spec.rb +2 -0
- data/spec/ngrokapi/models/identity_provider_spec.rb +23 -0
- data/spec/ngrokapi/models/ip_policy_rule_spec.rb +2 -0
- data/spec/ngrokapi/models/ip_policy_spec.rb +2 -0
- data/spec/ngrokapi/models/ip_restriction_spec.rb +2 -0
- data/spec/ngrokapi/models/listable_spec.rb +45 -43
- data/spec/ngrokapi/models/location_spec.rb +23 -0
- data/spec/ngrokapi/models/ref_spec.rb +2 -0
- data/spec/ngrokapi/models/reserved_addr_spec.rb +2 -0
- data/spec/ngrokapi/models/reserved_domain_cert_job_spec.rb +2 -0
- data/spec/ngrokapi/models/reserved_domain_cert_policy_spec.rb +2 -0
- data/spec/ngrokapi/models/reserved_domain_cert_status_spec.rb +2 -0
- data/spec/ngrokapi/models/reserved_domain_spec.rb +2 -0
- data/spec/ngrokapi/models/ssh_certificate_authority_spec.rb +2 -0
- data/spec/ngrokapi/models/ssh_credential_spec.rb +2 -0
- data/spec/ngrokapi/models/ssh_host_certificate_spec.rb +2 -0
- data/spec/ngrokapi/models/ssh_user_certificate_spec.rb +2 -0
- data/spec/ngrokapi/models/static_backend_spec.rb +50 -0
- data/spec/ngrokapi/models/static_backend_tls_spec.rb +23 -0
- data/spec/ngrokapi/models/tcp_edge_spec.rb +6 -1
- data/spec/ngrokapi/models/tls_certificate_sa_ns_spec.rb +2 -0
- data/spec/ngrokapi/models/tls_certificate_spec.rb +2 -0
- data/spec/ngrokapi/models/tls_edge_spec.rb +6 -1
- data/spec/ngrokapi/models/tunnel_group_backend_spec.rb +2 -0
- data/spec/ngrokapi/models/tunnel_session_spec.rb +2 -0
- data/spec/ngrokapi/models/tunnel_spec.rb +2 -0
- data/spec/ngrokapi/models/user_agent_spec.rb +23 -0
- data/spec/ngrokapi/models/weighted_backend_spec.rb +2 -0
- data/spec/ngrokapi/paged_iterator_spec.rb +86 -84
- data/spec/ngrokapi/services/abuse_reports_client_spec.rb +2 -0
- data/spec/ngrokapi/services/agent_ingresses_client_spec.rb +14 -4
- data/spec/ngrokapi/services/api_keys_client_spec.rb +10 -2
- data/spec/ngrokapi/services/application_sessions_client_spec.rb +100 -0
- data/spec/ngrokapi/services/application_users_client_spec.rb +100 -0
- data/spec/ngrokapi/services/bot_users_client_spec.rb +178 -0
- data/spec/ngrokapi/services/certificate_authorities_client_spec.rb +2 -0
- data/spec/ngrokapi/services/credentials_client_spec.rb +12 -2
- data/spec/ngrokapi/services/edge_route_backend_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/edge_route_circuit_breaker_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/edge_route_compression_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/edge_route_ip_restriction_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/edge_route_o_auth_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/edge_route_oidc_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/edge_route_policy_module_client_spec.rb +139 -0
- data/spec/ngrokapi/services/edge_route_request_headers_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/edge_route_response_headers_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/edge_route_saml_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/edge_route_user_agent_filter_module_client_spec.rb +139 -0
- data/spec/ngrokapi/services/edge_route_webhook_verification_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/edge_route_websocket_tcp_converter_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/edges_https_client_spec.rb +2 -0
- data/spec/ngrokapi/services/edges_https_routes_client_spec.rb +22 -4
- data/spec/ngrokapi/services/edges_tcp_client_spec.rb +14 -4
- data/spec/ngrokapi/services/edges_tls_client_spec.rb +14 -4
- data/spec/ngrokapi/services/endpoints_client_spec.rb +2 -0
- data/spec/ngrokapi/services/event_destinations_client_spec.rb +2 -0
- data/spec/ngrokapi/services/event_sources_client_spec.rb +2 -0
- data/spec/ngrokapi/services/event_subscriptions_client_spec.rb +2 -0
- data/spec/ngrokapi/services/failover_backends_client_spec.rb +2 -0
- data/spec/ngrokapi/services/http_response_backends_client_spec.rb +2 -0
- data/spec/ngrokapi/services/https_edge_mutual_tls_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/https_edge_tls_termination_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/ip_policies_client_spec.rb +2 -0
- data/spec/ngrokapi/services/ip_policy_rules_client_spec.rb +2 -0
- data/spec/ngrokapi/services/ip_restrictions_client_spec.rb +2 -0
- data/spec/ngrokapi/services/reserved_addrs_client_spec.rb +2 -0
- data/spec/ngrokapi/services/reserved_domains_client_spec.rb +10 -4
- data/spec/ngrokapi/services/ssh_certificate_authorities_client_spec.rb +2 -0
- data/spec/ngrokapi/services/ssh_credentials_client_spec.rb +10 -2
- data/spec/ngrokapi/services/ssh_host_certificates_client_spec.rb +2 -0
- data/spec/ngrokapi/services/ssh_user_certificates_client_spec.rb +2 -0
- data/spec/ngrokapi/services/static_backends_client_spec.rb +194 -0
- data/spec/ngrokapi/services/tcp_edge_backend_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/tcp_edge_ip_restriction_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/tcp_edge_policy_module_client_spec.rb +125 -0
- data/spec/ngrokapi/services/tls_certificates_client_spec.rb +2 -0
- data/spec/ngrokapi/services/tls_edge_backend_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/tls_edge_ip_restriction_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/tls_edge_mutual_tls_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/tls_edge_policy_module_client_spec.rb +125 -0
- data/spec/ngrokapi/services/tls_edge_tls_termination_module_client_spec.rb +2 -0
- data/spec/ngrokapi/services/tunnel_group_backends_client_spec.rb +2 -0
- data/spec/ngrokapi/services/tunnel_sessions_client_spec.rb +2 -0
- data/spec/ngrokapi/services/tunnels_client_spec.rb +2 -0
- data/spec/ngrokapi/services/weighted_backends_client_spec.rb +2 -0
- data/spec/spec_helper.rb +158 -2
- metadata +120 -2
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Code generated for API Clients. DO NOT EDIT.
|
4
|
+
|
3
5
|
module NgrokAPI
|
4
6
|
module Services
|
5
7
|
##
|
@@ -26,8 +28,8 @@ module NgrokAPI
|
|
26
28
|
# @param [string] ssh_certificate_authority_id the ssh certificate authority that is used to sign this ssh user certificate
|
27
29
|
# @param [string] public_key a public key in OpenSSH Authorized Keys format that this certificate signs
|
28
30
|
# @param [List<string>] principals the list of principals included in the ssh user certificate. This is the list of usernames that the certificate holder may sign in as on a machine authorizing the signing certificate authority. Dangerously, if no principals are specified, this certificate may be used to log in as any user.
|
29
|
-
# @param [Map<string, string>] critical_options A map of critical options included in the certificate. Only two critical options are currently defined by OpenSSH: ``force-command`` and ``source-address``. See `the OpenSSH certificate protocol spec
|
30
|
-
# @param [Map<string, string>] extensions A map of extensions included in the certificate. Extensions are additional metadata that can be interpreted by the SSH server for any purpose. These can be used to permit or deny the ability to open a terminal, do port forwarding, x11 forwarding, and more. If unspecified, the certificate will include limited permissions with the following extension map: ``{"permit-pty": "", "permit-user-rc": ""}`` OpenSSH understands a number of predefined extensions. See `the OpenSSH certificate protocol spec
|
31
|
+
# @param [Map<string, string>] critical_options A map of critical options included in the certificate. Only two critical options are currently defined by OpenSSH: ``force-command`` and ``source-address``. See `the OpenSSH certificate protocol spec <https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.certkeys>`_ for additional details.
|
32
|
+
# @param [Map<string, string>] extensions A map of extensions included in the certificate. Extensions are additional metadata that can be interpreted by the SSH server for any purpose. These can be used to permit or deny the ability to open a terminal, do port forwarding, x11 forwarding, and more. If unspecified, the certificate will include limited permissions with the following extension map: ``{"permit-pty": "", "permit-user-rc": ""}`` OpenSSH understands a number of predefined extensions. See `the OpenSSH certificate protocol spec <https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.certkeys>`_ for additional details.
|
31
33
|
# @param [datetime (RFC3339 string)] valid_after The time when the user certificate becomes valid, in RFC 3339 format. Defaults to the current time if unspecified.
|
32
34
|
# @param [datetime (RFC3339 string)] valid_until The time when this host certificate becomes invalid, in RFC 3339 format. If unspecified, a default value of 24 hours will be used. The OpenSSH certificates RFC calls this ``valid_before``.
|
33
35
|
# @param [string] description human-readable description of this SSH User Certificate. optional, max 255 bytes.
|
@@ -60,8 +62,8 @@ module NgrokAPI
|
|
60
62
|
# @param [string] ssh_certificate_authority_id the ssh certificate authority that is used to sign this ssh user certificate
|
61
63
|
# @param [string] public_key a public key in OpenSSH Authorized Keys format that this certificate signs
|
62
64
|
# @param [List<string>] principals the list of principals included in the ssh user certificate. This is the list of usernames that the certificate holder may sign in as on a machine authorizing the signing certificate authority. Dangerously, if no principals are specified, this certificate may be used to log in as any user.
|
63
|
-
# @param [Map<string, string>] critical_options A map of critical options included in the certificate. Only two critical options are currently defined by OpenSSH: ``force-command`` and ``source-address``. See `the OpenSSH certificate protocol spec
|
64
|
-
# @param [Map<string, string>] extensions A map of extensions included in the certificate. Extensions are additional metadata that can be interpreted by the SSH server for any purpose. These can be used to permit or deny the ability to open a terminal, do port forwarding, x11 forwarding, and more. If unspecified, the certificate will include limited permissions with the following extension map: ``{"permit-pty": "", "permit-user-rc": ""}`` OpenSSH understands a number of predefined extensions. See `the OpenSSH certificate protocol spec
|
65
|
+
# @param [Map<string, string>] critical_options A map of critical options included in the certificate. Only two critical options are currently defined by OpenSSH: ``force-command`` and ``source-address``. See `the OpenSSH certificate protocol spec <https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.certkeys>`_ for additional details.
|
66
|
+
# @param [Map<string, string>] extensions A map of extensions included in the certificate. Extensions are additional metadata that can be interpreted by the SSH server for any purpose. These can be used to permit or deny the ability to open a terminal, do port forwarding, x11 forwarding, and more. If unspecified, the certificate will include limited permissions with the following extension map: ``{"permit-pty": "", "permit-user-rc": ""}`` OpenSSH understands a number of predefined extensions. See `the OpenSSH certificate protocol spec <https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.certkeys>`_ for additional details.
|
65
67
|
# @param [datetime (RFC3339 string)] valid_after The time when the user certificate becomes valid, in RFC 3339 format. Defaults to the current time if unspecified.
|
66
68
|
# @param [datetime (RFC3339 string)] valid_until The time when this host certificate becomes invalid, in RFC 3339 format. If unspecified, a default value of 24 hours will be used. The OpenSSH certificates RFC calls this ``valid_before``.
|
67
69
|
# @param [string] description human-readable description of this SSH User Certificate. optional, max 255 bytes.
|
@@ -0,0 +1,242 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Code generated for API Clients. DO NOT EDIT.
|
4
|
+
|
5
|
+
module NgrokAPI
|
6
|
+
module Services
|
7
|
+
##
|
8
|
+
# A static backend sends traffic to a TCP address (hostname and port) that
|
9
|
+
# is reachable on the public internet.
|
10
|
+
#
|
11
|
+
# https://ngrok.com/docs/api#api-static-backends
|
12
|
+
class StaticBackendsClient
|
13
|
+
# The API path for the requests
|
14
|
+
PATH = '/backends/static'
|
15
|
+
# The List Property from the resulting API for list calls
|
16
|
+
LIST_PROPERTY = 'backends'
|
17
|
+
|
18
|
+
attr_reader :client
|
19
|
+
|
20
|
+
def initialize(client:)
|
21
|
+
@client = client
|
22
|
+
end
|
23
|
+
|
24
|
+
##
|
25
|
+
# Create a new static backend
|
26
|
+
#
|
27
|
+
# @param [string] description human-readable description of this backend. Optional
|
28
|
+
# @param [string] metadata arbitrary user-defined machine-readable data of this backend. Optional
|
29
|
+
# @param [string] address the address to forward to
|
30
|
+
# @param [StaticBackendTLS] tls tls configuration to use
|
31
|
+
# @return [NgrokAPI::Models::StaticBackend] result from the API request
|
32
|
+
#
|
33
|
+
# https://ngrok.com/docs/api#api-static-backends-create
|
34
|
+
def create(description: "", metadata: "", address: "", tls: nil)
|
35
|
+
path = '/backends/static'
|
36
|
+
replacements = {
|
37
|
+
}
|
38
|
+
data = {}
|
39
|
+
data[:description] = description if description
|
40
|
+
data[:metadata] = metadata if metadata
|
41
|
+
data[:address] = address if address
|
42
|
+
data[:tls] = tls if tls
|
43
|
+
result = @client.post(path % replacements, data: data)
|
44
|
+
NgrokAPI::Models::StaticBackend.new(client: self, attrs: result)
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# Create a new static backend
|
49
|
+
# Throws an exception if API error.
|
50
|
+
#
|
51
|
+
# @param [string] description human-readable description of this backend. Optional
|
52
|
+
# @param [string] metadata arbitrary user-defined machine-readable data of this backend. Optional
|
53
|
+
# @param [string] address the address to forward to
|
54
|
+
# @param [StaticBackendTLS] tls tls configuration to use
|
55
|
+
# @return [NgrokAPI::Models::StaticBackend] result from the API request
|
56
|
+
#
|
57
|
+
# https://ngrok.com/docs/api#api-static-backends-create
|
58
|
+
def create!(description: "", metadata: "", address: "", tls: nil)
|
59
|
+
path = '/backends/static'
|
60
|
+
replacements = {
|
61
|
+
}
|
62
|
+
data = {}
|
63
|
+
data[:description] = description if description
|
64
|
+
data[:metadata] = metadata if metadata
|
65
|
+
data[:address] = address if address
|
66
|
+
data[:tls] = tls if tls
|
67
|
+
result = @client.post(path % replacements, data: data, danger: true)
|
68
|
+
NgrokAPI::Models::StaticBackend.new(client: self, attrs: result)
|
69
|
+
end
|
70
|
+
|
71
|
+
##
|
72
|
+
# Delete a static backend by ID.
|
73
|
+
#
|
74
|
+
# @param [string] id a resource identifier
|
75
|
+
# @return [NgrokAPI::Models::Empty] result from the API request
|
76
|
+
#
|
77
|
+
# https://ngrok.com/docs/api#api-static-backends-delete
|
78
|
+
def delete(id: "")
|
79
|
+
path = '/backends/static/%{id}'
|
80
|
+
replacements = {
|
81
|
+
id: id,
|
82
|
+
}
|
83
|
+
@client.delete(path % replacements)
|
84
|
+
end
|
85
|
+
|
86
|
+
##
|
87
|
+
# Delete a static backend by ID.
|
88
|
+
# Throws an exception if API error.
|
89
|
+
#
|
90
|
+
# @param [string] id a resource identifier
|
91
|
+
# @return [NgrokAPI::Models::Empty] result from the API request
|
92
|
+
#
|
93
|
+
# https://ngrok.com/docs/api#api-static-backends-delete
|
94
|
+
def delete!(id: "")
|
95
|
+
path = '/backends/static/%{id}'
|
96
|
+
replacements = {
|
97
|
+
id: id,
|
98
|
+
}
|
99
|
+
@client.delete(path % replacements, danger: true)
|
100
|
+
end
|
101
|
+
|
102
|
+
##
|
103
|
+
# Get detailed information about a static backend by ID
|
104
|
+
#
|
105
|
+
# @param [string] id a resource identifier
|
106
|
+
# @return [NgrokAPI::Models::StaticBackend] result from the API request
|
107
|
+
#
|
108
|
+
# https://ngrok.com/docs/api#api-static-backends-get
|
109
|
+
def get(id: "")
|
110
|
+
path = '/backends/static/%{id}'
|
111
|
+
replacements = {
|
112
|
+
id: id,
|
113
|
+
}
|
114
|
+
data = {}
|
115
|
+
result = @client.get(path % replacements, data: data)
|
116
|
+
NgrokAPI::Models::StaticBackend.new(client: self, attrs: result)
|
117
|
+
end
|
118
|
+
|
119
|
+
##
|
120
|
+
# Get detailed information about a static backend by ID
|
121
|
+
# Throws an exception if API error.
|
122
|
+
#
|
123
|
+
# @param [string] id a resource identifier
|
124
|
+
# @return [NgrokAPI::Models::StaticBackend] result from the API request
|
125
|
+
#
|
126
|
+
# https://ngrok.com/docs/api#api-static-backends-get
|
127
|
+
def get!(id: "")
|
128
|
+
path = '/backends/static/%{id}'
|
129
|
+
replacements = {
|
130
|
+
id: id,
|
131
|
+
}
|
132
|
+
data = {}
|
133
|
+
result = @client.get(path % replacements, data: data, danger: true)
|
134
|
+
NgrokAPI::Models::StaticBackend.new(client: self, attrs: result)
|
135
|
+
end
|
136
|
+
|
137
|
+
##
|
138
|
+
# List all static backends on this account
|
139
|
+
#
|
140
|
+
# @param [string] before_id
|
141
|
+
# @param [string] limit
|
142
|
+
# @param [string] url optional and mutually exclusive from before_id and limit
|
143
|
+
# @return [NgrokAPI::Models::Listable] result from the API request
|
144
|
+
#
|
145
|
+
# https://ngrok.com/docs/api#api-static-backends-list
|
146
|
+
def list(before_id: nil, limit: nil, url: nil)
|
147
|
+
result = @client.list(
|
148
|
+
before_id: before_id,
|
149
|
+
limit: limit,
|
150
|
+
url: url,
|
151
|
+
path: PATH
|
152
|
+
)
|
153
|
+
|
154
|
+
NgrokAPI::Models::Listable.new(
|
155
|
+
client: self,
|
156
|
+
attrs: result,
|
157
|
+
list_property: LIST_PROPERTY,
|
158
|
+
klass: NgrokAPI::Models::StaticBackend
|
159
|
+
)
|
160
|
+
end
|
161
|
+
|
162
|
+
##
|
163
|
+
# List all static backends on this account
|
164
|
+
# Throws an exception if API error.
|
165
|
+
#
|
166
|
+
# @param [string] before_id
|
167
|
+
# @param [string] limit
|
168
|
+
# @param [string] url optional and mutually exclusive from before_id and limit
|
169
|
+
# @return [NgrokAPI::Models::Listable] result from the API request
|
170
|
+
#
|
171
|
+
# https://ngrok.com/docs/api#api-static-backends-list
|
172
|
+
def list!(before_id: nil, limit: nil, url: nil)
|
173
|
+
result = @client.list(
|
174
|
+
before_id: before_id,
|
175
|
+
limit: limit,
|
176
|
+
danger: true,
|
177
|
+
url: url,
|
178
|
+
path: PATH
|
179
|
+
)
|
180
|
+
|
181
|
+
NgrokAPI::Models::Listable.new(
|
182
|
+
client: self,
|
183
|
+
attrs: result,
|
184
|
+
list_property: LIST_PROPERTY,
|
185
|
+
klass: NgrokAPI::Models::StaticBackend,
|
186
|
+
danger: true
|
187
|
+
)
|
188
|
+
end
|
189
|
+
|
190
|
+
##
|
191
|
+
# Update static backend by ID
|
192
|
+
#
|
193
|
+
# @param [string] id
|
194
|
+
# @param [string] description human-readable description of this backend. Optional
|
195
|
+
# @param [string] metadata arbitrary user-defined machine-readable data of this backend. Optional
|
196
|
+
# @param [string] address the address to forward to
|
197
|
+
# @param [StaticBackendTLS] tls tls configuration to use
|
198
|
+
# @return [NgrokAPI::Models::StaticBackend] result from the API request
|
199
|
+
#
|
200
|
+
# https://ngrok.com/docs/api#api-static-backends-update
|
201
|
+
def update(id: "", description: nil, metadata: nil, address: "", tls: nil)
|
202
|
+
path = '/backends/static/%{id}'
|
203
|
+
replacements = {
|
204
|
+
id: id,
|
205
|
+
}
|
206
|
+
data = {}
|
207
|
+
data[:description] = description if description
|
208
|
+
data[:metadata] = metadata if metadata
|
209
|
+
data[:address] = address if address
|
210
|
+
data[:tls] = tls if tls
|
211
|
+
result = @client.patch(path % replacements, data: data)
|
212
|
+
NgrokAPI::Models::StaticBackend.new(client: self, attrs: result)
|
213
|
+
end
|
214
|
+
|
215
|
+
##
|
216
|
+
# Update static backend by ID
|
217
|
+
# Throws an exception if API error.
|
218
|
+
#
|
219
|
+
# @param [string] id
|
220
|
+
# @param [string] description human-readable description of this backend. Optional
|
221
|
+
# @param [string] metadata arbitrary user-defined machine-readable data of this backend. Optional
|
222
|
+
# @param [string] address the address to forward to
|
223
|
+
# @param [StaticBackendTLS] tls tls configuration to use
|
224
|
+
# @return [NgrokAPI::Models::StaticBackend] result from the API request
|
225
|
+
#
|
226
|
+
# https://ngrok.com/docs/api#api-static-backends-update
|
227
|
+
def update!(id: "", description: nil, metadata: nil, address: "", tls: nil)
|
228
|
+
path = '/backends/static/%{id}'
|
229
|
+
replacements = {
|
230
|
+
id: id,
|
231
|
+
}
|
232
|
+
data = {}
|
233
|
+
data[:description] = description if description
|
234
|
+
data[:metadata] = metadata if metadata
|
235
|
+
data[:address] = address if address
|
236
|
+
data[:tls] = tls if tls
|
237
|
+
result = @client.patch(path % replacements, data: data, danger: true)
|
238
|
+
NgrokAPI::Models::StaticBackend.new(client: self, attrs: result)
|
239
|
+
end
|
240
|
+
end
|
241
|
+
end
|
242
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Code generated for API Clients. DO NOT EDIT.
|
4
|
+
|
5
|
+
module NgrokAPI
|
6
|
+
module Services
|
7
|
+
##
|
8
|
+
# https://ngrok.com/docs/api#api-tcp-edge-policy-module
|
9
|
+
class TCPEdgePolicyModuleClient
|
10
|
+
# The API path for the requests
|
11
|
+
PATH = '/edges/tcp/%{id}/policy'
|
12
|
+
|
13
|
+
attr_reader :client
|
14
|
+
|
15
|
+
def initialize(client:)
|
16
|
+
@client = client
|
17
|
+
end
|
18
|
+
|
19
|
+
##
|
20
|
+
# @param [string] id
|
21
|
+
# @param [EndpointPolicy] a_module
|
22
|
+
# @return [NgrokAPI::Models::EndpointPolicy] result from the API request
|
23
|
+
#
|
24
|
+
# https://ngrok.com/docs/api#api-tcp-edge-policy-module-replace
|
25
|
+
def replace(id: "", a_module: nil)
|
26
|
+
path = '/edges/tcp/%{id}/policy'
|
27
|
+
replacements = {
|
28
|
+
id: id,
|
29
|
+
}
|
30
|
+
data = a_module
|
31
|
+
result = @client.put(path % replacements, data: data)
|
32
|
+
NgrokAPI::Models::EndpointPolicy.new(client: self, attrs: result)
|
33
|
+
end
|
34
|
+
|
35
|
+
##
|
36
|
+
# @param [string] id
|
37
|
+
# @param [EndpointPolicy] a_module
|
38
|
+
# @return [NgrokAPI::Models::EndpointPolicy] result from the API request
|
39
|
+
#
|
40
|
+
# https://ngrok.com/docs/api#api-tcp-edge-policy-module-replace
|
41
|
+
def replace!(id: "", a_module: nil)
|
42
|
+
path = '/edges/tcp/%{id}/policy'
|
43
|
+
replacements = {
|
44
|
+
id: id,
|
45
|
+
}
|
46
|
+
data = a_module
|
47
|
+
result = @client.put(path % replacements, data: data, danger: true)
|
48
|
+
NgrokAPI::Models::EndpointPolicy.new(client: self, attrs: result)
|
49
|
+
end
|
50
|
+
|
51
|
+
##
|
52
|
+
# @param [string] id a resource identifier
|
53
|
+
# @return [NgrokAPI::Models::EndpointPolicy] result from the API request
|
54
|
+
#
|
55
|
+
# https://ngrok.com/docs/api#api-tcp-edge-policy-module-get
|
56
|
+
def get(id: "")
|
57
|
+
path = '/edges/tcp/%{id}/policy'
|
58
|
+
replacements = {
|
59
|
+
id: id,
|
60
|
+
}
|
61
|
+
data = {}
|
62
|
+
result = @client.get(path % replacements, data: data)
|
63
|
+
NgrokAPI::Models::EndpointPolicy.new(client: self, attrs: result)
|
64
|
+
end
|
65
|
+
|
66
|
+
##
|
67
|
+
# @param [string] id a resource identifier
|
68
|
+
# @return [NgrokAPI::Models::EndpointPolicy] result from the API request
|
69
|
+
#
|
70
|
+
# https://ngrok.com/docs/api#api-tcp-edge-policy-module-get
|
71
|
+
def get!(id: "")
|
72
|
+
path = '/edges/tcp/%{id}/policy'
|
73
|
+
replacements = {
|
74
|
+
id: id,
|
75
|
+
}
|
76
|
+
data = {}
|
77
|
+
result = @client.get(path % replacements, data: data, danger: true)
|
78
|
+
NgrokAPI::Models::EndpointPolicy.new(client: self, attrs: result)
|
79
|
+
end
|
80
|
+
|
81
|
+
##
|
82
|
+
# @param [string] id a resource identifier
|
83
|
+
# @return [NgrokAPI::Models::Empty] result from the API request
|
84
|
+
#
|
85
|
+
# https://ngrok.com/docs/api#api-tcp-edge-policy-module-delete
|
86
|
+
def delete(id: "")
|
87
|
+
path = '/edges/tcp/%{id}/policy'
|
88
|
+
replacements = {
|
89
|
+
id: id,
|
90
|
+
}
|
91
|
+
@client.delete(path % replacements)
|
92
|
+
end
|
93
|
+
|
94
|
+
##
|
95
|
+
# @param [string] id a resource identifier
|
96
|
+
# @return [NgrokAPI::Models::Empty] result from the API request
|
97
|
+
#
|
98
|
+
# https://ngrok.com/docs/api#api-tcp-edge-policy-module-delete
|
99
|
+
def delete!(id: "")
|
100
|
+
path = '/edges/tcp/%{id}/policy'
|
101
|
+
replacements = {
|
102
|
+
id: id,
|
103
|
+
}
|
104
|
+
@client.delete(path % replacements, danger: true)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# Code generated for API Clients. DO NOT EDIT.
|
4
|
+
|
3
5
|
module NgrokAPI
|
4
6
|
module Services
|
5
7
|
##
|
@@ -27,8 +29,8 @@ module NgrokAPI
|
|
27
29
|
#
|
28
30
|
# @param [string] description human-readable description of this TLS certificate. optional, max 255 bytes.
|
29
31
|
# @param [string] metadata arbitrary user-defined machine-readable data of this TLS certificate. optional, max 4096 bytes.
|
30
|
-
# @param [string] certificate_pem chain of PEM-encoded certificates, leaf first. See `Certificate Bundles
|
31
|
-
# @param [string] private_key_pem private key for the TLS certificate, PEM-encoded. See `Private Keys
|
32
|
+
# @param [string] certificate_pem chain of PEM-encoded certificates, leaf first. See `Certificate Bundles <https://ngrok.com/docs/cloud-edge/endpoints#certificate-chains>`_.
|
33
|
+
# @param [string] private_key_pem private key for the TLS certificate, PEM-encoded. See `Private Keys <https://ngrok.com/docs/cloud-edge/endpoints#private-keys>`_.
|
32
34
|
# @return [NgrokAPI::Models::TLSCertificate] result from the API request
|
33
35
|
#
|
34
36
|
# https://ngrok.com/docs/api#api-tls-certificates-create
|
@@ -51,8 +53,8 @@ module NgrokAPI
|
|
51
53
|
#
|
52
54
|
# @param [string] description human-readable description of this TLS certificate. optional, max 255 bytes.
|
53
55
|
# @param [string] metadata arbitrary user-defined machine-readable data of this TLS certificate. optional, max 4096 bytes.
|
54
|
-
# @param [string] certificate_pem chain of PEM-encoded certificates, leaf first. See `Certificate Bundles
|
55
|
-
# @param [string] private_key_pem private key for the TLS certificate, PEM-encoded. See `Private Keys
|
56
|
+
# @param [string] certificate_pem chain of PEM-encoded certificates, leaf first. See `Certificate Bundles <https://ngrok.com/docs/cloud-edge/endpoints#certificate-chains>`_.
|
57
|
+
# @param [string] private_key_pem private key for the TLS certificate, PEM-encoded. See `Private Keys <https://ngrok.com/docs/cloud-edge/endpoints#private-keys>`_.
|
56
58
|
# @return [NgrokAPI::Models::TLSCertificate] result from the API request
|
57
59
|
#
|
58
60
|
# https://ngrok.com/docs/api#api-tls-certificates-create
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Code generated for API Clients. DO NOT EDIT.
|
4
|
+
|
5
|
+
module NgrokAPI
|
6
|
+
module Services
|
7
|
+
##
|
8
|
+
# https://ngrok.com/docs/api#api-tls-edge-policy-module
|
9
|
+
class TLSEdgePolicyModuleClient
|
10
|
+
# The API path for the requests
|
11
|
+
PATH = '/edges/tls/%{id}/policy'
|
12
|
+
|
13
|
+
attr_reader :client
|
14
|
+
|
15
|
+
def initialize(client:)
|
16
|
+
@client = client
|
17
|
+
end
|
18
|
+
|
19
|
+
##
|
20
|
+
# @param [string] id
|
21
|
+
# @param [EndpointPolicy] a_module
|
22
|
+
# @return [NgrokAPI::Models::EndpointPolicy] result from the API request
|
23
|
+
#
|
24
|
+
# https://ngrok.com/docs/api#api-tls-edge-policy-module-replace
|
25
|
+
def replace(id: "", a_module: nil)
|
26
|
+
path = '/edges/tls/%{id}/policy'
|
27
|
+
replacements = {
|
28
|
+
id: id,
|
29
|
+
}
|
30
|
+
data = a_module
|
31
|
+
result = @client.put(path % replacements, data: data)
|
32
|
+
NgrokAPI::Models::EndpointPolicy.new(client: self, attrs: result)
|
33
|
+
end
|
34
|
+
|
35
|
+
##
|
36
|
+
# @param [string] id
|
37
|
+
# @param [EndpointPolicy] a_module
|
38
|
+
# @return [NgrokAPI::Models::EndpointPolicy] result from the API request
|
39
|
+
#
|
40
|
+
# https://ngrok.com/docs/api#api-tls-edge-policy-module-replace
|
41
|
+
def replace!(id: "", a_module: nil)
|
42
|
+
path = '/edges/tls/%{id}/policy'
|
43
|
+
replacements = {
|
44
|
+
id: id,
|
45
|
+
}
|
46
|
+
data = a_module
|
47
|
+
result = @client.put(path % replacements, data: data, danger: true)
|
48
|
+
NgrokAPI::Models::EndpointPolicy.new(client: self, attrs: result)
|
49
|
+
end
|
50
|
+
|
51
|
+
##
|
52
|
+
# @param [string] id a resource identifier
|
53
|
+
# @return [NgrokAPI::Models::EndpointPolicy] result from the API request
|
54
|
+
#
|
55
|
+
# https://ngrok.com/docs/api#api-tls-edge-policy-module-get
|
56
|
+
def get(id: "")
|
57
|
+
path = '/edges/tls/%{id}/policy'
|
58
|
+
replacements = {
|
59
|
+
id: id,
|
60
|
+
}
|
61
|
+
data = {}
|
62
|
+
result = @client.get(path % replacements, data: data)
|
63
|
+
NgrokAPI::Models::EndpointPolicy.new(client: self, attrs: result)
|
64
|
+
end
|
65
|
+
|
66
|
+
##
|
67
|
+
# @param [string] id a resource identifier
|
68
|
+
# @return [NgrokAPI::Models::EndpointPolicy] result from the API request
|
69
|
+
#
|
70
|
+
# https://ngrok.com/docs/api#api-tls-edge-policy-module-get
|
71
|
+
def get!(id: "")
|
72
|
+
path = '/edges/tls/%{id}/policy'
|
73
|
+
replacements = {
|
74
|
+
id: id,
|
75
|
+
}
|
76
|
+
data = {}
|
77
|
+
result = @client.get(path % replacements, data: data, danger: true)
|
78
|
+
NgrokAPI::Models::EndpointPolicy.new(client: self, attrs: result)
|
79
|
+
end
|
80
|
+
|
81
|
+
##
|
82
|
+
# @param [string] id a resource identifier
|
83
|
+
# @return [NgrokAPI::Models::Empty] result from the API request
|
84
|
+
#
|
85
|
+
# https://ngrok.com/docs/api#api-tls-edge-policy-module-delete
|
86
|
+
def delete(id: "")
|
87
|
+
path = '/edges/tls/%{id}/policy'
|
88
|
+
replacements = {
|
89
|
+
id: id,
|
90
|
+
}
|
91
|
+
@client.delete(path % replacements)
|
92
|
+
end
|
93
|
+
|
94
|
+
##
|
95
|
+
# @param [string] id a resource identifier
|
96
|
+
# @return [NgrokAPI::Models::Empty] result from the API request
|
97
|
+
#
|
98
|
+
# https://ngrok.com/docs/api#api-tls-edge-policy-module-delete
|
99
|
+
def delete!(id: "")
|
100
|
+
path = '/edges/tls/%{id}/policy'
|
101
|
+
replacements = {
|
102
|
+
id: id,
|
103
|
+
}
|
104
|
+
@client.delete(path % replacements, danger: true)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
data/lib/ngrokapi/version.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
#
|
7
|
-
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
module NgrokAPI
|
4
|
+
# rubocop:disable Layout/SpaceAroundOperators
|
5
|
+
|
6
|
+
# The current version of the gem
|
7
|
+
VERSION="0.22.0".freeze
|
8
|
+
# rubocop:enable Layout/SpaceAroundOperators
|
9
|
+
end
|
data/lib/ngrokapi.rb
CHANGED
@@ -1,13 +1,15 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Code generated for API Clients. DO NOT EDIT.
|
4
|
+
|
5
|
+
require 'json'
|
6
|
+
require 'net/http'
|
7
|
+
|
8
|
+
Dir[File.join(__dir__, '**', '*.rb')].sort.each do |f|
|
9
|
+
require f
|
10
|
+
end
|
11
|
+
|
12
|
+
##
|
13
|
+
# The Module which contains the Ngrok API gem
|
14
|
+
module NgrokAPI
|
15
|
+
end
|