ngrok-api 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/doc/NgrokAPI/Client.html +152 -96
- data/doc/NgrokAPI/Error.html +3 -3
- data/doc/NgrokAPI/Errors/NotFoundError.html +3 -3
- data/doc/NgrokAPI/Errors.html +3 -3
- data/doc/NgrokAPI/HttpClient.html +4 -4
- data/doc/NgrokAPI/Models/APIKey.html +3 -3
- data/doc/NgrokAPI/Models/AWSAuth.html +3 -3
- data/doc/NgrokAPI/Models/AWSCredentials.html +3 -3
- data/doc/NgrokAPI/Models/AWSRole.html +3 -3
- data/doc/NgrokAPI/Models/AbuseReport.html +3 -3
- data/doc/NgrokAPI/Models/AbuseReportHostname.html +3 -3
- data/doc/NgrokAPI/Models/AgentIngress.html +3 -3
- data/doc/NgrokAPI/Models/AgentIngressCertJob.html +3 -3
- data/doc/NgrokAPI/Models/AgentIngressCertPolicy.html +3 -3
- data/doc/NgrokAPI/Models/AgentIngressCertStatus.html +3 -3
- data/doc/NgrokAPI/Models/ApplicationSession.html +3 -3
- data/doc/NgrokAPI/Models/ApplicationUser.html +3 -3
- data/doc/NgrokAPI/Models/BotUser.html +1051 -0
- data/doc/NgrokAPI/Models/BrowserSession.html +3 -3
- data/doc/NgrokAPI/Models/CertificateAuthority.html +3 -3
- data/doc/NgrokAPI/Models/Credential.html +3 -3
- data/doc/NgrokAPI/Models/Endpoint.html +3 -3
- data/doc/NgrokAPI/Models/EndpointAction.html +669 -0
- data/doc/NgrokAPI/Models/EndpointBackend.html +3 -3
- data/doc/NgrokAPI/Models/EndpointBackendMutate.html +3 -3
- data/doc/NgrokAPI/Models/EndpointCircuitBreaker.html +3 -3
- data/doc/NgrokAPI/Models/EndpointCompression.html +3 -3
- data/doc/NgrokAPI/Models/EndpointIPPolicy.html +3 -3
- data/doc/NgrokAPI/Models/EndpointIPPolicyMutate.html +3 -3
- data/doc/NgrokAPI/Models/EndpointMutualTLS.html +3 -3
- data/doc/NgrokAPI/Models/EndpointMutualTLSMutate.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuth.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthAmazon.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthFacebook.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthGitHub.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthGitLab.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthGoogle.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthLinkedIn.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthMicrosoft.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthProvider.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOAuthTwitch.html +3 -3
- data/doc/NgrokAPI/Models/EndpointOIDC.html +3 -3
- data/doc/NgrokAPI/Models/EndpointPolicy.html +743 -0
- data/doc/NgrokAPI/Models/EndpointRequestHeaders.html +3 -3
- data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +3 -3
- data/doc/NgrokAPI/Models/EndpointRule.html +743 -0
- data/doc/NgrokAPI/Models/EndpointSAML.html +18 -96
- data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +18 -96
- data/doc/NgrokAPI/Models/EndpointTLSTermination.html +3 -3
- data/doc/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +3 -3
- data/doc/NgrokAPI/Models/EndpointUserAgentFilter.html +743 -0
- data/doc/NgrokAPI/Models/EndpointWebhookValidation.html +3 -3
- data/doc/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +3 -3
- data/doc/NgrokAPI/Models/EventDestination.html +3 -3
- data/doc/NgrokAPI/Models/EventSource.html +19 -167
- data/doc/NgrokAPI/Models/EventSourceList.html +3 -3
- data/doc/NgrokAPI/Models/EventSourceReplace.html +19 -167
- data/doc/NgrokAPI/Models/EventSubscription.html +3 -3
- data/doc/NgrokAPI/Models/EventTarget.html +18 -92
- data/doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html +3 -3
- data/doc/NgrokAPI/Models/EventTargetDatadog.html +3 -3
- data/doc/NgrokAPI/Models/EventTargetFirehose.html +3 -3
- data/doc/NgrokAPI/Models/EventTargetKinesis.html +3 -3
- data/doc/NgrokAPI/Models/FailoverBackend.html +3 -3
- data/doc/NgrokAPI/Models/HTTPResponseBackend.html +3 -3
- data/doc/NgrokAPI/Models/HTTPSEdge.html +3 -3
- data/doc/NgrokAPI/Models/HTTPSEdgeRoute.html +197 -37
- data/doc/NgrokAPI/Models/IPPolicy.html +27 -101
- data/doc/NgrokAPI/Models/IPPolicyRule.html +3 -3
- data/doc/NgrokAPI/Models/IPRestriction.html +3 -3
- data/doc/NgrokAPI/Models/IdentityProvider.html +3 -3
- data/doc/NgrokAPI/Models/Listable.html +3 -3
- data/doc/NgrokAPI/Models/Location.html +3 -3
- data/doc/NgrokAPI/Models/Ref.html +3 -3
- data/doc/NgrokAPI/Models/ReservedAddr.html +22 -96
- data/doc/NgrokAPI/Models/ReservedDomain.html +25 -173
- data/doc/NgrokAPI/Models/ReservedDomainCertJob.html +3 -3
- data/doc/NgrokAPI/Models/ReservedDomainCertPolicy.html +3 -3
- data/doc/NgrokAPI/Models/ReservedDomainCertStatus.html +3 -3
- data/doc/NgrokAPI/Models/SSHCertificateAuthority.html +3 -3
- data/doc/NgrokAPI/Models/SSHCredential.html +3 -3
- data/doc/NgrokAPI/Models/SSHHostCertificate.html +3 -3
- data/doc/NgrokAPI/Models/SSHUserCertificate.html +3 -3
- data/doc/NgrokAPI/Models/StaticBackend.html +1211 -0
- data/doc/NgrokAPI/Models/StaticBackendTLS.html +595 -0
- data/doc/NgrokAPI/Models/TCPEdge.html +112 -32
- data/doc/NgrokAPI/Models/TLSCertificate.html +3 -3
- data/doc/NgrokAPI/Models/TLSCertificateSANs.html +3 -3
- data/doc/NgrokAPI/Models/TLSEdge.html +112 -32
- data/doc/NgrokAPI/Models/Tunnel.html +3 -3
- data/doc/NgrokAPI/Models/TunnelGroupBackend.html +3 -3
- data/doc/NgrokAPI/Models/TunnelSession.html +3 -3
- data/doc/NgrokAPI/Models/UserAgent.html +3 -3
- data/doc/NgrokAPI/Models/WeightedBackend.html +3 -3
- data/doc/NgrokAPI/Models.html +5 -5
- data/doc/NgrokAPI/PagedIterator.html +3 -3
- data/doc/NgrokAPI/Services/APIKeysClient.html +4 -4
- data/doc/NgrokAPI/Services/AbuseReportsClient.html +4 -4
- data/doc/NgrokAPI/Services/AgentIngressesClient.html +3 -3
- data/doc/NgrokAPI/Services/ApplicationSessionsClient.html +3 -3
- data/doc/NgrokAPI/Services/ApplicationUsersClient.html +3 -3
- data/doc/NgrokAPI/Services/BotUsersClient.html +1717 -0
- data/doc/NgrokAPI/Services/CertificateAuthoritiesClient.html +3 -3
- data/doc/NgrokAPI/Services/CredentialsClient.html +9 -9
- data/doc/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRoutePolicyModuleClient.html +1149 -0
- data/doc/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html +1149 -0
- data/doc/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgesHTTPSClient.html +3 -3
- data/doc/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +233 -93
- data/doc/NgrokAPI/Services/EdgesTCPClient.html +159 -79
- data/doc/NgrokAPI/Services/EdgesTLSClient.html +159 -79
- data/doc/NgrokAPI/Services/EndpointsClient.html +3 -3
- data/doc/NgrokAPI/Services/EventDestinationsClient.html +3 -3
- data/doc/NgrokAPI/Services/EventSourcesClient.html +3 -3
- data/doc/NgrokAPI/Services/EventSubscriptionsClient.html +7 -7
- data/doc/NgrokAPI/Services/FailoverBackendsClient.html +3 -3
- data/doc/NgrokAPI/Services/HTTPResponseBackendsClient.html +3 -3
- data/doc/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/IPPoliciesClient.html +3 -3
- data/doc/NgrokAPI/Services/IPPolicyRulesClient.html +3 -3
- data/doc/NgrokAPI/Services/IPRestrictionsClient.html +3 -3
- data/doc/NgrokAPI/Services/ReservedAddrsClient.html +3 -3
- data/doc/NgrokAPI/Services/ReservedDomainsClient.html +6 -6
- data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +3 -3
- data/doc/NgrokAPI/Services/SSHCredentialsClient.html +5 -5
- data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +3 -3
- data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +7 -7
- data/doc/NgrokAPI/Services/StaticBackendsClient.html +1879 -0
- data/doc/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/TCPEdgePolicyModuleClient.html +1039 -0
- data/doc/NgrokAPI/Services/TLSCertificatesClient.html +7 -7
- data/doc/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/TLSEdgePolicyModuleClient.html +1039 -0
- data/doc/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +3 -3
- data/doc/NgrokAPI/Services/TunnelGroupBackendsClient.html +3 -3
- data/doc/NgrokAPI/Services/TunnelSessionsClient.html +5 -5
- data/doc/NgrokAPI/Services/TunnelsClient.html +3 -3
- data/doc/NgrokAPI/Services/WeightedBackendsClient.html +4 -4
- data/doc/NgrokAPI/Services.html +5 -5
- data/doc/NgrokAPI.html +4 -4
- data/doc/_index.html +95 -4
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +3 -3
- data/doc/frames.html +10 -5
- data/doc/index.html +3 -3
- data/doc/method_list.html +1778 -818
- data/doc/top-level-namespace.html +3 -3
- data/docs/NgrokAPI/Client.html +152 -96
- data/docs/NgrokAPI/Error.html +3 -3
- data/docs/NgrokAPI/Errors/NotFoundError.html +3 -3
- data/docs/NgrokAPI/Errors.html +3 -3
- data/docs/NgrokAPI/HttpClient.html +4 -4
- data/docs/NgrokAPI/Models/APIKey.html +3 -3
- data/docs/NgrokAPI/Models/AWSAuth.html +3 -3
- data/docs/NgrokAPI/Models/AWSCredentials.html +3 -3
- data/docs/NgrokAPI/Models/AWSRole.html +3 -3
- data/docs/NgrokAPI/Models/AbuseReport.html +3 -3
- data/docs/NgrokAPI/Models/AbuseReportHostname.html +3 -3
- data/docs/NgrokAPI/Models/AgentIngress.html +3 -3
- data/docs/NgrokAPI/Models/AgentIngressCertJob.html +3 -3
- data/docs/NgrokAPI/Models/AgentIngressCertPolicy.html +3 -3
- data/docs/NgrokAPI/Models/AgentIngressCertStatus.html +3 -3
- data/docs/NgrokAPI/Models/ApplicationSession.html +3 -3
- data/docs/NgrokAPI/Models/ApplicationUser.html +3 -3
- data/docs/NgrokAPI/Models/BotUser.html +1051 -0
- data/docs/NgrokAPI/Models/BrowserSession.html +3 -3
- data/docs/NgrokAPI/Models/CertificateAuthority.html +3 -3
- data/docs/NgrokAPI/Models/Credential.html +3 -3
- data/docs/NgrokAPI/Models/Endpoint.html +3 -3
- data/docs/NgrokAPI/Models/EndpointAction.html +669 -0
- data/docs/NgrokAPI/Models/EndpointBackend.html +3 -3
- data/docs/NgrokAPI/Models/EndpointBackendMutate.html +3 -3
- data/docs/NgrokAPI/Models/EndpointCircuitBreaker.html +3 -3
- data/docs/NgrokAPI/Models/EndpointCompression.html +3 -3
- data/docs/NgrokAPI/Models/EndpointIPPolicy.html +3 -3
- data/docs/NgrokAPI/Models/EndpointIPPolicyMutate.html +3 -3
- data/docs/NgrokAPI/Models/EndpointMutualTLS.html +3 -3
- data/docs/NgrokAPI/Models/EndpointMutualTLSMutate.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuth.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthAmazon.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthFacebook.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthGitHub.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthGitLab.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthGoogle.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthLinkedIn.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthMicrosoft.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthProvider.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOAuthTwitch.html +3 -3
- data/docs/NgrokAPI/Models/EndpointOIDC.html +3 -3
- data/docs/NgrokAPI/Models/EndpointPolicy.html +743 -0
- data/docs/NgrokAPI/Models/EndpointRequestHeaders.html +3 -3
- data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +3 -3
- data/docs/NgrokAPI/Models/EndpointRule.html +743 -0
- data/docs/NgrokAPI/Models/EndpointSAML.html +18 -96
- data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +18 -96
- data/docs/NgrokAPI/Models/EndpointTLSTermination.html +3 -3
- data/docs/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +3 -3
- data/docs/NgrokAPI/Models/EndpointUserAgentFilter.html +743 -0
- data/docs/NgrokAPI/Models/EndpointWebhookValidation.html +3 -3
- data/docs/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +3 -3
- data/docs/NgrokAPI/Models/EventDestination.html +3 -3
- data/docs/NgrokAPI/Models/EventSource.html +19 -167
- data/docs/NgrokAPI/Models/EventSourceList.html +3 -3
- data/docs/NgrokAPI/Models/EventSourceReplace.html +19 -167
- data/docs/NgrokAPI/Models/EventSubscription.html +3 -3
- data/docs/NgrokAPI/Models/EventTarget.html +18 -92
- data/docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html +3 -3
- data/docs/NgrokAPI/Models/EventTargetDatadog.html +3 -3
- data/docs/NgrokAPI/Models/EventTargetFirehose.html +3 -3
- data/docs/NgrokAPI/Models/EventTargetKinesis.html +3 -3
- data/docs/NgrokAPI/Models/FailoverBackend.html +3 -3
- data/docs/NgrokAPI/Models/HTTPResponseBackend.html +3 -3
- data/docs/NgrokAPI/Models/HTTPSEdge.html +3 -3
- data/docs/NgrokAPI/Models/HTTPSEdgeRoute.html +197 -37
- data/docs/NgrokAPI/Models/IPPolicy.html +27 -101
- data/docs/NgrokAPI/Models/IPPolicyRule.html +3 -3
- data/docs/NgrokAPI/Models/IPRestriction.html +3 -3
- data/docs/NgrokAPI/Models/IdentityProvider.html +3 -3
- data/docs/NgrokAPI/Models/Listable.html +3 -3
- data/docs/NgrokAPI/Models/Location.html +3 -3
- data/docs/NgrokAPI/Models/Ref.html +3 -3
- data/docs/NgrokAPI/Models/ReservedAddr.html +22 -96
- data/docs/NgrokAPI/Models/ReservedDomain.html +25 -173
- data/docs/NgrokAPI/Models/ReservedDomainCertJob.html +3 -3
- data/docs/NgrokAPI/Models/ReservedDomainCertPolicy.html +3 -3
- data/docs/NgrokAPI/Models/ReservedDomainCertStatus.html +3 -3
- data/docs/NgrokAPI/Models/SSHCertificateAuthority.html +3 -3
- data/docs/NgrokAPI/Models/SSHCredential.html +3 -3
- data/docs/NgrokAPI/Models/SSHHostCertificate.html +3 -3
- data/docs/NgrokAPI/Models/SSHUserCertificate.html +3 -3
- data/docs/NgrokAPI/Models/StaticBackend.html +1211 -0
- data/docs/NgrokAPI/Models/StaticBackendTLS.html +595 -0
- data/docs/NgrokAPI/Models/TCPEdge.html +112 -32
- data/docs/NgrokAPI/Models/TLSCertificate.html +3 -3
- data/docs/NgrokAPI/Models/TLSCertificateSANs.html +3 -3
- data/docs/NgrokAPI/Models/TLSEdge.html +112 -32
- data/docs/NgrokAPI/Models/Tunnel.html +3 -3
- data/docs/NgrokAPI/Models/TunnelGroupBackend.html +3 -3
- data/docs/NgrokAPI/Models/TunnelSession.html +3 -3
- data/docs/NgrokAPI/Models/UserAgent.html +3 -3
- data/docs/NgrokAPI/Models/WeightedBackend.html +3 -3
- data/docs/NgrokAPI/Models.html +5 -5
- data/docs/NgrokAPI/PagedIterator.html +3 -3
- data/docs/NgrokAPI/Services/APIKeysClient.html +4 -4
- data/docs/NgrokAPI/Services/AbuseReportsClient.html +4 -4
- data/docs/NgrokAPI/Services/AgentIngressesClient.html +3 -3
- data/docs/NgrokAPI/Services/ApplicationSessionsClient.html +3 -3
- data/docs/NgrokAPI/Services/ApplicationUsersClient.html +3 -3
- data/docs/NgrokAPI/Services/BotUsersClient.html +1717 -0
- data/docs/NgrokAPI/Services/CertificateAuthoritiesClient.html +3 -3
- data/docs/NgrokAPI/Services/CredentialsClient.html +9 -9
- data/docs/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRoutePolicyModuleClient.html +1149 -0
- data/docs/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html +1149 -0
- data/docs/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgesHTTPSClient.html +3 -3
- data/docs/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +233 -93
- data/docs/NgrokAPI/Services/EdgesTCPClient.html +159 -79
- data/docs/NgrokAPI/Services/EdgesTLSClient.html +159 -79
- data/docs/NgrokAPI/Services/EndpointsClient.html +3 -3
- data/docs/NgrokAPI/Services/EventDestinationsClient.html +3 -3
- data/docs/NgrokAPI/Services/EventSourcesClient.html +3 -3
- data/docs/NgrokAPI/Services/EventSubscriptionsClient.html +7 -7
- data/docs/NgrokAPI/Services/FailoverBackendsClient.html +3 -3
- data/docs/NgrokAPI/Services/HTTPResponseBackendsClient.html +3 -3
- data/docs/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/IPPoliciesClient.html +3 -3
- data/docs/NgrokAPI/Services/IPPolicyRulesClient.html +3 -3
- data/docs/NgrokAPI/Services/IPRestrictionsClient.html +3 -3
- data/docs/NgrokAPI/Services/ReservedAddrsClient.html +3 -3
- data/docs/NgrokAPI/Services/ReservedDomainsClient.html +6 -6
- data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +3 -3
- data/docs/NgrokAPI/Services/SSHCredentialsClient.html +5 -5
- data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +3 -3
- data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +7 -7
- data/docs/NgrokAPI/Services/StaticBackendsClient.html +1879 -0
- data/docs/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/TCPEdgePolicyModuleClient.html +1039 -0
- data/docs/NgrokAPI/Services/TLSCertificatesClient.html +7 -7
- data/docs/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/TLSEdgePolicyModuleClient.html +1039 -0
- data/docs/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +3 -3
- data/docs/NgrokAPI/Services/TunnelGroupBackendsClient.html +3 -3
- data/docs/NgrokAPI/Services/TunnelSessionsClient.html +5 -5
- data/docs/NgrokAPI/Services/TunnelsClient.html +3 -3
- data/docs/NgrokAPI/Services/WeightedBackendsClient.html +4 -4
- data/docs/NgrokAPI/Services.html +5 -5
- data/docs/NgrokAPI.html +4 -4
- data/docs/_index.html +95 -4
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +3 -3
- data/docs/frames.html +10 -5
- data/docs/index.html +3 -3
- data/docs/method_list.html +1778 -818
- data/docs/top-level-namespace.html +3 -3
- data/lib/ngrokapi/client.rb +6 -0
- data/lib/ngrokapi/models/bot_user.rb +70 -0
- data/lib/ngrokapi/models/endpoint_action.rb +33 -0
- data/lib/ngrokapi/models/endpoint_policy.rb +35 -0
- data/lib/ngrokapi/models/endpoint_rule.rb +35 -0
- data/lib/ngrokapi/models/endpoint_saml.rb +0 -4
- data/lib/ngrokapi/models/endpoint_saml_mutate.rb +0 -4
- data/lib/ngrokapi/models/endpoint_user_agent_filter.rb +35 -0
- data/lib/ngrokapi/models/event_source.rb +0 -4
- data/lib/ngrokapi/models/event_source_replace.rb +1 -5
- data/lib/ngrokapi/models/event_target.rb +0 -2
- data/lib/ngrokapi/models/https_edge_route.rb +13 -3
- data/lib/ngrokapi/models/ip_policy.rb +1 -3
- data/lib/ngrokapi/models/reserved_addr.rb +1 -3
- data/lib/ngrokapi/models/reserved_domain.rb +0 -4
- data/lib/ngrokapi/models/static_backend.rb +80 -0
- data/lib/ngrokapi/models/static_backend_tls.rb +31 -0
- data/lib/ngrokapi/models/tcp_edge.rb +8 -3
- data/lib/ngrokapi/models/tls_edge.rb +8 -3
- data/lib/ngrokapi/services/bot_users_client.rb +223 -0
- data/lib/ngrokapi/services/credentials_client.rb +2 -2
- data/lib/ngrokapi/services/edge_route_policy_module_client.rb +120 -0
- data/lib/ngrokapi/services/edge_route_user_agent_filter_module_client.rb +120 -0
- data/lib/ngrokapi/services/edges_https_routes_client.rb +20 -4
- data/lib/ngrokapi/services/edges_tcp_client.rb +12 -4
- data/lib/ngrokapi/services/edges_tls_client.rb +12 -4
- data/lib/ngrokapi/services/reserved_domains_client.rb +2 -2
- data/lib/ngrokapi/services/static_backends_client.rb +242 -0
- data/lib/ngrokapi/services/tcp_edge_policy_module_client.rb +108 -0
- data/lib/ngrokapi/services/tls_edge_policy_module_client.rb +108 -0
- data/lib/ngrokapi/version.rb +1 -1
- data/spec/ngrokapi/client_spec.rb +8 -0
- data/spec/ngrokapi/models/bot_user_spec.rb +44 -0
- data/spec/ngrokapi/models/endpoint_action_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_policy_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_rule_spec.rb +23 -0
- data/spec/ngrokapi/models/endpoint_user_agent_filter_spec.rb +23 -0
- data/spec/ngrokapi/models/https_edge_route_spec.rb +7 -1
- data/spec/ngrokapi/models/static_backend_spec.rb +50 -0
- data/spec/ngrokapi/models/static_backend_tls_spec.rb +23 -0
- data/spec/ngrokapi/models/tcp_edge_spec.rb +4 -1
- data/spec/ngrokapi/models/tls_edge_spec.rb +4 -1
- data/spec/ngrokapi/services/bot_users_client_spec.rb +178 -0
- data/spec/ngrokapi/services/credentials_client_spec.rb +4 -2
- data/spec/ngrokapi/services/edge_route_policy_module_client_spec.rb +139 -0
- data/spec/ngrokapi/services/edge_route_user_agent_filter_module_client_spec.rb +139 -0
- data/spec/ngrokapi/services/edges_https_routes_client_spec.rb +20 -4
- data/spec/ngrokapi/services/edges_tcp_client_spec.rb +12 -4
- data/spec/ngrokapi/services/edges_tls_client_spec.rb +12 -4
- data/spec/ngrokapi/services/static_backends_client_spec.rb +194 -0
- data/spec/ngrokapi/services/tcp_edge_policy_module_client_spec.rb +125 -0
- data/spec/ngrokapi/services/tls_edge_policy_module_client_spec.rb +125 -0
- data/spec/spec_helper.rb +64 -0
- metadata +54 -2
|
@@ -0,0 +1,1879 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>
|
|
7
|
+
Class: NgrokAPI::Services::StaticBackendsClient
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.9.36
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript">
|
|
18
|
+
pathId = "NgrokAPI::Services::StaticBackendsClient";
|
|
19
|
+
relpath = '../../';
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
|
24
|
+
|
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
</head>
|
|
29
|
+
<body>
|
|
30
|
+
<div class="nav_wrap">
|
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
|
32
|
+
<div id="resizer"></div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div id="main" tabindex="-1">
|
|
36
|
+
<div id="header">
|
|
37
|
+
<div id="menu">
|
|
38
|
+
|
|
39
|
+
<a href="../../_index.html">Index (S)</a> »
|
|
40
|
+
<span class='title'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span> » <span class='title'><span class='object_link'><a href="../Services.html" title="NgrokAPI::Services (module)">Services</a></span></span>
|
|
41
|
+
»
|
|
42
|
+
<span class="title">StaticBackendsClient</span>
|
|
43
|
+
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div id="search">
|
|
47
|
+
|
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
|
49
|
+
href="../../class_list.html">
|
|
50
|
+
|
|
51
|
+
<svg width="24" height="24">
|
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
|
55
|
+
</svg>
|
|
56
|
+
</a>
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
<div class="clear"></div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div id="content"><h1>Class: NgrokAPI::Services::StaticBackendsClient
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</h1>
|
|
67
|
+
<div class="box_info">
|
|
68
|
+
|
|
69
|
+
<dl>
|
|
70
|
+
<dt>Inherits:</dt>
|
|
71
|
+
<dd>
|
|
72
|
+
<span class="inheritName">Object</span>
|
|
73
|
+
|
|
74
|
+
<ul class="fullTree">
|
|
75
|
+
<li>Object</li>
|
|
76
|
+
|
|
77
|
+
<li class="next">NgrokAPI::Services::StaticBackendsClient</li>
|
|
78
|
+
|
|
79
|
+
</ul>
|
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
81
|
+
|
|
82
|
+
</dd>
|
|
83
|
+
</dl>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
<dl>
|
|
96
|
+
<dt>Defined in:</dt>
|
|
97
|
+
<dd>lib/ngrokapi/services/static_backends_client.rb</dd>
|
|
98
|
+
</dl>
|
|
99
|
+
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
|
103
|
+
<div class="discussion">
|
|
104
|
+
|
|
105
|
+
<p>A static backend sends traffic to a TCP address (hostname and port) that is reachable on the public internet.</p>
|
|
106
|
+
|
|
107
|
+
<p><a href="https://ngrok.com/docs/api#api-static-backends">ngrok.com/docs/api#api-static-backends</a></p>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="tags">
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<h2>
|
|
118
|
+
Constant Summary
|
|
119
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
|
120
|
+
</h2>
|
|
121
|
+
|
|
122
|
+
<dl class="constants">
|
|
123
|
+
|
|
124
|
+
<dt id="PATH-constant" class="">PATH =
|
|
125
|
+
<div class="docstring">
|
|
126
|
+
<div class="discussion">
|
|
127
|
+
|
|
128
|
+
<p>The API path for the requests</p>
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="tags">
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
</div>
|
|
137
|
+
</dt>
|
|
138
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/backends/static</span><span class='tstring_end'>'</span></span></pre></dd>
|
|
139
|
+
|
|
140
|
+
<dt id="LIST_PROPERTY-constant" class="">LIST_PROPERTY =
|
|
141
|
+
<div class="docstring">
|
|
142
|
+
<div class="discussion">
|
|
143
|
+
|
|
144
|
+
<p>The List Property from the resulting API for list calls</p>
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
<div class="tags">
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
</div>
|
|
153
|
+
</dt>
|
|
154
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>backends</span><span class='tstring_end'>'</span></span></pre></dd>
|
|
155
|
+
|
|
156
|
+
</dl>
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
163
|
+
<ul class="summary">
|
|
164
|
+
|
|
165
|
+
<li class="public ">
|
|
166
|
+
<span class="summary_signature">
|
|
167
|
+
|
|
168
|
+
<a href="#client-instance_method" title="#client (instance method)">#<strong>client</strong> ⇒ Object </a>
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
</span>
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
<span class="note title readonly">readonly</span>
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
<span class="summary_desc"><div class='inline'>
|
|
188
|
+
<p>Returns the value of attribute client.</p>
|
|
189
|
+
</div></span>
|
|
190
|
+
|
|
191
|
+
</li>
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
</ul>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
<h2>
|
|
201
|
+
Instance Method Summary
|
|
202
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
203
|
+
</h2>
|
|
204
|
+
|
|
205
|
+
<ul class="summary">
|
|
206
|
+
|
|
207
|
+
<li class="public ">
|
|
208
|
+
<span class="summary_signature">
|
|
209
|
+
|
|
210
|
+
<a href="#create-instance_method" title="#create (instance method)">#<strong>create</strong>(description: "", metadata: "", address: "", tls: nil) ⇒ NgrokAPI::Models::StaticBackend </a>
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
</span>
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
<span class="summary_desc"><div class='inline'>
|
|
225
|
+
<p>Create a new static backend.</p>
|
|
226
|
+
</div></span>
|
|
227
|
+
|
|
228
|
+
</li>
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
<li class="public ">
|
|
232
|
+
<span class="summary_signature">
|
|
233
|
+
|
|
234
|
+
<a href="#create!-instance_method" title="#create! (instance method)">#<strong>create!</strong>(description: "", metadata: "", address: "", tls: nil) ⇒ NgrokAPI::Models::StaticBackend </a>
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
</span>
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
<span class="summary_desc"><div class='inline'>
|
|
249
|
+
<p>Create a new static backend Throws an exception if API error.</p>
|
|
250
|
+
</div></span>
|
|
251
|
+
|
|
252
|
+
</li>
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
<li class="public ">
|
|
256
|
+
<span class="summary_signature">
|
|
257
|
+
|
|
258
|
+
<a href="#delete-instance_method" title="#delete (instance method)">#<strong>delete</strong>(id: "") ⇒ NgrokAPI::Models::Empty </a>
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
</span>
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
<span class="summary_desc"><div class='inline'>
|
|
273
|
+
<p>Delete a static backend by ID.</p>
|
|
274
|
+
</div></span>
|
|
275
|
+
|
|
276
|
+
</li>
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
<li class="public ">
|
|
280
|
+
<span class="summary_signature">
|
|
281
|
+
|
|
282
|
+
<a href="#delete!-instance_method" title="#delete! (instance method)">#<strong>delete!</strong>(id: "") ⇒ NgrokAPI::Models::Empty </a>
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
</span>
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
<span class="summary_desc"><div class='inline'>
|
|
297
|
+
<p>Delete a static backend by ID.</p>
|
|
298
|
+
</div></span>
|
|
299
|
+
|
|
300
|
+
</li>
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
<li class="public ">
|
|
304
|
+
<span class="summary_signature">
|
|
305
|
+
|
|
306
|
+
<a href="#get-instance_method" title="#get (instance method)">#<strong>get</strong>(id: "") ⇒ NgrokAPI::Models::StaticBackend </a>
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
</span>
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
<span class="summary_desc"><div class='inline'>
|
|
321
|
+
<p>Get detailed information about a static backend by ID.</p>
|
|
322
|
+
</div></span>
|
|
323
|
+
|
|
324
|
+
</li>
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
<li class="public ">
|
|
328
|
+
<span class="summary_signature">
|
|
329
|
+
|
|
330
|
+
<a href="#get!-instance_method" title="#get! (instance method)">#<strong>get!</strong>(id: "") ⇒ NgrokAPI::Models::StaticBackend </a>
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
</span>
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
<span class="summary_desc"><div class='inline'>
|
|
345
|
+
<p>Get detailed information about a static backend by ID Throws an exception if API error.</p>
|
|
346
|
+
</div></span>
|
|
347
|
+
|
|
348
|
+
</li>
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
<li class="public ">
|
|
352
|
+
<span class="summary_signature">
|
|
353
|
+
|
|
354
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(client:) ⇒ StaticBackendsClient </a>
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
</span>
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
<span class="note title constructor">constructor</span>
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
<span class="summary_desc"><div class='inline'>
|
|
371
|
+
<p>A new instance of StaticBackendsClient.</p>
|
|
372
|
+
</div></span>
|
|
373
|
+
|
|
374
|
+
</li>
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
<li class="public ">
|
|
378
|
+
<span class="summary_signature">
|
|
379
|
+
|
|
380
|
+
<a href="#list-instance_method" title="#list (instance method)">#<strong>list</strong>(before_id: nil, limit: nil, url: nil) ⇒ NgrokAPI::Models::Listable </a>
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
</span>
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
<span class="summary_desc"><div class='inline'>
|
|
395
|
+
<p>List all static backends on this account.</p>
|
|
396
|
+
</div></span>
|
|
397
|
+
|
|
398
|
+
</li>
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
<li class="public ">
|
|
402
|
+
<span class="summary_signature">
|
|
403
|
+
|
|
404
|
+
<a href="#list!-instance_method" title="#list! (instance method)">#<strong>list!</strong>(before_id: nil, limit: nil, url: nil) ⇒ NgrokAPI::Models::Listable </a>
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
</span>
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
<span class="summary_desc"><div class='inline'>
|
|
419
|
+
<p>List all static backends on this account Throws an exception if API error.</p>
|
|
420
|
+
</div></span>
|
|
421
|
+
|
|
422
|
+
</li>
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
<li class="public ">
|
|
426
|
+
<span class="summary_signature">
|
|
427
|
+
|
|
428
|
+
<a href="#update-instance_method" title="#update (instance method)">#<strong>update</strong>(id: "", description: nil, metadata: nil, address: "", tls: nil) ⇒ NgrokAPI::Models::StaticBackend </a>
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
</span>
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
<span class="summary_desc"><div class='inline'>
|
|
443
|
+
<p>Update static backend by ID.</p>
|
|
444
|
+
</div></span>
|
|
445
|
+
|
|
446
|
+
</li>
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
<li class="public ">
|
|
450
|
+
<span class="summary_signature">
|
|
451
|
+
|
|
452
|
+
<a href="#update!-instance_method" title="#update! (instance method)">#<strong>update!</strong>(id: "", description: nil, metadata: nil, address: "", tls: nil) ⇒ NgrokAPI::Models::StaticBackend </a>
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
</span>
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
<span class="summary_desc"><div class='inline'>
|
|
467
|
+
<p>Update static backend by ID Throws an exception if API error.</p>
|
|
468
|
+
</div></span>
|
|
469
|
+
|
|
470
|
+
</li>
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
</ul>
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
<div id="constructor_details" class="method_details_list">
|
|
477
|
+
<h2>Constructor Details</h2>
|
|
478
|
+
|
|
479
|
+
<div class="method_details first">
|
|
480
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
481
|
+
|
|
482
|
+
#<strong>initialize</strong>(client:) ⇒ <tt><span class='object_link'><a href="" title="NgrokAPI::Services::StaticBackendsClient (class)">StaticBackendsClient</a></span></tt>
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
</h3><div class="docstring">
|
|
489
|
+
<div class="discussion">
|
|
490
|
+
|
|
491
|
+
<p>Returns a new instance of StaticBackendsClient.</p>
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
</div>
|
|
495
|
+
</div>
|
|
496
|
+
<div class="tags">
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
</div><table class="source_code">
|
|
500
|
+
<tr>
|
|
501
|
+
<td>
|
|
502
|
+
<pre class="lines">
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
20
|
|
506
|
+
21
|
|
507
|
+
22</pre>
|
|
508
|
+
</td>
|
|
509
|
+
<td>
|
|
510
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/static_backends_client.rb', line 20</span>
|
|
511
|
+
|
|
512
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>client:</span><span class='rparen'>)</span>
|
|
513
|
+
<span class='ivar'>@client</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span>
|
|
514
|
+
<span class='kw'>end</span></pre>
|
|
515
|
+
</td>
|
|
516
|
+
</tr>
|
|
517
|
+
</table>
|
|
518
|
+
</div>
|
|
519
|
+
|
|
520
|
+
</div>
|
|
521
|
+
|
|
522
|
+
<div id="instance_attr_details" class="attr_details">
|
|
523
|
+
<h2>Instance Attribute Details</h2>
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
<span id=""></span>
|
|
527
|
+
<div class="method_details first">
|
|
528
|
+
<h3 class="signature first" id="client-instance_method">
|
|
529
|
+
|
|
530
|
+
#<strong>client</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
</h3><div class="docstring">
|
|
537
|
+
<div class="discussion">
|
|
538
|
+
|
|
539
|
+
<p>Returns the value of attribute client.</p>
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
</div>
|
|
543
|
+
</div>
|
|
544
|
+
<div class="tags">
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
</div><table class="source_code">
|
|
548
|
+
<tr>
|
|
549
|
+
<td>
|
|
550
|
+
<pre class="lines">
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
18
|
|
554
|
+
19
|
|
555
|
+
20</pre>
|
|
556
|
+
</td>
|
|
557
|
+
<td>
|
|
558
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/static_backends_client.rb', line 18</span>
|
|
559
|
+
|
|
560
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_client'>client</span>
|
|
561
|
+
<span class='ivar'>@client</span>
|
|
562
|
+
<span class='kw'>end</span></pre>
|
|
563
|
+
</td>
|
|
564
|
+
</tr>
|
|
565
|
+
</table>
|
|
566
|
+
</div>
|
|
567
|
+
|
|
568
|
+
</div>
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
<div id="instance_method_details" class="method_details_list">
|
|
572
|
+
<h2>Instance Method Details</h2>
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
<div class="method_details first">
|
|
576
|
+
<h3 class="signature first" id="create-instance_method">
|
|
577
|
+
|
|
578
|
+
#<strong>create</strong>(description: "", metadata: "", address: "", tls: nil) ⇒ <tt><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">NgrokAPI::Models::StaticBackend</a></span></tt>
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
</h3><div class="docstring">
|
|
585
|
+
<div class="discussion">
|
|
586
|
+
|
|
587
|
+
<p>Create a new static backend</p>
|
|
588
|
+
|
|
589
|
+
<p><a href="https://ngrok.com/docs/api#api-static-backends-create">ngrok.com/docs/api#api-static-backends-create</a></p>
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
</div>
|
|
593
|
+
</div>
|
|
594
|
+
<div class="tags">
|
|
595
|
+
<p class="tag_title">Parameters:</p>
|
|
596
|
+
<ul class="param">
|
|
597
|
+
|
|
598
|
+
<li>
|
|
599
|
+
|
|
600
|
+
<span class='name'>description</span>
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
—
|
|
610
|
+
<div class='inline'>
|
|
611
|
+
<p>human-readable description of this backend. Optional</p>
|
|
612
|
+
</div>
|
|
613
|
+
|
|
614
|
+
</li>
|
|
615
|
+
|
|
616
|
+
<li>
|
|
617
|
+
|
|
618
|
+
<span class='name'>metadata</span>
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
—
|
|
628
|
+
<div class='inline'>
|
|
629
|
+
<p>arbitrary user-defined machine-readable data of this backend. Optional</p>
|
|
630
|
+
</div>
|
|
631
|
+
|
|
632
|
+
</li>
|
|
633
|
+
|
|
634
|
+
<li>
|
|
635
|
+
|
|
636
|
+
<span class='name'>address</span>
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
—
|
|
646
|
+
<div class='inline'>
|
|
647
|
+
<p>the address to forward to</p>
|
|
648
|
+
</div>
|
|
649
|
+
|
|
650
|
+
</li>
|
|
651
|
+
|
|
652
|
+
<li>
|
|
653
|
+
|
|
654
|
+
<span class='name'>tls</span>
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
<span class='type'>(<tt>StaticBackendTLS</tt>)</span>
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
—
|
|
664
|
+
<div class='inline'>
|
|
665
|
+
<p>tls configuration to use</p>
|
|
666
|
+
</div>
|
|
667
|
+
|
|
668
|
+
</li>
|
|
669
|
+
|
|
670
|
+
</ul>
|
|
671
|
+
|
|
672
|
+
<p class="tag_title">Returns:</p>
|
|
673
|
+
<ul class="return">
|
|
674
|
+
|
|
675
|
+
<li>
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">NgrokAPI::Models::StaticBackend</a></span></tt>)</span>
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
—
|
|
683
|
+
<div class='inline'>
|
|
684
|
+
<p>result from the API request</p>
|
|
685
|
+
</div>
|
|
686
|
+
|
|
687
|
+
</li>
|
|
688
|
+
|
|
689
|
+
</ul>
|
|
690
|
+
|
|
691
|
+
</div><table class="source_code">
|
|
692
|
+
<tr>
|
|
693
|
+
<td>
|
|
694
|
+
<pre class="lines">
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
34
|
|
698
|
+
35
|
|
699
|
+
36
|
|
700
|
+
37
|
|
701
|
+
38
|
|
702
|
+
39
|
|
703
|
+
40
|
|
704
|
+
41
|
|
705
|
+
42
|
|
706
|
+
43
|
|
707
|
+
44
|
|
708
|
+
45</pre>
|
|
709
|
+
</td>
|
|
710
|
+
<td>
|
|
711
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/static_backends_client.rb', line 34</span>
|
|
712
|
+
|
|
713
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='label'>description:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>metadata:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>address:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>tls:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
714
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/backends/static</span><span class='tstring_end'>'</span></span>
|
|
715
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
716
|
+
<span class='rbrace'>}</span>
|
|
717
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
718
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:description</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_description'>description</span> <span class='kw'>if</span> <span class='id identifier rubyid_description'>description</span>
|
|
719
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:metadata</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_metadata'>metadata</span> <span class='kw'>if</span> <span class='id identifier rubyid_metadata'>metadata</span>
|
|
720
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:address</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_address'>address</span> <span class='kw'>if</span> <span class='id identifier rubyid_address'>address</span>
|
|
721
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:tls</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_tls'>tls</span> <span class='kw'>if</span> <span class='id identifier rubyid_tls'>tls</span>
|
|
722
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
|
723
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">StaticBackend</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/StaticBackend.html#initialize-instance_method" title="NgrokAPI::Models::StaticBackend#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>attrs:</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
|
724
|
+
<span class='kw'>end</span></pre>
|
|
725
|
+
</td>
|
|
726
|
+
</tr>
|
|
727
|
+
</table>
|
|
728
|
+
</div>
|
|
729
|
+
|
|
730
|
+
<div class="method_details ">
|
|
731
|
+
<h3 class="signature " id="create!-instance_method">
|
|
732
|
+
|
|
733
|
+
#<strong>create!</strong>(description: "", metadata: "", address: "", tls: nil) ⇒ <tt><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">NgrokAPI::Models::StaticBackend</a></span></tt>
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
</h3><div class="docstring">
|
|
740
|
+
<div class="discussion">
|
|
741
|
+
|
|
742
|
+
<p>Create a new static backend Throws an exception if API error.</p>
|
|
743
|
+
|
|
744
|
+
<p><a href="https://ngrok.com/docs/api#api-static-backends-create">ngrok.com/docs/api#api-static-backends-create</a></p>
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
</div>
|
|
748
|
+
</div>
|
|
749
|
+
<div class="tags">
|
|
750
|
+
<p class="tag_title">Parameters:</p>
|
|
751
|
+
<ul class="param">
|
|
752
|
+
|
|
753
|
+
<li>
|
|
754
|
+
|
|
755
|
+
<span class='name'>description</span>
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
—
|
|
765
|
+
<div class='inline'>
|
|
766
|
+
<p>human-readable description of this backend. Optional</p>
|
|
767
|
+
</div>
|
|
768
|
+
|
|
769
|
+
</li>
|
|
770
|
+
|
|
771
|
+
<li>
|
|
772
|
+
|
|
773
|
+
<span class='name'>metadata</span>
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
—
|
|
783
|
+
<div class='inline'>
|
|
784
|
+
<p>arbitrary user-defined machine-readable data of this backend. Optional</p>
|
|
785
|
+
</div>
|
|
786
|
+
|
|
787
|
+
</li>
|
|
788
|
+
|
|
789
|
+
<li>
|
|
790
|
+
|
|
791
|
+
<span class='name'>address</span>
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
—
|
|
801
|
+
<div class='inline'>
|
|
802
|
+
<p>the address to forward to</p>
|
|
803
|
+
</div>
|
|
804
|
+
|
|
805
|
+
</li>
|
|
806
|
+
|
|
807
|
+
<li>
|
|
808
|
+
|
|
809
|
+
<span class='name'>tls</span>
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
<span class='type'>(<tt>StaticBackendTLS</tt>)</span>
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
—
|
|
819
|
+
<div class='inline'>
|
|
820
|
+
<p>tls configuration to use</p>
|
|
821
|
+
</div>
|
|
822
|
+
|
|
823
|
+
</li>
|
|
824
|
+
|
|
825
|
+
</ul>
|
|
826
|
+
|
|
827
|
+
<p class="tag_title">Returns:</p>
|
|
828
|
+
<ul class="return">
|
|
829
|
+
|
|
830
|
+
<li>
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">NgrokAPI::Models::StaticBackend</a></span></tt>)</span>
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
—
|
|
838
|
+
<div class='inline'>
|
|
839
|
+
<p>result from the API request</p>
|
|
840
|
+
</div>
|
|
841
|
+
|
|
842
|
+
</li>
|
|
843
|
+
|
|
844
|
+
</ul>
|
|
845
|
+
|
|
846
|
+
</div><table class="source_code">
|
|
847
|
+
<tr>
|
|
848
|
+
<td>
|
|
849
|
+
<pre class="lines">
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
58
|
|
853
|
+
59
|
|
854
|
+
60
|
|
855
|
+
61
|
|
856
|
+
62
|
|
857
|
+
63
|
|
858
|
+
64
|
|
859
|
+
65
|
|
860
|
+
66
|
|
861
|
+
67
|
|
862
|
+
68
|
|
863
|
+
69</pre>
|
|
864
|
+
</td>
|
|
865
|
+
<td>
|
|
866
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/static_backends_client.rb', line 58</span>
|
|
867
|
+
|
|
868
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_create!'>create!</span><span class='lparen'>(</span><span class='label'>description:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>metadata:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>address:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>tls:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
869
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/backends/static</span><span class='tstring_end'>'</span></span>
|
|
870
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
871
|
+
<span class='rbrace'>}</span>
|
|
872
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
873
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:description</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_description'>description</span> <span class='kw'>if</span> <span class='id identifier rubyid_description'>description</span>
|
|
874
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:metadata</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_metadata'>metadata</span> <span class='kw'>if</span> <span class='id identifier rubyid_metadata'>metadata</span>
|
|
875
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:address</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_address'>address</span> <span class='kw'>if</span> <span class='id identifier rubyid_address'>address</span>
|
|
876
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:tls</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_tls'>tls</span> <span class='kw'>if</span> <span class='id identifier rubyid_tls'>tls</span>
|
|
877
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
878
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">StaticBackend</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/StaticBackend.html#initialize-instance_method" title="NgrokAPI::Models::StaticBackend#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>attrs:</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
|
879
|
+
<span class='kw'>end</span></pre>
|
|
880
|
+
</td>
|
|
881
|
+
</tr>
|
|
882
|
+
</table>
|
|
883
|
+
</div>
|
|
884
|
+
|
|
885
|
+
<div class="method_details ">
|
|
886
|
+
<h3 class="signature " id="delete-instance_method">
|
|
887
|
+
|
|
888
|
+
#<strong>delete</strong>(id: "") ⇒ <tt>NgrokAPI::Models::Empty</tt>
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
</h3><div class="docstring">
|
|
895
|
+
<div class="discussion">
|
|
896
|
+
|
|
897
|
+
<p>Delete a static backend by ID.</p>
|
|
898
|
+
|
|
899
|
+
<p><a href="https://ngrok.com/docs/api#api-static-backends-delete">ngrok.com/docs/api#api-static-backends-delete</a></p>
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
</div>
|
|
903
|
+
</div>
|
|
904
|
+
<div class="tags">
|
|
905
|
+
<p class="tag_title">Parameters:</p>
|
|
906
|
+
<ul class="param">
|
|
907
|
+
|
|
908
|
+
<li>
|
|
909
|
+
|
|
910
|
+
<span class='name'>id</span>
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
—
|
|
920
|
+
<div class='inline'>
|
|
921
|
+
<p>a resource identifier</p>
|
|
922
|
+
</div>
|
|
923
|
+
|
|
924
|
+
</li>
|
|
925
|
+
|
|
926
|
+
</ul>
|
|
927
|
+
|
|
928
|
+
<p class="tag_title">Returns:</p>
|
|
929
|
+
<ul class="return">
|
|
930
|
+
|
|
931
|
+
<li>
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
<span class='type'>(<tt>NgrokAPI::Models::Empty</tt>)</span>
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
—
|
|
939
|
+
<div class='inline'>
|
|
940
|
+
<p>result from the API request</p>
|
|
941
|
+
</div>
|
|
942
|
+
|
|
943
|
+
</li>
|
|
944
|
+
|
|
945
|
+
</ul>
|
|
946
|
+
|
|
947
|
+
</div><table class="source_code">
|
|
948
|
+
<tr>
|
|
949
|
+
<td>
|
|
950
|
+
<pre class="lines">
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
78
|
|
954
|
+
79
|
|
955
|
+
80
|
|
956
|
+
81
|
|
957
|
+
82
|
|
958
|
+
83
|
|
959
|
+
84</pre>
|
|
960
|
+
</td>
|
|
961
|
+
<td>
|
|
962
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/static_backends_client.rb', line 78</span>
|
|
963
|
+
|
|
964
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='label'>id:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
965
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/backends/static/%{id}</span><span class='tstring_end'>'</span></span>
|
|
966
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
967
|
+
<span class='label'>id:</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span>
|
|
968
|
+
<span class='rbrace'>}</span>
|
|
969
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='rparen'>)</span>
|
|
970
|
+
<span class='kw'>end</span></pre>
|
|
971
|
+
</td>
|
|
972
|
+
</tr>
|
|
973
|
+
</table>
|
|
974
|
+
</div>
|
|
975
|
+
|
|
976
|
+
<div class="method_details ">
|
|
977
|
+
<h3 class="signature " id="delete!-instance_method">
|
|
978
|
+
|
|
979
|
+
#<strong>delete!</strong>(id: "") ⇒ <tt>NgrokAPI::Models::Empty</tt>
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
</h3><div class="docstring">
|
|
986
|
+
<div class="discussion">
|
|
987
|
+
|
|
988
|
+
<p>Delete a static backend by ID. Throws an exception if API error.</p>
|
|
989
|
+
|
|
990
|
+
<p><a href="https://ngrok.com/docs/api#api-static-backends-delete">ngrok.com/docs/api#api-static-backends-delete</a></p>
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
</div>
|
|
994
|
+
</div>
|
|
995
|
+
<div class="tags">
|
|
996
|
+
<p class="tag_title">Parameters:</p>
|
|
997
|
+
<ul class="param">
|
|
998
|
+
|
|
999
|
+
<li>
|
|
1000
|
+
|
|
1001
|
+
<span class='name'>id</span>
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
—
|
|
1011
|
+
<div class='inline'>
|
|
1012
|
+
<p>a resource identifier</p>
|
|
1013
|
+
</div>
|
|
1014
|
+
|
|
1015
|
+
</li>
|
|
1016
|
+
|
|
1017
|
+
</ul>
|
|
1018
|
+
|
|
1019
|
+
<p class="tag_title">Returns:</p>
|
|
1020
|
+
<ul class="return">
|
|
1021
|
+
|
|
1022
|
+
<li>
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
<span class='type'>(<tt>NgrokAPI::Models::Empty</tt>)</span>
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
—
|
|
1030
|
+
<div class='inline'>
|
|
1031
|
+
<p>result from the API request</p>
|
|
1032
|
+
</div>
|
|
1033
|
+
|
|
1034
|
+
</li>
|
|
1035
|
+
|
|
1036
|
+
</ul>
|
|
1037
|
+
|
|
1038
|
+
</div><table class="source_code">
|
|
1039
|
+
<tr>
|
|
1040
|
+
<td>
|
|
1041
|
+
<pre class="lines">
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
94
|
|
1045
|
+
95
|
|
1046
|
+
96
|
|
1047
|
+
97
|
|
1048
|
+
98
|
|
1049
|
+
99
|
|
1050
|
+
100</pre>
|
|
1051
|
+
</td>
|
|
1052
|
+
<td>
|
|
1053
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/static_backends_client.rb', line 94</span>
|
|
1054
|
+
|
|
1055
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_delete!'>delete!</span><span class='lparen'>(</span><span class='label'>id:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
1056
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/backends/static/%{id}</span><span class='tstring_end'>'</span></span>
|
|
1057
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
1058
|
+
<span class='label'>id:</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span>
|
|
1059
|
+
<span class='rbrace'>}</span>
|
|
1060
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
1061
|
+
<span class='kw'>end</span></pre>
|
|
1062
|
+
</td>
|
|
1063
|
+
</tr>
|
|
1064
|
+
</table>
|
|
1065
|
+
</div>
|
|
1066
|
+
|
|
1067
|
+
<div class="method_details ">
|
|
1068
|
+
<h3 class="signature " id="get-instance_method">
|
|
1069
|
+
|
|
1070
|
+
#<strong>get</strong>(id: "") ⇒ <tt><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">NgrokAPI::Models::StaticBackend</a></span></tt>
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
</h3><div class="docstring">
|
|
1077
|
+
<div class="discussion">
|
|
1078
|
+
|
|
1079
|
+
<p>Get detailed information about a static backend by ID</p>
|
|
1080
|
+
|
|
1081
|
+
<p><a href="https://ngrok.com/docs/api#api-static-backends-get">ngrok.com/docs/api#api-static-backends-get</a></p>
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
</div>
|
|
1085
|
+
</div>
|
|
1086
|
+
<div class="tags">
|
|
1087
|
+
<p class="tag_title">Parameters:</p>
|
|
1088
|
+
<ul class="param">
|
|
1089
|
+
|
|
1090
|
+
<li>
|
|
1091
|
+
|
|
1092
|
+
<span class='name'>id</span>
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
—
|
|
1102
|
+
<div class='inline'>
|
|
1103
|
+
<p>a resource identifier</p>
|
|
1104
|
+
</div>
|
|
1105
|
+
|
|
1106
|
+
</li>
|
|
1107
|
+
|
|
1108
|
+
</ul>
|
|
1109
|
+
|
|
1110
|
+
<p class="tag_title">Returns:</p>
|
|
1111
|
+
<ul class="return">
|
|
1112
|
+
|
|
1113
|
+
<li>
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">NgrokAPI::Models::StaticBackend</a></span></tt>)</span>
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
—
|
|
1121
|
+
<div class='inline'>
|
|
1122
|
+
<p>result from the API request</p>
|
|
1123
|
+
</div>
|
|
1124
|
+
|
|
1125
|
+
</li>
|
|
1126
|
+
|
|
1127
|
+
</ul>
|
|
1128
|
+
|
|
1129
|
+
</div><table class="source_code">
|
|
1130
|
+
<tr>
|
|
1131
|
+
<td>
|
|
1132
|
+
<pre class="lines">
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
109
|
|
1136
|
+
110
|
|
1137
|
+
111
|
|
1138
|
+
112
|
|
1139
|
+
113
|
|
1140
|
+
114
|
|
1141
|
+
115
|
|
1142
|
+
116
|
|
1143
|
+
117</pre>
|
|
1144
|
+
</td>
|
|
1145
|
+
<td>
|
|
1146
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/static_backends_client.rb', line 109</span>
|
|
1147
|
+
|
|
1148
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='label'>id:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
1149
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/backends/static/%{id}</span><span class='tstring_end'>'</span></span>
|
|
1150
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
1151
|
+
<span class='label'>id:</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span>
|
|
1152
|
+
<span class='rbrace'>}</span>
|
|
1153
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
1154
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
|
1155
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">StaticBackend</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/StaticBackend.html#initialize-instance_method" title="NgrokAPI::Models::StaticBackend#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>attrs:</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
|
1156
|
+
<span class='kw'>end</span></pre>
|
|
1157
|
+
</td>
|
|
1158
|
+
</tr>
|
|
1159
|
+
</table>
|
|
1160
|
+
</div>
|
|
1161
|
+
|
|
1162
|
+
<div class="method_details ">
|
|
1163
|
+
<h3 class="signature " id="get!-instance_method">
|
|
1164
|
+
|
|
1165
|
+
#<strong>get!</strong>(id: "") ⇒ <tt><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">NgrokAPI::Models::StaticBackend</a></span></tt>
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
</h3><div class="docstring">
|
|
1172
|
+
<div class="discussion">
|
|
1173
|
+
|
|
1174
|
+
<p>Get detailed information about a static backend by ID Throws an exception if API error.</p>
|
|
1175
|
+
|
|
1176
|
+
<p><a href="https://ngrok.com/docs/api#api-static-backends-get">ngrok.com/docs/api#api-static-backends-get</a></p>
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
</div>
|
|
1180
|
+
</div>
|
|
1181
|
+
<div class="tags">
|
|
1182
|
+
<p class="tag_title">Parameters:</p>
|
|
1183
|
+
<ul class="param">
|
|
1184
|
+
|
|
1185
|
+
<li>
|
|
1186
|
+
|
|
1187
|
+
<span class='name'>id</span>
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
—
|
|
1197
|
+
<div class='inline'>
|
|
1198
|
+
<p>a resource identifier</p>
|
|
1199
|
+
</div>
|
|
1200
|
+
|
|
1201
|
+
</li>
|
|
1202
|
+
|
|
1203
|
+
</ul>
|
|
1204
|
+
|
|
1205
|
+
<p class="tag_title">Returns:</p>
|
|
1206
|
+
<ul class="return">
|
|
1207
|
+
|
|
1208
|
+
<li>
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">NgrokAPI::Models::StaticBackend</a></span></tt>)</span>
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
—
|
|
1216
|
+
<div class='inline'>
|
|
1217
|
+
<p>result from the API request</p>
|
|
1218
|
+
</div>
|
|
1219
|
+
|
|
1220
|
+
</li>
|
|
1221
|
+
|
|
1222
|
+
</ul>
|
|
1223
|
+
|
|
1224
|
+
</div><table class="source_code">
|
|
1225
|
+
<tr>
|
|
1226
|
+
<td>
|
|
1227
|
+
<pre class="lines">
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
127
|
|
1231
|
+
128
|
|
1232
|
+
129
|
|
1233
|
+
130
|
|
1234
|
+
131
|
|
1235
|
+
132
|
|
1236
|
+
133
|
|
1237
|
+
134
|
|
1238
|
+
135</pre>
|
|
1239
|
+
</td>
|
|
1240
|
+
<td>
|
|
1241
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/static_backends_client.rb', line 127</span>
|
|
1242
|
+
|
|
1243
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get!'>get!</span><span class='lparen'>(</span><span class='label'>id:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
1244
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/backends/static/%{id}</span><span class='tstring_end'>'</span></span>
|
|
1245
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
1246
|
+
<span class='label'>id:</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span>
|
|
1247
|
+
<span class='rbrace'>}</span>
|
|
1248
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
1249
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
1250
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">StaticBackend</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/StaticBackend.html#initialize-instance_method" title="NgrokAPI::Models::StaticBackend#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>attrs:</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
|
1251
|
+
<span class='kw'>end</span></pre>
|
|
1252
|
+
</td>
|
|
1253
|
+
</tr>
|
|
1254
|
+
</table>
|
|
1255
|
+
</div>
|
|
1256
|
+
|
|
1257
|
+
<div class="method_details ">
|
|
1258
|
+
<h3 class="signature " id="list-instance_method">
|
|
1259
|
+
|
|
1260
|
+
#<strong>list</strong>(before_id: nil, limit: nil, url: nil) ⇒ <tt><span class='object_link'><a href="../Models/Listable.html" title="NgrokAPI::Models::Listable (class)">NgrokAPI::Models::Listable</a></span></tt>
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
</h3><div class="docstring">
|
|
1267
|
+
<div class="discussion">
|
|
1268
|
+
|
|
1269
|
+
<p>List all static backends on this account</p>
|
|
1270
|
+
|
|
1271
|
+
<p><a href="https://ngrok.com/docs/api#api-static-backends-list">ngrok.com/docs/api#api-static-backends-list</a></p>
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
</div>
|
|
1275
|
+
</div>
|
|
1276
|
+
<div class="tags">
|
|
1277
|
+
<p class="tag_title">Parameters:</p>
|
|
1278
|
+
<ul class="param">
|
|
1279
|
+
|
|
1280
|
+
<li>
|
|
1281
|
+
|
|
1282
|
+
<span class='name'>before_id</span>
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
</li>
|
|
1292
|
+
|
|
1293
|
+
<li>
|
|
1294
|
+
|
|
1295
|
+
<span class='name'>limit</span>
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
</li>
|
|
1305
|
+
|
|
1306
|
+
<li>
|
|
1307
|
+
|
|
1308
|
+
<span class='name'>url</span>
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
—
|
|
1318
|
+
<div class='inline'>
|
|
1319
|
+
<p>optional and mutually exclusive from before_id and limit</p>
|
|
1320
|
+
</div>
|
|
1321
|
+
|
|
1322
|
+
</li>
|
|
1323
|
+
|
|
1324
|
+
</ul>
|
|
1325
|
+
|
|
1326
|
+
<p class="tag_title">Returns:</p>
|
|
1327
|
+
<ul class="return">
|
|
1328
|
+
|
|
1329
|
+
<li>
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/Listable.html" title="NgrokAPI::Models::Listable (class)">NgrokAPI::Models::Listable</a></span></tt>)</span>
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
—
|
|
1337
|
+
<div class='inline'>
|
|
1338
|
+
<p>result from the API request</p>
|
|
1339
|
+
</div>
|
|
1340
|
+
|
|
1341
|
+
</li>
|
|
1342
|
+
|
|
1343
|
+
</ul>
|
|
1344
|
+
|
|
1345
|
+
</div><table class="source_code">
|
|
1346
|
+
<tr>
|
|
1347
|
+
<td>
|
|
1348
|
+
<pre class="lines">
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
146
|
|
1352
|
+
147
|
|
1353
|
+
148
|
|
1354
|
+
149
|
|
1355
|
+
150
|
|
1356
|
+
151
|
|
1357
|
+
152
|
|
1358
|
+
153
|
|
1359
|
+
154
|
|
1360
|
+
155
|
|
1361
|
+
156
|
|
1362
|
+
157
|
|
1363
|
+
158
|
|
1364
|
+
159
|
|
1365
|
+
160</pre>
|
|
1366
|
+
</td>
|
|
1367
|
+
<td>
|
|
1368
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/static_backends_client.rb', line 146</span>
|
|
1369
|
+
|
|
1370
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span><span class='label'>before_id:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>limit:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>url:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
1371
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span>
|
|
1372
|
+
<span class='label'>before_id:</span> <span class='id identifier rubyid_before_id'>before_id</span><span class='comma'>,</span>
|
|
1373
|
+
<span class='label'>limit:</span> <span class='id identifier rubyid_limit'>limit</span><span class='comma'>,</span>
|
|
1374
|
+
<span class='label'>url:</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span>
|
|
1375
|
+
<span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#PATH-constant" title="NgrokAPI::Services::StaticBackendsClient::PATH (constant)">PATH</a></span></span>
|
|
1376
|
+
<span class='rparen'>)</span>
|
|
1377
|
+
|
|
1378
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/Listable.html" title="NgrokAPI::Models::Listable (class)">Listable</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/Listable.html#initialize-instance_method" title="NgrokAPI::Models::Listable#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
|
1379
|
+
<span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span>
|
|
1380
|
+
<span class='label'>attrs:</span> <span class='id identifier rubyid_result'>result</span><span class='comma'>,</span>
|
|
1381
|
+
<span class='label'>list_property:</span> <span class='const'><span class='object_link'><a href="#LIST_PROPERTY-constant" title="NgrokAPI::Services::StaticBackendsClient::LIST_PROPERTY (constant)">LIST_PROPERTY</a></span></span><span class='comma'>,</span>
|
|
1382
|
+
<span class='label'>klass:</span> <span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">StaticBackend</a></span></span>
|
|
1383
|
+
<span class='rparen'>)</span>
|
|
1384
|
+
<span class='kw'>end</span></pre>
|
|
1385
|
+
</td>
|
|
1386
|
+
</tr>
|
|
1387
|
+
</table>
|
|
1388
|
+
</div>
|
|
1389
|
+
|
|
1390
|
+
<div class="method_details ">
|
|
1391
|
+
<h3 class="signature " id="list!-instance_method">
|
|
1392
|
+
|
|
1393
|
+
#<strong>list!</strong>(before_id: nil, limit: nil, url: nil) ⇒ <tt><span class='object_link'><a href="../Models/Listable.html" title="NgrokAPI::Models::Listable (class)">NgrokAPI::Models::Listable</a></span></tt>
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
</h3><div class="docstring">
|
|
1400
|
+
<div class="discussion">
|
|
1401
|
+
|
|
1402
|
+
<p>List all static backends on this account Throws an exception if API error.</p>
|
|
1403
|
+
|
|
1404
|
+
<p><a href="https://ngrok.com/docs/api#api-static-backends-list">ngrok.com/docs/api#api-static-backends-list</a></p>
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
</div>
|
|
1408
|
+
</div>
|
|
1409
|
+
<div class="tags">
|
|
1410
|
+
<p class="tag_title">Parameters:</p>
|
|
1411
|
+
<ul class="param">
|
|
1412
|
+
|
|
1413
|
+
<li>
|
|
1414
|
+
|
|
1415
|
+
<span class='name'>before_id</span>
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
</li>
|
|
1425
|
+
|
|
1426
|
+
<li>
|
|
1427
|
+
|
|
1428
|
+
<span class='name'>limit</span>
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
</li>
|
|
1438
|
+
|
|
1439
|
+
<li>
|
|
1440
|
+
|
|
1441
|
+
<span class='name'>url</span>
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
—
|
|
1451
|
+
<div class='inline'>
|
|
1452
|
+
<p>optional and mutually exclusive from before_id and limit</p>
|
|
1453
|
+
</div>
|
|
1454
|
+
|
|
1455
|
+
</li>
|
|
1456
|
+
|
|
1457
|
+
</ul>
|
|
1458
|
+
|
|
1459
|
+
<p class="tag_title">Returns:</p>
|
|
1460
|
+
<ul class="return">
|
|
1461
|
+
|
|
1462
|
+
<li>
|
|
1463
|
+
|
|
1464
|
+
|
|
1465
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/Listable.html" title="NgrokAPI::Models::Listable (class)">NgrokAPI::Models::Listable</a></span></tt>)</span>
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
|
|
1469
|
+
—
|
|
1470
|
+
<div class='inline'>
|
|
1471
|
+
<p>result from the API request</p>
|
|
1472
|
+
</div>
|
|
1473
|
+
|
|
1474
|
+
</li>
|
|
1475
|
+
|
|
1476
|
+
</ul>
|
|
1477
|
+
|
|
1478
|
+
</div><table class="source_code">
|
|
1479
|
+
<tr>
|
|
1480
|
+
<td>
|
|
1481
|
+
<pre class="lines">
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
172
|
|
1485
|
+
173
|
|
1486
|
+
174
|
|
1487
|
+
175
|
|
1488
|
+
176
|
|
1489
|
+
177
|
|
1490
|
+
178
|
|
1491
|
+
179
|
|
1492
|
+
180
|
|
1493
|
+
181
|
|
1494
|
+
182
|
|
1495
|
+
183
|
|
1496
|
+
184
|
|
1497
|
+
185
|
|
1498
|
+
186
|
|
1499
|
+
187
|
|
1500
|
+
188</pre>
|
|
1501
|
+
</td>
|
|
1502
|
+
<td>
|
|
1503
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/static_backends_client.rb', line 172</span>
|
|
1504
|
+
|
|
1505
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_list!'>list!</span><span class='lparen'>(</span><span class='label'>before_id:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>limit:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>url:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
1506
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span>
|
|
1507
|
+
<span class='label'>before_id:</span> <span class='id identifier rubyid_before_id'>before_id</span><span class='comma'>,</span>
|
|
1508
|
+
<span class='label'>limit:</span> <span class='id identifier rubyid_limit'>limit</span><span class='comma'>,</span>
|
|
1509
|
+
<span class='label'>danger:</span> <span class='kw'>true</span><span class='comma'>,</span>
|
|
1510
|
+
<span class='label'>url:</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span>
|
|
1511
|
+
<span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#PATH-constant" title="NgrokAPI::Services::StaticBackendsClient::PATH (constant)">PATH</a></span></span>
|
|
1512
|
+
<span class='rparen'>)</span>
|
|
1513
|
+
|
|
1514
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/Listable.html" title="NgrokAPI::Models::Listable (class)">Listable</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/Listable.html#initialize-instance_method" title="NgrokAPI::Models::Listable#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
|
1515
|
+
<span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span>
|
|
1516
|
+
<span class='label'>attrs:</span> <span class='id identifier rubyid_result'>result</span><span class='comma'>,</span>
|
|
1517
|
+
<span class='label'>list_property:</span> <span class='const'><span class='object_link'><a href="#LIST_PROPERTY-constant" title="NgrokAPI::Services::StaticBackendsClient::LIST_PROPERTY (constant)">LIST_PROPERTY</a></span></span><span class='comma'>,</span>
|
|
1518
|
+
<span class='label'>klass:</span> <span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">StaticBackend</a></span></span><span class='comma'>,</span>
|
|
1519
|
+
<span class='label'>danger:</span> <span class='kw'>true</span>
|
|
1520
|
+
<span class='rparen'>)</span>
|
|
1521
|
+
<span class='kw'>end</span></pre>
|
|
1522
|
+
</td>
|
|
1523
|
+
</tr>
|
|
1524
|
+
</table>
|
|
1525
|
+
</div>
|
|
1526
|
+
|
|
1527
|
+
<div class="method_details ">
|
|
1528
|
+
<h3 class="signature " id="update-instance_method">
|
|
1529
|
+
|
|
1530
|
+
#<strong>update</strong>(id: "", description: nil, metadata: nil, address: "", tls: nil) ⇒ <tt><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">NgrokAPI::Models::StaticBackend</a></span></tt>
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
</h3><div class="docstring">
|
|
1537
|
+
<div class="discussion">
|
|
1538
|
+
|
|
1539
|
+
<p>Update static backend by ID</p>
|
|
1540
|
+
|
|
1541
|
+
<p><a href="https://ngrok.com/docs/api#api-static-backends-update">ngrok.com/docs/api#api-static-backends-update</a></p>
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
</div>
|
|
1545
|
+
</div>
|
|
1546
|
+
<div class="tags">
|
|
1547
|
+
<p class="tag_title">Parameters:</p>
|
|
1548
|
+
<ul class="param">
|
|
1549
|
+
|
|
1550
|
+
<li>
|
|
1551
|
+
|
|
1552
|
+
<span class='name'>id</span>
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1556
|
+
|
|
1557
|
+
|
|
1558
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
</li>
|
|
1562
|
+
|
|
1563
|
+
<li>
|
|
1564
|
+
|
|
1565
|
+
<span class='name'>description</span>
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
—
|
|
1575
|
+
<div class='inline'>
|
|
1576
|
+
<p>human-readable description of this backend. Optional</p>
|
|
1577
|
+
</div>
|
|
1578
|
+
|
|
1579
|
+
</li>
|
|
1580
|
+
|
|
1581
|
+
<li>
|
|
1582
|
+
|
|
1583
|
+
<span class='name'>metadata</span>
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1587
|
+
|
|
1588
|
+
|
|
1589
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1590
|
+
|
|
1591
|
+
|
|
1592
|
+
—
|
|
1593
|
+
<div class='inline'>
|
|
1594
|
+
<p>arbitrary user-defined machine-readable data of this backend. Optional</p>
|
|
1595
|
+
</div>
|
|
1596
|
+
|
|
1597
|
+
</li>
|
|
1598
|
+
|
|
1599
|
+
<li>
|
|
1600
|
+
|
|
1601
|
+
<span class='name'>address</span>
|
|
1602
|
+
|
|
1603
|
+
|
|
1604
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
1608
|
+
|
|
1609
|
+
|
|
1610
|
+
—
|
|
1611
|
+
<div class='inline'>
|
|
1612
|
+
<p>the address to forward to</p>
|
|
1613
|
+
</div>
|
|
1614
|
+
|
|
1615
|
+
</li>
|
|
1616
|
+
|
|
1617
|
+
<li>
|
|
1618
|
+
|
|
1619
|
+
<span class='name'>tls</span>
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
<span class='type'>(<tt>StaticBackendTLS</tt>)</span>
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1626
|
+
|
|
1627
|
+
|
|
1628
|
+
—
|
|
1629
|
+
<div class='inline'>
|
|
1630
|
+
<p>tls configuration to use</p>
|
|
1631
|
+
</div>
|
|
1632
|
+
|
|
1633
|
+
</li>
|
|
1634
|
+
|
|
1635
|
+
</ul>
|
|
1636
|
+
|
|
1637
|
+
<p class="tag_title">Returns:</p>
|
|
1638
|
+
<ul class="return">
|
|
1639
|
+
|
|
1640
|
+
<li>
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">NgrokAPI::Models::StaticBackend</a></span></tt>)</span>
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
—
|
|
1648
|
+
<div class='inline'>
|
|
1649
|
+
<p>result from the API request</p>
|
|
1650
|
+
</div>
|
|
1651
|
+
|
|
1652
|
+
</li>
|
|
1653
|
+
|
|
1654
|
+
</ul>
|
|
1655
|
+
|
|
1656
|
+
</div><table class="source_code">
|
|
1657
|
+
<tr>
|
|
1658
|
+
<td>
|
|
1659
|
+
<pre class="lines">
|
|
1660
|
+
|
|
1661
|
+
|
|
1662
|
+
201
|
|
1663
|
+
202
|
|
1664
|
+
203
|
|
1665
|
+
204
|
|
1666
|
+
205
|
|
1667
|
+
206
|
|
1668
|
+
207
|
|
1669
|
+
208
|
|
1670
|
+
209
|
|
1671
|
+
210
|
|
1672
|
+
211
|
|
1673
|
+
212
|
|
1674
|
+
213</pre>
|
|
1675
|
+
</td>
|
|
1676
|
+
<td>
|
|
1677
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/static_backends_client.rb', line 201</span>
|
|
1678
|
+
|
|
1679
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='label'>id:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>description:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>metadata:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>address:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>tls:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
1680
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/backends/static/%{id}</span><span class='tstring_end'>'</span></span>
|
|
1681
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
1682
|
+
<span class='label'>id:</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span>
|
|
1683
|
+
<span class='rbrace'>}</span>
|
|
1684
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
1685
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:description</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_description'>description</span> <span class='kw'>if</span> <span class='id identifier rubyid_description'>description</span>
|
|
1686
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:metadata</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_metadata'>metadata</span> <span class='kw'>if</span> <span class='id identifier rubyid_metadata'>metadata</span>
|
|
1687
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:address</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_address'>address</span> <span class='kw'>if</span> <span class='id identifier rubyid_address'>address</span>
|
|
1688
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:tls</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_tls'>tls</span> <span class='kw'>if</span> <span class='id identifier rubyid_tls'>tls</span>
|
|
1689
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_patch'>patch</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
|
1690
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">StaticBackend</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/StaticBackend.html#initialize-instance_method" title="NgrokAPI::Models::StaticBackend#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>attrs:</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
|
1691
|
+
<span class='kw'>end</span></pre>
|
|
1692
|
+
</td>
|
|
1693
|
+
</tr>
|
|
1694
|
+
</table>
|
|
1695
|
+
</div>
|
|
1696
|
+
|
|
1697
|
+
<div class="method_details ">
|
|
1698
|
+
<h3 class="signature " id="update!-instance_method">
|
|
1699
|
+
|
|
1700
|
+
#<strong>update!</strong>(id: "", description: nil, metadata: nil, address: "", tls: nil) ⇒ <tt><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">NgrokAPI::Models::StaticBackend</a></span></tt>
|
|
1701
|
+
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
</h3><div class="docstring">
|
|
1707
|
+
<div class="discussion">
|
|
1708
|
+
|
|
1709
|
+
<p>Update static backend by ID Throws an exception if API error.</p>
|
|
1710
|
+
|
|
1711
|
+
<p><a href="https://ngrok.com/docs/api#api-static-backends-update">ngrok.com/docs/api#api-static-backends-update</a></p>
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
</div>
|
|
1715
|
+
</div>
|
|
1716
|
+
<div class="tags">
|
|
1717
|
+
<p class="tag_title">Parameters:</p>
|
|
1718
|
+
<ul class="param">
|
|
1719
|
+
|
|
1720
|
+
<li>
|
|
1721
|
+
|
|
1722
|
+
<span class='name'>id</span>
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1726
|
+
|
|
1727
|
+
|
|
1728
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
1729
|
+
|
|
1730
|
+
|
|
1731
|
+
</li>
|
|
1732
|
+
|
|
1733
|
+
<li>
|
|
1734
|
+
|
|
1735
|
+
<span class='name'>description</span>
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1742
|
+
|
|
1743
|
+
|
|
1744
|
+
—
|
|
1745
|
+
<div class='inline'>
|
|
1746
|
+
<p>human-readable description of this backend. Optional</p>
|
|
1747
|
+
</div>
|
|
1748
|
+
|
|
1749
|
+
</li>
|
|
1750
|
+
|
|
1751
|
+
<li>
|
|
1752
|
+
|
|
1753
|
+
<span class='name'>metadata</span>
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1757
|
+
|
|
1758
|
+
|
|
1759
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
—
|
|
1763
|
+
<div class='inline'>
|
|
1764
|
+
<p>arbitrary user-defined machine-readable data of this backend. Optional</p>
|
|
1765
|
+
</div>
|
|
1766
|
+
|
|
1767
|
+
</li>
|
|
1768
|
+
|
|
1769
|
+
<li>
|
|
1770
|
+
|
|
1771
|
+
<span class='name'>address</span>
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
<span class='type'>(<tt>string</tt>)</span>
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
—
|
|
1781
|
+
<div class='inline'>
|
|
1782
|
+
<p>the address to forward to</p>
|
|
1783
|
+
</div>
|
|
1784
|
+
|
|
1785
|
+
</li>
|
|
1786
|
+
|
|
1787
|
+
<li>
|
|
1788
|
+
|
|
1789
|
+
<span class='name'>tls</span>
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
<span class='type'>(<tt>StaticBackendTLS</tt>)</span>
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1796
|
+
|
|
1797
|
+
|
|
1798
|
+
—
|
|
1799
|
+
<div class='inline'>
|
|
1800
|
+
<p>tls configuration to use</p>
|
|
1801
|
+
</div>
|
|
1802
|
+
|
|
1803
|
+
</li>
|
|
1804
|
+
|
|
1805
|
+
</ul>
|
|
1806
|
+
|
|
1807
|
+
<p class="tag_title">Returns:</p>
|
|
1808
|
+
<ul class="return">
|
|
1809
|
+
|
|
1810
|
+
<li>
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">NgrokAPI::Models::StaticBackend</a></span></tt>)</span>
|
|
1814
|
+
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
—
|
|
1818
|
+
<div class='inline'>
|
|
1819
|
+
<p>result from the API request</p>
|
|
1820
|
+
</div>
|
|
1821
|
+
|
|
1822
|
+
</li>
|
|
1823
|
+
|
|
1824
|
+
</ul>
|
|
1825
|
+
|
|
1826
|
+
</div><table class="source_code">
|
|
1827
|
+
<tr>
|
|
1828
|
+
<td>
|
|
1829
|
+
<pre class="lines">
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
227
|
|
1833
|
+
228
|
|
1834
|
+
229
|
|
1835
|
+
230
|
|
1836
|
+
231
|
|
1837
|
+
232
|
|
1838
|
+
233
|
|
1839
|
+
234
|
|
1840
|
+
235
|
|
1841
|
+
236
|
|
1842
|
+
237
|
|
1843
|
+
238
|
|
1844
|
+
239</pre>
|
|
1845
|
+
</td>
|
|
1846
|
+
<td>
|
|
1847
|
+
<pre class="code"><span class="info file"># File 'lib/ngrokapi/services/static_backends_client.rb', line 227</span>
|
|
1848
|
+
|
|
1849
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_update!'>update!</span><span class='lparen'>(</span><span class='label'>id:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>description:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>metadata:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>address:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>tls:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
1850
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/backends/static/%{id}</span><span class='tstring_end'>'</span></span>
|
|
1851
|
+
<span class='id identifier rubyid_replacements'>replacements</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
1852
|
+
<span class='label'>id:</span> <span class='id identifier rubyid_id'>id</span><span class='comma'>,</span>
|
|
1853
|
+
<span class='rbrace'>}</span>
|
|
1854
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
1855
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:description</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_description'>description</span> <span class='kw'>if</span> <span class='id identifier rubyid_description'>description</span>
|
|
1856
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:metadata</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_metadata'>metadata</span> <span class='kw'>if</span> <span class='id identifier rubyid_metadata'>metadata</span>
|
|
1857
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:address</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_address'>address</span> <span class='kw'>if</span> <span class='id identifier rubyid_address'>address</span>
|
|
1858
|
+
<span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:tls</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_tls'>tls</span> <span class='kw'>if</span> <span class='id identifier rubyid_tls'>tls</span>
|
|
1859
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_patch'>patch</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>%</span> <span class='id identifier rubyid_replacements'>replacements</span><span class='comma'>,</span> <span class='label'>data:</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='label'>danger:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
1860
|
+
<span class='const'><span class='object_link'><a href="../../NgrokAPI.html" title="NgrokAPI (module)">NgrokAPI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models.html" title="NgrokAPI::Models (module)">Models</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Models/StaticBackend.html" title="NgrokAPI::Models::StaticBackend (class)">StaticBackend</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Models/StaticBackend.html#initialize-instance_method" title="NgrokAPI::Models::StaticBackend#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>client:</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='label'>attrs:</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
|
1861
|
+
<span class='kw'>end</span></pre>
|
|
1862
|
+
</td>
|
|
1863
|
+
</tr>
|
|
1864
|
+
</table>
|
|
1865
|
+
</div>
|
|
1866
|
+
|
|
1867
|
+
</div>
|
|
1868
|
+
|
|
1869
|
+
</div>
|
|
1870
|
+
|
|
1871
|
+
<div id="footer">
|
|
1872
|
+
Generated on Tue Apr 30 20:26:22 2024 by
|
|
1873
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1874
|
+
0.9.36 (ruby-3.3.0).
|
|
1875
|
+
</div>
|
|
1876
|
+
|
|
1877
|
+
</div>
|
|
1878
|
+
</body>
|
|
1879
|
+
</html>
|