ngrok-api 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -1
- data/doc/NgrokAPI/Client.html +1 -1
- data/doc/NgrokAPI/Error.html +1 -1
- data/doc/NgrokAPI/Errors/NotFoundError.html +1 -1
- data/doc/NgrokAPI/Errors.html +1 -1
- data/doc/NgrokAPI/HttpClient.html +146 -3
- data/doc/NgrokAPI/Models/APIKey.html +119 -67
- data/doc/NgrokAPI/Models/AWSAuth.html +82 -30
- data/doc/NgrokAPI/Models/AWSCredentials.html +89 -37
- data/doc/NgrokAPI/Models/AWSRole.html +74 -22
- data/doc/NgrokAPI/Models/AbuseReport.html +108 -56
- data/doc/NgrokAPI/Models/AbuseReportHostname.html +82 -30
- data/doc/NgrokAPI/Models/AgentIngress.html +141 -89
- data/doc/NgrokAPI/Models/CertificateAuthority.html +148 -96
- data/doc/NgrokAPI/Models/Credential.html +120 -68
- data/doc/NgrokAPI/Models/Endpoint.html +138 -86
- data/doc/NgrokAPI/Models/EndpointBackend.html +89 -37
- data/doc/NgrokAPI/Models/EndpointBackendMutate.html +89 -37
- data/doc/NgrokAPI/Models/EndpointCircuitBreaker.html +100 -48
- data/doc/NgrokAPI/Models/EndpointCompression.html +81 -29
- data/doc/NgrokAPI/Models/EndpointIPPolicy.html +89 -37
- data/doc/NgrokAPI/Models/EndpointIPPolicyMutate.html +89 -37
- data/doc/NgrokAPI/Models/EndpointMutualTLS.html +89 -37
- data/doc/NgrokAPI/Models/EndpointMutualTLSMutate.html +89 -37
- data/doc/NgrokAPI/Models/EndpointOAuth.html +123 -71
- data/doc/NgrokAPI/Models/EndpointOAuthFacebook.html +106 -54
- data/doc/NgrokAPI/Models/EndpointOAuthGitHub.html +115 -63
- data/doc/NgrokAPI/Models/EndpointOAuthGoogle.html +106 -54
- data/doc/NgrokAPI/Models/EndpointOAuthMicrosoft.html +106 -54
- data/doc/NgrokAPI/Models/EndpointOAuthProvider.html +105 -53
- data/doc/NgrokAPI/Models/EndpointOIDC.html +132 -80
- data/doc/NgrokAPI/Models/EndpointRequestHeaders.html +90 -38
- data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +90 -38
- data/doc/NgrokAPI/Models/EndpointSAML.html +147 -95
- data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +132 -80
- data/doc/NgrokAPI/Models/EndpointTLSTermination.html +90 -38
- data/doc/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +89 -37
- data/doc/NgrokAPI/Models/EndpointWebhookValidation.html +90 -38
- data/doc/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +81 -29
- data/doc/NgrokAPI/Models/EventDestination.html +121 -69
- data/doc/NgrokAPI/Models/EventSource.html +91 -39
- data/doc/NgrokAPI/Models/EventSourceList.html +75 -23
- data/doc/NgrokAPI/Models/EventSourceReplace.html +90 -38
- data/doc/NgrokAPI/Models/EventSubscription.html +121 -69
- data/doc/NgrokAPI/Models/EventTarget.html +105 -53
- data/doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html +89 -37
- data/doc/NgrokAPI/Models/EventTargetFirehose.html +89 -37
- data/doc/NgrokAPI/Models/EventTargetKinesis.html +82 -30
- data/doc/NgrokAPI/Models/FailoverBackend.html +127 -75
- data/doc/NgrokAPI/Models/HTTPResponseBackend.html +135 -83
- data/doc/NgrokAPI/Models/HTTPSEdge.html +136 -84
- data/doc/NgrokAPI/Models/HTTPSEdgeRoute.html +163 -111
- data/doc/NgrokAPI/Models/IPPolicy.html +119 -67
- data/doc/NgrokAPI/Models/IPPolicyRule.html +135 -83
- data/doc/NgrokAPI/Models/IPRestriction.html +129 -77
- data/doc/NgrokAPI/Models/Listable.html +60 -60
- data/doc/NgrokAPI/Models/Ref.html +82 -30
- data/doc/NgrokAPI/Models/ReservedAddr.html +129 -77
- data/doc/NgrokAPI/Models/ReservedDomain.html +150 -98
- data/doc/NgrokAPI/Models/ReservedDomainCertJob.html +91 -39
- data/doc/NgrokAPI/Models/ReservedDomainCertPolicy.html +89 -37
- data/doc/NgrokAPI/Models/ReservedDomainCertStatus.html +89 -37
- data/doc/NgrokAPI/Models/SSHCertificateAuthority.html +134 -82
- data/doc/NgrokAPI/Models/SSHCredential.html +127 -75
- data/doc/NgrokAPI/Models/SSHHostCertificate.html +147 -95
- data/doc/NgrokAPI/Models/SSHUserCertificate.html +153 -101
- data/doc/NgrokAPI/Models/TCPEdge.html +141 -89
- data/doc/NgrokAPI/Models/TLSCertificate.html +164 -112
- data/doc/NgrokAPI/Models/TLSCertificateSANs.html +89 -37
- data/doc/NgrokAPI/Models/TLSEdge.html +145 -93
- data/doc/NgrokAPI/Models/Tunnel.html +136 -84
- data/doc/NgrokAPI/Models/TunnelGroupBackend.html +128 -76
- data/doc/NgrokAPI/Models/TunnelSession.html +125 -73
- data/doc/NgrokAPI/Models/WeightedBackend.html +127 -75
- data/doc/NgrokAPI/Models.html +1 -1
- data/doc/NgrokAPI/PagedIterator.html +2 -2
- data/doc/NgrokAPI/Services/APIKeysClient.html +243 -108
- data/doc/NgrokAPI/Services/AbuseReportsClient.html +161 -24
- data/doc/NgrokAPI/Services/AgentIngressesClient.html +261 -108
- data/doc/NgrokAPI/Services/CertificateAuthoritiesClient.html +261 -108
- data/doc/NgrokAPI/Services/CredentialsClient.html +265 -110
- data/doc/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/EdgesHTTPSClient.html +304 -114
- data/doc/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +513 -98
- data/doc/NgrokAPI/Services/EdgesTCPClient.html +304 -114
- data/doc/NgrokAPI/Services/EdgesTLSClient.html +338 -118
- data/doc/NgrokAPI/Services/EndpointsClient.html +19 -23
- data/doc/NgrokAPI/Services/EventDestinationsClient.html +287 -112
- data/doc/NgrokAPI/Services/EventSourcesClient.html +226 -87
- data/doc/NgrokAPI/Services/EventSubscriptionsClient.html +287 -112
- data/doc/NgrokAPI/Services/FailoverBackendsClient.html +267 -112
- data/doc/NgrokAPI/Services/HTTPResponseBackendsClient.html +307 -114
- data/doc/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/IPPoliciesClient.html +243 -108
- data/doc/NgrokAPI/Services/IPPolicyRulesClient.html +301 -110
- data/doc/NgrokAPI/Services/IPRestrictionsClient.html +303 -112
- data/doc/NgrokAPI/Services/ReservedAddrsClient.html +263 -108
- data/doc/NgrokAPI/Services/ReservedDomainsClient.html +357 -144
- data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +303 -108
- data/doc/NgrokAPI/Services/SSHCredentialsClient.html +283 -110
- data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +339 -108
- data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +380 -109
- data/doc/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/TLSCertificatesClient.html +279 -108
- data/doc/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +27 -31
- data/doc/NgrokAPI/Services/TunnelGroupBackendsClient.html +267 -112
- data/doc/NgrokAPI/Services/TunnelSessionsClient.html +43 -47
- data/doc/NgrokAPI/Services/TunnelsClient.html +19 -23
- data/doc/NgrokAPI/Services/WeightedBackendsClient.html +270 -115
- data/doc/NgrokAPI/Services.html +1 -1
- data/doc/NgrokAPI.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.README.html +54 -54
- data/doc/index.html +54 -54
- data/doc/method_list.html +1089 -337
- data/doc/top-level-namespace.html +1 -1
- data/docs/NgrokAPI/Client.html +1 -1
- data/docs/NgrokAPI/Error.html +1 -1
- data/docs/NgrokAPI/Errors/NotFoundError.html +1 -1
- data/docs/NgrokAPI/Errors.html +1 -1
- data/docs/NgrokAPI/HttpClient.html +146 -3
- data/docs/NgrokAPI/Models/APIKey.html +119 -67
- data/docs/NgrokAPI/Models/AWSAuth.html +82 -30
- data/docs/NgrokAPI/Models/AWSCredentials.html +89 -37
- data/docs/NgrokAPI/Models/AWSRole.html +74 -22
- data/docs/NgrokAPI/Models/AbuseReport.html +108 -56
- data/docs/NgrokAPI/Models/AbuseReportHostname.html +82 -30
- data/docs/NgrokAPI/Models/AgentIngress.html +141 -89
- data/docs/NgrokAPI/Models/CertificateAuthority.html +148 -96
- data/docs/NgrokAPI/Models/Credential.html +120 -68
- data/docs/NgrokAPI/Models/Endpoint.html +138 -86
- data/docs/NgrokAPI/Models/EndpointBackend.html +89 -37
- data/docs/NgrokAPI/Models/EndpointBackendMutate.html +89 -37
- data/docs/NgrokAPI/Models/EndpointCircuitBreaker.html +100 -48
- data/docs/NgrokAPI/Models/EndpointCompression.html +81 -29
- data/docs/NgrokAPI/Models/EndpointIPPolicy.html +89 -37
- data/docs/NgrokAPI/Models/EndpointIPPolicyMutate.html +89 -37
- data/docs/NgrokAPI/Models/EndpointMutualTLS.html +89 -37
- data/docs/NgrokAPI/Models/EndpointMutualTLSMutate.html +89 -37
- data/docs/NgrokAPI/Models/EndpointOAuth.html +123 -71
- data/docs/NgrokAPI/Models/EndpointOAuthFacebook.html +106 -54
- data/docs/NgrokAPI/Models/EndpointOAuthGitHub.html +115 -63
- data/docs/NgrokAPI/Models/EndpointOAuthGoogle.html +106 -54
- data/docs/NgrokAPI/Models/EndpointOAuthMicrosoft.html +106 -54
- data/docs/NgrokAPI/Models/EndpointOAuthProvider.html +105 -53
- data/docs/NgrokAPI/Models/EndpointOIDC.html +132 -80
- data/docs/NgrokAPI/Models/EndpointRequestHeaders.html +90 -38
- data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +90 -38
- data/docs/NgrokAPI/Models/EndpointSAML.html +147 -95
- data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +132 -80
- data/docs/NgrokAPI/Models/EndpointTLSTermination.html +90 -38
- data/docs/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +89 -37
- data/docs/NgrokAPI/Models/EndpointWebhookValidation.html +90 -38
- data/docs/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +81 -29
- data/docs/NgrokAPI/Models/EventDestination.html +121 -69
- data/docs/NgrokAPI/Models/EventSource.html +91 -39
- data/docs/NgrokAPI/Models/EventSourceList.html +75 -23
- data/docs/NgrokAPI/Models/EventSourceReplace.html +90 -38
- data/docs/NgrokAPI/Models/EventSubscription.html +121 -69
- data/docs/NgrokAPI/Models/EventTarget.html +105 -53
- data/docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html +89 -37
- data/docs/NgrokAPI/Models/EventTargetFirehose.html +89 -37
- data/docs/NgrokAPI/Models/EventTargetKinesis.html +82 -30
- data/docs/NgrokAPI/Models/FailoverBackend.html +127 -75
- data/docs/NgrokAPI/Models/HTTPResponseBackend.html +135 -83
- data/docs/NgrokAPI/Models/HTTPSEdge.html +136 -84
- data/docs/NgrokAPI/Models/HTTPSEdgeRoute.html +163 -111
- data/docs/NgrokAPI/Models/IPPolicy.html +119 -67
- data/docs/NgrokAPI/Models/IPPolicyRule.html +135 -83
- data/docs/NgrokAPI/Models/IPRestriction.html +129 -77
- data/docs/NgrokAPI/Models/Listable.html +60 -60
- data/docs/NgrokAPI/Models/Ref.html +82 -30
- data/docs/NgrokAPI/Models/ReservedAddr.html +129 -77
- data/docs/NgrokAPI/Models/ReservedDomain.html +150 -98
- data/docs/NgrokAPI/Models/ReservedDomainCertJob.html +91 -39
- data/docs/NgrokAPI/Models/ReservedDomainCertPolicy.html +89 -37
- data/docs/NgrokAPI/Models/ReservedDomainCertStatus.html +89 -37
- data/docs/NgrokAPI/Models/SSHCertificateAuthority.html +134 -82
- data/docs/NgrokAPI/Models/SSHCredential.html +127 -75
- data/docs/NgrokAPI/Models/SSHHostCertificate.html +147 -95
- data/docs/NgrokAPI/Models/SSHUserCertificate.html +153 -101
- data/docs/NgrokAPI/Models/TCPEdge.html +141 -89
- data/docs/NgrokAPI/Models/TLSCertificate.html +164 -112
- data/docs/NgrokAPI/Models/TLSCertificateSANs.html +89 -37
- data/docs/NgrokAPI/Models/TLSEdge.html +145 -93
- data/docs/NgrokAPI/Models/Tunnel.html +136 -84
- data/docs/NgrokAPI/Models/TunnelGroupBackend.html +128 -76
- data/docs/NgrokAPI/Models/TunnelSession.html +125 -73
- data/docs/NgrokAPI/Models/WeightedBackend.html +127 -75
- data/docs/NgrokAPI/Models.html +1 -1
- data/docs/NgrokAPI/PagedIterator.html +2 -2
- data/docs/NgrokAPI/Services/APIKeysClient.html +243 -108
- data/docs/NgrokAPI/Services/AbuseReportsClient.html +161 -24
- data/docs/NgrokAPI/Services/AgentIngressesClient.html +261 -108
- data/docs/NgrokAPI/Services/CertificateAuthoritiesClient.html +261 -108
- data/docs/NgrokAPI/Services/CredentialsClient.html +265 -110
- data/docs/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/EdgesHTTPSClient.html +304 -114
- data/docs/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +513 -98
- data/docs/NgrokAPI/Services/EdgesTCPClient.html +304 -114
- data/docs/NgrokAPI/Services/EdgesTLSClient.html +338 -118
- data/docs/NgrokAPI/Services/EndpointsClient.html +19 -23
- data/docs/NgrokAPI/Services/EventDestinationsClient.html +287 -112
- data/docs/NgrokAPI/Services/EventSourcesClient.html +226 -87
- data/docs/NgrokAPI/Services/EventSubscriptionsClient.html +287 -112
- data/docs/NgrokAPI/Services/FailoverBackendsClient.html +267 -112
- data/docs/NgrokAPI/Services/HTTPResponseBackendsClient.html +307 -114
- data/docs/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/IPPoliciesClient.html +243 -108
- data/docs/NgrokAPI/Services/IPPolicyRulesClient.html +301 -110
- data/docs/NgrokAPI/Services/IPRestrictionsClient.html +303 -112
- data/docs/NgrokAPI/Services/ReservedAddrsClient.html +263 -108
- data/docs/NgrokAPI/Services/ReservedDomainsClient.html +357 -144
- data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +303 -108
- data/docs/NgrokAPI/Services/SSHCredentialsClient.html +283 -110
- data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +339 -108
- data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +380 -109
- data/docs/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/TLSCertificatesClient.html +279 -108
- data/docs/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +27 -31
- data/docs/NgrokAPI/Services/TunnelGroupBackendsClient.html +267 -112
- data/docs/NgrokAPI/Services/TunnelSessionsClient.html +43 -47
- data/docs/NgrokAPI/Services/TunnelsClient.html +19 -23
- data/docs/NgrokAPI/Services/WeightedBackendsClient.html +270 -115
- data/docs/NgrokAPI/Services.html +1 -1
- data/docs/NgrokAPI.html +1 -1
- data/docs/_index.html +1 -1
- data/docs/file.README.html +54 -54
- data/docs/index.html +54 -54
- data/docs/method_list.html +1089 -337
- data/docs/top-level-namespace.html +1 -1
- data/lib/ngrokapi/http_client.rb +21 -2
- data/lib/ngrokapi/models/abuse_report.rb +16 -12
- data/lib/ngrokapi/models/abuse_report_hostname.rb +11 -7
- data/lib/ngrokapi/models/agent_ingress.rb +17 -13
- data/lib/ngrokapi/models/api_key.rb +15 -11
- data/lib/ngrokapi/models/aws_auth.rb +11 -7
- data/lib/ngrokapi/models/aws_credentials.rb +11 -7
- data/lib/ngrokapi/models/aws_role.rb +10 -6
- data/lib/ngrokapi/models/certificate_authority.rb +20 -16
- data/lib/ngrokapi/models/credential.rb +16 -12
- data/lib/ngrokapi/models/endpoint.rb +22 -18
- data/lib/ngrokapi/models/endpoint_backend.rb +11 -7
- data/lib/ngrokapi/models/endpoint_backend_mutate.rb +11 -7
- data/lib/ngrokapi/models/endpoint_circuit_breaker.rb +15 -11
- data/lib/ngrokapi/models/endpoint_compression.rb +10 -6
- data/lib/ngrokapi/models/endpoint_ip_policy.rb +11 -7
- data/lib/ngrokapi/models/endpoint_ip_policy_mutate.rb +11 -7
- data/lib/ngrokapi/models/endpoint_mutual_tls.rb +11 -7
- data/lib/ngrokapi/models/endpoint_mutual_tls_mutate.rb +11 -7
- data/lib/ngrokapi/models/endpoint_o_auth.rb +16 -12
- data/lib/ngrokapi/models/endpoint_o_auth_facebook.rb +14 -10
- data/lib/ngrokapi/models/endpoint_o_auth_git_hub.rb +16 -12
- data/lib/ngrokapi/models/endpoint_o_auth_google.rb +14 -10
- data/lib/ngrokapi/models/endpoint_o_auth_microsoft.rb +14 -10
- data/lib/ngrokapi/models/endpoint_o_auth_provider.rb +13 -9
- data/lib/ngrokapi/models/endpoint_oidc.rb +18 -14
- data/lib/ngrokapi/models/endpoint_request_headers.rb +12 -8
- data/lib/ngrokapi/models/endpoint_response_headers.rb +12 -8
- data/lib/ngrokapi/models/endpoint_saml.rb +25 -21
- data/lib/ngrokapi/models/endpoint_saml_mutate.rb +20 -16
- data/lib/ngrokapi/models/endpoint_tls_termination.rb +12 -8
- data/lib/ngrokapi/models/endpoint_tls_termination_at_edge.rb +11 -7
- data/lib/ngrokapi/models/endpoint_webhook_validation.rb +12 -8
- data/lib/ngrokapi/models/endpoint_websocket_tcp_converter.rb +10 -6
- data/lib/ngrokapi/models/event_destination.rb +16 -12
- data/lib/ngrokapi/models/event_source.rb +13 -9
- data/lib/ngrokapi/models/event_source_list.rb +11 -7
- data/lib/ngrokapi/models/event_source_replace.rb +12 -8
- data/lib/ngrokapi/models/event_subscription.rb +16 -12
- data/lib/ngrokapi/models/event_target.rb +13 -9
- data/lib/ngrokapi/models/event_target_cloudwatch_logs.rb +11 -7
- data/lib/ngrokapi/models/event_target_firehose.rb +11 -7
- data/lib/ngrokapi/models/event_target_kinesis.rb +11 -7
- data/lib/ngrokapi/models/failover_backend.rb +16 -12
- data/lib/ngrokapi/models/http_response_backend.rb +17 -13
- data/lib/ngrokapi/models/https_edge.rb +18 -14
- data/lib/ngrokapi/models/https_edge_route.rb +28 -24
- data/lib/ngrokapi/models/ip_policy.rb +15 -11
- data/lib/ngrokapi/models/ip_policy_rule.rb +17 -13
- data/lib/ngrokapi/models/ip_restriction.rb +17 -13
- data/lib/ngrokapi/models/listable.rb +9 -9
- data/lib/ngrokapi/models/ref.rb +11 -7
- data/lib/ngrokapi/models/reserved_addr.rb +17 -13
- data/lib/ngrokapi/models/reserved_domain.rb +23 -19
- data/lib/ngrokapi/models/reserved_domain_cert_job.rb +13 -9
- data/lib/ngrokapi/models/reserved_domain_cert_policy.rb +11 -7
- data/lib/ngrokapi/models/reserved_domain_cert_status.rb +11 -7
- data/lib/ngrokapi/models/ssh_certificate_authority.rb +16 -12
- data/lib/ngrokapi/models/ssh_credential.rb +16 -12
- data/lib/ngrokapi/models/ssh_host_certificate.rb +21 -17
- data/lib/ngrokapi/models/ssh_user_certificate.rb +23 -19
- data/lib/ngrokapi/models/tcp_edge.rb +17 -13
- data/lib/ngrokapi/models/tls_certificate.rb +30 -26
- data/lib/ngrokapi/models/tls_certificate_sa_ns.rb +11 -7
- data/lib/ngrokapi/models/tls_edge.rb +19 -15
- data/lib/ngrokapi/models/tunnel.rb +20 -16
- data/lib/ngrokapi/models/tunnel_group_backend.rb +17 -13
- data/lib/ngrokapi/models/tunnel_session.rb +19 -15
- data/lib/ngrokapi/models/weighted_backend.rb +16 -12
- data/lib/ngrokapi/paged_iterator.rb +1 -1
- data/lib/ngrokapi/services/abuse_reports_client.rb +25 -3
- data/lib/ngrokapi/services/agent_ingresses_client.rb +32 -11
- data/lib/ngrokapi/services/api_keys_client.rb +30 -11
- data/lib/ngrokapi/services/certificate_authorities_client.rb +31 -11
- data/lib/ngrokapi/services/credentials_client.rb +34 -11
- data/lib/ngrokapi/services/edge_route_backend_module_client.rb +6 -8
- data/lib/ngrokapi/services/edge_route_circuit_breaker_module_client.rb +6 -8
- data/lib/ngrokapi/services/edge_route_compression_module_client.rb +6 -8
- data/lib/ngrokapi/services/edge_route_ip_restriction_module_client.rb +6 -8
- data/lib/ngrokapi/services/edge_route_o_auth_module_client.rb +6 -8
- data/lib/ngrokapi/services/edge_route_oidc_module_client.rb +6 -8
- data/lib/ngrokapi/services/edge_route_request_headers_module_client.rb +6 -8
- data/lib/ngrokapi/services/edge_route_response_headers_module_client.rb +6 -8
- data/lib/ngrokapi/services/edge_route_saml_module_client.rb +6 -8
- data/lib/ngrokapi/services/edge_route_webhook_verification_module_client.rb +6 -8
- data/lib/ngrokapi/services/edge_route_websocket_tcp_converter_module_client.rb +6 -8
- data/lib/ngrokapi/services/edges_https_client.rb +35 -11
- data/lib/ngrokapi/services/edges_https_routes_client.rb +53 -5
- data/lib/ngrokapi/services/edges_tcp_client.rb +35 -11
- data/lib/ngrokapi/services/edges_tls_client.rb +39 -11
- data/lib/ngrokapi/services/endpoints_client.rb +6 -8
- data/lib/ngrokapi/services/event_destinations_client.rb +35 -11
- data/lib/ngrokapi/services/event_sources_client.rb +27 -7
- data/lib/ngrokapi/services/event_subscriptions_client.rb +33 -11
- data/lib/ngrokapi/services/failover_backends_client.rb +33 -13
- data/lib/ngrokapi/services/http_response_backends_client.rb +32 -11
- data/lib/ngrokapi/services/https_edge_mutual_tls_module_client.rb +6 -8
- data/lib/ngrokapi/services/https_edge_tls_termination_module_client.rb +6 -8
- data/lib/ngrokapi/services/ip_policies_client.rb +30 -11
- data/lib/ngrokapi/services/ip_policy_rules_client.rb +35 -11
- data/lib/ngrokapi/services/ip_restrictions_client.rb +35 -11
- data/lib/ngrokapi/services/reserved_addrs_client.rb +31 -11
- data/lib/ngrokapi/services/reserved_domains_client.rb +37 -11
- data/lib/ngrokapi/services/ssh_certificate_authorities_client.rb +35 -11
- data/lib/ngrokapi/services/ssh_credentials_client.rb +34 -11
- data/lib/ngrokapi/services/ssh_host_certificates_client.rb +39 -11
- data/lib/ngrokapi/services/ssh_user_certificates_client.rb +44 -12
- data/lib/ngrokapi/services/tcp_edge_backend_module_client.rb +6 -8
- data/lib/ngrokapi/services/tcp_edge_ip_restriction_module_client.rb +6 -8
- data/lib/ngrokapi/services/tls_certificates_client.rb +33 -11
- data/lib/ngrokapi/services/tls_edge_backend_module_client.rb +6 -8
- data/lib/ngrokapi/services/tls_edge_ip_restriction_module_client.rb +6 -8
- data/lib/ngrokapi/services/tls_edge_mutual_tls_module_client.rb +6 -8
- data/lib/ngrokapi/services/tls_edge_tls_termination_module_client.rb +6 -8
- data/lib/ngrokapi/services/tunnel_group_backends_client.rb +33 -13
- data/lib/ngrokapi/services/tunnel_sessions_client.rb +6 -8
- data/lib/ngrokapi/services/tunnels_client.rb +6 -8
- data/lib/ngrokapi/services/weighted_backends_client.rb +36 -16
- data/lib/ngrokapi/version.rb +1 -1
- data/lib/ngrokapi.rb +1 -1
- data/spec/ngrokapi/models/abuse_report_hostname_spec.rb +2 -2
- data/spec/ngrokapi/models/abuse_report_spec.rb +2 -2
- data/spec/ngrokapi/models/agent_ingress_spec.rb +2 -2
- data/spec/ngrokapi/models/api_key_spec.rb +2 -2
- data/spec/ngrokapi/models/aws_auth_spec.rb +2 -2
- data/spec/ngrokapi/models/aws_credentials_spec.rb +2 -2
- data/spec/ngrokapi/models/aws_role_spec.rb +2 -2
- data/spec/ngrokapi/models/certificate_authority_spec.rb +2 -2
- data/spec/ngrokapi/models/credential_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_backend_mutate_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_backend_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_circuit_breaker_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_compression_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_ip_policy_mutate_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_ip_policy_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_mutual_tls_mutate_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_mutual_tls_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_o_auth_facebook_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_o_auth_git_hub_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_o_auth_google_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_o_auth_microsoft_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_o_auth_provider_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_o_auth_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_oidc_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_request_headers_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_response_headers_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_saml_mutate_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_saml_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_tls_termination_at_edge_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_tls_termination_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_webhook_validation_spec.rb +2 -2
- data/spec/ngrokapi/models/endpoint_websocket_tcp_converter_spec.rb +2 -2
- data/spec/ngrokapi/models/event_destination_spec.rb +2 -2
- data/spec/ngrokapi/models/event_source_list_spec.rb +2 -2
- data/spec/ngrokapi/models/event_source_replace_spec.rb +2 -2
- data/spec/ngrokapi/models/event_source_spec.rb +2 -2
- data/spec/ngrokapi/models/event_subscription_spec.rb +2 -2
- data/spec/ngrokapi/models/event_target_cloudwatch_logs_spec.rb +2 -2
- data/spec/ngrokapi/models/event_target_firehose_spec.rb +2 -2
- data/spec/ngrokapi/models/event_target_kinesis_spec.rb +2 -2
- data/spec/ngrokapi/models/event_target_spec.rb +2 -2
- data/spec/ngrokapi/models/failover_backend_spec.rb +2 -2
- data/spec/ngrokapi/models/http_response_backend_spec.rb +2 -2
- data/spec/ngrokapi/models/https_edge_route_spec.rb +2 -2
- data/spec/ngrokapi/models/https_edge_spec.rb +2 -2
- data/spec/ngrokapi/models/ip_policy_rule_spec.rb +2 -2
- data/spec/ngrokapi/models/ip_policy_spec.rb +2 -2
- data/spec/ngrokapi/models/ip_restriction_spec.rb +2 -2
- data/spec/ngrokapi/models/listable_spec.rb +2 -2
- data/spec/ngrokapi/models/ref_spec.rb +2 -2
- data/spec/ngrokapi/models/reserved_addr_spec.rb +2 -2
- data/spec/ngrokapi/models/reserved_domain_cert_job_spec.rb +2 -2
- data/spec/ngrokapi/models/reserved_domain_cert_policy_spec.rb +2 -2
- data/spec/ngrokapi/models/reserved_domain_cert_status_spec.rb +2 -2
- data/spec/ngrokapi/models/reserved_domain_spec.rb +2 -2
- data/spec/ngrokapi/models/ssh_certificate_authority_spec.rb +2 -2
- data/spec/ngrokapi/models/ssh_credential_spec.rb +2 -2
- data/spec/ngrokapi/models/ssh_host_certificate_spec.rb +2 -2
- data/spec/ngrokapi/models/ssh_user_certificate_spec.rb +2 -2
- data/spec/ngrokapi/models/tcp_edge_spec.rb +2 -2
- data/spec/ngrokapi/models/tls_certificate_sa_ns_spec.rb +2 -2
- data/spec/ngrokapi/models/tls_certificate_spec.rb +2 -2
- data/spec/ngrokapi/models/tls_edge_spec.rb +2 -2
- data/spec/ngrokapi/models/tunnel_group_backend_spec.rb +2 -2
- data/spec/ngrokapi/models/tunnel_session_spec.rb +2 -2
- data/spec/ngrokapi/models/tunnel_spec.rb +2 -2
- data/spec/ngrokapi/models/weighted_backend_spec.rb +2 -2
- data/spec/ngrokapi/paged_iterator_spec.rb +5 -5
- data/spec/ngrokapi/services/abuse_reports_client_spec.rb +19 -0
- data/spec/ngrokapi/services/agent_ingresses_client_spec.rb +21 -0
- data/spec/ngrokapi/services/api_keys_client_spec.rb +19 -0
- data/spec/ngrokapi/services/certificate_authorities_client_spec.rb +21 -0
- data/spec/ngrokapi/services/credentials_client_spec.rb +21 -0
- data/spec/ngrokapi/services/edge_route_backend_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/edge_route_circuit_breaker_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/edge_route_compression_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/edge_route_ip_restriction_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/edge_route_o_auth_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/edge_route_oidc_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/edge_route_request_headers_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/edge_route_response_headers_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/edge_route_saml_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/edge_route_webhook_verification_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/edge_route_websocket_tcp_converter_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/edges_https_client_spec.rb +25 -0
- data/spec/ngrokapi/services/edges_https_routes_client_spec.rb +47 -0
- data/spec/ngrokapi/services/edges_tcp_client_spec.rb +25 -0
- data/spec/ngrokapi/services/edges_tls_client_spec.rb +29 -0
- data/spec/ngrokapi/services/event_destinations_client_spec.rb +24 -0
- data/spec/ngrokapi/services/event_sources_client_spec.rb +21 -0
- data/spec/ngrokapi/services/event_subscriptions_client_spec.rb +23 -0
- data/spec/ngrokapi/services/failover_backends_client_spec.rb +21 -0
- data/spec/ngrokapi/services/http_response_backends_client_spec.rb +25 -0
- data/spec/ngrokapi/services/https_edge_mutual_tls_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/https_edge_tls_termination_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/ip_policies_client_spec.rb +20 -0
- data/spec/ngrokapi/services/ip_policy_rules_client_spec.rb +25 -0
- data/spec/ngrokapi/services/ip_restrictions_client_spec.rb +25 -0
- data/spec/ngrokapi/services/reserved_addrs_client_spec.rb +22 -0
- data/spec/ngrokapi/services/reserved_domains_client_spec.rb +29 -0
- data/spec/ngrokapi/services/ssh_certificate_authorities_client_spec.rb +25 -0
- data/spec/ngrokapi/services/ssh_credentials_client_spec.rb +23 -0
- data/spec/ngrokapi/services/ssh_host_certificates_client_spec.rb +29 -0
- data/spec/ngrokapi/services/ssh_user_certificates_client_spec.rb +33 -0
- data/spec/ngrokapi/services/tcp_edge_backend_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/tcp_edge_ip_restriction_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/tls_certificates_client_spec.rb +23 -0
- data/spec/ngrokapi/services/tls_edge_backend_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/tls_edge_ip_restriction_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/tls_edge_mutual_tls_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/tls_edge_tls_termination_module_client_spec.rb +2 -4
- data/spec/ngrokapi/services/tunnel_group_backends_client_spec.rb +21 -0
- data/spec/ngrokapi/services/weighted_backends_client_spec.rb +21 -0
- metadata +1 -3
- data/doc/README +0 -94
- data/docs/README +0 -94
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ab5ceebe53e0641dcf20ff7d62d74e081fd349a62c3ee3bb6ed6023b61174d3
|
4
|
+
data.tar.gz: 195d75db8c7fe4d830c55637f3226a0bc283370e07ef79ff1c4e683cfbfff837
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c92971ebedeffe60f4227503884acaa4ab5ed74faaffef616b2cb4fac705a4dba992cd8a3c04b5c6316c808eb170d302129f0569d85461994569a5967c488a63
|
7
|
+
data.tar.gz: 226efb2dae11473f3bbd8b65ed04942ad09c3a10ae0d5f60f5f533a73cdbc3140093e51422f6204c9d905276ac7606613e42e85b698471cd3133b309e5731f2c
|
data/README.md
CHANGED
@@ -20,12 +20,39 @@ A quickstart guide and a full API reference are included in the [ngrok Ruby API
|
|
20
20
|
Please consult the [documentation](https://ruby-api.docs.ngrok.com) for additional examples.
|
21
21
|
|
22
22
|
```ruby
|
23
|
-
require 'ngrokapi
|
23
|
+
require 'ngrokapi'
|
24
24
|
client = NgrokAPI::Client.new(api_key: '<API KEY>')
|
25
25
|
|
26
26
|
# Get an instance of the api_keys client and list all API keys
|
27
27
|
keys_client = client.api_keys
|
28
28
|
keys_client.list
|
29
|
+
|
30
|
+
# Or set up an edge and backend with the ability to change your configuration later
|
31
|
+
edge = client.edges.https.create!(
|
32
|
+
description: "A Ruby Created Edge",
|
33
|
+
metadata: '{"client": "ruby"}',
|
34
|
+
hostports: ["your-subdomain.ngrok.io:443"]
|
35
|
+
)
|
36
|
+
|
37
|
+
backend = client.backends.tunnel_group.create!(
|
38
|
+
description: "A Ruby Created Backend",
|
39
|
+
labels: {"client_example": "ruby"}
|
40
|
+
)
|
41
|
+
|
42
|
+
route = client.edges.https_routes.create!(
|
43
|
+
edge_id: edge.id,
|
44
|
+
match_type: "path_prefix",
|
45
|
+
match: "/",
|
46
|
+
description: "Root",
|
47
|
+
backend: NgrokAPI::Models::EndpointBackendMutate.new(attrs: {"enabled": true, "backend_id": backend.id}),
|
48
|
+
compression: NgrokAPI::Models::EndpointCompression.new(attrs: {"enabled": true})
|
49
|
+
)
|
50
|
+
|
51
|
+
client.edge_modules.https_edge_route_compression.replace!(
|
52
|
+
edge_id: edge.id,
|
53
|
+
id: route.id,
|
54
|
+
a_module: NgrokAPI::Models::EndpointCompression.new(attrs: {"enabled": false})
|
55
|
+
)
|
29
56
|
```
|
30
57
|
|
31
58
|
## Local Documentation
|
data/doc/NgrokAPI/Client.html
CHANGED
@@ -1966,7 +1966,7 @@
|
|
1966
1966
|
</div>
|
1967
1967
|
|
1968
1968
|
<div id="footer">
|
1969
|
-
Generated on
|
1969
|
+
Generated on Mon Apr 11 19:32:55 2022 by
|
1970
1970
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1971
1971
|
0.9.27 (ruby-2.7.5).
|
1972
1972
|
</div>
|
data/doc/NgrokAPI/Error.html
CHANGED
@@ -295,7 +295,7 @@
|
|
295
295
|
</div>
|
296
296
|
|
297
297
|
<div id="footer">
|
298
|
-
Generated on
|
298
|
+
Generated on Mon Apr 11 19:32:55 2022 by
|
299
299
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
300
300
|
0.9.27 (ruby-2.7.5).
|
301
301
|
</div>
|
@@ -299,7 +299,7 @@
|
|
299
299
|
</div>
|
300
300
|
|
301
301
|
<div id="footer">
|
302
|
-
Generated on
|
302
|
+
Generated on Mon Apr 11 19:32:57 2022 by
|
303
303
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
304
304
|
0.9.27 (ruby-2.7.5).
|
305
305
|
</div>
|
data/doc/NgrokAPI/Errors.html
CHANGED
@@ -105,7 +105,7 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on
|
108
|
+
Generated on Mon Apr 11 19:32:55 2022 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.9.27 (ruby-2.7.5).
|
111
111
|
</div>
|
@@ -331,6 +331,30 @@
|
|
331
331
|
<p>Make a POST request to a given URI with optional data.</p>
|
332
332
|
</div></span>
|
333
333
|
|
334
|
+
</li>
|
335
|
+
|
336
|
+
|
337
|
+
<li class="public ">
|
338
|
+
<span class="summary_signature">
|
339
|
+
|
340
|
+
<a href="#put-instance_method" title="#put (instance method)">#<strong>put</strong>(path, danger: false, data: {}) ⇒ json </a>
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
</span>
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
<span class="summary_desc"><div class='inline'>
|
355
|
+
<p>Make a PUT request to a given URI with optional data.</p>
|
356
|
+
</div></span>
|
357
|
+
|
334
358
|
</li>
|
335
359
|
|
336
360
|
|
@@ -993,7 +1017,7 @@
|
|
993
1017
|
<span class='kw'>def</span> <span class='id identifier rubyid_patch'>patch</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
994
1018
|
<span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='id identifier rubyid_get_uri'>get_uri</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
995
1019
|
<span class='id identifier rubyid_req'>req</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='op'>::</span><span class='const'>Patch</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='comma'>,</span> <span class='id identifier rubyid_headers_with_json'>headers_with_json</span><span class='rparen'>)</span>
|
996
|
-
<span class='id identifier rubyid_json_do'>json_do</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='comma'>,</span> <span class='id identifier rubyid_req'>req</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='id identifier rubyid_danger'>danger</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span><span class='rparen'>)</span>
|
1020
|
+
<span class='id identifier rubyid_json_do'>json_do</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='comma'>,</span> <span class='id identifier rubyid_req'>req</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='id identifier rubyid_danger'>danger</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_deep_to_h'>deep_to_h</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span><span class='rparen'>)</span>
|
997
1021
|
<span class='kw'>end</span></pre>
|
998
1022
|
</td>
|
999
1023
|
</tr>
|
@@ -1112,7 +1136,126 @@
|
|
1112
1136
|
<span class='kw'>def</span> <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1113
1137
|
<span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='id identifier rubyid_get_uri'>get_uri</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
1114
1138
|
<span class='id identifier rubyid_req'>req</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='op'>::</span><span class='const'>Post</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='comma'>,</span> <span class='id identifier rubyid_headers_with_json'>headers_with_json</span><span class='rparen'>)</span>
|
1115
|
-
<span class='id identifier rubyid_json_do'>json_do</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='comma'>,</span> <span class='id identifier rubyid_req'>req</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='id identifier rubyid_danger'>danger</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span><span class='rparen'>)</span>
|
1139
|
+
<span class='id identifier rubyid_json_do'>json_do</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='comma'>,</span> <span class='id identifier rubyid_req'>req</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='id identifier rubyid_danger'>danger</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_deep_to_h'>deep_to_h</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span><span class='rparen'>)</span>
|
1140
|
+
<span class='kw'>end</span></pre>
|
1141
|
+
</td>
|
1142
|
+
</tr>
|
1143
|
+
</table>
|
1144
|
+
</div>
|
1145
|
+
|
1146
|
+
<div class="method_details ">
|
1147
|
+
<h3 class="signature " id="put-instance_method">
|
1148
|
+
|
1149
|
+
#<strong>put</strong>(path, danger: false, data: {}) ⇒ <tt>json</tt>
|
1150
|
+
|
1151
|
+
|
1152
|
+
|
1153
|
+
|
1154
|
+
|
1155
|
+
</h3><div class="docstring">
|
1156
|
+
<div class="discussion">
|
1157
|
+
|
1158
|
+
<p>Make a PUT request to a given URI with optional data</p>
|
1159
|
+
|
1160
|
+
|
1161
|
+
</div>
|
1162
|
+
</div>
|
1163
|
+
<div class="tags">
|
1164
|
+
<p class="tag_title">Parameters:</p>
|
1165
|
+
<ul class="param">
|
1166
|
+
|
1167
|
+
<li>
|
1168
|
+
|
1169
|
+
<span class='name'>path</span>
|
1170
|
+
|
1171
|
+
|
1172
|
+
<span class='type'>(<tt>string</tt>)</span>
|
1173
|
+
|
1174
|
+
|
1175
|
+
|
1176
|
+
—
|
1177
|
+
<div class='inline'>
|
1178
|
+
<p>URL resource path</p>
|
1179
|
+
</div>
|
1180
|
+
|
1181
|
+
</li>
|
1182
|
+
|
1183
|
+
<li>
|
1184
|
+
|
1185
|
+
<span class='name'>danger</span>
|
1186
|
+
|
1187
|
+
|
1188
|
+
<span class='type'>(<tt>boolean</tt>)</span>
|
1189
|
+
|
1190
|
+
|
1191
|
+
<em class="default">(defaults to: <tt>false</tt>)</em>
|
1192
|
+
|
1193
|
+
|
1194
|
+
—
|
1195
|
+
<div class='inline'>
|
1196
|
+
<p>determine if we should throw an exception on 404 or not</p>
|
1197
|
+
</div>
|
1198
|
+
|
1199
|
+
</li>
|
1200
|
+
|
1201
|
+
<li>
|
1202
|
+
|
1203
|
+
<span class='name'>data</span>
|
1204
|
+
|
1205
|
+
|
1206
|
+
<span class='type'>(<tt>hash</tt>)</span>
|
1207
|
+
|
1208
|
+
|
1209
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
1210
|
+
|
1211
|
+
|
1212
|
+
—
|
1213
|
+
<div class='inline'>
|
1214
|
+
<p>hash which will be converted to query parameters or form data</p>
|
1215
|
+
</div>
|
1216
|
+
|
1217
|
+
</li>
|
1218
|
+
|
1219
|
+
</ul>
|
1220
|
+
|
1221
|
+
<p class="tag_title">Returns:</p>
|
1222
|
+
<ul class="return">
|
1223
|
+
|
1224
|
+
<li>
|
1225
|
+
|
1226
|
+
|
1227
|
+
<span class='type'>(<tt>json</tt>)</span>
|
1228
|
+
|
1229
|
+
|
1230
|
+
|
1231
|
+
—
|
1232
|
+
<div class='inline'>
|
1233
|
+
<p>response body</p>
|
1234
|
+
</div>
|
1235
|
+
|
1236
|
+
</li>
|
1237
|
+
|
1238
|
+
</ul>
|
1239
|
+
|
1240
|
+
</div><table class="source_code">
|
1241
|
+
<tr>
|
1242
|
+
<td>
|
1243
|
+
<pre class="lines">
|
1244
|
+
|
1245
|
+
|
1246
|
+
95
|
1247
|
+
96
|
1248
|
+
97
|
1249
|
+
98
|
1250
|
+
99</pre>
|
1251
|
+
</td>
|
1252
|
+
<td>
|
1253
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/http_client.rb', line 95</span>
|
1254
|
+
|
1255
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1256
|
+
<span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='id identifier rubyid_get_uri'>get_uri</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
1257
|
+
<span class='id identifier rubyid_req'>req</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='op'>::</span><span class='const'>Put</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='comma'>,</span> <span class='id identifier rubyid_headers_with_json'>headers_with_json</span><span class='rparen'>)</span>
|
1258
|
+
<span class='id identifier rubyid_json_do'>json_do</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='comma'>,</span> <span class='id identifier rubyid_req'>req</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='id identifier rubyid_danger'>danger</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_deep_to_h'>deep_to_h</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span><span class='rparen'>)</span>
|
1116
1259
|
<span class='kw'>end</span></pre>
|
1117
1260
|
</td>
|
1118
1261
|
</tr>
|
@@ -1124,7 +1267,7 @@
|
|
1124
1267
|
</div>
|
1125
1268
|
|
1126
1269
|
<div id="footer">
|
1127
|
-
Generated on
|
1270
|
+
Generated on Mon Apr 11 19:32:56 2022 by
|
1128
1271
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1129
1272
|
0.9.27 (ruby-2.7.5).
|
1130
1273
|
</div>
|