ngrok-api 0.19.0 → 0.21.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 +8 -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 +229 -125
- 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 +73 -73
- 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/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/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/EndpointRequestHeaders.html +40 -40
- data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +40 -40
- data/doc/NgrokAPI/Models/EndpointSAML.html +114 -98
- data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +79 -75
- data/doc/NgrokAPI/Models/EndpointTLSTermination.html +40 -40
- data/doc/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +36 -36
- 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 +51 -47
- data/doc/NgrokAPI/Models/EventSourceList.html +43 -39
- data/doc/NgrokAPI/Models/EventSourceReplace.html +40 -40
- data/doc/NgrokAPI/Models/EventSubscription.html +69 -65
- data/doc/NgrokAPI/Models/EventTarget.html +119 -45
- 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 +127 -123
- data/doc/NgrokAPI/Models/IPPolicy.html +73 -69
- 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 +73 -69
- data/doc/NgrokAPI/Models/ReservedDomain.html +97 -93
- 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/TCPEdge.html +81 -77
- data/doc/NgrokAPI/Models/TLSCertificate.html +133 -129
- data/doc/NgrokAPI/Models/TLSCertificateSANs.html +36 -36
- data/doc/NgrokAPI/Models/TLSEdge.html +89 -85
- 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 +134 -94
- data/doc/NgrokAPI/Services/AbuseReportsClient.html +28 -28
- 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/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/EdgeRouteRequestHeadersModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +36 -36
- 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 +44 -44
- data/doc/NgrokAPI/Services/EdgesTCPClient.html +52 -52
- data/doc/NgrokAPI/Services/EdgesTLSClient.html +52 -52
- 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 +52 -52
- 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 +90 -86
- data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +52 -52
- data/doc/NgrokAPI/Services/SSHCredentialsClient.html +138 -98
- data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +52 -52
- data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +56 -56
- data/doc/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +36 -36
- 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/TLSEdgeTLSTerminationModuleClient.html +36 -36
- data/doc/NgrokAPI/Services/TunnelGroupBackendsClient.html +52 -52
- data/doc/NgrokAPI/Services/TunnelSessionsClient.html +52 -52
- data/doc/NgrokAPI/Services/TunnelsClient.html +28 -28
- data/doc/NgrokAPI/Services/WeightedBackendsClient.html +52 -52
- data/doc/NgrokAPI/Services.html +6 -6
- data/doc/NgrokAPI.html +6 -6
- data/doc/_index.html +139 -8
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +45 -41
- data/doc/frames.html +1 -1
- data/doc/index.html +45 -41
- data/doc/method_list.html +2127 -671
- data/doc/top-level-namespace.html +4 -4
- data/docs/NgrokAPI/Client.html +229 -125
- 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 +73 -73
- 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/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/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/EndpointRequestHeaders.html +40 -40
- data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +40 -40
- data/docs/NgrokAPI/Models/EndpointSAML.html +114 -98
- data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +79 -75
- data/docs/NgrokAPI/Models/EndpointTLSTermination.html +40 -40
- data/docs/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +36 -36
- 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 +51 -47
- data/docs/NgrokAPI/Models/EventSourceList.html +43 -39
- data/docs/NgrokAPI/Models/EventSourceReplace.html +40 -40
- data/docs/NgrokAPI/Models/EventSubscription.html +69 -65
- data/docs/NgrokAPI/Models/EventTarget.html +119 -45
- 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 +127 -123
- data/docs/NgrokAPI/Models/IPPolicy.html +73 -69
- 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 +73 -69
- data/docs/NgrokAPI/Models/ReservedDomain.html +97 -93
- 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/TCPEdge.html +81 -77
- data/docs/NgrokAPI/Models/TLSCertificate.html +133 -129
- data/docs/NgrokAPI/Models/TLSCertificateSANs.html +36 -36
- data/docs/NgrokAPI/Models/TLSEdge.html +89 -85
- 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 +134 -94
- data/docs/NgrokAPI/Services/AbuseReportsClient.html +28 -28
- 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/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/EdgeRouteRequestHeadersModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +36 -36
- 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 +44 -44
- data/docs/NgrokAPI/Services/EdgesTCPClient.html +52 -52
- data/docs/NgrokAPI/Services/EdgesTLSClient.html +52 -52
- 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 +52 -52
- 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 +90 -86
- data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +52 -52
- data/docs/NgrokAPI/Services/SSHCredentialsClient.html +138 -98
- data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +52 -52
- data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +56 -56
- data/docs/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +36 -36
- 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/TLSEdgeTLSTerminationModuleClient.html +36 -36
- data/docs/NgrokAPI/Services/TunnelGroupBackendsClient.html +52 -52
- data/docs/NgrokAPI/Services/TunnelSessionsClient.html +52 -52
- data/docs/NgrokAPI/Services/TunnelsClient.html +28 -28
- data/docs/NgrokAPI/Services/WeightedBackendsClient.html +52 -52
- data/docs/NgrokAPI/Services.html +6 -6
- data/docs/NgrokAPI.html +6 -6
- data/docs/_index.html +139 -8
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +45 -41
- data/docs/frames.html +1 -1
- data/docs/index.html +45 -41
- data/docs/method_list.html +2127 -671
- data/docs/top-level-namespace.html +4 -4
- data/lib/ngrokapi/client.rb +21 -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/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_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_request_headers.rb +2 -0
- data/lib/ngrokapi/models/endpoint_response_headers.rb +2 -0
- data/lib/ngrokapi/models/endpoint_saml.rb +16 -4
- data/lib/ngrokapi/models/endpoint_saml_mutate.rb +7 -1
- 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_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 -1
- data/lib/ngrokapi/models/event_source_list.rb +7 -1
- data/lib/ngrokapi/models/event_source_replace.rb +2 -0
- data/lib/ngrokapi/models/event_subscription.rb +7 -1
- data/lib/ngrokapi/models/event_target.rb +5 -1
- 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 +7 -1
- data/lib/ngrokapi/models/identity_provider.rb +33 -0
- data/lib/ngrokapi/models/ip_policy.rb +7 -1
- 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 +7 -1
- data/lib/ngrokapi/models/reserved_domain.rb +7 -1
- 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/tcp_edge.rb +7 -1
- 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 +7 -1
- 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/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_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_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 +2 -0
- data/lib/ngrokapi/services/edges_tcp_client.rb +2 -0
- data/lib/ngrokapi/services/edges_tls_client.rb +2 -0
- 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 +10 -8
- 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/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/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_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 +20 -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/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_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_request_headers_spec.rb +2 -0
- data/spec/ngrokapi/models/endpoint_response_headers_spec.rb +2 -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_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 +2 -0
- 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/tcp_edge_spec.rb +2 -0
- 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 +2 -0
- 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/certificate_authorities_client_spec.rb +2 -0
- data/spec/ngrokapi/services/credentials_client_spec.rb +10 -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_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_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 +2 -0
- data/spec/ngrokapi/services/edges_tcp_client_spec.rb +2 -0
- data/spec/ngrokapi/services/edges_tls_client_spec.rb +2 -0
- 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/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/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_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 +94 -2
- metadata +68 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c92cbd041a51750e9d3929bb97e2e1a8c13edb2861bb444ead41b04e969e35d
|
4
|
+
data.tar.gz: 1f15164b9a45c7c99b6583ba9aa7fb38a17df07a788f32b3cdde829144c13972
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1ad0751a9ffb00656b77c91d6b380dc71833e644cfad5e6a593e672f1c773231483d6581bb803bb0a5dba568719385a5f33b7af22eecafc9fc82edba2619e7a
|
7
|
+
data.tar.gz: 41af3d9a9bd87f244cb59b60ad77a1d4ea3ac2124b0037bd9991f9b49b6e2058591c4d6727b99ef24c2982726947edf395fa46b7a0eacb8560a19c2b2e433d1b
|
data/.github/workflows/ci.yml
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
name: CI
|
2
|
-
on:
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [ main ]
|
5
|
+
pull_request:
|
6
|
+
branches: [ main ]
|
3
7
|
jobs:
|
4
8
|
build:
|
5
9
|
runs-on: ubuntu-latest
|
@@ -9,13 +13,9 @@ jobs:
|
|
9
13
|
steps:
|
10
14
|
- name: Check out repository code
|
11
15
|
uses: actions/checkout@v2
|
12
|
-
-
|
13
|
-
uses: actions/setup-ruby@v1
|
16
|
+
- uses: ruby/setup-ruby@v1
|
14
17
|
with:
|
15
18
|
ruby-version: ${{ matrix.ruby }}
|
16
|
-
|
17
|
-
run: gem install bundler
|
18
|
-
- name: Run bundler
|
19
|
-
run: bundle install --jobs 4 --retry 3
|
19
|
+
bundler-cache: true
|
20
20
|
- name: Run Rake
|
21
21
|
run: bundle exec rake
|
data/.gitignore
CHANGED
@@ -1,13 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
Gemfile.lock
|
4
|
+
.DS_Store
|
5
|
+
.yardoc/
|
6
|
+
tmp/
|
7
|
+
log/
|
8
|
+
pkg/
|
9
|
+
*.swp
|
10
|
+
/.bundle
|
11
|
+
.rvmrc
|
12
|
+
coverage
|
13
|
+
*.gem
|
14
|
+
.idea
|
15
|
+
.env
|
data/.rubocop.yml
CHANGED
@@ -1,28 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
inherit_from:
|
4
|
+
- .rubocop_airbnb.yml
|
5
|
+
|
6
|
+
AllCops:
|
7
|
+
TargetRubyVersion: 2.7
|
8
|
+
|
9
|
+
Metrics/LineLength:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
# Ignore Rails-y Airbnb recommendation
|
13
|
+
Airbnb/ClassOrModuleDeclaredInWrongFile:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
# Ignore Rails-y Airbnb recommendation
|
17
|
+
Airbnb/ConstAssignedInWrongFile:
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
# Allow empty examples to stub out specs
|
21
|
+
RSpec/EmptyExampleGroup:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
# Allow fake tests to stub out specs
|
25
|
+
RSpec/ExpectActual:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
# It just looks nicer
|
29
|
+
Layout/ArgumentAlignment:
|
30
|
+
EnforcedStyle: with_fixed_indentation
|
data/.rubocop_airbnb.yml
CHANGED
data/.simplecov
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<!-- Code generated for API Clients. DO NOT EDIT. -->
|
2
|
+
|
3
|
+
## 0.15.0
|
4
|
+
|
5
|
+
ENHANCEMENTS:
|
6
|
+
|
7
|
+
* Added `owner_id` field to the `api_key`, `credential`, and `ssh_credential` resources. If supplied at credential creation, ownership will be assigned to the specified User or Bot. Only admins may specify an owner other than themselves. Defaults to the authenticated User or Bot.
|
8
|
+
* Added `failover_backend`, `http_response_backend`, and `tunnel_group_backend` resources. A Failover backend defines failover behavior within a list of referenced backends. Traffic is sent to the first backend in the list. If that backend is offline or no connection can be established, ngrok attempts to connect to the next backend in the list until one is successful.
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# ngrok Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
## Our Standards
|
8
|
+
|
9
|
+
Examples of behavior that contributes to creating a positive environment include:
|
10
|
+
|
11
|
+
- Using welcoming and inclusive language
|
12
|
+
- Being respectful of differing viewpoints and experiences
|
13
|
+
- Gracefully accepting constructive criticism
|
14
|
+
- Focusing on what is best for the community
|
15
|
+
- Showing empathy towards other community members
|
16
|
+
|
17
|
+
Examples of unacceptable behavior by participants include:
|
18
|
+
|
19
|
+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
|
20
|
+
- Trolling, insulting/derogatory comments, and personal or political attacks
|
21
|
+
- Public or private harassment
|
22
|
+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
|
23
|
+
- Other conduct which could reasonably be considered inappropriate in a professional setting
|
24
|
+
|
25
|
+
## Our Responsibilities
|
26
|
+
|
27
|
+
The ngrok documentation team is responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
|
28
|
+
|
29
|
+
The ngrok documentation team has the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
|
30
|
+
|
31
|
+
## Scope
|
32
|
+
|
33
|
+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the ngrok docs project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
|
34
|
+
|
35
|
+
## Enforcement
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [support@ngrok.com](mailto:support@ngrok.com). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
|
38
|
+
|
39
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
|
40
|
+
|
41
|
+
## Attribution
|
42
|
+
|
43
|
+
This Code of Conduct is adapted from the Contributor Covenant, version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
44
|
+
|
45
|
+
For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq
|
data/Gemfile
CHANGED
@@ -1,33 +1,35 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
# https://github.com/guard/guard
|
10
|
-
gem 'guard
|
11
|
-
# https://github.com/guard/guard-
|
12
|
-
gem 'guard-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
# https://github.com/
|
19
|
-
gem '
|
20
|
-
# https://github.com/
|
21
|
-
gem '
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
# https://github.com/
|
28
|
-
gem '
|
29
|
-
# https://github.com/
|
30
|
-
gem '
|
31
|
-
# https://github.com/airbnb/ruby/tree/master/rubocop
|
32
|
-
gem 'rubocop
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
gemspec
|
5
|
+
|
6
|
+
gem 'rake'
|
7
|
+
|
8
|
+
group :development do
|
9
|
+
# https://github.com/guard/guard
|
10
|
+
gem 'guard'
|
11
|
+
# https://github.com/guard/guard-rspec
|
12
|
+
gem 'guard-rspec'
|
13
|
+
# https://github.com/guard/guard-bundler
|
14
|
+
gem 'guard-bundler'
|
15
|
+
end
|
16
|
+
|
17
|
+
group :test do
|
18
|
+
# https://github.com/rspec/rspec
|
19
|
+
gem 'rspec'
|
20
|
+
# https://github.com/simplecov-ruby/simplecov
|
21
|
+
gem 'simplecov', require: false
|
22
|
+
# https://github.com/bblimke/webmock
|
23
|
+
gem 'webmock'
|
24
|
+
end
|
25
|
+
|
26
|
+
group :development, :test do
|
27
|
+
# https://github.com/pry/pry
|
28
|
+
gem 'pry'
|
29
|
+
# https://github.com/lsegal/yard
|
30
|
+
gem 'yard'
|
31
|
+
# https://github.com/airbnb/ruby/tree/master/rubocop
|
32
|
+
gem 'rubocop'
|
33
|
+
# https://github.com/airbnb/ruby/tree/master/rubocop-airbnb
|
34
|
+
gem 'rubocop-airbnb'
|
33
35
|
end
|
data/Guardfile
CHANGED
@@ -1,16 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
watch(
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
rspec_options = {
|
4
|
+
version: 1,
|
5
|
+
all_after_pass: false,
|
6
|
+
all_on_start: false
|
7
|
+
}
|
8
|
+
|
9
|
+
guard 'rspec', rspec_options do
|
10
|
+
watch(%r{^spec/.+_spec\.rb$})
|
11
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
12
|
+
watch('spec/spec_helper.rb') { "spec" }
|
13
|
+
end
|
14
|
+
|
15
|
+
guard 'bundler' do
|
16
|
+
watch('Gemfile')
|
17
|
+
watch(/^.+\.gemspec/)
|
18
|
+
end
|
data/README.md
CHANGED
@@ -1,88 +1,94 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
```
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
description: "A Ruby Created
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
)
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
```
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
```
|
1
|
+
<!-- Code generated for API Clients. DO NOT EDIT. -->
|
2
|
+
|
3
|
+
# ngrok API client library for Ruby
|
4
|
+
|
5
|
+
This library wraps the [ngrok HTTP API](https://ngrok.com/docs/api) to make it
|
6
|
+
easier to consume in Ruby.
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
This library is published on [Rubygems](https://rubygems.org/gems/ngrok-api)
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem install ngrok-api
|
14
|
+
```
|
15
|
+
|
16
|
+
## Support
|
17
|
+
|
18
|
+
The best place to get support using this library is through the [ngrok Slack Community](https://ngrok.com/slack). If you find any bugs, please contribute by opening a [new GitHub issue](https://github.com/ngrok/ngrok-api-ruby/issues/new/choose).
|
19
|
+
|
20
|
+
## Documentation
|
21
|
+
|
22
|
+
A quickstart guide and a full API reference are included in the [ngrok Ruby API documentation](https://ruby-api.docs.ngrok.com)
|
23
|
+
|
24
|
+
## Quickstart
|
25
|
+
|
26
|
+
Please consult the [documentation](https://ruby-api.docs.ngrok.com) for additional examples.
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
require 'ngrokapi'
|
30
|
+
client = NgrokAPI::Client.new(api_key: '<API KEY>')
|
31
|
+
|
32
|
+
# Get an instance of the api_keys client and list all API keys
|
33
|
+
keys_client = client.api_keys
|
34
|
+
keys_client.list
|
35
|
+
|
36
|
+
# Or set up an edge and backend with the ability to change your configuration later
|
37
|
+
edge = client.edges.https.create!(
|
38
|
+
description: "A Ruby Created Edge",
|
39
|
+
metadata: '{"client": "ruby"}',
|
40
|
+
hostports: ["your-subdomain.ngrok.io:443"]
|
41
|
+
)
|
42
|
+
|
43
|
+
backend = client.backends.tunnel_group.create!(
|
44
|
+
description: "A Ruby Created Backend",
|
45
|
+
labels: {"client_example": "ruby"}
|
46
|
+
)
|
47
|
+
|
48
|
+
route = client.edges.https_routes.create!(
|
49
|
+
edge_id: edge.id,
|
50
|
+
match_type: "path_prefix",
|
51
|
+
match: "/",
|
52
|
+
description: "Root",
|
53
|
+
backend: NgrokAPI::Models::EndpointBackendMutate.new(attrs: {"enabled": true, "backend_id": backend.id}),
|
54
|
+
compression: NgrokAPI::Models::EndpointCompression.new(attrs: {"enabled": true})
|
55
|
+
)
|
56
|
+
|
57
|
+
client.edge_modules.https_edge_route_compression.replace!(
|
58
|
+
edge_id: edge.id,
|
59
|
+
id: route.id,
|
60
|
+
a_module: NgrokAPI::Models::EndpointCompression.new(attrs: {"enabled": false})
|
61
|
+
)
|
62
|
+
```
|
63
|
+
|
64
|
+
## Local Documentation
|
65
|
+
|
66
|
+
Documentation can be generated with the command:
|
67
|
+
|
68
|
+
```ruby
|
69
|
+
bundle exec yard doc 'lib/**/*.rb'
|
70
|
+
```
|
71
|
+
|
72
|
+
This will generate documentation which can be viewed within the doc folder.
|
73
|
+
|
74
|
+
## Specs
|
75
|
+
|
76
|
+
Specs can be run with the command:
|
77
|
+
|
78
|
+
```ruby
|
79
|
+
bundle exec rake
|
80
|
+
```
|
81
|
+
|
82
|
+
This will generate a coverage report which can be viewed within the coverage folder.
|
83
|
+
|
84
|
+
## Rubocop
|
85
|
+
|
86
|
+
Rubocop can be run with the command:
|
87
|
+
|
88
|
+
```ruby
|
89
|
+
# Run rubocop on lib folder
|
90
|
+
bundle exec rubocop 'lib'
|
91
|
+
|
92
|
+
# Run rubcop on all files
|
93
|
+
bundle exec rubocop
|
94
|
+
```
|
data/Rakefile
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
# Code generated for API Clients. DO NOT EDIT.
|
2
|
+
|
3
|
+
begin
|
4
|
+
require 'rspec/core/rake_task'
|
5
|
+
RSpec::Core::RakeTask.new(:spec)
|
6
|
+
rescue LoadError
|
7
|
+
end
|
8
|
+
|
9
|
+
task default: [:spec]
|