ngrok-api 0.15.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/doc/NgrokAPI/Client.html +325 -267
- data/doc/NgrokAPI/Error.html +3 -3
- data/doc/NgrokAPI/Errors/NotFoundError.html +3 -3
- data/doc/NgrokAPI/Errors.html +3 -3
- data/doc/NgrokAPI/HttpClient.html +30 -36
- data/doc/NgrokAPI/Models/APIKey.html +3 -3
- data/doc/NgrokAPI/Models/AWSAuth.html +3 -3
- data/doc/NgrokAPI/Models/AWSCredentials.html +3 -3
- data/doc/NgrokAPI/Models/AWSRole.html +3 -3
- data/doc/NgrokAPI/Models/AbuseReport.html +3 -3
- data/doc/NgrokAPI/Models/AbuseReportHostname.html +3 -3
- data/doc/NgrokAPI/Models/AgentIngress.html +1217 -0
- data/doc/NgrokAPI/Models/CertificateAuthority.html +3 -3
- data/doc/NgrokAPI/Models/Credential.html +3 -3
- data/doc/NgrokAPI/Models/Endpoint.html +1431 -0
- data/doc/NgrokAPI/Models/{EndpointLogging.html → EndpointBackend.html} +42 -42
- data/{docs/NgrokAPI/Models/EndpointLoggingMutate.html → doc/NgrokAPI/Models/EndpointBackendMutate.html} +42 -42
- data/doc/NgrokAPI/Models/EndpointCircuitBreaker.html +3 -3
- data/doc/NgrokAPI/Models/EndpointCompression.html +3 -3
- data/doc/NgrokAPI/Models/EndpointIPPolicy.html +3 -3
- data/doc/NgrokAPI/Models/EndpointIPPolicyMutate.html +3 -3
- data/doc/NgrokAPI/Models/EndpointMutualTLS.html +3 -3
- data/doc/NgrokAPI/Models/EndpointMutualTLSMutate.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuth.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthFacebook.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthGitHub.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthGoogle.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthMicrosoft.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthProvider.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOIDC.html +3 -3
- data/doc/NgrokAPI/Models/EndpointRequestHeaders.html +3 -3
- data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +3 -3
- data/doc/NgrokAPI/Models/EndpointSAML.html +3 -3
- data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +3 -3
- data/doc/NgrokAPI/Models/EndpointTLSTermination.html +3 -3
- data/doc/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +617 -0
- data/doc/NgrokAPI/Models/EndpointWebhookValidation.html +3 -3
- data/doc/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +543 -0
- data/doc/NgrokAPI/Models/EventDestination.html +7 -7
- data/doc/NgrokAPI/Models/EventSource.html +3 -3
- data/doc/NgrokAPI/Models/EventSourceList.html +3 -3
- data/doc/NgrokAPI/Models/EventSourceReplace.html +3 -3
- data/doc/NgrokAPI/Models/EventSubscription.html +3 -3
- data/doc/NgrokAPI/Models/EventTarget.html +3 -3
- data/doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html +3 -3
- data/doc/NgrokAPI/Models/EventTargetFirehose.html +3 -3
- data/doc/NgrokAPI/Models/EventTargetKinesis.html +3 -3
- data/doc/NgrokAPI/Models/FailoverBackend.html +1075 -0
- data/doc/NgrokAPI/Models/HTTPResponseBackend.html +1231 -0
- data/{docs/NgrokAPI/Models/EventStream.html → doc/NgrokAPI/Models/HTTPSEdge.html} +119 -119
- data/doc/NgrokAPI/Models/{EndpointConfiguration.html → HTTPSEdgeRoute.html} +203 -265
- data/doc/NgrokAPI/Models/IPPolicy.html +3 -3
- data/doc/NgrokAPI/Models/IPPolicyRule.html +97 -23
- data/doc/NgrokAPI/Models/IPRestriction.html +3 -3
- data/doc/NgrokAPI/Models/Listable.html +3 -3
- data/doc/NgrokAPI/Models/Ref.html +3 -3
- data/doc/NgrokAPI/Models/ReservedAddr.html +3 -3
- data/doc/NgrokAPI/Models/ReservedDomain.html +3 -3
- data/doc/NgrokAPI/Models/ReservedDomainCertJob.html +3 -3
- data/doc/NgrokAPI/Models/ReservedDomainCertPolicy.html +3 -3
- data/doc/NgrokAPI/Models/ReservedDomainCertStatus.html +3 -3
- data/doc/NgrokAPI/Models/SSHCertificateAuthority.html +3 -3
- data/doc/NgrokAPI/Models/SSHCredential.html +3 -3
- data/doc/NgrokAPI/Models/SSHHostCertificate.html +3 -3
- data/doc/NgrokAPI/Models/SSHUserCertificate.html +3 -3
- data/doc/NgrokAPI/Models/TCPEdge.html +1235 -0
- data/doc/NgrokAPI/Models/TLSCertificate.html +3 -3
- data/doc/NgrokAPI/Models/TLSCertificateSANs.html +3 -3
- data/doc/NgrokAPI/Models/TLSEdge.html +1395 -0
- data/doc/NgrokAPI/Models/Tunnel.html +314 -18
- data/doc/NgrokAPI/Models/TunnelGroupBackend.html +1149 -0
- data/doc/NgrokAPI/Models/TunnelSession.html +3 -3
- data/doc/NgrokAPI/Models/{IPWhitelistEntry.html → WeightedBackend.html} +80 -74
- data/doc/NgrokAPI/Models.html +5 -5
- data/doc/NgrokAPI/PagedIterator.html +3 -3
- data/doc/NgrokAPI/Services/APIKeysClient.html +99 -149
- data/doc/NgrokAPI/Services/AbuseReportsClient.html +19 -33
- data/doc/NgrokAPI/Services/{IPWhitelistClient.html → AgentIngressesClient.html} +209 -265
- data/doc/NgrokAPI/Services/CertificateAuthoritiesClient.html +104 -156
- data/doc/NgrokAPI/Services/CredentialsClient.html +108 -164
- data/doc/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +1153 -0
- data/{docs/NgrokAPI/Services/EndpointCircuitBreakerModuleClient.html → doc/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html} +177 -95
- data/doc/NgrokAPI/Services/{EndpointCompressionModuleClient.html → EdgeRouteCompressionModuleClient.html} +177 -95
- data/doc/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +1153 -0
- data/doc/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +1153 -0
- data/{docs/NgrokAPI/Services/EndpointOIDCModuleClient.html → doc/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html} +177 -95
- data/doc/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +1153 -0
- data/{docs/NgrokAPI/Services/EndpointResponseHeadersModuleClient.html → doc/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html} +177 -95
- data/{docs/NgrokAPI/Services/EndpointSAMLModuleClient.html → doc/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html} +177 -95
- data/doc/NgrokAPI/Services/{EndpointWebhookValidationModuleClient.html → EdgeRouteWebhookVerificationModuleClient.html} +177 -95
- data/doc/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +1153 -0
- data/doc/NgrokAPI/Services/{EventStreamsClient.html → EdgesHTTPSClient.html} +248 -353
- data/{docs/NgrokAPI/Services/EndpointConfigurationsClient.html → doc/NgrokAPI/Services/EdgesHTTPSRoutesClient.html} +461 -761
- data/doc/NgrokAPI/Services/EdgesTCPClient.html +1757 -0
- data/doc/NgrokAPI/Services/EdgesTLSClient.html +1847 -0
- data/doc/NgrokAPI/Services/EndpointsClient.html +907 -0
- data/doc/NgrokAPI/Services/EventDestinationsClient.html +119 -187
- data/doc/NgrokAPI/Services/EventSourcesClient.html +95 -157
- data/doc/NgrokAPI/Services/EventSubscriptionsClient.html +116 -178
- data/doc/NgrokAPI/Services/FailoverBackendsClient.html +1644 -0
- data/doc/NgrokAPI/Services/HTTPResponseBackendsClient.html +1744 -0
- data/doc/NgrokAPI/Services/{EndpointSAMLModuleClient.html → HTTPSEdgeMutualTLSModuleClient.html} +101 -129
- data/doc/NgrokAPI/Services/{EndpointRequestHeadersModuleClient.html → HTTPSEdgeTLSTerminationModuleClient.html} +101 -129
- data/doc/NgrokAPI/Services/IPPoliciesClient.html +114 -184
- data/doc/NgrokAPI/Services/IPPolicyRulesClient.html +126 -164
- data/doc/NgrokAPI/Services/IPRestrictionsClient.html +117 -181
- data/doc/NgrokAPI/Services/ReservedAddrsClient.html +117 -473
- data/doc/NgrokAPI/Services/ReservedDomainsClient.html +209 -899
- data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +110 -166
- data/doc/NgrokAPI/Services/SSHCredentialsClient.html +111 -169
- data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +111 -171
- data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +111 -175
- data/{docs/NgrokAPI/Services/EndpointLoggingModuleClient.html → doc/NgrokAPI/Services/TCPEdgeBackendModuleClient.html} +101 -129
- data/{docs/NgrokAPI/Services/EndpointIPPolicyModuleClient.html → doc/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html} +83 -111
- data/doc/NgrokAPI/Services/TLSCertificatesClient.html +107 -161
- data/doc/NgrokAPI/Services/{EndpointLoggingModuleClient.html → TLSEdgeBackendModuleClient.html} +101 -129
- data/doc/NgrokAPI/Services/{EndpointIPPolicyModuleClient.html → TLSEdgeIPRestrictionModuleClient.html} +83 -111
- data/{docs/NgrokAPI/Services/EndpointMutualTLSModuleClient.html → doc/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html} +83 -111
- data/{docs/NgrokAPI/Services/EndpointTLSTerminationModuleClient.html → doc/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html} +83 -111
- data/doc/NgrokAPI/Services/TunnelGroupBackendsClient.html +1644 -0
- data/doc/NgrokAPI/Services/TunnelSessionsClient.html +87 -135
- data/doc/NgrokAPI/Services/TunnelsClient.html +252 -26
- data/doc/NgrokAPI/Services/WeightedBackendsClient.html +1644 -0
- data/doc/NgrokAPI/Services.html +5 -5
- data/doc/NgrokAPI.html +4 -4
- data/doc/_index.html +253 -76
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +3 -3
- data/doc/frames.html +1 -1
- data/doc/index.html +3 -3
- data/doc/method_list.html +3559 -1583
- data/doc/top-level-namespace.html +3 -3
- data/docs/NgrokAPI/Client.html +325 -267
- data/docs/NgrokAPI/Error.html +3 -3
- data/docs/NgrokAPI/Errors/NotFoundError.html +3 -3
- data/docs/NgrokAPI/Errors.html +3 -3
- data/docs/NgrokAPI/HttpClient.html +30 -36
- data/docs/NgrokAPI/Models/APIKey.html +3 -3
- data/docs/NgrokAPI/Models/AWSAuth.html +3 -3
- data/docs/NgrokAPI/Models/AWSCredentials.html +3 -3
- data/docs/NgrokAPI/Models/AWSRole.html +3 -3
- data/docs/NgrokAPI/Models/AbuseReport.html +3 -3
- data/docs/NgrokAPI/Models/AbuseReportHostname.html +3 -3
- data/docs/NgrokAPI/Models/AgentIngress.html +1217 -0
- data/docs/NgrokAPI/Models/CertificateAuthority.html +3 -3
- data/docs/NgrokAPI/Models/Credential.html +3 -3
- data/docs/NgrokAPI/Models/Endpoint.html +1431 -0
- data/docs/NgrokAPI/Models/{EndpointLogging.html → EndpointBackend.html} +42 -42
- data/{doc/NgrokAPI/Models/EndpointLoggingMutate.html → docs/NgrokAPI/Models/EndpointBackendMutate.html} +42 -42
- data/docs/NgrokAPI/Models/EndpointCircuitBreaker.html +3 -3
- data/docs/NgrokAPI/Models/EndpointCompression.html +3 -3
- data/docs/NgrokAPI/Models/EndpointIPPolicy.html +3 -3
- data/docs/NgrokAPI/Models/EndpointIPPolicyMutate.html +3 -3
- data/docs/NgrokAPI/Models/EndpointMutualTLS.html +3 -3
- data/docs/NgrokAPI/Models/EndpointMutualTLSMutate.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuth.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthFacebook.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthGitHub.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthGoogle.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthMicrosoft.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthProvider.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOIDC.html +3 -3
- data/docs/NgrokAPI/Models/EndpointRequestHeaders.html +3 -3
- data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +3 -3
- data/docs/NgrokAPI/Models/EndpointSAML.html +3 -3
- data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +3 -3
- data/docs/NgrokAPI/Models/EndpointTLSTermination.html +3 -3
- data/docs/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +617 -0
- data/docs/NgrokAPI/Models/EndpointWebhookValidation.html +3 -3
- data/docs/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +543 -0
- data/docs/NgrokAPI/Models/EventDestination.html +7 -7
- data/docs/NgrokAPI/Models/EventSource.html +3 -3
- data/docs/NgrokAPI/Models/EventSourceList.html +3 -3
- data/docs/NgrokAPI/Models/EventSourceReplace.html +3 -3
- data/docs/NgrokAPI/Models/EventSubscription.html +3 -3
- data/docs/NgrokAPI/Models/EventTarget.html +3 -3
- data/docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html +3 -3
- data/docs/NgrokAPI/Models/EventTargetFirehose.html +3 -3
- data/docs/NgrokAPI/Models/EventTargetKinesis.html +3 -3
- data/docs/NgrokAPI/Models/FailoverBackend.html +1075 -0
- data/docs/NgrokAPI/Models/HTTPResponseBackend.html +1231 -0
- data/{doc/NgrokAPI/Models/EventStream.html → docs/NgrokAPI/Models/HTTPSEdge.html} +119 -119
- data/docs/NgrokAPI/Models/{EndpointConfiguration.html → HTTPSEdgeRoute.html} +203 -265
- data/docs/NgrokAPI/Models/IPPolicy.html +3 -3
- data/docs/NgrokAPI/Models/IPPolicyRule.html +97 -23
- data/docs/NgrokAPI/Models/IPRestriction.html +3 -3
- data/docs/NgrokAPI/Models/Listable.html +3 -3
- data/docs/NgrokAPI/Models/Ref.html +3 -3
- data/docs/NgrokAPI/Models/ReservedAddr.html +3 -3
- data/docs/NgrokAPI/Models/ReservedDomain.html +3 -3
- data/docs/NgrokAPI/Models/ReservedDomainCertJob.html +3 -3
- data/docs/NgrokAPI/Models/ReservedDomainCertPolicy.html +3 -3
- data/docs/NgrokAPI/Models/ReservedDomainCertStatus.html +3 -3
- data/docs/NgrokAPI/Models/SSHCertificateAuthority.html +3 -3
- data/docs/NgrokAPI/Models/SSHCredential.html +3 -3
- data/docs/NgrokAPI/Models/SSHHostCertificate.html +3 -3
- data/docs/NgrokAPI/Models/SSHUserCertificate.html +3 -3
- data/docs/NgrokAPI/Models/TCPEdge.html +1235 -0
- data/docs/NgrokAPI/Models/TLSCertificate.html +3 -3
- data/docs/NgrokAPI/Models/TLSCertificateSANs.html +3 -3
- data/docs/NgrokAPI/Models/TLSEdge.html +1395 -0
- data/docs/NgrokAPI/Models/Tunnel.html +314 -18
- data/docs/NgrokAPI/Models/TunnelGroupBackend.html +1149 -0
- data/docs/NgrokAPI/Models/TunnelSession.html +3 -3
- data/docs/NgrokAPI/Models/{IPWhitelistEntry.html → WeightedBackend.html} +80 -74
- data/docs/NgrokAPI/Models.html +5 -5
- data/docs/NgrokAPI/PagedIterator.html +3 -3
- data/docs/NgrokAPI/Services/APIKeysClient.html +99 -149
- data/docs/NgrokAPI/Services/AbuseReportsClient.html +19 -33
- data/docs/NgrokAPI/Services/{IPWhitelistClient.html → AgentIngressesClient.html} +209 -265
- data/docs/NgrokAPI/Services/CertificateAuthoritiesClient.html +104 -156
- data/docs/NgrokAPI/Services/CredentialsClient.html +108 -164
- data/docs/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +1153 -0
- data/{doc/NgrokAPI/Services/EndpointCircuitBreakerModuleClient.html → docs/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html} +177 -95
- data/docs/NgrokAPI/Services/{EndpointCompressionModuleClient.html → EdgeRouteCompressionModuleClient.html} +177 -95
- data/docs/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +1153 -0
- data/docs/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +1153 -0
- data/docs/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +1153 -0
- data/docs/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +1153 -0
- data/{doc/NgrokAPI/Services/EndpointResponseHeadersModuleClient.html → docs/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html} +177 -95
- data/docs/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +1153 -0
- data/docs/NgrokAPI/Services/{EndpointWebhookValidationModuleClient.html → EdgeRouteWebhookVerificationModuleClient.html} +177 -95
- data/docs/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +1153 -0
- data/docs/NgrokAPI/Services/{EventStreamsClient.html → EdgesHTTPSClient.html} +248 -353
- data/{doc/NgrokAPI/Services/EndpointConfigurationsClient.html → docs/NgrokAPI/Services/EdgesHTTPSRoutesClient.html} +461 -761
- data/docs/NgrokAPI/Services/EdgesTCPClient.html +1757 -0
- data/docs/NgrokAPI/Services/EdgesTLSClient.html +1847 -0
- data/docs/NgrokAPI/Services/EndpointsClient.html +907 -0
- data/docs/NgrokAPI/Services/EventDestinationsClient.html +119 -187
- data/docs/NgrokAPI/Services/EventSourcesClient.html +95 -157
- data/docs/NgrokAPI/Services/EventSubscriptionsClient.html +116 -178
- data/docs/NgrokAPI/Services/FailoverBackendsClient.html +1644 -0
- data/docs/NgrokAPI/Services/HTTPResponseBackendsClient.html +1744 -0
- data/{doc/NgrokAPI/Services/EndpointOIDCModuleClient.html → docs/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html} +101 -129
- data/docs/NgrokAPI/Services/{EndpointRequestHeadersModuleClient.html → HTTPSEdgeTLSTerminationModuleClient.html} +101 -129
- data/docs/NgrokAPI/Services/IPPoliciesClient.html +114 -184
- data/docs/NgrokAPI/Services/IPPolicyRulesClient.html +126 -164
- data/docs/NgrokAPI/Services/IPRestrictionsClient.html +117 -181
- data/docs/NgrokAPI/Services/ReservedAddrsClient.html +117 -473
- data/docs/NgrokAPI/Services/ReservedDomainsClient.html +209 -899
- data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +110 -166
- data/docs/NgrokAPI/Services/SSHCredentialsClient.html +111 -169
- data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +111 -171
- data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +111 -175
- data/{doc/NgrokAPI/Services/EndpointOAuthModuleClient.html → docs/NgrokAPI/Services/TCPEdgeBackendModuleClient.html} +101 -129
- data/docs/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +1043 -0
- data/docs/NgrokAPI/Services/TLSCertificatesClient.html +107 -161
- data/docs/NgrokAPI/Services/{EndpointOAuthModuleClient.html → TLSEdgeBackendModuleClient.html} +101 -129
- data/docs/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +1043 -0
- data/{doc/NgrokAPI/Services/EndpointMutualTLSModuleClient.html → docs/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html} +83 -111
- data/{doc/NgrokAPI/Services/EndpointTLSTerminationModuleClient.html → docs/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html} +83 -111
- data/docs/NgrokAPI/Services/TunnelGroupBackendsClient.html +1644 -0
- data/docs/NgrokAPI/Services/TunnelSessionsClient.html +87 -135
- data/docs/NgrokAPI/Services/TunnelsClient.html +252 -26
- data/docs/NgrokAPI/Services/WeightedBackendsClient.html +1644 -0
- data/docs/NgrokAPI/Services.html +5 -5
- data/docs/NgrokAPI.html +4 -4
- data/docs/_index.html +253 -76
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +3 -3
- data/docs/frames.html +1 -1
- data/docs/index.html +3 -3
- data/docs/method_list.html +3559 -1583
- data/docs/top-level-namespace.html +3 -3
- data/lib/ngrokapi/client.rb +52 -37
- data/lib/ngrokapi/http_client.rb +1 -4
- data/lib/ngrokapi/models/{ip_whitelist_entry.rb → agent_ingress.rb} +13 -9
- data/lib/ngrokapi/models/endpoint.rb +49 -0
- data/lib/ngrokapi/models/{endpoint_logging.rb → endpoint_backend.rb} +3 -3
- data/lib/ngrokapi/models/{endpoint_logging_mutate.rb → endpoint_backend_mutate.rb} +3 -3
- data/lib/ngrokapi/models/endpoint_tls_termination_at_edge.rb +27 -0
- data/lib/ngrokapi/models/endpoint_websocket_tcp_converter.rb +25 -0
- data/lib/ngrokapi/models/event_destination.rb +1 -2
- data/lib/ngrokapi/models/{event_stream.rb → failover_backend.rb} +15 -27
- data/lib/ngrokapi/models/http_response_backend.rb +71 -0
- data/lib/ngrokapi/models/https_edge.rb +80 -0
- data/lib/ngrokapi/models/{endpoint_configuration.rb → https_edge_route.rb} +56 -53
- data/lib/ngrokapi/models/ip_policy_rule.rb +3 -1
- data/lib/ngrokapi/models/tcp_edge.rb +78 -0
- data/lib/ngrokapi/models/tls_edge.rb +88 -0
- data/lib/ngrokapi/models/tunnel.rb +9 -1
- data/lib/ngrokapi/models/tunnel_group_backend.rb +67 -0
- data/lib/ngrokapi/models/weighted_backend.rb +65 -0
- data/lib/ngrokapi/services/abuse_reports_client.rb +3 -10
- data/lib/ngrokapi/services/agent_ingresses_client.rb +206 -0
- data/lib/ngrokapi/services/api_keys_client.rb +11 -36
- data/lib/ngrokapi/services/certificate_authorities_client.rb +11 -37
- data/lib/ngrokapi/services/credentials_client.rb +11 -39
- data/lib/ngrokapi/services/edge_route_backend_module_client.rb +120 -0
- data/lib/ngrokapi/services/{endpoint_circuit_breaker_module_client.rb → edge_route_circuit_breaker_module_client.rb} +37 -39
- data/lib/ngrokapi/services/{endpoint_compression_module_client.rb → edge_route_compression_module_client.rb} +37 -39
- data/lib/ngrokapi/services/edge_route_ip_restriction_module_client.rb +120 -0
- data/lib/ngrokapi/services/{endpoint_o_auth_module_client.rb → edge_route_o_auth_module_client.rb} +37 -39
- data/lib/ngrokapi/services/{endpoint_oidc_module_client.rb → edge_route_oidc_module_client.rb} +37 -39
- data/lib/ngrokapi/services/{endpoint_request_headers_module_client.rb → edge_route_request_headers_module_client.rb} +37 -39
- data/lib/ngrokapi/services/{endpoint_response_headers_module_client.rb → edge_route_response_headers_module_client.rb} +37 -39
- data/lib/ngrokapi/services/{endpoint_saml_module_client.rb → edge_route_saml_module_client.rb} +37 -39
- data/lib/ngrokapi/services/{endpoint_webhook_validation_module_client.rb → edge_route_webhook_verification_module_client.rb} +37 -39
- data/lib/ngrokapi/services/edge_route_websocket_tcp_converter_module_client.rb +120 -0
- data/lib/ngrokapi/services/edges_https_client.rb +227 -0
- data/lib/ngrokapi/services/edges_https_routes_client.rb +244 -0
- data/lib/ngrokapi/services/edges_tcp_client.rb +227 -0
- data/lib/ngrokapi/services/edges_tls_client.rb +239 -0
- data/lib/ngrokapi/services/endpoints_client.rb +114 -0
- data/lib/ngrokapi/services/event_destinations_client.rb +13 -49
- data/lib/ngrokapi/services/event_sources_client.rb +9 -40
- data/lib/ngrokapi/services/event_subscriptions_client.rb +14 -45
- data/lib/ngrokapi/services/failover_backends_client.rb +214 -0
- data/lib/ngrokapi/services/http_response_backends_client.rb +199 -0
- data/lib/ngrokapi/services/https_edge_mutual_tls_module_client.rb +108 -0
- data/lib/ngrokapi/services/https_edge_tls_termination_module_client.rb +108 -0
- data/lib/ngrokapi/services/ip_policies_client.rb +11 -39
- data/lib/ngrokapi/services/ip_policy_rules_client.rb +13 -40
- data/lib/ngrokapi/services/ip_restrictions_client.rb +12 -44
- data/lib/ngrokapi/services/reserved_addrs_client.rb +11 -81
- data/lib/ngrokapi/services/reserved_domains_client.rb +15 -144
- data/lib/ngrokapi/services/ssh_certificate_authorities_client.rb +11 -39
- data/lib/ngrokapi/services/ssh_credentials_client.rb +11 -40
- data/lib/ngrokapi/services/ssh_host_certificates_client.rb +11 -41
- data/lib/ngrokapi/services/ssh_user_certificates_client.rb +11 -43
- data/lib/ngrokapi/services/{endpoint_logging_module_client.rb → tcp_edge_backend_module_client.rb} +31 -45
- data/lib/ngrokapi/services/{endpoint_ip_policy_module_client.rb → tcp_edge_ip_restriction_module_client.rb} +21 -35
- data/lib/ngrokapi/services/tls_certificates_client.rb +11 -38
- data/lib/ngrokapi/services/tls_edge_backend_module_client.rb +108 -0
- data/lib/ngrokapi/services/tls_edge_ip_restriction_module_client.rb +108 -0
- data/lib/ngrokapi/services/{endpoint_mutual_tls_module_client.rb → tls_edge_mutual_tls_module_client.rb} +21 -35
- data/lib/ngrokapi/services/{endpoint_tls_termination_module_client.rb → tls_edge_tls_termination_module_client.rb} +21 -35
- data/lib/ngrokapi/services/{ip_whitelist_client.rb → tunnel_group_backends_client.rb} +70 -93
- data/lib/ngrokapi/services/tunnel_sessions_client.rb +12 -36
- data/lib/ngrokapi/services/tunnels_client.rb +39 -10
- data/lib/ngrokapi/services/weighted_backends_client.rb +214 -0
- data/lib/ngrokapi/version.rb +1 -1
- data/lib/ngrokapi.rb +1 -1
- data/ngrok-api.gemspec +1 -1
- data/spec/ngrokapi/client_spec.rb +50 -29
- data/spec/ngrokapi/models/agent_ingress_spec.rb +42 -0
- data/spec/ngrokapi/models/endpoint_backend_mutate_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_backend_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_tls_termination_at_edge_spec.rb +21 -0
- data/spec/ngrokapi/models/endpoint_websocket_tcp_converter_spec.rb +21 -0
- data/spec/ngrokapi/models/failover_backend_spec.rb +45 -0
- data/spec/ngrokapi/models/http_response_backend_spec.rb +51 -0
- data/spec/ngrokapi/models/https_edge_route_spec.rb +81 -0
- data/spec/ngrokapi/models/https_edge_spec.rb +51 -0
- data/spec/ngrokapi/models/tcp_edge_spec.rb +51 -0
- data/spec/ngrokapi/models/tls_edge_spec.rb +57 -0
- data/spec/ngrokapi/models/tunnel_group_backend_spec.rb +45 -0
- data/spec/ngrokapi/models/weighted_backend_spec.rb +45 -0
- data/spec/ngrokapi/services/{ip_whitelist_client_spec.rb → agent_ingresses_client_spec.rb} +49 -49
- data/spec/ngrokapi/services/edge_route_backend_module_client_spec.rb +139 -0
- data/spec/ngrokapi/services/{endpoint_circuit_breaker_module_client_spec.rb → edge_route_circuit_breaker_module_client_spec.rb} +31 -17
- data/spec/ngrokapi/services/{endpoint_compression_module_client_spec.rb → edge_route_compression_module_client_spec.rb} +31 -17
- data/spec/ngrokapi/services/edge_route_ip_restriction_module_client_spec.rb +139 -0
- data/spec/ngrokapi/services/{endpoint_o_auth_module_client_spec.rb → edge_route_o_auth_module_client_spec.rb} +31 -17
- data/spec/ngrokapi/services/{endpoint_oidc_module_client_spec.rb → edge_route_oidc_module_client_spec.rb} +31 -17
- data/spec/ngrokapi/services/{endpoint_request_headers_module_client_spec.rb → edge_route_request_headers_module_client_spec.rb} +31 -17
- data/spec/ngrokapi/services/{endpoint_response_headers_module_client_spec.rb → edge_route_response_headers_module_client_spec.rb} +31 -17
- data/spec/ngrokapi/services/{endpoint_saml_module_client_spec.rb → edge_route_saml_module_client_spec.rb} +31 -17
- data/spec/ngrokapi/services/{endpoint_webhook_validation_module_client_spec.rb → edge_route_webhook_verification_module_client_spec.rb} +31 -17
- data/spec/ngrokapi/services/edge_route_websocket_tcp_converter_module_client_spec.rb +139 -0
- data/spec/ngrokapi/services/{event_streams_client_spec.rb → edges_https_client_spec.rb} +106 -108
- data/spec/ngrokapi/services/edges_https_routes_client_spec.rb +241 -0
- data/spec/ngrokapi/services/edges_tcp_client_spec.rb +175 -0
- data/spec/ngrokapi/services/edges_tls_client_spec.rb +187 -0
- data/spec/ngrokapi/services/endpoints_client_spec.rb +57 -0
- data/spec/ngrokapi/services/failover_backends_client_spec.rb +163 -0
- data/spec/ngrokapi/services/http_response_backends_client_spec.rb +175 -0
- data/spec/ngrokapi/services/{endpoint_mutual_tls_module_client_spec.rb → https_edge_mutual_tls_module_client_spec.rb} +17 -17
- data/spec/ngrokapi/services/{endpoint_tls_termination_module_client_spec.rb → https_edge_tls_termination_module_client_spec.rb} +17 -17
- data/spec/ngrokapi/services/ip_policies_client_spec.rb +0 -1
- data/spec/ngrokapi/services/ip_policy_rules_client_spec.rb +3 -1
- data/spec/ngrokapi/services/reserved_addrs_client_spec.rb +0 -44
- data/spec/ngrokapi/services/reserved_domains_client_spec.rb +0 -88
- data/spec/ngrokapi/services/{endpoint_logging_module_client_spec.rb → tcp_edge_backend_module_client_spec.rb} +40 -40
- data/spec/ngrokapi/services/{endpoint_ip_policy_module_client_spec.rb → tcp_edge_ip_restriction_module_client_spec.rb} +17 -17
- data/spec/ngrokapi/services/tls_edge_backend_module_client_spec.rb +125 -0
- data/spec/ngrokapi/services/tls_edge_ip_restriction_module_client_spec.rb +125 -0
- data/spec/ngrokapi/services/tls_edge_mutual_tls_module_client_spec.rb +125 -0
- data/spec/ngrokapi/services/tls_edge_tls_termination_module_client_spec.rb +125 -0
- data/spec/ngrokapi/services/tunnel_group_backends_client_spec.rb +163 -0
- data/spec/ngrokapi/services/tunnels_client_spec.rb +36 -0
- data/spec/ngrokapi/services/weighted_backends_client_spec.rb +163 -0
- data/spec/spec_helper.rb +1389 -1045
- metadata +175 -83
- data/lib/ngrokapi/services/endpoint_configurations_client.rb +0 -357
- data/lib/ngrokapi/services/event_streams_client.rb +0 -259
- data/spec/ngrokapi/models/endpoint_configuration_spec.rb +0 -78
- data/spec/ngrokapi/models/endpoint_logging_mutate_spec.rb +0 -21
- data/spec/ngrokapi/models/endpoint_logging_spec.rb +0 -21
- data/spec/ngrokapi/models/event_stream_spec.rb +0 -51
- data/spec/ngrokapi/models/ip_whitelist_entry_spec.rb +0 -42
- data/spec/ngrokapi/services/endpoint_configurations_client_spec.rb +0 -237
data/spec/spec_helper.rb
CHANGED
@@ -1,1045 +1,1389 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "simplecov"
|
4
|
-
SimpleCov.start
|
5
|
-
require 'pry'
|
6
|
-
|
7
|
-
require 'webmock/rspec'
|
8
|
-
require './lib/ngrokapi'
|
9
|
-
|
10
|
-
Dir[File.expand_path(File.join(File.dirname(__FILE__), 'support', '**', '*.rb'))].each do |f|
|
11
|
-
require f
|
12
|
-
end
|
13
|
-
|
14
|
-
RSpec.configure do |config|
|
15
|
-
config.expect_with :rspec do |expectations|
|
16
|
-
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
17
|
-
end
|
18
|
-
|
19
|
-
config.mock_with :rspec do |mocks|
|
20
|
-
mocks.verify_partial_doubles = false
|
21
|
-
end
|
22
|
-
|
23
|
-
config.run_all_when_everything_filtered = true
|
24
|
-
|
25
|
-
config.disable_monkey_patching!
|
26
|
-
|
27
|
-
config.warnings = true
|
28
|
-
|
29
|
-
config.default_formatter = 'doc' if config.files_to_run.one?
|
30
|
-
|
31
|
-
config.profile_examples = 10
|
32
|
-
|
33
|
-
config.order = :random
|
34
|
-
|
35
|
-
Kernel.srand config.seed
|
36
|
-
end
|
37
|
-
|
38
|
-
RSpec::Matchers.define :use_ssl do
|
39
|
-
match(&:use_ssl?)
|
40
|
-
end
|
41
|
-
|
42
|
-
RSpec::Matchers.define :use_cert_store do |cert_store|
|
43
|
-
match do |connection|
|
44
|
-
connection.cert_store == cert_store
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
# Custom objects
|
49
|
-
# NOTE: we should programmatically create these at some point in the future.
|
50
|
-
def abuse_report_hostname_result
|
51
|
-
{
|
52
|
-
}
|
53
|
-
end
|
54
|
-
|
55
|
-
def abuse_report_result
|
56
|
-
{
|
57
|
-
}
|
58
|
-
end
|
59
|
-
|
60
|
-
def
|
61
|
-
{
|
62
|
-
"id" => "
|
63
|
-
"uri" => "https
|
64
|
-
"description" => "",
|
65
|
-
"metadata" => "",
|
66
|
-
"
|
67
|
-
"
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
"
|
74
|
-
|
75
|
-
|
76
|
-
"
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
"
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
"
|
114
|
-
"
|
115
|
-
"
|
116
|
-
"
|
117
|
-
"
|
118
|
-
"
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
"
|
127
|
-
"
|
128
|
-
"created_at" => "2021-
|
129
|
-
"
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
"
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
"
|
169
|
-
"
|
170
|
-
"
|
171
|
-
"
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
"
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
"
|
185
|
-
"
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
"
|
198
|
-
"
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
"
|
205
|
-
"
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
"
|
220
|
-
"
|
221
|
-
"
|
222
|
-
"
|
223
|
-
"
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
"
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
"
|
236
|
-
"
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
"
|
245
|
-
|
246
|
-
|
247
|
-
"
|
248
|
-
"
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
"
|
261
|
-
"
|
262
|
-
"
|
263
|
-
"
|
264
|
-
"
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
"
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
"
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
"
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
"
|
565
|
-
"
|
566
|
-
"
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
"
|
575
|
-
"
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
"
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
"
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
"
|
610
|
-
"
|
611
|
-
"
|
612
|
-
"
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
"
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
"
|
664
|
-
"
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
"
|
675
|
-
"
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
"
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
"
|
708
|
-
"
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
"
|
735
|
-
"
|
736
|
-
"
|
737
|
-
"
|
738
|
-
"
|
739
|
-
"
|
740
|
-
"
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
"
|
755
|
-
"
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
"
|
767
|
-
"
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
"
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
}
|
785
|
-
end
|
786
|
-
|
787
|
-
def
|
788
|
-
{
|
789
|
-
}
|
790
|
-
end
|
791
|
-
|
792
|
-
def
|
793
|
-
{
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
"
|
800
|
-
"
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
"
|
807
|
-
|
808
|
-
|
809
|
-
"
|
810
|
-
"
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
"
|
818
|
-
"
|
819
|
-
"
|
820
|
-
"
|
821
|
-
"
|
822
|
-
"
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
"
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
"uri" => "https://api.ngrok.com/
|
843
|
-
"
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
"
|
862
|
-
|
863
|
-
|
864
|
-
"
|
865
|
-
"
|
866
|
-
}
|
867
|
-
end
|
868
|
-
|
869
|
-
def
|
870
|
-
{
|
871
|
-
"
|
872
|
-
|
873
|
-
|
874
|
-
"
|
875
|
-
"
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
"
|
884
|
-
"
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
}
|
892
|
-
end
|
893
|
-
|
894
|
-
def
|
895
|
-
{
|
896
|
-
"
|
897
|
-
|
898
|
-
],
|
899
|
-
"uri" => "https://api.ngrok.com/
|
900
|
-
"next_page_uri" => nil,
|
901
|
-
}
|
902
|
-
end
|
903
|
-
|
904
|
-
def
|
905
|
-
{
|
906
|
-
"id" => "
|
907
|
-
"uri" => "https://api.ngrok.com/
|
908
|
-
"created_at" => "2021-04-21T23:
|
909
|
-
"description" => "",
|
910
|
-
"metadata" => "",
|
911
|
-
"
|
912
|
-
"
|
913
|
-
"
|
914
|
-
|
915
|
-
"
|
916
|
-
|
917
|
-
|
918
|
-
"
|
919
|
-
"
|
920
|
-
"
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
"
|
927
|
-
|
928
|
-
|
929
|
-
"
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
"
|
937
|
-
"
|
938
|
-
"
|
939
|
-
"
|
940
|
-
"
|
941
|
-
"
|
942
|
-
"
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
"
|
949
|
-
"
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
"
|
954
|
-
"
|
955
|
-
"
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
"
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
"
|
983
|
-
"
|
984
|
-
"
|
985
|
-
"
|
986
|
-
"
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
"
|
1001
|
-
"
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
"
|
1015
|
-
"
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
"
|
1022
|
-
"
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
"
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
"uri" => "https://api.ngrok.com/
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "simplecov"
|
4
|
+
SimpleCov.start
|
5
|
+
require 'pry'
|
6
|
+
|
7
|
+
require 'webmock/rspec'
|
8
|
+
require './lib/ngrokapi'
|
9
|
+
|
10
|
+
Dir[File.expand_path(File.join(File.dirname(__FILE__), 'support', '**', '*.rb'))].each do |f|
|
11
|
+
require f
|
12
|
+
end
|
13
|
+
|
14
|
+
RSpec.configure do |config|
|
15
|
+
config.expect_with :rspec do |expectations|
|
16
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
17
|
+
end
|
18
|
+
|
19
|
+
config.mock_with :rspec do |mocks|
|
20
|
+
mocks.verify_partial_doubles = false
|
21
|
+
end
|
22
|
+
|
23
|
+
config.run_all_when_everything_filtered = true
|
24
|
+
|
25
|
+
config.disable_monkey_patching!
|
26
|
+
|
27
|
+
config.warnings = true
|
28
|
+
|
29
|
+
config.default_formatter = 'doc' if config.files_to_run.one?
|
30
|
+
|
31
|
+
config.profile_examples = 10
|
32
|
+
|
33
|
+
config.order = :random
|
34
|
+
|
35
|
+
Kernel.srand config.seed
|
36
|
+
end
|
37
|
+
|
38
|
+
RSpec::Matchers.define :use_ssl do
|
39
|
+
match(&:use_ssl?)
|
40
|
+
end
|
41
|
+
|
42
|
+
RSpec::Matchers.define :use_cert_store do |cert_store|
|
43
|
+
match do |connection|
|
44
|
+
connection.cert_store == cert_store
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Custom objects
|
49
|
+
# NOTE: we should programmatically create these at some point in the future.
|
50
|
+
def abuse_report_hostname_result
|
51
|
+
{
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
def abuse_report_result
|
56
|
+
{
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
def agent_ingress_result
|
61
|
+
{
|
62
|
+
"id" => "agin_1zlnrHlibHAywyAvG5wk0rx5olk",
|
63
|
+
"uri" => "https=>//api.ngrok.com/agent_ingresses/agin_1zlnrHlibHAywyAvG5wk0rx5olk",
|
64
|
+
"description" => "acme devices",
|
65
|
+
"metadata" => "",
|
66
|
+
"domain" => "connect.acme.com",
|
67
|
+
"ns_targets" => [
|
68
|
+
"0.agin_1zlnrHlibHAywyAvG5wk0rx5olk.ns.ngrok.com",
|
69
|
+
"1.agin_1zlnrHlibHAywyAvG5wk0rx5olk.ns.ngrok.com",
|
70
|
+
"2.agin_1zlnrHlibHAywyAvG5wk0rx5olk.ns.ngrok.com",
|
71
|
+
"3.agin_1zlnrHlibHAywyAvG5wk0rx5olk.ns.ngrok.com",
|
72
|
+
],
|
73
|
+
"region_domains" => [
|
74
|
+
"tunnel.us.connect.acme.com",
|
75
|
+
],
|
76
|
+
"created_at" => "2021-10-20T12=>08=>58Z",
|
77
|
+
}
|
78
|
+
end
|
79
|
+
|
80
|
+
def agent_ingress_result2
|
81
|
+
{
|
82
|
+
"id" => "agin_1zlnrHlibHAywyAvG5wk0rx5olk",
|
83
|
+
"uri" => "https=>//api.ngrok.com/agent_ingresses/agin_1zlnrHlibHAywyAvG5wk0rx5olk",
|
84
|
+
"description" => "ACME Co. Device Ingress",
|
85
|
+
"metadata" => "{\"device_sku\"=> \"824JS4RZ1F8X\"}",
|
86
|
+
"domain" => "connect.acme.com",
|
87
|
+
"ns_targets" => [
|
88
|
+
"0.agin_1zlnrHlibHAywyAvG5wk0rx5olk.ns.ngrok.com",
|
89
|
+
"1.agin_1zlnrHlibHAywyAvG5wk0rx5olk.ns.ngrok.com",
|
90
|
+
"2.agin_1zlnrHlibHAywyAvG5wk0rx5olk.ns.ngrok.com",
|
91
|
+
"3.agin_1zlnrHlibHAywyAvG5wk0rx5olk.ns.ngrok.com",
|
92
|
+
],
|
93
|
+
"region_domains" => [
|
94
|
+
"tunnel.us.connect.acme.com",
|
95
|
+
],
|
96
|
+
"created_at" => "2021-10-20T12=>08=>58Z",
|
97
|
+
}
|
98
|
+
end
|
99
|
+
|
100
|
+
def agent_ingress_results
|
101
|
+
{
|
102
|
+
"ingresses" => [
|
103
|
+
agent_ingress_result,
|
104
|
+
agent_ingress_result2,
|
105
|
+
],
|
106
|
+
"uri" => "https://api.ngrok.com/agent_ingresses",
|
107
|
+
"next_page_uri" => nil,
|
108
|
+
}
|
109
|
+
end
|
110
|
+
|
111
|
+
def api_key_result
|
112
|
+
{
|
113
|
+
"id" => "ak_1xrq8h890dWRYiRdIHeZYCdlyT7",
|
114
|
+
"uri" => "https://api.ngrok.com/api_keys/ak_1xrq8h890dWRYiRdIHeZYCdlyT7",
|
115
|
+
"description" => "",
|
116
|
+
"metadata" => "",
|
117
|
+
"created_at" => "2021-09-08T17:49:56Z",
|
118
|
+
"token" => nil,
|
119
|
+
}
|
120
|
+
end
|
121
|
+
|
122
|
+
def api_key_result2
|
123
|
+
{
|
124
|
+
"id" => "ak_1xrqAsg8fMHBgD71MSbtr6a0pA2",
|
125
|
+
"uri" => "https://api.ngrok.com/api_keys/ak_1xrqAsg8fMHBgD71MSbtr6a0pA2",
|
126
|
+
"description" => "",
|
127
|
+
"metadata" => "",
|
128
|
+
"created_at" => "2021-09-08T17:50:14Z",
|
129
|
+
"token" => nil,
|
130
|
+
}
|
131
|
+
end
|
132
|
+
|
133
|
+
def api_key_results
|
134
|
+
{
|
135
|
+
"keys" => [
|
136
|
+
api_key_result,
|
137
|
+
api_key_result2,
|
138
|
+
],
|
139
|
+
"uri" => "https://api.ngrok.com/api_keys",
|
140
|
+
"next_page_uri" => nil,
|
141
|
+
}
|
142
|
+
end
|
143
|
+
|
144
|
+
def aws_auth_result
|
145
|
+
{
|
146
|
+
}
|
147
|
+
end
|
148
|
+
|
149
|
+
def aws_credentials_result
|
150
|
+
{
|
151
|
+
}
|
152
|
+
end
|
153
|
+
|
154
|
+
def aws_role_result
|
155
|
+
{
|
156
|
+
}
|
157
|
+
end
|
158
|
+
|
159
|
+
def certificate_authority_result
|
160
|
+
{
|
161
|
+
"id" => "ca_1rV5DZka5Q6SaX2NwY1rKVOVgA1",
|
162
|
+
"uri" => "https://api.ngrok.com/certificate_authorities/ca_1rV5DZka5Q6SaX2NwY1rKVOVgA1",
|
163
|
+
"created_at" => "2021-04-21T23:38:17Z",
|
164
|
+
"description" => "Device Connectivity Authority",
|
165
|
+
"metadata" => "",
|
166
|
+
"ca_pem" => "-----BEGIN CERTIFICATE-----\nMIIEAzCCAuugAwIBAgIUGN+Gv4BdJ17VoVXWrz9j51jcfYowDQYJKoZIhvcNAQEL\nBQAwgZAxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQH\nDA1TYW4gRnJhbmNpc2NvMRMwEQYDVQQKDApBQ01FLCBJbmMuMR4wHAYDVQQDDBVB\nQ01FIERldmljZSBBdXRob3JpdHkxHzAdBgkqhkiG9w0BCQEWEG9wc0BhY21lLmV4\nYW1wbGUwHhcNMjAwNTAxMTYyNTA5WhcNMjEwNTAxMTYyNTA5WjCBkDELMAkGA1UE\nBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExFjAUBgNVBAcMDVNhbiBGcmFuY2lz\nY28xEzARBgNVBAoMCkFDTUUsIEluYy4xHjAcBgNVBAMMFUFDTUUgRGV2aWNlIEF1\ndGhvcml0eTEfMB0GCSqGSIb3DQEJARYQb3BzQGFjbWUuZXhhbXBsZTCCASIwDQYJ\nKoZIhvcNAQEBBQADggEPADCCAQoCggEBAO8vxADdMmZANJ0aTAX6Jp50vCjFh2/d\nJLxn4ZAg0fFgkM+Zl+3gxGA7YUUKxIKet6rSeyKAjOX9AFA+idpv5mXnD+0nwPDr\nkwGe1MkYsaWYdMyUEoI9uEodS0LmHItAzV63ovkdagb3fqZqWcJCsoDa22WHt6GN\nT2d4xGD0gEMyDmwxey4XYSy63H1mvQRzhjC5wCzTGOefG76Io0whJka0mr3b6wEv\nSw0YqRF0/BEDlmWU/VWz7YEgWpb0rXaLqQKbZjyFo137X1otZK8vj9MVRWRvYmcF\nHgE+n0ifoCQ/DNVF1mkG6HGK3LREj9LGRBTN683Vqq2W+93B9yuTgr8CAwEAAaNT\nMFEwHQYDVR0OBBYEFLGXXIYFIpkRy4j0VsOdfgxgZpXzMB8GA1UdIwQYMBaAFLGX\nXIYFIpkRy4j0VsOdfgxgZpXzMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEL\nBQADggEBAFyO7ZWj9w6xzoBWu/XbIVwsQ3kE5k+wrRGyp2rh2v4msAEveCIZP5kT\nCSdr2vr+9HQYiKf1ftsp9tGTLXwrhz3ztC8jIqo4A0grw5B61J0lj+2grKNq1/CK\nxQcpkbnetzo4zsDqFRoN2VK40Ovo4b/IknFa38t06b4t8cYQIqUdkFHMSSIz3Mvx\nRIK6MZlilT8zkWhi9kfCJe/s3cVEAJixNkgO4XNo5VhhxFenyvAL2vDM27dWVtDG\nqL3MFZbcy0/74AJsJDSrflGUQxjrK3WI9PkpKp/xey54XJAbhF63z1VwkJwSwufv\nW9HgidfMN9icgxkScyWpB9KrZHcsLk4=\n-----END CERTIFICATE-----\n",
|
167
|
+
"subject_common_name" => "ACME Device Authority",
|
168
|
+
"not_before" => "2020-05-01T16:25:09Z",
|
169
|
+
"not_after" => "2021-05-01T16:25:09Z",
|
170
|
+
"key_usages" => [],
|
171
|
+
"extended_key_usages" => [],
|
172
|
+
}
|
173
|
+
end
|
174
|
+
|
175
|
+
def certificate_authority_result2
|
176
|
+
{
|
177
|
+
"id" => "ca_1rV5Dca4ELSBvqQv2YmoQp4s220",
|
178
|
+
"uri" => "https://api.ngrok.com/certificate_authorities/ca_1rV5Dca4ELSBvqQv2YmoQp4s220",
|
179
|
+
"created_at" => "2021-04-21T23:38:17Z",
|
180
|
+
"description" => "Internal Coprorates Services Authority",
|
181
|
+
"metadata" => "{\"internal_id\" => \"7d2caeee-cdc3-4b26-b2c2-b280b8287552\"}",
|
182
|
+
"ca_pem" => "-----BEGIN CERTIFICATE-----\nMIIEETCCAvmgAwIBAgIUU3N6lNzPqar4400cLQMcVHFl+mEwDQYJKoZIhvcNAQEL\nBQAwgZcxCzAJBgNVBAYTAkFVMQwwCgYDVQQIDANOU1cxDzANBgNVBAcMBlN5ZG5l\neTEZMBcGA1UECgwQRHJvcGJlYXIgUHR5IEx0ZDEkMCIGA1UEAwwbSW50cmFuZXQg\nU2VydmljZXMgQXV0aG9yaXR5MSgwJgYJKoZIhvcNAQkBFhlzZWN1cml0eUBkcm9w\nYmVhci5leGFtcGxlMB4XDTIwMDUwMTE2Mjc1OVoXDTIxMDUwMTE2Mjc1OVowgZcx\nCzAJBgNVBAYTAkFVMQwwCgYDVQQIDANOU1cxDzANBgNVBAcMBlN5ZG5leTEZMBcG\nA1UECgwQRHJvcGJlYXIgUHR5IEx0ZDEkMCIGA1UEAwwbSW50cmFuZXQgU2Vydmlj\nZXMgQXV0aG9yaXR5MSgwJgYJKoZIhvcNAQkBFhlzZWN1cml0eUBkcm9wYmVhci5l\neGFtcGxlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7y/EAN0yZkA0\nnRpMBfomnnS8KMWHb90kvGfhkCDR8WCQz5mX7eDEYDthRQrEgp63qtJ7IoCM5f0A\nUD6J2m/mZecP7SfA8OuTAZ7UyRixpZh0zJQSgj24Sh1LQuYci0DNXrei+R1qBvd+\npmpZwkKygNrbZYe3oY1PZ3jEYPSAQzIObDF7LhdhLLrcfWa9BHOGMLnALNMY558b\nvoijTCEmRrSavdvrAS9LDRipEXT8EQOWZZT9VbPtgSBalvStdoupAptmPIWjXftf\nWi1kry+P0xVFZG9iZwUeAT6fSJ+gJD8M1UXWaQbocYrctESP0sZEFM3rzdWqrZb7\n3cH3K5OCvwIDAQABo1MwUTAdBgNVHQ4EFgQUsZdchgUimRHLiPRWw51+DGBmlfMw\nHwYDVR0jBBgwFoAUsZdchgUimRHLiPRWw51+DGBmlfMwDwYDVR0TAQH/BAUwAwEB\n/zANBgkqhkiG9w0BAQsFAAOCAQEANk25tt8sSfn6Qu1bbhWRbjKgS5z+j9LqyCna\nv3fbSchMthaQR7w0vL69ayroeYdqDZkRMmHjuYKY4NyqyXkkaqVO63wEicCo55d9\npIKuPzc/7xwdRephosjGTQ4QaQ4OnrdpJZieI92m9ODexgsab84AYmwNpbGOI/tK\nnPsQr8x1RfLs2gbBwQ4MYVM3tQQbX0o+yve5nz/NCOq4vdG+eKON5u6VYMkOOg9F\nVyNY1iISQkpNk/AF6Vi9BGuDb5Hg0phEl1Q0ntCO7ZHAUHjy0ucqXZiXoXdXZcs3\n3zKKLUKva59EDBZ5TUucvXh8VemBtNc6hd1mX4Tq7lAreG9pjQ==\n-----END CERTIFICATE-----\n",
|
183
|
+
"subject_common_name" => "Intranet Services Authority",
|
184
|
+
"not_before" => "2020-05-01T16:27:59Z",
|
185
|
+
"not_after" => "2021-05-01T16:27:59Z",
|
186
|
+
"key_usages" => [],
|
187
|
+
"extended_key_usages" => [],
|
188
|
+
}
|
189
|
+
end
|
190
|
+
|
191
|
+
def certificate_authority_results
|
192
|
+
{
|
193
|
+
"certificate_authorities" => [
|
194
|
+
certificate_authority_result,
|
195
|
+
certificate_authority_result2,
|
196
|
+
],
|
197
|
+
"uri" => "https://api.ngrok.com/certificate_authorities",
|
198
|
+
"next_page_uri" => nil,
|
199
|
+
}
|
200
|
+
end
|
201
|
+
|
202
|
+
def credential_result
|
203
|
+
{
|
204
|
+
"id" => "cr_1rV53L5Cbhpz2SEyPaMuh3Fz4fN",
|
205
|
+
"uri" => "https://api.ngrok.com/credentials/cr_1rV53L5Cbhpz2SEyPaMuh3Fz4fN",
|
206
|
+
"created_at" => "2021-04-21T23:36:55Z",
|
207
|
+
"description" => "for device #132",
|
208
|
+
"metadata" => "",
|
209
|
+
"token" => nil,
|
210
|
+
"acl" => [
|
211
|
+
"bind:1.tcp.ngrok.io:20002",
|
212
|
+
"bind:132.devices.company.com",
|
213
|
+
],
|
214
|
+
}
|
215
|
+
end
|
216
|
+
|
217
|
+
def credential_result2
|
218
|
+
{
|
219
|
+
"id" => "cr_1rV53HesDPMw48BJyEO9Zlgz9dd",
|
220
|
+
"uri" => "https://api.ngrok.com/credentials/cr_1rV53HesDPMw48BJyEO9Zlgz9dd",
|
221
|
+
"created_at" => "2021-04-21T23:36:55Z",
|
222
|
+
"description" => "development cred for alan@example.com",
|
223
|
+
"metadata" => "",
|
224
|
+
"token" => nil,
|
225
|
+
"acl" => [],
|
226
|
+
}
|
227
|
+
end
|
228
|
+
|
229
|
+
def credential_results
|
230
|
+
{
|
231
|
+
"credentials" => [
|
232
|
+
credential_result,
|
233
|
+
credential_result2,
|
234
|
+
],
|
235
|
+
"uri" => "https //api.ngrok.com/credentials",
|
236
|
+
"next_page_uri" => nil,
|
237
|
+
}
|
238
|
+
end
|
239
|
+
|
240
|
+
def endpoint_result
|
241
|
+
{
|
242
|
+
"id" => "ep_123",
|
243
|
+
"region" => "us",
|
244
|
+
"created_at" => "2021-04-21T23:36:29Z",
|
245
|
+
"updated_at" => "2021-04-21T23:36:29Z",
|
246
|
+
"public_url" => "tls://1.tcp.ngrok.io:1234",
|
247
|
+
"proto" => "tcp",
|
248
|
+
"hostport" => "1.tcp.ngrok.io:1234",
|
249
|
+
"type" => "ephemeral",
|
250
|
+
"metadata" => "tunnel metadata",
|
251
|
+
"domain" => nil,
|
252
|
+
"tcp_addr" => { "id": "ra_1024", "uri": "foo" },
|
253
|
+
"tunnel" => { "id": "tun_1024", "uri": "foo" },
|
254
|
+
"edge" => nil,
|
255
|
+
}
|
256
|
+
end
|
257
|
+
|
258
|
+
def endpoint_result2
|
259
|
+
{
|
260
|
+
"id" => "ep_456",
|
261
|
+
"region" => "sa",
|
262
|
+
"created_at" => "2021-04-21T23:36:29Z",
|
263
|
+
"updated_at" => "2021-04-21T23:36:29Z",
|
264
|
+
"public_url" => "https://bugcat.ngrok.io",
|
265
|
+
"proto" => "https",
|
266
|
+
"hostport" => "bugcat.ngrok.io:443",
|
267
|
+
"type" => "persistent",
|
268
|
+
"metadata" => "edge metadata",
|
269
|
+
"domain" => { "id": "rd_2408", "uri": "quux" },
|
270
|
+
"tcp_addr" => nil,
|
271
|
+
"tunnel" => nil,
|
272
|
+
"edge" => { "id": "edghts_555", "uri": "bar" },
|
273
|
+
}
|
274
|
+
end
|
275
|
+
|
276
|
+
def endpoint_results
|
277
|
+
{
|
278
|
+
"endpoints" => [
|
279
|
+
endpoint_result,
|
280
|
+
endpoint_result2,
|
281
|
+
],
|
282
|
+
"uri" => "https://api.ngrok.com/endpoints",
|
283
|
+
"next_page_uri" => nil,
|
284
|
+
}
|
285
|
+
end
|
286
|
+
|
287
|
+
def endpoint_compression_result
|
288
|
+
{
|
289
|
+
}
|
290
|
+
end
|
291
|
+
|
292
|
+
def endpoint_configuration_result
|
293
|
+
{
|
294
|
+
"id" => "ec_1rV504F3NJD5F9CSDUeWRkld2SB",
|
295
|
+
"type" => "https",
|
296
|
+
"description" => "app servers",
|
297
|
+
"metadata" => "",
|
298
|
+
"created_at" => "2021-04-21T23:36:29Z",
|
299
|
+
"uri" => "https://api.ngrok.com/endpoint_configurations/ec_1rV504F3NJD5F9CSDUeWRkld2SB",
|
300
|
+
"basic_auth" => nil,
|
301
|
+
"circuit_breaker" => nil,
|
302
|
+
"compression" => nil,
|
303
|
+
"request_headers" => {
|
304
|
+
"enabled" => true,
|
305
|
+
"add" => {
|
306
|
+
"x-frontend" => "ngrok",
|
307
|
+
},
|
308
|
+
"remove" => [
|
309
|
+
"cache-control",
|
310
|
+
],
|
311
|
+
},
|
312
|
+
"response_headers" => nil,
|
313
|
+
"ip_policy" => nil,
|
314
|
+
"mutual_tls" => nil,
|
315
|
+
"tls_termination" => nil,
|
316
|
+
"webhook_validation" => nil,
|
317
|
+
"oauth" => nil,
|
318
|
+
"logging" => nil,
|
319
|
+
"saml" => nil,
|
320
|
+
"oidc" => nil,
|
321
|
+
"backend" => nil,
|
322
|
+
}
|
323
|
+
end
|
324
|
+
|
325
|
+
def endpoint_configuration_result2
|
326
|
+
{
|
327
|
+
"id" => "ec_1rV4zxf7pC5PFpXAcL2A9VLLeGF",
|
328
|
+
"type" => "https",
|
329
|
+
"description" => "web servers",
|
330
|
+
"metadata" => "",
|
331
|
+
"created_at" => "2021-04-21T23:36:29Z",
|
332
|
+
"uri" => "https://api.ngrok.com/endpoint_configurations/ec_1rV4zxf7pC5PFpXAcL2A9VLLeGF",
|
333
|
+
"basic_auth" => nil,
|
334
|
+
"circuit_breaker" => {
|
335
|
+
"enabled" => true,
|
336
|
+
"tripped_duration" => 0,
|
337
|
+
"rolling_window" => 0,
|
338
|
+
"num_buckets" => 0,
|
339
|
+
"volume_threshold" => 0,
|
340
|
+
"error_threshold_percentage" => 0.2,
|
341
|
+
},
|
342
|
+
"compression" => {
|
343
|
+
"enabled" => true,
|
344
|
+
},
|
345
|
+
"request_headers" => nil,
|
346
|
+
"response_headers" => {
|
347
|
+
"enabled" => true,
|
348
|
+
"add" => {
|
349
|
+
"content-security-policy" => "script-src 'self'",
|
350
|
+
"x-frame-options" => "DENY",
|
351
|
+
},
|
352
|
+
"remove" => [],
|
353
|
+
},
|
354
|
+
"ip_policy" => nil,
|
355
|
+
"mutual_tls" => nil,
|
356
|
+
"tls_termination" => nil,
|
357
|
+
"webhook_validation" => nil,
|
358
|
+
"oauth" => nil,
|
359
|
+
"logging" => nil,
|
360
|
+
"saml" => nil,
|
361
|
+
"oidc" => nil,
|
362
|
+
"backend" => nil,
|
363
|
+
}
|
364
|
+
end
|
365
|
+
|
366
|
+
def endpoint_configuration_results
|
367
|
+
{
|
368
|
+
"endpoint_configurations" => [
|
369
|
+
endpoint_configuration_result,
|
370
|
+
endpoint_configuration_result2,
|
371
|
+
],
|
372
|
+
"uri" => "https://api.ngrok.com/endpoint_configurations",
|
373
|
+
"next_page_uri" => nil,
|
374
|
+
}
|
375
|
+
end
|
376
|
+
|
377
|
+
def endpoint_circuit_breaker_result
|
378
|
+
{
|
379
|
+
}
|
380
|
+
end
|
381
|
+
|
382
|
+
def endpoint_ip_policy_result
|
383
|
+
{
|
384
|
+
}
|
385
|
+
end
|
386
|
+
|
387
|
+
def endpoint_ip_policy_mutate_result
|
388
|
+
{
|
389
|
+
}
|
390
|
+
end
|
391
|
+
|
392
|
+
def endpoint_logging_result
|
393
|
+
{
|
394
|
+
}
|
395
|
+
end
|
396
|
+
|
397
|
+
def endpoint_logging_mutate_result
|
398
|
+
{
|
399
|
+
}
|
400
|
+
end
|
401
|
+
|
402
|
+
def endpoint_mutual_tls_result
|
403
|
+
{
|
404
|
+
}
|
405
|
+
end
|
406
|
+
|
407
|
+
def endpoint_mutual_tls_mutate_result
|
408
|
+
{
|
409
|
+
}
|
410
|
+
end
|
411
|
+
|
412
|
+
def endpoint_o_auth_facebook_result
|
413
|
+
{
|
414
|
+
}
|
415
|
+
end
|
416
|
+
|
417
|
+
def endpoint_o_auth_git_hub_result
|
418
|
+
{
|
419
|
+
}
|
420
|
+
end
|
421
|
+
|
422
|
+
def endpoint_o_auth_google_result
|
423
|
+
{
|
424
|
+
}
|
425
|
+
end
|
426
|
+
|
427
|
+
def endpoint_o_auth_microsoft_result
|
428
|
+
{
|
429
|
+
}
|
430
|
+
end
|
431
|
+
|
432
|
+
def endpoint_o_auth_provider_result
|
433
|
+
{
|
434
|
+
}
|
435
|
+
end
|
436
|
+
|
437
|
+
def endpoint_o_auth_result
|
438
|
+
{
|
439
|
+
}
|
440
|
+
end
|
441
|
+
|
442
|
+
def endpoint_oidc_result
|
443
|
+
{
|
444
|
+
}
|
445
|
+
end
|
446
|
+
|
447
|
+
def endpoint_request_headers_result
|
448
|
+
{
|
449
|
+
}
|
450
|
+
end
|
451
|
+
|
452
|
+
def endpoint_response_headers_result
|
453
|
+
{
|
454
|
+
}
|
455
|
+
end
|
456
|
+
|
457
|
+
def endpoint_saml_result
|
458
|
+
{
|
459
|
+
}
|
460
|
+
end
|
461
|
+
|
462
|
+
def endpoint_saml_mutate_result
|
463
|
+
{
|
464
|
+
}
|
465
|
+
end
|
466
|
+
|
467
|
+
def endpoint_tls_termination_result
|
468
|
+
{
|
469
|
+
}
|
470
|
+
end
|
471
|
+
|
472
|
+
def endpoint_webhook_validation_result
|
473
|
+
{
|
474
|
+
}
|
475
|
+
end
|
476
|
+
|
477
|
+
def event_destination_result
|
478
|
+
{
|
479
|
+
"id" => "ed_1ro7YLHYTloEfaH6LDcX2A3z18Q",
|
480
|
+
"metadata" => "",
|
481
|
+
"created_at" => "2021-04-28T17:23:54Z",
|
482
|
+
"description" => "",
|
483
|
+
"format" => "json",
|
484
|
+
"target" => {
|
485
|
+
"firehose" => nil,
|
486
|
+
"kinesis" => {
|
487
|
+
"auth" => {
|
488
|
+
"role" => nil,
|
489
|
+
"creds" => {
|
490
|
+
"aws_access_key_id" => "AKIAIOSFODNN7EXAMPLE",
|
491
|
+
"aws_secret_access_key" => nil,
|
492
|
+
},
|
493
|
+
},
|
494
|
+
"stream_arn" => "arn:ngrok-local:kinesis:us-east-2:123456789012:stream/mystream",
|
495
|
+
},
|
496
|
+
"cloudwatch_logs" => nil,
|
497
|
+
},
|
498
|
+
"uri" => "https://api.ngrok.com/event_destinations/ed_1ro7YLHYTloEfaH6LDcX2A3z18Q",
|
499
|
+
}
|
500
|
+
end
|
501
|
+
|
502
|
+
def event_destination_result2
|
503
|
+
{
|
504
|
+
"id" => "ed_1ro7aZHBLfa4vYAeRpweVomDSJa",
|
505
|
+
"metadata" => "{\"environment\" =>\"dev\"}",
|
506
|
+
"created_at" => "2021-04-28T17:24:12Z",
|
507
|
+
"description" => "kinesis dev stream",
|
508
|
+
"format" => "json",
|
509
|
+
"target" => {
|
510
|
+
"firehose" => nil,
|
511
|
+
"kinesis" => {
|
512
|
+
"auth" => {
|
513
|
+
"role" => {
|
514
|
+
"role_arn" => "arn:aws:iam::123456789012:role/example",
|
515
|
+
},
|
516
|
+
"creds" => nil,
|
517
|
+
},
|
518
|
+
"stream_arn" => "arn:ngrok-local:kinesis:us-east-2:123456789012:stream/mystream2",
|
519
|
+
},
|
520
|
+
"cloudwatch_logs" => nil,
|
521
|
+
},
|
522
|
+
"uri" => "https://api.ngrok.com/event_destinations/ed_1ro7aZHBLfa4vYAeRpweVomDSJa",
|
523
|
+
}
|
524
|
+
end
|
525
|
+
|
526
|
+
def event_destination_results
|
527
|
+
{
|
528
|
+
"event_destinations" => [
|
529
|
+
event_destination_result,
|
530
|
+
event_destination_result2,
|
531
|
+
],
|
532
|
+
"uri" => "https://api.ngrok.com/event_destinations",
|
533
|
+
"next_page_uri" => nil,
|
534
|
+
}
|
535
|
+
end
|
536
|
+
|
537
|
+
def event_source_replace_result
|
538
|
+
{
|
539
|
+
}
|
540
|
+
end
|
541
|
+
|
542
|
+
def event_stream_result
|
543
|
+
{
|
544
|
+
"id" => "es_1ro7aBEJQkcfUBNX1r3IBSqjDU8",
|
545
|
+
"uri" => "https://api.ngrok.com/event_streams/es_1ro7aBEJQkcfUBNX1r3IBSqjDU8",
|
546
|
+
"created_at" => "2021-04-28T17:24:09Z",
|
547
|
+
"metadata" => "{\"environment\" => \"staging\"}",
|
548
|
+
"description" => "low sampling, basic HTTP logs",
|
549
|
+
"fields" => [
|
550
|
+
"http.request.method",
|
551
|
+
"http.response.status_code",
|
552
|
+
"conn.client_ip",
|
553
|
+
],
|
554
|
+
"event_type" => "http_request_complete",
|
555
|
+
"destination_ids" => [
|
556
|
+
"ed_1ro7aG1J2tGT6neX0PHJLTuzQ9E",
|
557
|
+
],
|
558
|
+
"sampling_rate" => 0.1,
|
559
|
+
}
|
560
|
+
end
|
561
|
+
|
562
|
+
def event_stream_result2
|
563
|
+
{
|
564
|
+
"id" => "es_1ro7YJvY0atyuqOjbLMsZfe928o",
|
565
|
+
"uri" => "https://api.ngrok.com/event_streams/es_1ro7YJvY0atyuqOjbLMsZfe928o",
|
566
|
+
"created_at" => "2021-04-28T17:23:54Z",
|
567
|
+
"metadata" => "",
|
568
|
+
"description" => "",
|
569
|
+
"fields" => [
|
570
|
+
"http.request.method",
|
571
|
+
"http.response.status_code",
|
572
|
+
"conn.client_ip",
|
573
|
+
],
|
574
|
+
"event_type" => "http_request_complete",
|
575
|
+
"destination_ids" => [
|
576
|
+
"ed_1ro7YLHYTloEfaH6LDcX2A3z18Q",
|
577
|
+
],
|
578
|
+
"sampling_rate" => 0.1,
|
579
|
+
}
|
580
|
+
end
|
581
|
+
|
582
|
+
def event_stream_results
|
583
|
+
{
|
584
|
+
"event_streams" => [
|
585
|
+
event_stream_result,
|
586
|
+
event_stream_result2,
|
587
|
+
],
|
588
|
+
"uri" => "https://api.ngrok.com/event_streams",
|
589
|
+
"next_page_uri" => nil,
|
590
|
+
}
|
591
|
+
end
|
592
|
+
|
593
|
+
def event_source_result
|
594
|
+
{
|
595
|
+
}
|
596
|
+
end
|
597
|
+
|
598
|
+
def event_source_list_result
|
599
|
+
{
|
600
|
+
"sources" => [],
|
601
|
+
"uri" => "https://api.ngrok.com/event_sources",
|
602
|
+
}
|
603
|
+
end
|
604
|
+
|
605
|
+
def event_subscription_result
|
606
|
+
{
|
607
|
+
"id" => "esb_1ro7av77nFHjRVO7GwDxRE7TElG",
|
608
|
+
"uri" => "https://api.ngrok.com/event_subscriptions/esb_1ro7av77nFHjRVO7GwDxRE7TElG",
|
609
|
+
"created_at" => "2021-04-28T17:24:15Z",
|
610
|
+
"metadata" => "{\"environment\" => \"staging\"}",
|
611
|
+
"description" => "low sampling, basic HTTP logs",
|
612
|
+
"sources" => [
|
613
|
+
{
|
614
|
+
"type" => "http_request_complete",
|
615
|
+
"uri" => "https://api.ngrok.com/event_subscriptions/esb_1ro7av77nFHjRVO7GwDxRE7TElG/sources/http_request_complete",
|
616
|
+
},
|
617
|
+
],
|
618
|
+
"destinations" => [
|
619
|
+
{
|
620
|
+
"id" => "ed_1ro7aylyqQ1LLMWNWrOISvlfveQ",
|
621
|
+
"uri" => "https://api.ngrok.com/event_destinations/ed_1ro7aylyqQ1LLMWNWrOISvlfveQ",
|
622
|
+
},
|
623
|
+
],
|
624
|
+
}
|
625
|
+
end
|
626
|
+
|
627
|
+
def event_subscription_results
|
628
|
+
{
|
629
|
+
"event_subscriptions" => [
|
630
|
+
event_subscription_result,
|
631
|
+
],
|
632
|
+
"uri" => "https://api.ngrok.com/event_subscriptions",
|
633
|
+
"next_page_uri" => nil,
|
634
|
+
}
|
635
|
+
end
|
636
|
+
|
637
|
+
def event_target_cloudwatch_logs_result
|
638
|
+
{
|
639
|
+
}
|
640
|
+
end
|
641
|
+
|
642
|
+
def event_target_firehose_result
|
643
|
+
{
|
644
|
+
}
|
645
|
+
end
|
646
|
+
|
647
|
+
def event_target_kinesis_result
|
648
|
+
{
|
649
|
+
}
|
650
|
+
end
|
651
|
+
|
652
|
+
def event_target_result
|
653
|
+
{
|
654
|
+
}
|
655
|
+
end
|
656
|
+
|
657
|
+
def ip_policy_result
|
658
|
+
{
|
659
|
+
"id" => "ipp_1vckSz67sd2iZNRX03t8i8wihdB",
|
660
|
+
"uri" => "https://api.ngrok.com/ip_policies/ipp_1vckSz67sd2iZNRX03t8i8wihdB",
|
661
|
+
"created_at" => "2021-07-21T11:59:27Z",
|
662
|
+
"description" => "Developer Environments",
|
663
|
+
"metadata" => "",
|
664
|
+
"action" => "allow",
|
665
|
+
}
|
666
|
+
end
|
667
|
+
|
668
|
+
def ip_policy_result2
|
669
|
+
{
|
670
|
+
"id" => "ipp_1vckSvgJ7tjaBIs4w8KZOYQjA7q",
|
671
|
+
"uri" => "https://api.ngrok.com/ip_policies/ipp_1vckSvgJ7tjaBIs4w8KZOYQjA7q",
|
672
|
+
"created_at" => "2021-07-21T11:59:27Z",
|
673
|
+
"description" => "API Outbound Gateway",
|
674
|
+
"metadata" => "",
|
675
|
+
"action" => "allow",
|
676
|
+
}
|
677
|
+
end
|
678
|
+
|
679
|
+
def ip_policy_results
|
680
|
+
{
|
681
|
+
"ip_policies" => [
|
682
|
+
ip_policy_result,
|
683
|
+
ip_policy_result2,
|
684
|
+
],
|
685
|
+
"uri" => "https://api.ngrok.com/ip_policies",
|
686
|
+
"next_page_uri" => nil,
|
687
|
+
}
|
688
|
+
end
|
689
|
+
|
690
|
+
def ip_policy_rule_result
|
691
|
+
{
|
692
|
+
"id" => "ipr_1rV56jFvshOkyVBrKOLNOdd9Jq2",
|
693
|
+
"uri" => "https://api.ngrok.com/ip_policy_rules/ipr_1rV56jFvshOkyVBrKOLNOdd9Jq2",
|
694
|
+
"created_at" => "2021-04-21T23:37:22Z",
|
695
|
+
"description" => "alan laptop",
|
696
|
+
"metadata" => "",
|
697
|
+
"cidr" => "2.2.2.2/32",
|
698
|
+
"ip_policy" => {
|
699
|
+
"id" => "ipp_1rV56VrAxesFteoj4XZxaaYyvXo",
|
700
|
+
"uri" => "https://api.ngrok.com/ip_policies/ipp_1rV56VrAxesFteoj4XZxaaYyvXo",
|
701
|
+
},
|
702
|
+
}
|
703
|
+
end
|
704
|
+
|
705
|
+
def ip_policy_rule_result2
|
706
|
+
{
|
707
|
+
"id" => "ipr_1rV56fKu4NnoTEVfCPSRqE5zRsK",
|
708
|
+
"uri" => "https://api.ngrok.com/ip_policy_rules/ipr_1rV56fKu4NnoTEVfCPSRqE5zRsK",
|
709
|
+
"created_at" => "2021-04-21T23:37:22Z",
|
710
|
+
"description" => "sf office",
|
711
|
+
"metadata" => "",
|
712
|
+
"cidr" => "132.2.19.0/24",
|
713
|
+
"ip_policy" => {
|
714
|
+
"id" => "ipp_1rV56VrAxesFteoj4XZxaaYyvXo",
|
715
|
+
"uri" => "https://api.ngrok.com/ip_policies/ipp_1rV56VrAxesFteoj4XZxaaYyvXo",
|
716
|
+
},
|
717
|
+
}
|
718
|
+
end
|
719
|
+
|
720
|
+
def ip_policy_rule_results
|
721
|
+
{
|
722
|
+
"ip_policy_rules" => [
|
723
|
+
ip_policy_rule_result,
|
724
|
+
ip_policy_rule_result2,
|
725
|
+
],
|
726
|
+
"uri" => "https://api.ngrok.com/ip_policy_rules",
|
727
|
+
"next_page_uri" => nil,
|
728
|
+
}
|
729
|
+
end
|
730
|
+
|
731
|
+
def ip_restriction_result
|
732
|
+
{
|
733
|
+
"id" => "ipx_1rV5CKgSrd3y2fosbXX5GoAhMeR",
|
734
|
+
"uri" => "https://api.ngrok.com/ip_restrictions/ipx_1rV5CKgSrd3y2fosbXX5GoAhMeR",
|
735
|
+
"created_at" => "2021-04-21T23:38:07Z",
|
736
|
+
"description" => "",
|
737
|
+
"metadata" => "",
|
738
|
+
"enforced" => false,
|
739
|
+
"type" => "dashboard",
|
740
|
+
"ip_policies" => [
|
741
|
+
{
|
742
|
+
"id" => "ipp_1rV5CMI1Aw8MiqWtjlQCyDDEWnQ",
|
743
|
+
"uri" => "https://api.ngrok.com/ip_policies/ipp_1rV5CMI1Aw8MiqWtjlQCyDDEWnQ",
|
744
|
+
},
|
745
|
+
],
|
746
|
+
}
|
747
|
+
end
|
748
|
+
|
749
|
+
def ip_restriction_results
|
750
|
+
{
|
751
|
+
"ip_restrictions" => [
|
752
|
+
ip_restriction_result,
|
753
|
+
],
|
754
|
+
"uri" => "https://api.ngrok.com/ip_restrictions",
|
755
|
+
"next_page_uri" => nil,
|
756
|
+
}
|
757
|
+
end
|
758
|
+
|
759
|
+
def ref_result
|
760
|
+
{
|
761
|
+
}
|
762
|
+
end
|
763
|
+
|
764
|
+
def reserved_addr_result
|
765
|
+
{
|
766
|
+
"id" => "ra_1rV3SMgGd7NuIB89hzucFK8r8nZ",
|
767
|
+
"uri" => "https://api.ngrok.com/reserved_addrs/ra_1rV3SMgGd7NuIB89hzucFK8r8nZ",
|
768
|
+
"created_at" => "2021-04-21T23:36:49Z",
|
769
|
+
"description" => "SSH for device #001",
|
770
|
+
"metadata" => "",
|
771
|
+
"addr" => "1.tcp.ngrok.io:20011",
|
772
|
+
"region" => "us",
|
773
|
+
"endpoint_configuration" => nil,
|
774
|
+
}
|
775
|
+
end
|
776
|
+
|
777
|
+
def reserved_addr_results
|
778
|
+
{
|
779
|
+
"reserved_addrs" => [
|
780
|
+
reserved_addr_result,
|
781
|
+
],
|
782
|
+
"uri" => "https://api.ngrok.com/reserved_addrs",
|
783
|
+
"next_page_uri" => nil,
|
784
|
+
}
|
785
|
+
end
|
786
|
+
|
787
|
+
def reserved_domain_cert_policy_result
|
788
|
+
{
|
789
|
+
}
|
790
|
+
end
|
791
|
+
|
792
|
+
def reserved_domain_cert_status_result
|
793
|
+
{
|
794
|
+
}
|
795
|
+
end
|
796
|
+
|
797
|
+
def reserved_domain_result
|
798
|
+
{
|
799
|
+
"id" => "rd_1rV51TBbVHrjheFFdfasWnL6E1z",
|
800
|
+
"uri" => "https://api.ngrok.com/reserved_domains/rd_1rV51TBbVHrjheFFdfasWnL6E1z",
|
801
|
+
"created_at" => "2021-04-21T23:36:41Z",
|
802
|
+
"description" => "Device 0001 Dashboard",
|
803
|
+
"metadata" => "{\"service\" => \"dashboard\"}",
|
804
|
+
"domain" => "manage-0001.app.example.com",
|
805
|
+
"region" => "us",
|
806
|
+
"cname_target" => "2y4vzpktb.cname.us.ngrok.io",
|
807
|
+
"http_endpoint_configuration" => nil,
|
808
|
+
"https_endpoint_configuration" => nil,
|
809
|
+
"certificate" => nil,
|
810
|
+
"certificate_management_policy" => nil,
|
811
|
+
"certificate_management_status" => nil,
|
812
|
+
}
|
813
|
+
end
|
814
|
+
|
815
|
+
def reserved_domain_result2
|
816
|
+
{
|
817
|
+
"id" => "rd_1rV51Qr590Jb8MgfiWIxshe0RWs",
|
818
|
+
"uri" => "https://api.ngrok.com/reserved_domains/rd_1rV51Qr590Jb8MgfiWIxshe0RWs",
|
819
|
+
"created_at" => "2021-04-21T23:36:40Z",
|
820
|
+
"description" => "",
|
821
|
+
"metadata" => "",
|
822
|
+
"domain" => "myapp.mydomain.com",
|
823
|
+
"region" => "us",
|
824
|
+
"cname_target" => "29flmdbzs.cname.us.ngrok.io",
|
825
|
+
"http_endpoint_configuration" => nil,
|
826
|
+
"https_endpoint_configuration" => nil,
|
827
|
+
"certificate" => {
|
828
|
+
"id" => "cert_1rV51OQetZPK9V6vTWUVy3Onjir",
|
829
|
+
"uri" => "https://api.ngrok.com/tls_certificates/cert_1rV51OQetZPK9V6vTWUVy3Onjir",
|
830
|
+
},
|
831
|
+
"certificate_management_policy" => nil,
|
832
|
+
"certificate_management_status" => nil,
|
833
|
+
}
|
834
|
+
end
|
835
|
+
|
836
|
+
def reserved_domain_results
|
837
|
+
{
|
838
|
+
"reserved_domains" => [
|
839
|
+
reserved_domain_result,
|
840
|
+
reserved_domain_result2,
|
841
|
+
],
|
842
|
+
"uri" => "https://api.ngrok.com/reserved_domains",
|
843
|
+
"next_page_uri" => nil,
|
844
|
+
}
|
845
|
+
end
|
846
|
+
|
847
|
+
def reserved_domain_cert_job_result
|
848
|
+
{
|
849
|
+
}
|
850
|
+
end
|
851
|
+
|
852
|
+
def reserved_domain_cert_ns_target_result
|
853
|
+
{
|
854
|
+
}
|
855
|
+
end
|
856
|
+
|
857
|
+
def ssh_certificate_authority_result
|
858
|
+
{
|
859
|
+
"id" => "sshca_1rV5FT4Uy4JaYbMnSyKS3p0xE4f",
|
860
|
+
"uri" => "https://api.ngrok.com/ssh_certificate_authorities/sshca_1rV5FT4Uy4JaYbMnSyKS3p0xE4f",
|
861
|
+
"created_at" => "2021-04-21T23:38:32Z",
|
862
|
+
"description" => "Staging Environment Hosts",
|
863
|
+
"metadata" => "",
|
864
|
+
"public_key" => "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICDx404hGFBUi7mFqNcd1TkrP4MVtf57kJVP3r0h3rSO",
|
865
|
+
"key_type" => "ed25519",
|
866
|
+
}
|
867
|
+
end
|
868
|
+
|
869
|
+
def ssh_certificate_authority_results
|
870
|
+
{
|
871
|
+
"ssh_certificate_authorities" => [
|
872
|
+
ssh_certificate_authority_result,
|
873
|
+
],
|
874
|
+
"uri" => "https://api.ngrok.com/ssh_certificate_authorities",
|
875
|
+
"next_page_uri" => nil,
|
876
|
+
}
|
877
|
+
end
|
878
|
+
|
879
|
+
def ssh_credential_result
|
880
|
+
{
|
881
|
+
"id" => "sshcr_1rV5504YUNgDKQ3WvFOeotnfgNm",
|
882
|
+
"uri" => "https://api.ngrok.com/ssh_credentials/sshcr_1rV5504YUNgDKQ3WvFOeotnfgNm",
|
883
|
+
"created_at" => "2021-04-21T23:37:09Z",
|
884
|
+
"description" => "for device #132",
|
885
|
+
"metadata" => "",
|
886
|
+
"public_key" => "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmGS49FkSODAcKhn3+/47DW2zEn19BZvzRQ8RZjL3v6hCIX2qXfsFK35EGxNI0wV23H4xXC2gVRPHKU71YnCb50tad3yMBTM6+2yfGsEDasEH/anmBLclChKvuGiT547RskZlpbAbdq3GvbzmY+R/2EBRMOiObpc8XmSzKAd05j28kqN0+rZO65SWId0MXdvJdSCSAnuRqBNd/aXKlu8hBPDcgwbT2lMkuR+ApoBS2FLRBOiQyt2Ol0T7Uuf7lTLlazpGB3uTw5zFYUNXkuuI6cAP8QYuY1Bne/hNrG8t3Aw9a1yc2C4Fz1hJ/4OMRxTQ8SUQf+Rmxs8DryMlMFJ8r device132@example.com",
|
887
|
+
"acl" => [
|
888
|
+
"bind:1.tcp.ngrok.io:20002",
|
889
|
+
"bind:132.devices.company.com",
|
890
|
+
],
|
891
|
+
}
|
892
|
+
end
|
893
|
+
|
894
|
+
def ssh_credential_results
|
895
|
+
{
|
896
|
+
"ssh_credentials" => [
|
897
|
+
ssh_credential_result,
|
898
|
+
],
|
899
|
+
"uri" => "https://api.ngrok.com/ssh_credentials",
|
900
|
+
"next_page_uri" => nil,
|
901
|
+
}
|
902
|
+
end
|
903
|
+
|
904
|
+
def ssh_host_certificate_result
|
905
|
+
{
|
906
|
+
"id" => "shcrt_1rV5GnCIHgKW4OyBIjKSqpbaf04",
|
907
|
+
"uri" => "https://api.ngrok.com/ssh_host_certificates/shcrt_1rV5GnCIHgKW4OyBIjKSqpbaf04",
|
908
|
+
"created_at" => "2021-04-21T23:38:42Z",
|
909
|
+
"description" => "personal server",
|
910
|
+
"metadata" => "",
|
911
|
+
"public_key" => "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBI3oSgxrOEJ+tIJ/n6VYtxQIFvynqlOHpfOAJ4x4OfmMYDkbf8dr6RAuUSf+ZC2HMCujta7EjZ9t+6v08Ue+Cgk= inconshreveable.com",
|
912
|
+
"key_type" => "ecdsa",
|
913
|
+
"ssh_certificate_authority_id" => "sshca_1rV5GiTaiBQg8AtJiyiVeNKzYiR",
|
914
|
+
"principals" => [
|
915
|
+
"inconshreveable.com",
|
916
|
+
"10.2.42.9",
|
917
|
+
],
|
918
|
+
"valid_after" => "2021-04-21T23:38:42Z",
|
919
|
+
"valid_until" => "2021-07-20T23:38:42Z",
|
920
|
+
"certificate" => "ecdsa-sha2-nistp256-cert-v01@openssh.com AAAAKGVjZHNhLXNoYTItbmlzdHAyNTYtY2VydC12MDFAb3BlbnNzaC5jb20AAAAgl+i7u7P1mVEWv2Igcf76hXPS2/xnKniDnJZX53xfuTQAAAAIbmlzdHAyNTYAAABBBI3oSgxrOEJ+tIJ/n6VYtxQIFvynqlOHpfOAJ4x4OfmMYDkbf8dr6RAuUSf+ZC2HMCujta7EjZ9t+6v08Ue+CgkAAAAAAAAAAAAAAAIAAAAhc2hjcnRfMXJWNUduQ0lIZ0tXNE95QklqS1NxcGJhZjA0AAAAJAAAABNpbmNvbnNocmV2ZWFibGUuY29tAAAACTEwLjIuNDIuOQAAAABggLeCAAAAAGD3XoIAAAAAAAAAAAAAAAAAAAAzAAAAC3NzaC1lZDI1NTE5AAAAIEpsciWkhlFN7VFWGMkSy1xFNwuZLVh7ZE/uo79NWH8LAAAAUwAAAAtzc2gtZWQyNTUxOQAAAECJHCycrdAf2WNjWGWolP+Y5TlIm5LX4TdRJFeSdUVp0amDg9ZYRltqXy61qGVc43G/unqz35ZzkwJPmVAi/ZQL shcrt_1rV5GnCIHgKW4OyBIjKSqpbaf04",
|
921
|
+
}
|
922
|
+
end
|
923
|
+
|
924
|
+
def ssh_host_certificate_results
|
925
|
+
{
|
926
|
+
"ssh_host_certificates" => [
|
927
|
+
ssh_host_certificate_result,
|
928
|
+
],
|
929
|
+
"uri" => "https://api.ngrok.com/ssh_host_certificates",
|
930
|
+
"next_page_uri" => nil,
|
931
|
+
}
|
932
|
+
end
|
933
|
+
|
934
|
+
def ssh_user_certificate_result
|
935
|
+
{
|
936
|
+
"id" => "sucrt_1rV5G8jarzhIEEQTv1wXRE1KRU1",
|
937
|
+
"uri" => "https://api.ngrok.com/ssh_user_certificates/sucrt_1rV5G8jarzhIEEQTv1wXRE1KRU1",
|
938
|
+
"created_at" => "2021-04-21T23:38:37Z",
|
939
|
+
"description" => "temporary access to staging machine",
|
940
|
+
"metadata" => "",
|
941
|
+
"public_key" => "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBK58lFzmWlDimDtBz78wVT4oauA8PjY0CiXTCEIsBNC6UwOJvZ0jdSaYNhDaa7dRV84DfBb/gKzqlXC7cVMZjl0= alan@work-laptop",
|
942
|
+
"key_type" => "ecdsa",
|
943
|
+
"ssh_certificate_authority_id" => "sshca_1rV5G33U0TV5AFqiEfKcjOi8W4t",
|
944
|
+
"principals" => [
|
945
|
+
"ec2-user",
|
946
|
+
"root",
|
947
|
+
],
|
948
|
+
"critical_options" => {},
|
949
|
+
"extensions" => {
|
950
|
+
"permit-pty" => "",
|
951
|
+
"permit-user-rc" => "",
|
952
|
+
},
|
953
|
+
"valid_after" => "2021-04-21T23:38:37Z",
|
954
|
+
"valid_until" => "2021-07-20T23:38:37Z",
|
955
|
+
"certificate" => "ecdsa-sha2-nistp256-cert-v01@openssh.com AAAAKGVjZHNhLXNoYTItbmlzdHAyNTYtY2VydC12MDFAb3BlbnNzaC5jb20AAAAgMQgYZDmRzsM+dcF5rZZM5/xHEFNygLtRKq7Ycsjvk+0AAAAIbmlzdHAyNTYAAABBBK58lFzmWlDimDtBz78wVT4oauA8PjY0CiXTCEIsBNC6UwOJvZ0jdSaYNhDaa7dRV84DfBb/gKzqlXC7cVMZjl0AAAAAAAAAAAAAAAEAAAAhc3VjcnRfMXJWNUc4amFyemhJRUVRVHYxd1hSRTFLUlUxAAAAFAAAAAhlYzItdXNlcgAAAARyb290AAAAAGCAt30AAAAAYPdefQAAAAAAAAAoAAAACnBlcm1pdC1wdHkAAAAAAAAADnBlcm1pdC11c2VyLXJjAAAAAAAAAAAAAAAzAAAAC3NzaC1lZDI1NTE5AAAAICskbrMYess7OemvQlCikleCUq+2lkxesOd8ivjoWlNCAAAAUwAAAAtzc2gtZWQyNTUxOQAAAEA6yhx0v0tzSsQaCQez/qwL8QO+ZLLvKhfmcQ53I0bSYxSaf6G7n8uLThk4OVtq/QJdVaWNcfLrLY0ipITz1RAK sucrt_1rV5G8jarzhIEEQTv1wXRE1KRU1",
|
956
|
+
}
|
957
|
+
end
|
958
|
+
|
959
|
+
def ssh_user_certificate_results
|
960
|
+
{
|
961
|
+
"ssh_user_certificates" => [
|
962
|
+
ssh_user_certificate_result,
|
963
|
+
],
|
964
|
+
"uri" => "https://api.ngrok.com/ssh_user_certificates",
|
965
|
+
"next_page_uri" => nil,
|
966
|
+
}
|
967
|
+
end
|
968
|
+
|
969
|
+
def tls_certificate_result
|
970
|
+
{
|
971
|
+
"id" => "cert_1rV51OQetZPK9V6vTWUVy3Onjir",
|
972
|
+
"uri" => "https://api.ngrok.com/tls_certificates/cert_1rV51OQetZPK9V6vTWUVy3Onjir",
|
973
|
+
"created_at" => "2021-04-21T23:36:40Z",
|
974
|
+
"description" => "",
|
975
|
+
"metadata" => "",
|
976
|
+
"certificate_pem" => "-----BEGIN CERTIFICATE-----\nMIIDDTCCAfWgAwIBAgIUBUunDdA4gjgtEbZA8w9Ljhvl3bEwDQYJKoZIhvcNAQEL\nBQAwFjEUMBIGA1UEAwwLZXhhbXBsZS5jb20wHhcNMjAwMzI0MTgxODE5WhcNMjAw\nNDIzMTgxODE5WjAWMRQwEgYDVQQDDAtleGFtcGxlLmNvbTCCASIwDQYJKoZIhvcN\nAQEBBQADggEPADCCAQoCggEBAPKVkkKYNl3d9cqrz4tIFlwsohED5W4y1dcBixy4\nGANFFnw43nc2wPyKwYXumJqJIFrcW/NkUZL07bd+dou6mT6Gh/zbaTW91IkREPXL\n7b3KfVu4XkFosVXpWs0U6o4GrZ81CLiKBWI+H03x/ij5OSiJ1l71pqLeTJLOydAR\nAl8kpp7axeHU4UbDrAZkW5SnuZTjIKwVg0UNsBg1yNfUOu1Uah3BYaqPgQitC0Yg\nLW+NUGu/T91bkD7tLsVInkQXeQGdXBAqOycfJ7wj8OlIpyuXjTnGFA0izVmbQw5f\nrQnZ0geGyhLamvz9Gcd7mIlD/+/AEN9Lht82tAOzKG98/O8CAwEAAaNTMFEwHQYD\nVR0OBBYEFKv6RsvEC6T+zCtJZwB0FCR1sEkhMB8GA1UdIwQYMBaAFKv6RsvEC6T+\nzCtJZwB0FCR1sEkhMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB\nAC5fBrouinespo5+9AipjhY/HOKTg+OCnppFnSnqeU1eXZZJ0oakdHTpTNxtbQP9\ntOJTA2f3KWvmpNDMohEQXZz8wHDkdbrIXJKVp6zs1pEp+0BIjA4y9mSywa5xuyk0\noGeChRgGqp2JujDyPCb7LEaKKQEEdMqy73QG+jEAh14+wKixlAf1nATBdeCUvssK\n2x1uZMyqjJFB5y/5EdnWQzD4WJkrsCkxsZHVMN1d+dqf2sf3dTRV8fzsFGOG17NS\n6u2n9iGcFdBA82XN8yeLIWhy1t3GWutG1sdxENbFRRXea+iUqzDsmRtkaBma2GLQ\nd6JTpFbsCtwDjP23UEi7SZo=\n-----END CERTIFICATE-----\n",
|
977
|
+
"subject_common_name" => "example.com",
|
978
|
+
"subject_alternative_names" => {
|
979
|
+
"dns_names" => [],
|
980
|
+
"ips" => [],
|
981
|
+
},
|
982
|
+
"issued_at" => nil,
|
983
|
+
"not_before" => "2020-03-24T18:18:19Z",
|
984
|
+
"not_after" => "2020-04-23T18:18:19Z",
|
985
|
+
"key_usages" => [],
|
986
|
+
"extended_key_usages" => [],
|
987
|
+
"private_key_type" => "rsa",
|
988
|
+
"issuer_common_name" => "example.com",
|
989
|
+
"serial_number" => "054ba70dd03882382d11b640f30f4b8e1be5ddb1",
|
990
|
+
"subject_organization" => "",
|
991
|
+
"subject_organizational_unit" => "",
|
992
|
+
"subject_locality" => "",
|
993
|
+
"subject_province" => "",
|
994
|
+
"subject_country" => "",
|
995
|
+
}
|
996
|
+
end
|
997
|
+
|
998
|
+
def tls_certificate_result2
|
999
|
+
{
|
1000
|
+
"id" => "cert_1rV5D0Ur3PklEGZwRj9m6qCBlCc",
|
1001
|
+
"uri" => "https://api.ngrok.com/tls_certificates/cert_1rV5D0Ur3PklEGZwRj9m6qCBlCc",
|
1002
|
+
"created_at" => "2021-04-21T23:38:12Z",
|
1003
|
+
"description" => "",
|
1004
|
+
"metadata" => "",
|
1005
|
+
"certificate_pem" => "-----BEGIN CERTIFICATE-----\nMIIDDTCCAfWgAwIBAgIUBUunDdA4gjgtEbZA8w9Ljhvl3bEwDQYJKoZIhvcNAQEL\nBQAwFjEUMBIGA1UEAwwLZXhhbXBsZS5jb20wHhcNMjAwMzI0MTgxODE5WhcNMjAw\nNDIzMTgxODE5WjAWMRQwEgYDVQQDDAtleGFtcGxlLmNvbTCCASIwDQYJKoZIhvcN\nAQEBBQADggEPADCCAQoCggEBAPKVkkKYNl3d9cqrz4tIFlwsohED5W4y1dcBixy4\nGANFFnw43nc2wPyKwYXumJqJIFrcW/NkUZL07bd+dou6mT6Gh/zbaTW91IkREPXL\n7b3KfVu4XkFosVXpWs0U6o4GrZ81CLiKBWI+H03x/ij5OSiJ1l71pqLeTJLOydAR\nAl8kpp7axeHU4UbDrAZkW5SnuZTjIKwVg0UNsBg1yNfUOu1Uah3BYaqPgQitC0Yg\nLW+NUGu/T91bkD7tLsVInkQXeQGdXBAqOycfJ7wj8OlIpyuXjTnGFA0izVmbQw5f\nrQnZ0geGyhLamvz9Gcd7mIlD/+/AEN9Lht82tAOzKG98/O8CAwEAAaNTMFEwHQYD\nVR0OBBYEFKv6RsvEC6T+zCtJZwB0FCR1sEkhMB8GA1UdIwQYMBaAFKv6RsvEC6T+\nzCtJZwB0FCR1sEkhMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB\nAC5fBrouinespo5+9AipjhY/HOKTg+OCnppFnSnqeU1eXZZJ0oakdHTpTNxtbQP9\ntOJTA2f3KWvmpNDMohEQXZz8wHDkdbrIXJKVp6zs1pEp+0BIjA4y9mSywa5xuyk0\noGeChRgGqp2JujDyPCb7LEaKKQEEdMqy73QG+jEAh14+wKixlAf1nATBdeCUvssK\n2x1uZMyqjJFB5y/5EdnWQzD4WJkrsCkxsZHVMN1d+dqf2sf3dTRV8fzsFGOG17NS\n6u2n9iGcFdBA82XN8yeLIWhy1t3GWutG1sdxENbFRRXea+iUqzDsmRtkaBma2GLQ\nd6JTpFbsCtwDjP23UEi7SZo=\n-----END CERTIFICATE-----\n",
|
1006
|
+
"subject_common_name" => "example.com",
|
1007
|
+
"subject_alternative_names" => {
|
1008
|
+
"dns_names" => [],
|
1009
|
+
"ips" => [],
|
1010
|
+
},
|
1011
|
+
"issued_at" => nil,
|
1012
|
+
"not_before" => "2020-03-24T18:18:19Z",
|
1013
|
+
"not_after" => "2020-04-23T18:18:19Z",
|
1014
|
+
"key_usages" => [],
|
1015
|
+
"extended_key_usages" => [],
|
1016
|
+
"private_key_type" => "rsa",
|
1017
|
+
"issuer_common_name" => "example.com",
|
1018
|
+
"serial_number" => "054ba70dd03882382d11b640f30f4b8e1be5ddb1",
|
1019
|
+
"subject_organization" => "",
|
1020
|
+
"subject_organizational_unit" => "",
|
1021
|
+
"subject_locality" => "",
|
1022
|
+
"subject_province" => "",
|
1023
|
+
"subject_country" => "",
|
1024
|
+
}
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
def tls_certificate_results
|
1028
|
+
{
|
1029
|
+
"tls_certificates" => [
|
1030
|
+
tls_certificate_result,
|
1031
|
+
tls_certificate_result2,
|
1032
|
+
],
|
1033
|
+
"uri" => "https://api.ngrok.com/tls_certificates",
|
1034
|
+
"next_page_uri" => nil,
|
1035
|
+
}
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
def tls_certificate_sa_ns_result
|
1039
|
+
{
|
1040
|
+
}
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
def tunnel_result
|
1044
|
+
{
|
1045
|
+
"id" => "tn_1rV53vIXMKFIfPxXVWbW2sf4OLW",
|
1046
|
+
"public_url" => "http://57ae41e8cfac.ngrok.io",
|
1047
|
+
"started_at" => "2021-04-21T23:37:00Z",
|
1048
|
+
"metadata" => "",
|
1049
|
+
"proto" => "http",
|
1050
|
+
"region" => "us",
|
1051
|
+
"tunnel_session" => {
|
1052
|
+
"id" => "ts_1rV53yu42s8Hb17NxYNmXLDy8zR",
|
1053
|
+
"uri" => "https://api.ngrok.com/tunnel_sessions/ts_1rV53yu42s8Hb17NxYNmXLDy8zR",
|
1054
|
+
},
|
1055
|
+
}
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
def tunnel_result2
|
1059
|
+
{
|
1060
|
+
"id" => "tn_1rV53wi3OtUfY1RbkH2vNsTmLcO",
|
1061
|
+
"public_url" => "https://57ae41e8cfac.ngrok.io",
|
1062
|
+
"started_at" => "2021-04-21T23:37:00Z",
|
1063
|
+
"metadata" => "",
|
1064
|
+
"proto" => "https",
|
1065
|
+
"region" => "us",
|
1066
|
+
"tunnel_session" => {
|
1067
|
+
"id" => "ts_1rV53yu42s8Hb17NxYNmXLDy8zR",
|
1068
|
+
"uri" => "https://api.ngrok.com/tunnel_sessions/ts_1rV53yu42s8Hb17NxYNmXLDy8zR",
|
1069
|
+
},
|
1070
|
+
}
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
def tunnel_results
|
1074
|
+
{
|
1075
|
+
"tunnels" => [
|
1076
|
+
tunnel_result,
|
1077
|
+
tunnel_result2,
|
1078
|
+
],
|
1079
|
+
"uri" => "https://api.ngrok.com/tunnels",
|
1080
|
+
"next_page_uri" => nil,
|
1081
|
+
}
|
1082
|
+
end
|
1083
|
+
|
1084
|
+
def tunnel_session_result
|
1085
|
+
{
|
1086
|
+
"agent_version" => "",
|
1087
|
+
"credential" => {
|
1088
|
+
"id" => "cr_1rV54BnShBhgmZvLtZKAOJhI7jR",
|
1089
|
+
"uri" => "https://api.ngrok.com/credentials/cr_1rV54BnShBhgmZvLtZKAOJhI7jR",
|
1090
|
+
},
|
1091
|
+
"id" => "ts_1rV549gK2e0WnE8Wvk3ab32e98U",
|
1092
|
+
"ip" => "10.42.0.63",
|
1093
|
+
"metadata" => "",
|
1094
|
+
"os" => "linux",
|
1095
|
+
"region" => "us",
|
1096
|
+
"started_at" => "2021-04-21T23:37:02Z",
|
1097
|
+
"transport" => "ngrok/2",
|
1098
|
+
"uri" => "https://api.ngrok.com/tunnel_sessions/ts_1rV549gK2e0WnE8Wvk3ab32e98U",
|
1099
|
+
}
|
1100
|
+
end
|
1101
|
+
|
1102
|
+
def tunnel_session_results
|
1103
|
+
{
|
1104
|
+
"tunnel_sessions" => [
|
1105
|
+
tunnel_session_result,
|
1106
|
+
],
|
1107
|
+
"uri" => "https://api.ngrok.com/tunnel_sessions",
|
1108
|
+
"next_page_uri" => nil,
|
1109
|
+
}
|
1110
|
+
end
|
1111
|
+
|
1112
|
+
def endpoint_backend_mutate_result
|
1113
|
+
{
|
1114
|
+
"enabled" => true,
|
1115
|
+
"backend_id" => "bkdhr_23ejDsgFClTHtGtzdbcNzkr2DvA",
|
1116
|
+
}
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
def endpoint_backend_result
|
1120
|
+
{
|
1121
|
+
"enabled" => true,
|
1122
|
+
"backend" => {
|
1123
|
+
"id" => "bkdfo_23WYoC8ApDQQpNeaqhvzQD25RVx",
|
1124
|
+
"uri" => "https://api.ngrok.com/backends/failover/bkdfo_23WYoC8ApDQQpNeaqhvzQD25RVx",
|
1125
|
+
},
|
1126
|
+
}
|
1127
|
+
end
|
1128
|
+
|
1129
|
+
def endpoint_tls_termination_at_edge_result
|
1130
|
+
{
|
1131
|
+
"enabled" => true,
|
1132
|
+
"min_version" => nil,
|
1133
|
+
}
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
def endpoint_websocket_tcp_converter_result
|
1137
|
+
{
|
1138
|
+
"enabled" => true,
|
1139
|
+
}
|
1140
|
+
end
|
1141
|
+
|
1142
|
+
def https_edge_result
|
1143
|
+
{
|
1144
|
+
"id" => "edghts_23WYoHa6cZpqNFOr7nuDEsaN9SG",
|
1145
|
+
"description" => "",
|
1146
|
+
"metadata" => "",
|
1147
|
+
"created_at" => "2021-10-20T12=>08=>58Z",
|
1148
|
+
"uri" => "https://api.ngrok.com/edges/https/edghts_23WYoHa6cZpqNFOr7nuDEsaN9SG",
|
1149
|
+
"hostports" => [
|
1150
|
+
"example.ngrok.io:443",
|
1151
|
+
],
|
1152
|
+
"mutual_tls" => nil,
|
1153
|
+
"tls_termination" => nil,
|
1154
|
+
"routes" => nil,
|
1155
|
+
}
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
def https_edge_result2
|
1159
|
+
{
|
1160
|
+
"id" => "edghts_23f9iVEEQPCXa54Ob3s0M9t8cq8",
|
1161
|
+
"description" => "",
|
1162
|
+
"metadata" => "",
|
1163
|
+
"created_at" => "2021-10-20T12=>08=>58Z",
|
1164
|
+
"uri" => "https://api.ngrok.com/edges/https/edghts_23f9iVEEQPCXa54Ob3s0M9t8cq8",
|
1165
|
+
"hostports" => [
|
1166
|
+
"example.ngrok.io:443",
|
1167
|
+
],
|
1168
|
+
"mutual_tls" => nil,
|
1169
|
+
"tls_termination" => nil,
|
1170
|
+
"routes" => nil,
|
1171
|
+
}
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
def https_edge_results
|
1175
|
+
{
|
1176
|
+
"https_edges" => [
|
1177
|
+
https_edge_result,
|
1178
|
+
https_edge_result2,
|
1179
|
+
],
|
1180
|
+
"uri" => "https://api.ngrok.com/edges/https",
|
1181
|
+
"next_page_uri" => nil,
|
1182
|
+
}
|
1183
|
+
end
|
1184
|
+
|
1185
|
+
def https_edge_route_result
|
1186
|
+
{
|
1187
|
+
"id" => "edghtsrt_23WZ2wMQh9ZV0gPcToseRIIUJQo",
|
1188
|
+
"description" => "",
|
1189
|
+
"metadata" => "",
|
1190
|
+
"created_at" => "2021-10-20T12=>08=>58Z",
|
1191
|
+
"edge_id" => "edghts_23WYoHa6cZpqNFOr7nuDEsaN9SG",
|
1192
|
+
"match_type" => "path_prefix",
|
1193
|
+
"match" => "/",
|
1194
|
+
"uri" => "https://api.ngrok.com/edges/https/edghts_23WYoHa6cZpqNFOr7nuDEsaN9SG/routes/edghtsrt_23WZ2wMQh9ZV0gPcToseRIIUJQo",
|
1195
|
+
"backend" => nil,
|
1196
|
+
"ip_restriction" => nil,
|
1197
|
+
"circuit_breaker" => nil,
|
1198
|
+
"compression" => nil,
|
1199
|
+
"request_headers" => nil,
|
1200
|
+
"response_headers" => nil,
|
1201
|
+
"webhook_validation" => nil,
|
1202
|
+
"oauth" => nil,
|
1203
|
+
"saml" => nil,
|
1204
|
+
"oidc" => nil,
|
1205
|
+
"websocket_tcp_converter" => nil,
|
1206
|
+
}
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
def tcp_edge_result
|
1210
|
+
{
|
1211
|
+
"id" => "edgtcp_23f9bWP6gWuwWVhhXXZJd87khPr",
|
1212
|
+
"description" => "",
|
1213
|
+
"metadata" => "",
|
1214
|
+
"created_at" => "2021-10-20T12=>08=>58Z",
|
1215
|
+
"uri" => "https://api.ngrok.com/edges/tcp/edgtcp_23f9bWP6gWuwWVhhXXZJd87khPr",
|
1216
|
+
"hostports" => [
|
1217
|
+
"1.tcp.ngrok.io:20033",
|
1218
|
+
],
|
1219
|
+
"backend" => nil,
|
1220
|
+
"ip_restriction" => nil,
|
1221
|
+
}
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
def tcp_edge_result2
|
1225
|
+
{
|
1226
|
+
"id" => "edgtcp_23fAbCNhQWBW7jaAEHIwNjN0psq",
|
1227
|
+
"description" => "",
|
1228
|
+
"metadata" => "",
|
1229
|
+
"created_at" => "2021-10-20T12=>08=>58Z",
|
1230
|
+
"uri" => "https://api.ngrok.com/edges/tcp/edgtcp_23fAbCNhQWBW7jaAEHIwNjN0psq",
|
1231
|
+
"hostports" => [
|
1232
|
+
"1.tcp.ngrok.io:20034",
|
1233
|
+
],
|
1234
|
+
"backend" => nil,
|
1235
|
+
"ip_restriction" => nil,
|
1236
|
+
}
|
1237
|
+
end
|
1238
|
+
|
1239
|
+
def tcp_edge_results
|
1240
|
+
{
|
1241
|
+
"tcp_edges" => [
|
1242
|
+
tcp_edge_result,
|
1243
|
+
tcp_edge_result2,
|
1244
|
+
],
|
1245
|
+
"uri" => "https://api.ngrok.com/edges/tcp",
|
1246
|
+
"next_page_uri" => nil,
|
1247
|
+
}
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
def tls_edge_result
|
1251
|
+
{
|
1252
|
+
"id" => "edgtls_23fAtcj1nEUtNOvCHTmw2p7boPq",
|
1253
|
+
"description" => "",
|
1254
|
+
"metadata" => "",
|
1255
|
+
"created_at" => "2021-10-20T12=>08=>58Z",
|
1256
|
+
"uri" => "https://api.ngrok.com/edges/tls/edgtls_23fAtcj1nEUtNOvCHTmw2p7boPq",
|
1257
|
+
"hostports" => [
|
1258
|
+
"q3n1rmaj.ngrok.io:443",
|
1259
|
+
],
|
1260
|
+
"backend" => nil,
|
1261
|
+
"ip_restriction" => nil,
|
1262
|
+
"mutual_tls" => nil,
|
1263
|
+
"tls_termination" => nil,
|
1264
|
+
}
|
1265
|
+
end
|
1266
|
+
|
1267
|
+
def tls_edge_result2
|
1268
|
+
{
|
1269
|
+
"id" => "edgtls_23fB67XVniqMYnmzMHJCGDjlNTh",
|
1270
|
+
"description" => "",
|
1271
|
+
"metadata" => "",
|
1272
|
+
"created_at" => "2021-10-20T12=>08=>58Z",
|
1273
|
+
"uri" => "https://api.ngrok.com/edges/tls/edgtls_23fB67XVniqMYnmzMHJCGDjlNTh",
|
1274
|
+
"hostports" => [
|
1275
|
+
"q3n1rmaj.ngrok.io:443",
|
1276
|
+
],
|
1277
|
+
"backend" => nil,
|
1278
|
+
"ip_restriction" => nil,
|
1279
|
+
"mutual_tls" => nil,
|
1280
|
+
"tls_termination" => nil,
|
1281
|
+
}
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
def tls_edge_results
|
1285
|
+
{
|
1286
|
+
"tls_edges" => [
|
1287
|
+
tls_edge_result,
|
1288
|
+
tls_edge_result2,
|
1289
|
+
],
|
1290
|
+
"uri" => "https://api.ngrok.com/edges/tls",
|
1291
|
+
"next_page_uri" => nil,
|
1292
|
+
}
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
def tunnel_group_backend_result
|
1296
|
+
{
|
1297
|
+
"id" => "bkdtg_23wBji94nFzDEouYAo3QHYWLmKH",
|
1298
|
+
"uri" => "https://api.ngrok.com/backends/tunnel_group/bkdtg_23wBji94nFzDEouYAo3QHYWLmKH",
|
1299
|
+
"created_at" => "2022-01-19T23:36:45Z",
|
1300
|
+
"description" => "acme tunnel group",
|
1301
|
+
"metadata" => "{\"environment\" => \"staging\"}",
|
1302
|
+
"labels" => {
|
1303
|
+
"baz" => "qux",
|
1304
|
+
"foo" => "bar",
|
1305
|
+
},
|
1306
|
+
}
|
1307
|
+
end
|
1308
|
+
|
1309
|
+
def tunnel_group_backend_results
|
1310
|
+
{
|
1311
|
+
"backends" => [
|
1312
|
+
tunnel_group_backend_result,
|
1313
|
+
],
|
1314
|
+
"uri" => "https://api.ngrok.com/backends/tunnel_group",
|
1315
|
+
"next_page_uri" => nil,
|
1316
|
+
}
|
1317
|
+
end
|
1318
|
+
|
1319
|
+
def http_response_backend_result
|
1320
|
+
{
|
1321
|
+
"id" => "bkdhr_23wBjkemewVLpsBfzIsBkzgaE3A",
|
1322
|
+
"uri" => "https://api.ngrok.com/backends/http_response/bkdhr_23wBjkemewVLpsBfzIsBkzgaE3A",
|
1323
|
+
"created_at" => "2022-01-19T23:36:45Z",
|
1324
|
+
"description" => "acme http response",
|
1325
|
+
"metadata" => "{\"environment\" => \"staging\"}",
|
1326
|
+
"body" => "I'm a teapot",
|
1327
|
+
"headers" => {
|
1328
|
+
"content-type" => "text/plain",
|
1329
|
+
},
|
1330
|
+
"status_code" => 418,
|
1331
|
+
}
|
1332
|
+
end
|
1333
|
+
|
1334
|
+
def http_response_backend_results
|
1335
|
+
{
|
1336
|
+
"backends" => [
|
1337
|
+
http_response_backend_result,
|
1338
|
+
],
|
1339
|
+
"uri" => "https://api.ngrok.com/backends/http_response",
|
1340
|
+
"next_page_uri" => nil,
|
1341
|
+
}
|
1342
|
+
end
|
1343
|
+
|
1344
|
+
def failover_backend_result
|
1345
|
+
{
|
1346
|
+
"id" => "bkdfo_23wBjiMhF0HaPfF98vQrdWmscai",
|
1347
|
+
"uri" => "https://api.ngrok.com/backends/failover/bkdfo_23wBjiMhF0HaPfF98vQrdWmscai",
|
1348
|
+
"created_at" => "2022-01-19T23:36:45Z",
|
1349
|
+
"description" => "acme failover",
|
1350
|
+
"metadata" => "{\"environment\" => \"staging\"}",
|
1351
|
+
"backends" => [
|
1352
|
+
"bkdhr_23wBjgJYO3hKSpkaIrDQ5HQE2jY",
|
1353
|
+
],
|
1354
|
+
}
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
def failover_backend_results
|
1358
|
+
{
|
1359
|
+
"backends" => [
|
1360
|
+
failover_backend_result,
|
1361
|
+
],
|
1362
|
+
"uri" => "https://api.ngrok.com/backends/failover",
|
1363
|
+
"next_page_uri" => nil,
|
1364
|
+
}
|
1365
|
+
end
|
1366
|
+
|
1367
|
+
def weighted_backend_result
|
1368
|
+
{
|
1369
|
+
"id" => "bkdwd_23wBjgO2sn7WFHs8269Xrdv2yXw",
|
1370
|
+
"uri" => "https://api.ngrok.com/backends/weighted/bkdwd_23wBjgO2sn7WFHs8269Xrdv2yXw",
|
1371
|
+
"created_at" => "2022-01-19T23:36:45Z",
|
1372
|
+
"description" => "acme weighted",
|
1373
|
+
"metadata" => "{\"environment\" => \"staging\"}",
|
1374
|
+
"backends" => {
|
1375
|
+
"bkdhr_23wBjgkCq2PEYfrOjKBqQY3hy9B" => 0,
|
1376
|
+
"bkdhr_23wBjiPnTqyUosGG2pdP2VWXxlx" => 1,
|
1377
|
+
},
|
1378
|
+
}
|
1379
|
+
end
|
1380
|
+
|
1381
|
+
def weighted_backend_results
|
1382
|
+
{
|
1383
|
+
"backends" => [
|
1384
|
+
weighted_backend_result,
|
1385
|
+
],
|
1386
|
+
"uri" => "https://api.ngrok.com/backends/weighted",
|
1387
|
+
"next_page_uri" => nil,
|
1388
|
+
}
|
1389
|
+
end
|