@ngrok/ngrok-api 0.10.0 → 0.12.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.
- package/CHANGELOG.md +9 -0
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/client.Ngrok.html +55 -29
- package/docs/classes/services.APIKeys.html +6 -6
- package/docs/classes/services.AbuseReports.html +3 -3
- package/docs/classes/services.AgentIngresses.html +6 -6
- package/docs/classes/services.ApplicationSessions.html +4 -4
- package/docs/classes/services.ApplicationUsers.html +4 -4
- package/docs/classes/services.BotUsers.html +352 -0
- package/docs/classes/services.CertificateAuthorities.html +6 -6
- package/docs/classes/services.Credentials.html +6 -6
- package/docs/classes/services.EdgeRouteBackendModule.html +4 -4
- package/docs/classes/services.EdgeRouteCircuitBreakerModule.html +4 -4
- package/docs/classes/services.EdgeRouteCompressionModule.html +4 -4
- package/docs/classes/services.EdgeRouteIPRestrictionModule.html +4 -4
- package/docs/classes/services.EdgeRouteOAuthModule.html +4 -4
- package/docs/classes/services.EdgeRouteOIDCModule.html +4 -4
- package/docs/classes/services.EdgeRoutePolicyModule.html +270 -0
- package/docs/classes/services.EdgeRouteRequestHeadersModule.html +4 -4
- package/docs/classes/services.EdgeRouteResponseHeadersModule.html +4 -4
- package/docs/classes/services.EdgeRouteSAMLModule.html +4 -4
- package/docs/classes/services.EdgeRouteTrafficPolicyModule.html +270 -0
- package/docs/classes/services.EdgeRouteUserAgentFilterModule.html +270 -0
- package/docs/classes/services.EdgeRouteWebhookVerificationModule.html +4 -4
- package/docs/classes/services.EdgeRouteWebsocketTCPConverterModule.html +4 -4
- package/docs/classes/services.EdgesHTTPS.html +6 -6
- package/docs/classes/services.EdgesHTTPSRoutes.html +5 -5
- package/docs/classes/services.EdgesTCP.html +6 -6
- package/docs/classes/services.EdgesTLS.html +6 -6
- package/docs/classes/services.Endpoints.html +3 -3
- package/docs/classes/services.EventDestinations.html +6 -6
- package/docs/classes/services.EventSources.html +6 -6
- package/docs/classes/services.EventSubscriptions.html +6 -6
- package/docs/classes/services.FailoverBackends.html +6 -6
- package/docs/classes/services.HTTPResponseBackends.html +6 -6
- package/docs/classes/services.HTTPSEdgeMutualTLSModule.html +4 -4
- package/docs/classes/services.HTTPSEdgeTLSTerminationModule.html +4 -4
- package/docs/classes/services.IPPolicies.html +6 -6
- package/docs/classes/services.IPPolicyRules.html +6 -6
- package/docs/classes/services.IPRestrictions.html +6 -6
- package/docs/classes/services.ReservedAddrs.html +6 -6
- package/docs/classes/services.ReservedDomains.html +8 -8
- package/docs/classes/services.SSHCertificateAuthorities.html +6 -6
- package/docs/classes/services.SSHCredentials.html +6 -6
- package/docs/classes/services.SSHHostCertificates.html +6 -6
- package/docs/classes/services.SSHUserCertificates.html +6 -6
- package/docs/classes/services.StaticBackends.html +360 -0
- package/docs/classes/services.TCPEdgeBackendModule.html +4 -4
- package/docs/classes/services.TCPEdgeIPRestrictionModule.html +4 -4
- package/docs/classes/services.TCPEdgePolicyModule.html +270 -0
- package/docs/classes/services.TCPEdgeTrafficPolicyModule.html +270 -0
- package/docs/classes/services.TLSCertificates.html +6 -6
- package/docs/classes/services.TLSEdgeBackendModule.html +4 -4
- package/docs/classes/services.TLSEdgeIPRestrictionModule.html +4 -4
- package/docs/classes/services.TLSEdgeMutualTLSModule.html +4 -4
- package/docs/classes/services.TLSEdgePolicyModule.html +270 -0
- package/docs/classes/services.TLSEdgeTLSTerminationModule.html +4 -4
- package/docs/classes/services.TLSEdgeTrafficPolicyModule.html +270 -0
- package/docs/classes/services.TunnelGroupBackends.html +6 -6
- package/docs/classes/services.TunnelSessions.html +6 -6
- package/docs/classes/services.Tunnels.html +3 -3
- package/docs/classes/services.WeightedBackends.html +6 -6
- package/docs/interfaces/client.NgrokConfig.html +3 -3
- package/docs/interfaces/datatypes.APIKey.html +7 -7
- package/docs/interfaces/datatypes.APIKeyCreate.html +3 -3
- package/docs/interfaces/datatypes.APIKeyList.html +3 -3
- package/docs/interfaces/datatypes.APIKeyUpdate.html +3 -3
- package/docs/interfaces/datatypes.AWSAuth.html +2 -2
- package/docs/interfaces/datatypes.AWSCredentials.html +2 -2
- package/docs/interfaces/datatypes.AWSRole.html +1 -1
- package/docs/interfaces/datatypes.AbuseReport.html +7 -7
- package/docs/interfaces/datatypes.AbuseReportCreate.html +2 -2
- package/docs/interfaces/datatypes.AbuseReportHostname.html +2 -2
- package/docs/interfaces/datatypes.AgentIngress.html +10 -10
- package/docs/interfaces/datatypes.AgentIngressCertJob.html +4 -4
- package/docs/interfaces/datatypes.AgentIngressCertPolicy.html +2 -2
- package/docs/interfaces/datatypes.AgentIngressCertStatus.html +2 -2
- package/docs/interfaces/datatypes.AgentIngressCreate.html +4 -4
- package/docs/interfaces/datatypes.AgentIngressList.html +3 -3
- package/docs/interfaces/datatypes.AgentIngressUpdate.html +4 -4
- package/docs/interfaces/datatypes.ApplicationSession.html +11 -11
- package/docs/interfaces/datatypes.ApplicationSessionList.html +3 -3
- package/docs/interfaces/datatypes.ApplicationUser.html +10 -10
- package/docs/interfaces/datatypes.ApplicationUserList.html +3 -3
- package/docs/interfaces/datatypes.BotUser.html +243 -0
- package/docs/interfaces/datatypes.BotUserCreate.html +186 -0
- package/docs/interfaces/datatypes.BotUserList.html +205 -0
- package/docs/interfaces/datatypes.BotUserUpdate.html +200 -0
- package/docs/interfaces/datatypes.BrowserSession.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthority.html +11 -11
- package/docs/interfaces/datatypes.CertificateAuthorityCreate.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthorityList.html +3 -3
- package/docs/interfaces/datatypes.CertificateAuthorityUpdate.html +3 -3
- package/docs/interfaces/datatypes.Credential.html +8 -8
- package/docs/interfaces/datatypes.CredentialCreate.html +4 -4
- package/docs/interfaces/datatypes.CredentialList.html +3 -3
- package/docs/interfaces/datatypes.CredentialUpdate.html +4 -4
- package/docs/interfaces/datatypes.EdgeBackendReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeIPRestrictionReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeMutualTLSReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgePolicyReplace.html +176 -0
- package/docs/interfaces/datatypes.EdgeRouteBackendReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteCircuitBreakerReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteCompressionReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteIPRestrictionReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteItem.html +2 -2
- package/docs/interfaces/datatypes.EdgeRouteOAuthReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteOIDCReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRoutePolicyReplace.html +190 -0
- package/docs/interfaces/datatypes.EdgeRouteRequestHeadersReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteResponseHeadersReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteSAMLReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteTrafficPolicyReplace.html +190 -0
- package/docs/interfaces/datatypes.EdgeRouteUserAgentFilterReplace.html +190 -0
- package/docs/interfaces/datatypes.EdgeRouteWebhookVerificationReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeRouteWebsocketTCPConverterReplace.html +3 -3
- package/docs/interfaces/datatypes.EdgeTLSTerminationAtEdgeReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeTLSTerminationReplace.html +2 -2
- package/docs/interfaces/datatypes.EdgeTrafficPolicyReplace.html +176 -0
- package/docs/interfaces/datatypes.Endpoint.html +13 -13
- package/docs/interfaces/datatypes.EndpointAction.html +186 -0
- package/docs/interfaces/datatypes.EndpointBackend.html +2 -2
- package/docs/interfaces/datatypes.EndpointBackendMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointCircuitBreaker.html +6 -6
- package/docs/interfaces/datatypes.EndpointCompression.html +1 -1
- package/docs/interfaces/datatypes.EndpointIPPolicy.html +2 -2
- package/docs/interfaces/datatypes.EndpointIPPolicyMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointList.html +3 -3
- package/docs/interfaces/datatypes.EndpointMutualTLS.html +2 -2
- package/docs/interfaces/datatypes.EndpointMutualTLSMutate.html +2 -2
- package/docs/interfaces/datatypes.EndpointOAuth.html +7 -7
- package/docs/interfaces/datatypes.EndpointOAuthAmazon.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthFacebook.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthGitHub.html +7 -7
- package/docs/interfaces/datatypes.EndpointOAuthGitLab.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthGoogle.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthLinkedIn.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthMicrosoft.html +5 -5
- package/docs/interfaces/datatypes.EndpointOAuthProvider.html +8 -8
- package/docs/interfaces/datatypes.EndpointOAuthTwitch.html +5 -5
- package/docs/interfaces/datatypes.EndpointOIDC.html +9 -9
- package/docs/interfaces/datatypes.EndpointPolicy.html +205 -0
- package/docs/interfaces/datatypes.EndpointRequestHeaders.html +3 -3
- package/docs/interfaces/datatypes.EndpointResponseHeaders.html +3 -3
- package/docs/interfaces/datatypes.EndpointRule.html +205 -0
- package/docs/interfaces/datatypes.EndpointSAML.html +15 -15
- package/docs/interfaces/datatypes.EndpointSAMLMutate.html +10 -10
- package/docs/interfaces/datatypes.EndpointTLSTermination.html +3 -3
- package/docs/interfaces/datatypes.EndpointTLSTerminationAtEdge.html +2 -2
- package/docs/interfaces/datatypes.EndpointTrafficPolicy.html +186 -0
- package/docs/interfaces/datatypes.EndpointUserAgentFilter.html +190 -0
- package/docs/interfaces/datatypes.EndpointWebhookValidation.html +4 -4
- package/docs/interfaces/datatypes.EndpointWebsocketTCPConverter.html +1 -1
- package/docs/interfaces/datatypes.Error.html +4 -4
- package/docs/interfaces/datatypes.EventDestination.html +7 -7
- package/docs/interfaces/datatypes.EventDestinationCreate.html +4 -4
- package/docs/interfaces/datatypes.EventDestinationList.html +3 -3
- package/docs/interfaces/datatypes.EventDestinationUpdate.html +5 -5
- package/docs/interfaces/datatypes.EventSource.html +2 -2
- package/docs/interfaces/datatypes.EventSourceCreate.html +2 -2
- package/docs/interfaces/datatypes.EventSourceItem.html +2 -2
- package/docs/interfaces/datatypes.EventSourceList.html +2 -2
- package/docs/interfaces/datatypes.EventSourcePaging.html +1 -1
- package/docs/interfaces/datatypes.EventSourceReplace.html +1 -1
- package/docs/interfaces/datatypes.EventSourceUpdate.html +2 -2
- package/docs/interfaces/datatypes.EventSubscription.html +7 -7
- package/docs/interfaces/datatypes.EventSubscriptionCreate.html +4 -4
- package/docs/interfaces/datatypes.EventSubscriptionList.html +3 -3
- package/docs/interfaces/datatypes.EventSubscriptionUpdate.html +5 -5
- package/docs/interfaces/datatypes.EventTarget.html +18 -4
- package/docs/interfaces/datatypes.EventTargetAzureLogsIngestion.html +262 -0
- package/docs/interfaces/datatypes.EventTargetCloudwatchLogs.html +2 -2
- package/docs/interfaces/datatypes.EventTargetDatadog.html +4 -4
- package/docs/interfaces/datatypes.EventTargetFirehose.html +2 -2
- package/docs/interfaces/datatypes.EventTargetKinesis.html +2 -2
- package/docs/interfaces/datatypes.FailoverBackend.html +6 -6
- package/docs/interfaces/datatypes.FailoverBackendCreate.html +3 -3
- package/docs/interfaces/datatypes.FailoverBackendList.html +3 -3
- package/docs/interfaces/datatypes.FailoverBackendUpdate.html +4 -4
- package/docs/interfaces/datatypes.HTTPResponseBackend.html +8 -8
- package/docs/interfaces/datatypes.HTTPResponseBackendCreate.html +5 -5
- package/docs/interfaces/datatypes.HTTPResponseBackendList.html +3 -3
- package/docs/interfaces/datatypes.HTTPResponseBackendUpdate.html +6 -6
- package/docs/interfaces/datatypes.HTTPSEdge.html +9 -9
- package/docs/interfaces/datatypes.HTTPSEdgeCreate.html +5 -5
- package/docs/interfaces/datatypes.HTTPSEdgeList.html +3 -3
- package/docs/interfaces/datatypes.HTTPSEdgeRoute.html +52 -19
- package/docs/interfaces/datatypes.HTTPSEdgeRouteCreate.html +49 -16
- package/docs/interfaces/datatypes.HTTPSEdgeRouteUpdate.html +50 -17
- package/docs/interfaces/datatypes.HTTPSEdgeUpdate.html +6 -6
- package/docs/interfaces/datatypes.IPPolicy.html +5 -5
- package/docs/interfaces/datatypes.IPPolicyCreate.html +2 -2
- package/docs/interfaces/datatypes.IPPolicyList.html +3 -3
- package/docs/interfaces/datatypes.IPPolicyRule.html +8 -8
- package/docs/interfaces/datatypes.IPPolicyRuleCreate.html +5 -5
- package/docs/interfaces/datatypes.IPPolicyRuleList.html +3 -3
- package/docs/interfaces/datatypes.IPPolicyRuleUpdate.html +4 -4
- package/docs/interfaces/datatypes.IPPolicyUpdate.html +3 -3
- package/docs/interfaces/datatypes.IPRestriction.html +8 -8
- package/docs/interfaces/datatypes.IPRestrictionCreate.html +5 -5
- package/docs/interfaces/datatypes.IPRestrictionList.html +3 -3
- package/docs/interfaces/datatypes.IPRestrictionUpdate.html +5 -5
- package/docs/interfaces/datatypes.IdentityProvider.html +2 -2
- package/docs/interfaces/datatypes.Item.html +1 -1
- package/docs/interfaces/datatypes.Location.html +4 -4
- package/docs/interfaces/datatypes.Paging.html +2 -2
- package/docs/interfaces/datatypes.Ref.html +2 -2
- package/docs/interfaces/datatypes.ReservedAddr.html +7 -7
- package/docs/interfaces/datatypes.ReservedAddrCreate.html +3 -3
- package/docs/interfaces/datatypes.ReservedAddrList.html +3 -3
- package/docs/interfaces/datatypes.ReservedAddrUpdate.html +3 -3
- package/docs/interfaces/datatypes.ReservedDomain.html +14 -14
- package/docs/interfaces/datatypes.ReservedDomainCertJob.html +4 -4
- package/docs/interfaces/datatypes.ReservedDomainCertPolicy.html +2 -2
- package/docs/interfaces/datatypes.ReservedDomainCertStatus.html +2 -2
- package/docs/interfaces/datatypes.ReservedDomainCreate.html +7 -7
- package/docs/interfaces/datatypes.ReservedDomainList.html +3 -3
- package/docs/interfaces/datatypes.ReservedDomainUpdate.html +5 -5
- package/docs/interfaces/datatypes.SSHCertificateAuthority.html +7 -7
- package/docs/interfaces/datatypes.SSHCertificateAuthorityCreate.html +5 -5
- package/docs/interfaces/datatypes.SSHCertificateAuthorityList.html +3 -3
- package/docs/interfaces/datatypes.SSHCertificateAuthorityUpdate.html +3 -3
- package/docs/interfaces/datatypes.SSHCredential.html +8 -8
- package/docs/interfaces/datatypes.SSHCredentialCreate.html +5 -5
- package/docs/interfaces/datatypes.SSHCredentialList.html +3 -3
- package/docs/interfaces/datatypes.SSHCredentialUpdate.html +4 -4
- package/docs/interfaces/datatypes.SSHHostCertificate.html +12 -12
- package/docs/interfaces/datatypes.SSHHostCertificateCreate.html +7 -7
- package/docs/interfaces/datatypes.SSHHostCertificateList.html +3 -3
- package/docs/interfaces/datatypes.SSHHostCertificateUpdate.html +3 -3
- package/docs/interfaces/datatypes.SSHUserCertificate.html +14 -14
- package/docs/interfaces/datatypes.SSHUserCertificateCreate.html +9 -9
- package/docs/interfaces/datatypes.SSHUserCertificateList.html +3 -3
- package/docs/interfaces/datatypes.SSHUserCertificateUpdate.html +3 -3
- package/docs/interfaces/datatypes.StaticBackend.html +281 -0
- package/docs/interfaces/datatypes.StaticBackendCreate.html +224 -0
- package/docs/interfaces/datatypes.StaticBackendList.html +205 -0
- package/docs/interfaces/datatypes.StaticBackendTLS.html +167 -0
- package/docs/interfaces/datatypes.StaticBackendUpdate.html +238 -0
- package/docs/interfaces/datatypes.TCPEdge.html +27 -8
- package/docs/interfaces/datatypes.TCPEdgeCreate.html +24 -5
- package/docs/interfaces/datatypes.TCPEdgeList.html +3 -3
- package/docs/interfaces/datatypes.TCPEdgeUpdate.html +25 -6
- package/docs/interfaces/datatypes.TLSCertificate.html +21 -21
- package/docs/interfaces/datatypes.TLSCertificateCreate.html +4 -4
- package/docs/interfaces/datatypes.TLSCertificateList.html +3 -3
- package/docs/interfaces/datatypes.TLSCertificateSANs.html +2 -2
- package/docs/interfaces/datatypes.TLSCertificateUpdate.html +3 -3
- package/docs/interfaces/datatypes.TLSEdge.html +29 -10
- package/docs/interfaces/datatypes.TLSEdgeCreate.html +26 -7
- package/docs/interfaces/datatypes.TLSEdgeList.html +3 -3
- package/docs/interfaces/datatypes.TLSEdgeUpdate.html +27 -8
- package/docs/interfaces/datatypes.Tunnel.html +11 -11
- package/docs/interfaces/datatypes.TunnelGroupBackend.html +7 -7
- package/docs/interfaces/datatypes.TunnelGroupBackendCreate.html +3 -3
- package/docs/interfaces/datatypes.TunnelGroupBackendList.html +3 -3
- package/docs/interfaces/datatypes.TunnelGroupBackendUpdate.html +4 -4
- package/docs/interfaces/datatypes.TunnelList.html +3 -3
- package/docs/interfaces/datatypes.TunnelSession.html +10 -10
- package/docs/interfaces/datatypes.TunnelSessionList.html +3 -3
- package/docs/interfaces/datatypes.TunnelSessionsUpdate.html +1 -1
- package/docs/interfaces/datatypes.UserAgent.html +6 -6
- package/docs/interfaces/datatypes.WeightedBackend.html +6 -6
- package/docs/interfaces/datatypes.WeightedBackendCreate.html +3 -3
- package/docs/interfaces/datatypes.WeightedBackendList.html +3 -3
- package/docs/interfaces/datatypes.WeightedBackendUpdate.html +4 -4
- package/docs/modules/datatypes.html +60 -0
- package/docs/modules/services.html +24 -0
- package/lib/client.d.ts +8 -1
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +4 -1
- package/lib/client.js.map +1 -1
- package/lib/datatypes.d.ts +147 -4
- package/lib/datatypes.d.ts.map +1 -1
- package/lib/services.d.ts +90 -0
- package/lib/services.d.ts.map +1 -1
- package/lib/services.js +545 -226
- package/lib/services.js.map +1 -1
- package/package.json +2 -1
- package/src/client.ts +13 -2
- package/src/datatypes.ts +162 -4
- package/src/services.ts +458 -122
package/src/services.ts
CHANGED
|
@@ -34,7 +34,7 @@ export class AbuseReports {
|
|
|
34
34
|
public get(id): Promise<datatypes.AbuseReport> {
|
|
35
35
|
return this.httpClient
|
|
36
36
|
.url(`/abuse_reports/${id}`)
|
|
37
|
-
.get(
|
|
37
|
+
.get()
|
|
38
38
|
.json(payload => util.deserializeResult(payload))
|
|
39
39
|
.then(f => f, util.onRejected);
|
|
40
40
|
}
|
|
@@ -65,8 +65,8 @@ export class AgentIngresses {
|
|
|
65
65
|
public delete(id): Promise<void> {
|
|
66
66
|
return this.httpClient
|
|
67
67
|
.url(`/agent_ingresses/${id}`)
|
|
68
|
-
.delete(
|
|
69
|
-
.
|
|
68
|
+
.delete()
|
|
69
|
+
.res()
|
|
70
70
|
.then(f => f, util.onRejected);
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
@@ -75,7 +75,7 @@ export class AgentIngresses {
|
|
|
75
75
|
public get(id): Promise<datatypes.AgentIngress> {
|
|
76
76
|
return this.httpClient
|
|
77
77
|
.url(`/agent_ingresses/${id}`)
|
|
78
|
-
.get(
|
|
78
|
+
.get()
|
|
79
79
|
.json(payload => util.deserializeResult(payload))
|
|
80
80
|
.then(f => f, util.onRejected);
|
|
81
81
|
}
|
|
@@ -173,8 +173,8 @@ export class APIKeys {
|
|
|
173
173
|
public delete(id): Promise<void> {
|
|
174
174
|
return this.httpClient
|
|
175
175
|
.url(`/api_keys/${id}`)
|
|
176
|
-
.delete(
|
|
177
|
-
.
|
|
176
|
+
.delete()
|
|
177
|
+
.res()
|
|
178
178
|
.then(f => f, util.onRejected);
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
@@ -183,7 +183,7 @@ export class APIKeys {
|
|
|
183
183
|
public get(id): Promise<datatypes.APIKey> {
|
|
184
184
|
return this.httpClient
|
|
185
185
|
.url(`/api_keys/${id}`)
|
|
186
|
-
.get(
|
|
186
|
+
.get()
|
|
187
187
|
.json(payload => util.deserializeResult(payload))
|
|
188
188
|
.then(f => f, util.onRejected);
|
|
189
189
|
}
|
|
@@ -260,7 +260,7 @@ export class ApplicationSessions {
|
|
|
260
260
|
public get(id): Promise<datatypes.ApplicationSession> {
|
|
261
261
|
return this.httpClient
|
|
262
262
|
.url(`/app/sessions/${id}`)
|
|
263
|
-
.get(
|
|
263
|
+
.get()
|
|
264
264
|
.json(payload => util.deserializeResult(payload))
|
|
265
265
|
.then(f => f, util.onRejected);
|
|
266
266
|
}
|
|
@@ -270,8 +270,8 @@ export class ApplicationSessions {
|
|
|
270
270
|
public delete(id): Promise<void> {
|
|
271
271
|
return this.httpClient
|
|
272
272
|
.url(`/app/sessions/${id}`)
|
|
273
|
-
.delete(
|
|
274
|
-
.
|
|
273
|
+
.delete()
|
|
274
|
+
.res()
|
|
275
275
|
.then(f => f, util.onRejected);
|
|
276
276
|
}
|
|
277
277
|
/**
|
|
@@ -340,7 +340,7 @@ export class ApplicationUsers {
|
|
|
340
340
|
public get(id): Promise<datatypes.ApplicationUser> {
|
|
341
341
|
return this.httpClient
|
|
342
342
|
.url(`/app/users/${id}`)
|
|
343
|
-
.get(
|
|
343
|
+
.get()
|
|
344
344
|
.json(payload => util.deserializeResult(payload))
|
|
345
345
|
.then(f => f, util.onRejected);
|
|
346
346
|
}
|
|
@@ -350,8 +350,8 @@ export class ApplicationUsers {
|
|
|
350
350
|
public delete(id): Promise<void> {
|
|
351
351
|
return this.httpClient
|
|
352
352
|
.url(`/app/users/${id}`)
|
|
353
|
-
.delete(
|
|
354
|
-
.
|
|
353
|
+
.delete()
|
|
354
|
+
.res()
|
|
355
355
|
.then(f => f, util.onRejected);
|
|
356
356
|
}
|
|
357
357
|
/**
|
|
@@ -474,7 +474,7 @@ export class TunnelSessions {
|
|
|
474
474
|
public get(id): Promise<datatypes.TunnelSession> {
|
|
475
475
|
return this.httpClient
|
|
476
476
|
.url(`/tunnel_sessions/${id}`)
|
|
477
|
-
.get(
|
|
477
|
+
.get()
|
|
478
478
|
.json(payload => util.deserializeResult(payload))
|
|
479
479
|
.then(f => f, util.onRejected);
|
|
480
480
|
}
|
|
@@ -484,8 +484,8 @@ export class TunnelSessions {
|
|
|
484
484
|
public restart(id): Promise<void> {
|
|
485
485
|
return this.httpClient
|
|
486
486
|
.url(`/tunnel_sessions/${id}/restart`)
|
|
487
|
-
.post(
|
|
488
|
-
.
|
|
487
|
+
.post('{}')
|
|
488
|
+
.res()
|
|
489
489
|
.then(f => f, util.onRejected);
|
|
490
490
|
}
|
|
491
491
|
/**
|
|
@@ -494,8 +494,8 @@ export class TunnelSessions {
|
|
|
494
494
|
public stop(id): Promise<void> {
|
|
495
495
|
return this.httpClient
|
|
496
496
|
.url(`/tunnel_sessions/${id}/stop`)
|
|
497
|
-
.post(
|
|
498
|
-
.
|
|
497
|
+
.post('{}')
|
|
498
|
+
.res()
|
|
499
499
|
.then(f => f, util.onRejected);
|
|
500
500
|
}
|
|
501
501
|
/**
|
|
@@ -505,7 +505,7 @@ export class TunnelSessions {
|
|
|
505
505
|
return this.httpClient
|
|
506
506
|
.url(`/tunnel_sessions/${arg.id}/update`)
|
|
507
507
|
.post(util.serializeArgument(arg))
|
|
508
|
-
.
|
|
508
|
+
.res()
|
|
509
509
|
.then(f => f, util.onRejected);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
@@ -541,8 +541,8 @@ export class FailoverBackends {
|
|
|
541
541
|
public delete(id): Promise<void> {
|
|
542
542
|
return this.httpClient
|
|
543
543
|
.url(`/backends/failover/${id}`)
|
|
544
|
-
.delete(
|
|
545
|
-
.
|
|
544
|
+
.delete()
|
|
545
|
+
.res()
|
|
546
546
|
.then(f => f, util.onRejected);
|
|
547
547
|
}
|
|
548
548
|
/**
|
|
@@ -551,7 +551,7 @@ export class FailoverBackends {
|
|
|
551
551
|
public get(id): Promise<datatypes.FailoverBackend> {
|
|
552
552
|
return this.httpClient
|
|
553
553
|
.url(`/backends/failover/${id}`)
|
|
554
|
-
.get(
|
|
554
|
+
.get()
|
|
555
555
|
.json(payload => util.deserializeResult(payload))
|
|
556
556
|
.then(f => f, util.onRejected);
|
|
557
557
|
}
|
|
@@ -638,14 +638,14 @@ export class HTTPResponseBackends {
|
|
|
638
638
|
public delete(id): Promise<void> {
|
|
639
639
|
return this.httpClient
|
|
640
640
|
.url(`/backends/http_response/${id}`)
|
|
641
|
-
.delete(
|
|
642
|
-
.
|
|
641
|
+
.delete()
|
|
642
|
+
.res()
|
|
643
643
|
.then(f => f, util.onRejected);
|
|
644
644
|
}
|
|
645
645
|
public get(id): Promise<datatypes.HTTPResponseBackend> {
|
|
646
646
|
return this.httpClient
|
|
647
647
|
.url(`/backends/http_response/${id}`)
|
|
648
|
-
.get(
|
|
648
|
+
.get()
|
|
649
649
|
.json(payload => util.deserializeResult(payload))
|
|
650
650
|
.then(f => f, util.onRejected);
|
|
651
651
|
}
|
|
@@ -707,6 +707,113 @@ export class HTTPResponseBackends {
|
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
709
|
|
|
710
|
+
/**
|
|
711
|
+
* A static backend sends traffic to a TCP address (hostname and port) that
|
|
712
|
+
is reachable on the public internet.
|
|
713
|
+
*/
|
|
714
|
+
export class StaticBackends {
|
|
715
|
+
private httpClient: Wretcher;
|
|
716
|
+
|
|
717
|
+
/** Do not construct this object directly, use the <code>staticBackends</code> property of an <code>Ngrok</code> client object instead. */
|
|
718
|
+
public constructor(httpClient: Wretcher) {
|
|
719
|
+
this.httpClient = httpClient;
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* Create a new static backend
|
|
723
|
+
*/
|
|
724
|
+
public create(
|
|
725
|
+
arg: datatypes.StaticBackendCreate
|
|
726
|
+
): Promise<datatypes.StaticBackend> {
|
|
727
|
+
return this.httpClient
|
|
728
|
+
.url(`/backends/static`)
|
|
729
|
+
.post(util.serializeArgument(arg))
|
|
730
|
+
.json(payload => util.deserializeResult(payload))
|
|
731
|
+
.then(f => f, util.onRejected);
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Delete a static backend by ID.
|
|
735
|
+
*/
|
|
736
|
+
public delete(id): Promise<void> {
|
|
737
|
+
return this.httpClient
|
|
738
|
+
.url(`/backends/static/${id}`)
|
|
739
|
+
.delete()
|
|
740
|
+
.res()
|
|
741
|
+
.then(f => f, util.onRejected);
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* Get detailed information about a static backend by ID
|
|
745
|
+
*/
|
|
746
|
+
public get(id): Promise<datatypes.StaticBackend> {
|
|
747
|
+
return this.httpClient
|
|
748
|
+
.url(`/backends/static/${id}`)
|
|
749
|
+
.get()
|
|
750
|
+
.json(payload => util.deserializeResult(payload))
|
|
751
|
+
.then(f => f, util.onRejected);
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* List all static backends on this account
|
|
755
|
+
*/
|
|
756
|
+
public async list(
|
|
757
|
+
beforeId?: string,
|
|
758
|
+
limit?: string
|
|
759
|
+
): Promise<Array<datatypes.StaticBackend>> {
|
|
760
|
+
const array: Array<datatypes.StaticBackend> = [];
|
|
761
|
+
for await (const item of this._asyncList(beforeId, limit)) {
|
|
762
|
+
array.push(item);
|
|
763
|
+
}
|
|
764
|
+
return array;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
private _pagedList(
|
|
768
|
+
arg: datatypes.Paging
|
|
769
|
+
): Promise<datatypes.StaticBackendList> {
|
|
770
|
+
return this.httpClient
|
|
771
|
+
.url(`/backends/static`)
|
|
772
|
+
.query(arg)
|
|
773
|
+
.get()
|
|
774
|
+
.json(payload => util.deserializeResult(payload))
|
|
775
|
+
.then(util.onFulfilled, util.onRejected);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
private async *_asyncList(beforeId: string, limit = '100') {
|
|
779
|
+
let nextPage = 'initial loop';
|
|
780
|
+
let page: datatypes.Paging = { limit: limit };
|
|
781
|
+
|
|
782
|
+
if (beforeId) {
|
|
783
|
+
page.beforeId = beforeId;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
while (nextPage) {
|
|
787
|
+
const pagedList = await this._pagedList(page);
|
|
788
|
+
nextPage = pagedList.nextPageUri;
|
|
789
|
+
const items: datatypes.StaticBackend[] = pagedList.backends;
|
|
790
|
+
|
|
791
|
+
if (nextPage) {
|
|
792
|
+
page = {
|
|
793
|
+
beforeId: items[items.length - 1].id,
|
|
794
|
+
limit: limit,
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
for (const item of items) {
|
|
799
|
+
yield item;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* Update static backend by ID
|
|
805
|
+
*/
|
|
806
|
+
public update(
|
|
807
|
+
arg: datatypes.StaticBackendUpdate
|
|
808
|
+
): Promise<datatypes.StaticBackend> {
|
|
809
|
+
return this.httpClient
|
|
810
|
+
.url(`/backends/static/${arg.id}`)
|
|
811
|
+
.patch(util.serializeArgument(arg))
|
|
812
|
+
.json(payload => util.deserializeResult(payload))
|
|
813
|
+
.then(f => f, util.onRejected);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
|
|
710
817
|
/**
|
|
711
818
|
* A Tunnel Group Backend balances traffic among all online tunnels that match
|
|
712
819
|
a label selector.
|
|
@@ -736,8 +843,8 @@ export class TunnelGroupBackends {
|
|
|
736
843
|
public delete(id): Promise<void> {
|
|
737
844
|
return this.httpClient
|
|
738
845
|
.url(`/backends/tunnel_group/${id}`)
|
|
739
|
-
.delete(
|
|
740
|
-
.
|
|
846
|
+
.delete()
|
|
847
|
+
.res()
|
|
741
848
|
.then(f => f, util.onRejected);
|
|
742
849
|
}
|
|
743
850
|
/**
|
|
@@ -746,7 +853,7 @@ export class TunnelGroupBackends {
|
|
|
746
853
|
public get(id): Promise<datatypes.TunnelGroupBackend> {
|
|
747
854
|
return this.httpClient
|
|
748
855
|
.url(`/backends/tunnel_group/${id}`)
|
|
749
|
-
.get(
|
|
856
|
+
.get()
|
|
750
857
|
.json(payload => util.deserializeResult(payload))
|
|
751
858
|
.then(f => f, util.onRejected);
|
|
752
859
|
}
|
|
@@ -845,8 +952,8 @@ export class WeightedBackends {
|
|
|
845
952
|
public delete(id): Promise<void> {
|
|
846
953
|
return this.httpClient
|
|
847
954
|
.url(`/backends/weighted/${id}`)
|
|
848
|
-
.delete(
|
|
849
|
-
.
|
|
955
|
+
.delete()
|
|
956
|
+
.res()
|
|
850
957
|
.then(f => f, util.onRejected);
|
|
851
958
|
}
|
|
852
959
|
/**
|
|
@@ -855,7 +962,7 @@ export class WeightedBackends {
|
|
|
855
962
|
public get(id): Promise<datatypes.WeightedBackend> {
|
|
856
963
|
return this.httpClient
|
|
857
964
|
.url(`/backends/weighted/${id}`)
|
|
858
|
-
.get(
|
|
965
|
+
.get()
|
|
859
966
|
.json(payload => util.deserializeResult(payload))
|
|
860
967
|
.then(f => f, util.onRejected);
|
|
861
968
|
}
|
|
@@ -923,6 +1030,103 @@ export class WeightedBackends {
|
|
|
923
1030
|
}
|
|
924
1031
|
}
|
|
925
1032
|
|
|
1033
|
+
export class BotUsers {
|
|
1034
|
+
private httpClient: Wretcher;
|
|
1035
|
+
|
|
1036
|
+
/** Do not construct this object directly, use the <code>botUsers</code> property of an <code>Ngrok</code> client object instead. */
|
|
1037
|
+
public constructor(httpClient: Wretcher) {
|
|
1038
|
+
this.httpClient = httpClient;
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
* Create a new bot user
|
|
1042
|
+
*/
|
|
1043
|
+
public create(arg: datatypes.BotUserCreate): Promise<datatypes.BotUser> {
|
|
1044
|
+
return this.httpClient
|
|
1045
|
+
.url(`/bot_users`)
|
|
1046
|
+
.post(util.serializeArgument(arg))
|
|
1047
|
+
.json(payload => util.deserializeResult(payload))
|
|
1048
|
+
.then(f => f, util.onRejected);
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* Delete a bot user by ID
|
|
1052
|
+
*/
|
|
1053
|
+
public delete(id): Promise<void> {
|
|
1054
|
+
return this.httpClient
|
|
1055
|
+
.url(`/bot_users/${id}`)
|
|
1056
|
+
.delete()
|
|
1057
|
+
.res()
|
|
1058
|
+
.then(f => f, util.onRejected);
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* Get the details of a Bot User by ID.
|
|
1062
|
+
*/
|
|
1063
|
+
public get(id): Promise<datatypes.BotUser> {
|
|
1064
|
+
return this.httpClient
|
|
1065
|
+
.url(`/bot_users/${id}`)
|
|
1066
|
+
.get()
|
|
1067
|
+
.json(payload => util.deserializeResult(payload))
|
|
1068
|
+
.then(f => f, util.onRejected);
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* List all bot users in this account.
|
|
1072
|
+
*/
|
|
1073
|
+
public async list(
|
|
1074
|
+
beforeId?: string,
|
|
1075
|
+
limit?: string
|
|
1076
|
+
): Promise<Array<datatypes.BotUser>> {
|
|
1077
|
+
const array: Array<datatypes.BotUser> = [];
|
|
1078
|
+
for await (const item of this._asyncList(beforeId, limit)) {
|
|
1079
|
+
array.push(item);
|
|
1080
|
+
}
|
|
1081
|
+
return array;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
private _pagedList(arg: datatypes.Paging): Promise<datatypes.BotUserList> {
|
|
1085
|
+
return this.httpClient
|
|
1086
|
+
.url(`/bot_users`)
|
|
1087
|
+
.query(arg)
|
|
1088
|
+
.get()
|
|
1089
|
+
.json(payload => util.deserializeResult(payload))
|
|
1090
|
+
.then(util.onFulfilled, util.onRejected);
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
private async *_asyncList(beforeId: string, limit = '100') {
|
|
1094
|
+
let nextPage = 'initial loop';
|
|
1095
|
+
let page: datatypes.Paging = { limit: limit };
|
|
1096
|
+
|
|
1097
|
+
if (beforeId) {
|
|
1098
|
+
page.beforeId = beforeId;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
while (nextPage) {
|
|
1102
|
+
const pagedList = await this._pagedList(page);
|
|
1103
|
+
nextPage = pagedList.nextPageUri;
|
|
1104
|
+
const items: datatypes.BotUser[] = pagedList.botUsers;
|
|
1105
|
+
|
|
1106
|
+
if (nextPage) {
|
|
1107
|
+
page = {
|
|
1108
|
+
beforeId: items[items.length - 1].id,
|
|
1109
|
+
limit: limit,
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
for (const item of items) {
|
|
1114
|
+
yield item;
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Update attributes of a bot user by ID.
|
|
1120
|
+
*/
|
|
1121
|
+
public update(arg: datatypes.BotUserUpdate): Promise<datatypes.BotUser> {
|
|
1122
|
+
return this.httpClient
|
|
1123
|
+
.url(`/bot_users/${arg.id}`)
|
|
1124
|
+
.patch(util.serializeArgument(arg))
|
|
1125
|
+
.json(payload => util.deserializeResult(payload))
|
|
1126
|
+
.then(f => f, util.onRejected);
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
|
|
926
1130
|
/**
|
|
927
1131
|
* Certificate Authorities are x509 certificates that are used to sign other
|
|
928
1132
|
x509 certificates. Attach a Certificate Authority to the Mutual TLS module
|
|
@@ -955,8 +1159,8 @@ export class CertificateAuthorities {
|
|
|
955
1159
|
public delete(id): Promise<void> {
|
|
956
1160
|
return this.httpClient
|
|
957
1161
|
.url(`/certificate_authorities/${id}`)
|
|
958
|
-
.delete(
|
|
959
|
-
.
|
|
1162
|
+
.delete()
|
|
1163
|
+
.res()
|
|
960
1164
|
.then(f => f, util.onRejected);
|
|
961
1165
|
}
|
|
962
1166
|
/**
|
|
@@ -965,7 +1169,7 @@ export class CertificateAuthorities {
|
|
|
965
1169
|
public get(id): Promise<datatypes.CertificateAuthority> {
|
|
966
1170
|
return this.httpClient
|
|
967
1171
|
.url(`/certificate_authorities/${id}`)
|
|
968
|
-
.get(
|
|
1172
|
+
.get()
|
|
969
1173
|
.json(payload => util.deserializeResult(payload))
|
|
970
1174
|
.then(f => f, util.onRejected);
|
|
971
1175
|
}
|
|
@@ -1065,8 +1269,8 @@ export class Credentials {
|
|
|
1065
1269
|
public delete(id): Promise<void> {
|
|
1066
1270
|
return this.httpClient
|
|
1067
1271
|
.url(`/credentials/${id}`)
|
|
1068
|
-
.delete(
|
|
1069
|
-
.
|
|
1272
|
+
.delete()
|
|
1273
|
+
.res()
|
|
1070
1274
|
.then(f => f, util.onRejected);
|
|
1071
1275
|
}
|
|
1072
1276
|
/**
|
|
@@ -1075,7 +1279,7 @@ export class Credentials {
|
|
|
1075
1279
|
public get(id): Promise<datatypes.Credential> {
|
|
1076
1280
|
return this.httpClient
|
|
1077
1281
|
.url(`/credentials/${id}`)
|
|
1078
|
-
.get(
|
|
1282
|
+
.get()
|
|
1079
1283
|
.json(payload => util.deserializeResult(payload))
|
|
1080
1284
|
.then(f => f, util.onRejected);
|
|
1081
1285
|
}
|
|
@@ -1189,7 +1393,7 @@ export class EdgesHTTPSRoutes {
|
|
|
1189
1393
|
return this.httpClient
|
|
1190
1394
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}`)
|
|
1191
1395
|
.delete()
|
|
1192
|
-
.
|
|
1396
|
+
.res()
|
|
1193
1397
|
.then(f => f, util.onRejected);
|
|
1194
1398
|
}
|
|
1195
1399
|
}
|
|
@@ -1217,7 +1421,7 @@ export class EdgesHTTPS {
|
|
|
1217
1421
|
public get(id): Promise<datatypes.HTTPSEdge> {
|
|
1218
1422
|
return this.httpClient
|
|
1219
1423
|
.url(`/edges/https/${id}`)
|
|
1220
|
-
.get(
|
|
1424
|
+
.get()
|
|
1221
1425
|
.json(payload => util.deserializeResult(payload))
|
|
1222
1426
|
.then(f => f, util.onRejected);
|
|
1223
1427
|
}
|
|
@@ -1285,8 +1489,8 @@ export class EdgesHTTPS {
|
|
|
1285
1489
|
public delete(id): Promise<void> {
|
|
1286
1490
|
return this.httpClient
|
|
1287
1491
|
.url(`/edges/https/${id}`)
|
|
1288
|
-
.delete(
|
|
1289
|
-
.
|
|
1492
|
+
.delete()
|
|
1493
|
+
.res()
|
|
1290
1494
|
.then(f => f, util.onRejected);
|
|
1291
1495
|
}
|
|
1292
1496
|
}
|
|
@@ -1310,15 +1514,15 @@ export class HTTPSEdgeMutualTLSModule {
|
|
|
1310
1514
|
public get(id): Promise<datatypes.EndpointMutualTLS> {
|
|
1311
1515
|
return this.httpClient
|
|
1312
1516
|
.url(`/edges/https/${id}/mutual_tls`)
|
|
1313
|
-
.get(
|
|
1517
|
+
.get()
|
|
1314
1518
|
.json(payload => util.deserializeResult(payload))
|
|
1315
1519
|
.then(f => f, util.onRejected);
|
|
1316
1520
|
}
|
|
1317
1521
|
public delete(id): Promise<void> {
|
|
1318
1522
|
return this.httpClient
|
|
1319
1523
|
.url(`/edges/https/${id}/mutual_tls`)
|
|
1320
|
-
.delete(
|
|
1321
|
-
.
|
|
1524
|
+
.delete()
|
|
1525
|
+
.res()
|
|
1322
1526
|
.then(f => f, util.onRejected);
|
|
1323
1527
|
}
|
|
1324
1528
|
}
|
|
@@ -1342,15 +1546,15 @@ export class HTTPSEdgeTLSTerminationModule {
|
|
|
1342
1546
|
public get(id): Promise<datatypes.EndpointTLSTermination> {
|
|
1343
1547
|
return this.httpClient
|
|
1344
1548
|
.url(`/edges/https/${id}/tls_termination`)
|
|
1345
|
-
.get(
|
|
1549
|
+
.get()
|
|
1346
1550
|
.json(payload => util.deserializeResult(payload))
|
|
1347
1551
|
.then(f => f, util.onRejected);
|
|
1348
1552
|
}
|
|
1349
1553
|
public delete(id): Promise<void> {
|
|
1350
1554
|
return this.httpClient
|
|
1351
1555
|
.url(`/edges/https/${id}/tls_termination`)
|
|
1352
|
-
.delete(
|
|
1353
|
-
.
|
|
1556
|
+
.delete()
|
|
1557
|
+
.res()
|
|
1354
1558
|
.then(f => f, util.onRejected);
|
|
1355
1559
|
}
|
|
1356
1560
|
}
|
|
@@ -1382,7 +1586,7 @@ export class EdgeRouteBackendModule {
|
|
|
1382
1586
|
return this.httpClient
|
|
1383
1587
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/backend`)
|
|
1384
1588
|
.delete()
|
|
1385
|
-
.
|
|
1589
|
+
.res()
|
|
1386
1590
|
.then(f => f, util.onRejected);
|
|
1387
1591
|
}
|
|
1388
1592
|
}
|
|
@@ -1416,7 +1620,7 @@ export class EdgeRouteIPRestrictionModule {
|
|
|
1416
1620
|
return this.httpClient
|
|
1417
1621
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/ip_restriction`)
|
|
1418
1622
|
.delete()
|
|
1419
|
-
.
|
|
1623
|
+
.res()
|
|
1420
1624
|
.then(f => f, util.onRejected);
|
|
1421
1625
|
}
|
|
1422
1626
|
}
|
|
@@ -1450,7 +1654,7 @@ export class EdgeRouteRequestHeadersModule {
|
|
|
1450
1654
|
return this.httpClient
|
|
1451
1655
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/request_headers`)
|
|
1452
1656
|
.delete()
|
|
1453
|
-
.
|
|
1657
|
+
.res()
|
|
1454
1658
|
.then(f => f, util.onRejected);
|
|
1455
1659
|
}
|
|
1456
1660
|
}
|
|
@@ -1484,7 +1688,7 @@ export class EdgeRouteResponseHeadersModule {
|
|
|
1484
1688
|
return this.httpClient
|
|
1485
1689
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/response_headers`)
|
|
1486
1690
|
.delete()
|
|
1487
|
-
.
|
|
1691
|
+
.res()
|
|
1488
1692
|
.then(f => f, util.onRejected);
|
|
1489
1693
|
}
|
|
1490
1694
|
}
|
|
@@ -1518,7 +1722,7 @@ export class EdgeRouteCompressionModule {
|
|
|
1518
1722
|
return this.httpClient
|
|
1519
1723
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/compression`)
|
|
1520
1724
|
.delete()
|
|
1521
|
-
.
|
|
1725
|
+
.res()
|
|
1522
1726
|
.then(f => f, util.onRejected);
|
|
1523
1727
|
}
|
|
1524
1728
|
}
|
|
@@ -1552,7 +1756,7 @@ export class EdgeRouteCircuitBreakerModule {
|
|
|
1552
1756
|
return this.httpClient
|
|
1553
1757
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/circuit_breaker`)
|
|
1554
1758
|
.delete()
|
|
1555
|
-
.
|
|
1759
|
+
.res()
|
|
1556
1760
|
.then(f => f, util.onRejected);
|
|
1557
1761
|
}
|
|
1558
1762
|
}
|
|
@@ -1586,7 +1790,7 @@ export class EdgeRouteWebhookVerificationModule {
|
|
|
1586
1790
|
return this.httpClient
|
|
1587
1791
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/webhook_verification`)
|
|
1588
1792
|
.delete()
|
|
1589
|
-
.
|
|
1793
|
+
.res()
|
|
1590
1794
|
.then(f => f, util.onRejected);
|
|
1591
1795
|
}
|
|
1592
1796
|
}
|
|
@@ -1618,7 +1822,7 @@ export class EdgeRouteOAuthModule {
|
|
|
1618
1822
|
return this.httpClient
|
|
1619
1823
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oauth`)
|
|
1620
1824
|
.delete()
|
|
1621
|
-
.
|
|
1825
|
+
.res()
|
|
1622
1826
|
.then(f => f, util.onRejected);
|
|
1623
1827
|
}
|
|
1624
1828
|
}
|
|
@@ -1650,7 +1854,7 @@ export class EdgeRouteSAMLModule {
|
|
|
1650
1854
|
return this.httpClient
|
|
1651
1855
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/saml`)
|
|
1652
1856
|
.delete()
|
|
1653
|
-
.
|
|
1857
|
+
.res()
|
|
1654
1858
|
.then(f => f, util.onRejected);
|
|
1655
1859
|
}
|
|
1656
1860
|
}
|
|
@@ -1682,7 +1886,7 @@ export class EdgeRouteOIDCModule {
|
|
|
1682
1886
|
return this.httpClient
|
|
1683
1887
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oidc`)
|
|
1684
1888
|
.delete()
|
|
1685
|
-
.
|
|
1889
|
+
.res()
|
|
1686
1890
|
.then(f => f, util.onRejected);
|
|
1687
1891
|
}
|
|
1688
1892
|
}
|
|
@@ -1722,9 +1926,77 @@ export class EdgeRouteWebsocketTCPConverterModule {
|
|
|
1722
1926
|
`/edges/https/${arg.edgeId}/routes/${arg.id}/websocket_tcp_converter`
|
|
1723
1927
|
)
|
|
1724
1928
|
.delete()
|
|
1929
|
+
.res()
|
|
1930
|
+
.then(f => f, util.onRejected);
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
export class EdgeRouteUserAgentFilterModule {
|
|
1935
|
+
private httpClient: Wretcher;
|
|
1936
|
+
|
|
1937
|
+
/** Do not construct this object directly, use the <code>edgeRouteUserAgentFilterModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1938
|
+
public constructor(httpClient: Wretcher) {
|
|
1939
|
+
this.httpClient = httpClient;
|
|
1940
|
+
}
|
|
1941
|
+
public replace(
|
|
1942
|
+
arg: datatypes.EdgeRouteUserAgentFilterReplace
|
|
1943
|
+
): Promise<datatypes.EndpointUserAgentFilter> {
|
|
1944
|
+
return this.httpClient
|
|
1945
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/user_agent_filter`)
|
|
1946
|
+
.put(util.serializeArgument(arg))
|
|
1947
|
+
.json(payload => util.deserializeResult(payload))
|
|
1948
|
+
.then(f => f, util.onRejected);
|
|
1949
|
+
}
|
|
1950
|
+
public get(
|
|
1951
|
+
arg: datatypes.EdgeRouteItem
|
|
1952
|
+
): Promise<datatypes.EndpointUserAgentFilter> {
|
|
1953
|
+
return this.httpClient
|
|
1954
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/user_agent_filter`)
|
|
1955
|
+
.get()
|
|
1725
1956
|
.json(payload => util.deserializeResult(payload))
|
|
1726
1957
|
.then(f => f, util.onRejected);
|
|
1727
1958
|
}
|
|
1959
|
+
public delete(arg: datatypes.EdgeRouteItem): Promise<void> {
|
|
1960
|
+
return this.httpClient
|
|
1961
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/user_agent_filter`)
|
|
1962
|
+
.delete()
|
|
1963
|
+
.res()
|
|
1964
|
+
.then(f => f, util.onRejected);
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
export class EdgeRouteTrafficPolicyModule {
|
|
1969
|
+
private httpClient: Wretcher;
|
|
1970
|
+
|
|
1971
|
+
/** Do not construct this object directly, use the <code>edgeRouteTrafficPolicyModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1972
|
+
public constructor(httpClient: Wretcher) {
|
|
1973
|
+
this.httpClient = httpClient;
|
|
1974
|
+
}
|
|
1975
|
+
public replace(
|
|
1976
|
+
arg: datatypes.EdgeRouteTrafficPolicyReplace
|
|
1977
|
+
): Promise<datatypes.EndpointTrafficPolicy> {
|
|
1978
|
+
return this.httpClient
|
|
1979
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/traffic_policy`)
|
|
1980
|
+
.put(util.serializeArgument(arg))
|
|
1981
|
+
.json(payload => util.deserializeResult(payload))
|
|
1982
|
+
.then(f => f, util.onRejected);
|
|
1983
|
+
}
|
|
1984
|
+
public get(
|
|
1985
|
+
arg: datatypes.EdgeRouteItem
|
|
1986
|
+
): Promise<datatypes.EndpointTrafficPolicy> {
|
|
1987
|
+
return this.httpClient
|
|
1988
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/traffic_policy`)
|
|
1989
|
+
.get()
|
|
1990
|
+
.json(payload => util.deserializeResult(payload))
|
|
1991
|
+
.then(f => f, util.onRejected);
|
|
1992
|
+
}
|
|
1993
|
+
public delete(arg: datatypes.EdgeRouteItem): Promise<void> {
|
|
1994
|
+
return this.httpClient
|
|
1995
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/traffic_policy`)
|
|
1996
|
+
.delete()
|
|
1997
|
+
.res()
|
|
1998
|
+
.then(f => f, util.onRejected);
|
|
1999
|
+
}
|
|
1728
2000
|
}
|
|
1729
2001
|
|
|
1730
2002
|
export class EdgesTCP {
|
|
@@ -1750,7 +2022,7 @@ export class EdgesTCP {
|
|
|
1750
2022
|
public get(id): Promise<datatypes.TCPEdge> {
|
|
1751
2023
|
return this.httpClient
|
|
1752
2024
|
.url(`/edges/tcp/${id}`)
|
|
1753
|
-
.get(
|
|
2025
|
+
.get()
|
|
1754
2026
|
.json(payload => util.deserializeResult(payload))
|
|
1755
2027
|
.then(f => f, util.onRejected);
|
|
1756
2028
|
}
|
|
@@ -1818,8 +2090,8 @@ export class EdgesTCP {
|
|
|
1818
2090
|
public delete(id): Promise<void> {
|
|
1819
2091
|
return this.httpClient
|
|
1820
2092
|
.url(`/edges/tcp/${id}`)
|
|
1821
|
-
.delete(
|
|
1822
|
-
.
|
|
2093
|
+
.delete()
|
|
2094
|
+
.res()
|
|
1823
2095
|
.then(f => f, util.onRejected);
|
|
1824
2096
|
}
|
|
1825
2097
|
}
|
|
@@ -1843,15 +2115,15 @@ export class TCPEdgeBackendModule {
|
|
|
1843
2115
|
public get(id): Promise<datatypes.EndpointBackend> {
|
|
1844
2116
|
return this.httpClient
|
|
1845
2117
|
.url(`/edges/tcp/${id}/backend`)
|
|
1846
|
-
.get(
|
|
2118
|
+
.get()
|
|
1847
2119
|
.json(payload => util.deserializeResult(payload))
|
|
1848
2120
|
.then(f => f, util.onRejected);
|
|
1849
2121
|
}
|
|
1850
2122
|
public delete(id): Promise<void> {
|
|
1851
2123
|
return this.httpClient
|
|
1852
2124
|
.url(`/edges/tcp/${id}/backend`)
|
|
1853
|
-
.delete(
|
|
1854
|
-
.
|
|
2125
|
+
.delete()
|
|
2126
|
+
.res()
|
|
1855
2127
|
.then(f => f, util.onRejected);
|
|
1856
2128
|
}
|
|
1857
2129
|
}
|
|
@@ -1875,17 +2147,49 @@ export class TCPEdgeIPRestrictionModule {
|
|
|
1875
2147
|
public get(id): Promise<datatypes.EndpointIPPolicy> {
|
|
1876
2148
|
return this.httpClient
|
|
1877
2149
|
.url(`/edges/tcp/${id}/ip_restriction`)
|
|
1878
|
-
.get(
|
|
2150
|
+
.get()
|
|
1879
2151
|
.json(payload => util.deserializeResult(payload))
|
|
1880
2152
|
.then(f => f, util.onRejected);
|
|
1881
2153
|
}
|
|
1882
2154
|
public delete(id): Promise<void> {
|
|
1883
2155
|
return this.httpClient
|
|
1884
2156
|
.url(`/edges/tcp/${id}/ip_restriction`)
|
|
1885
|
-
.delete(
|
|
2157
|
+
.delete()
|
|
2158
|
+
.res()
|
|
2159
|
+
.then(f => f, util.onRejected);
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
export class TCPEdgeTrafficPolicyModule {
|
|
2164
|
+
private httpClient: Wretcher;
|
|
2165
|
+
|
|
2166
|
+
/** Do not construct this object directly, use the <code>tcpEdgeTrafficPolicyModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
2167
|
+
public constructor(httpClient: Wretcher) {
|
|
2168
|
+
this.httpClient = httpClient;
|
|
2169
|
+
}
|
|
2170
|
+
public replace(
|
|
2171
|
+
arg: datatypes.EdgeTrafficPolicyReplace
|
|
2172
|
+
): Promise<datatypes.EndpointTrafficPolicy> {
|
|
2173
|
+
return this.httpClient
|
|
2174
|
+
.url(`/edges/tcp/${arg.id}/traffic_policy`)
|
|
2175
|
+
.put(util.serializeArgument(arg))
|
|
2176
|
+
.json(payload => util.deserializeResult(payload))
|
|
2177
|
+
.then(f => f, util.onRejected);
|
|
2178
|
+
}
|
|
2179
|
+
public get(id): Promise<datatypes.EndpointTrafficPolicy> {
|
|
2180
|
+
return this.httpClient
|
|
2181
|
+
.url(`/edges/tcp/${id}/traffic_policy`)
|
|
2182
|
+
.get()
|
|
1886
2183
|
.json(payload => util.deserializeResult(payload))
|
|
1887
2184
|
.then(f => f, util.onRejected);
|
|
1888
2185
|
}
|
|
2186
|
+
public delete(id): Promise<void> {
|
|
2187
|
+
return this.httpClient
|
|
2188
|
+
.url(`/edges/tcp/${id}/traffic_policy`)
|
|
2189
|
+
.delete()
|
|
2190
|
+
.res()
|
|
2191
|
+
.then(f => f, util.onRejected);
|
|
2192
|
+
}
|
|
1889
2193
|
}
|
|
1890
2194
|
|
|
1891
2195
|
export class EdgesTLS {
|
|
@@ -1911,7 +2215,7 @@ export class EdgesTLS {
|
|
|
1911
2215
|
public get(id): Promise<datatypes.TLSEdge> {
|
|
1912
2216
|
return this.httpClient
|
|
1913
2217
|
.url(`/edges/tls/${id}`)
|
|
1914
|
-
.get(
|
|
2218
|
+
.get()
|
|
1915
2219
|
.json(payload => util.deserializeResult(payload))
|
|
1916
2220
|
.then(f => f, util.onRejected);
|
|
1917
2221
|
}
|
|
@@ -1979,8 +2283,8 @@ export class EdgesTLS {
|
|
|
1979
2283
|
public delete(id): Promise<void> {
|
|
1980
2284
|
return this.httpClient
|
|
1981
2285
|
.url(`/edges/tls/${id}`)
|
|
1982
|
-
.delete(
|
|
1983
|
-
.
|
|
2286
|
+
.delete()
|
|
2287
|
+
.res()
|
|
1984
2288
|
.then(f => f, util.onRejected);
|
|
1985
2289
|
}
|
|
1986
2290
|
}
|
|
@@ -2004,15 +2308,15 @@ export class TLSEdgeBackendModule {
|
|
|
2004
2308
|
public get(id): Promise<datatypes.EndpointBackend> {
|
|
2005
2309
|
return this.httpClient
|
|
2006
2310
|
.url(`/edges/tls/${id}/backend`)
|
|
2007
|
-
.get(
|
|
2311
|
+
.get()
|
|
2008
2312
|
.json(payload => util.deserializeResult(payload))
|
|
2009
2313
|
.then(f => f, util.onRejected);
|
|
2010
2314
|
}
|
|
2011
2315
|
public delete(id): Promise<void> {
|
|
2012
2316
|
return this.httpClient
|
|
2013
2317
|
.url(`/edges/tls/${id}/backend`)
|
|
2014
|
-
.delete(
|
|
2015
|
-
.
|
|
2318
|
+
.delete()
|
|
2319
|
+
.res()
|
|
2016
2320
|
.then(f => f, util.onRejected);
|
|
2017
2321
|
}
|
|
2018
2322
|
}
|
|
@@ -2036,15 +2340,15 @@ export class TLSEdgeIPRestrictionModule {
|
|
|
2036
2340
|
public get(id): Promise<datatypes.EndpointIPPolicy> {
|
|
2037
2341
|
return this.httpClient
|
|
2038
2342
|
.url(`/edges/tls/${id}/ip_restriction`)
|
|
2039
|
-
.get(
|
|
2343
|
+
.get()
|
|
2040
2344
|
.json(payload => util.deserializeResult(payload))
|
|
2041
2345
|
.then(f => f, util.onRejected);
|
|
2042
2346
|
}
|
|
2043
2347
|
public delete(id): Promise<void> {
|
|
2044
2348
|
return this.httpClient
|
|
2045
2349
|
.url(`/edges/tls/${id}/ip_restriction`)
|
|
2046
|
-
.delete(
|
|
2047
|
-
.
|
|
2350
|
+
.delete()
|
|
2351
|
+
.res()
|
|
2048
2352
|
.then(f => f, util.onRejected);
|
|
2049
2353
|
}
|
|
2050
2354
|
}
|
|
@@ -2068,15 +2372,15 @@ export class TLSEdgeMutualTLSModule {
|
|
|
2068
2372
|
public get(id): Promise<datatypes.EndpointMutualTLS> {
|
|
2069
2373
|
return this.httpClient
|
|
2070
2374
|
.url(`/edges/tls/${id}/mutual_tls`)
|
|
2071
|
-
.get(
|
|
2375
|
+
.get()
|
|
2072
2376
|
.json(payload => util.deserializeResult(payload))
|
|
2073
2377
|
.then(f => f, util.onRejected);
|
|
2074
2378
|
}
|
|
2075
2379
|
public delete(id): Promise<void> {
|
|
2076
2380
|
return this.httpClient
|
|
2077
2381
|
.url(`/edges/tls/${id}/mutual_tls`)
|
|
2078
|
-
.delete(
|
|
2079
|
-
.
|
|
2382
|
+
.delete()
|
|
2383
|
+
.res()
|
|
2080
2384
|
.then(f => f, util.onRejected);
|
|
2081
2385
|
}
|
|
2082
2386
|
}
|
|
@@ -2100,17 +2404,49 @@ export class TLSEdgeTLSTerminationModule {
|
|
|
2100
2404
|
public get(id): Promise<datatypes.EndpointTLSTermination> {
|
|
2101
2405
|
return this.httpClient
|
|
2102
2406
|
.url(`/edges/tls/${id}/tls_termination`)
|
|
2103
|
-
.get(
|
|
2407
|
+
.get()
|
|
2104
2408
|
.json(payload => util.deserializeResult(payload))
|
|
2105
2409
|
.then(f => f, util.onRejected);
|
|
2106
2410
|
}
|
|
2107
2411
|
public delete(id): Promise<void> {
|
|
2108
2412
|
return this.httpClient
|
|
2109
2413
|
.url(`/edges/tls/${id}/tls_termination`)
|
|
2110
|
-
.delete(
|
|
2414
|
+
.delete()
|
|
2415
|
+
.res()
|
|
2416
|
+
.then(f => f, util.onRejected);
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
export class TLSEdgeTrafficPolicyModule {
|
|
2421
|
+
private httpClient: Wretcher;
|
|
2422
|
+
|
|
2423
|
+
/** Do not construct this object directly, use the <code>tlsEdgeTrafficPolicyModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
2424
|
+
public constructor(httpClient: Wretcher) {
|
|
2425
|
+
this.httpClient = httpClient;
|
|
2426
|
+
}
|
|
2427
|
+
public replace(
|
|
2428
|
+
arg: datatypes.EdgeTrafficPolicyReplace
|
|
2429
|
+
): Promise<datatypes.EndpointTrafficPolicy> {
|
|
2430
|
+
return this.httpClient
|
|
2431
|
+
.url(`/edges/tls/${arg.id}/traffic_policy`)
|
|
2432
|
+
.put(util.serializeArgument(arg))
|
|
2111
2433
|
.json(payload => util.deserializeResult(payload))
|
|
2112
2434
|
.then(f => f, util.onRejected);
|
|
2113
2435
|
}
|
|
2436
|
+
public get(id): Promise<datatypes.EndpointTrafficPolicy> {
|
|
2437
|
+
return this.httpClient
|
|
2438
|
+
.url(`/edges/tls/${id}/traffic_policy`)
|
|
2439
|
+
.get()
|
|
2440
|
+
.json(payload => util.deserializeResult(payload))
|
|
2441
|
+
.then(f => f, util.onRejected);
|
|
2442
|
+
}
|
|
2443
|
+
public delete(id): Promise<void> {
|
|
2444
|
+
return this.httpClient
|
|
2445
|
+
.url(`/edges/tls/${id}/traffic_policy`)
|
|
2446
|
+
.delete()
|
|
2447
|
+
.res()
|
|
2448
|
+
.then(f => f, util.onRejected);
|
|
2449
|
+
}
|
|
2114
2450
|
}
|
|
2115
2451
|
|
|
2116
2452
|
/**
|
|
@@ -2179,7 +2515,7 @@ export class Endpoints {
|
|
|
2179
2515
|
public get(id): Promise<datatypes.Endpoint> {
|
|
2180
2516
|
return this.httpClient
|
|
2181
2517
|
.url(`/endpoints/${id}`)
|
|
2182
|
-
.get(
|
|
2518
|
+
.get()
|
|
2183
2519
|
.json(payload => util.deserializeResult(payload))
|
|
2184
2520
|
.then(f => f, util.onRejected);
|
|
2185
2521
|
}
|
|
@@ -2210,8 +2546,8 @@ export class EventDestinations {
|
|
|
2210
2546
|
public delete(id): Promise<void> {
|
|
2211
2547
|
return this.httpClient
|
|
2212
2548
|
.url(`/event_destinations/${id}`)
|
|
2213
|
-
.delete(
|
|
2214
|
-
.
|
|
2549
|
+
.delete()
|
|
2550
|
+
.res()
|
|
2215
2551
|
.then(f => f, util.onRejected);
|
|
2216
2552
|
}
|
|
2217
2553
|
/**
|
|
@@ -2220,7 +2556,7 @@ export class EventDestinations {
|
|
|
2220
2556
|
public get(id): Promise<datatypes.EventDestination> {
|
|
2221
2557
|
return this.httpClient
|
|
2222
2558
|
.url(`/event_destinations/${id}`)
|
|
2223
|
-
.get(
|
|
2559
|
+
.get()
|
|
2224
2560
|
.json(payload => util.deserializeResult(payload))
|
|
2225
2561
|
.then(f => f, util.onRejected);
|
|
2226
2562
|
}
|
|
@@ -2313,8 +2649,8 @@ export class EventSubscriptions {
|
|
|
2313
2649
|
public delete(id): Promise<void> {
|
|
2314
2650
|
return this.httpClient
|
|
2315
2651
|
.url(`/event_subscriptions/${id}`)
|
|
2316
|
-
.delete(
|
|
2317
|
-
.
|
|
2652
|
+
.delete()
|
|
2653
|
+
.res()
|
|
2318
2654
|
.then(f => f, util.onRejected);
|
|
2319
2655
|
}
|
|
2320
2656
|
/**
|
|
@@ -2323,7 +2659,7 @@ export class EventSubscriptions {
|
|
|
2323
2659
|
public get(id): Promise<datatypes.EventSubscription> {
|
|
2324
2660
|
return this.httpClient
|
|
2325
2661
|
.url(`/event_subscriptions/${id}`)
|
|
2326
|
-
.get(
|
|
2662
|
+
.get()
|
|
2327
2663
|
.json(payload => util.deserializeResult(payload))
|
|
2328
2664
|
.then(f => f, util.onRejected);
|
|
2329
2665
|
}
|
|
@@ -2417,7 +2753,7 @@ export class EventSources {
|
|
|
2417
2753
|
return this.httpClient
|
|
2418
2754
|
.url(`/event_subscriptions/${arg.subscriptionId}/sources/${arg.type}`)
|
|
2419
2755
|
.delete()
|
|
2420
|
-
.
|
|
2756
|
+
.res()
|
|
2421
2757
|
.then(f => f, util.onRejected);
|
|
2422
2758
|
}
|
|
2423
2759
|
/**
|
|
@@ -2485,8 +2821,8 @@ export class IPPolicies {
|
|
|
2485
2821
|
public delete(id): Promise<void> {
|
|
2486
2822
|
return this.httpClient
|
|
2487
2823
|
.url(`/ip_policies/${id}`)
|
|
2488
|
-
.delete(
|
|
2489
|
-
.
|
|
2824
|
+
.delete()
|
|
2825
|
+
.res()
|
|
2490
2826
|
.then(f => f, util.onRejected);
|
|
2491
2827
|
}
|
|
2492
2828
|
/**
|
|
@@ -2495,7 +2831,7 @@ export class IPPolicies {
|
|
|
2495
2831
|
public get(id): Promise<datatypes.IPPolicy> {
|
|
2496
2832
|
return this.httpClient
|
|
2497
2833
|
.url(`/ip_policies/${id}`)
|
|
2498
|
-
.get(
|
|
2834
|
+
.get()
|
|
2499
2835
|
.json(payload => util.deserializeResult(payload))
|
|
2500
2836
|
.then(f => f, util.onRejected);
|
|
2501
2837
|
}
|
|
@@ -2588,8 +2924,8 @@ export class IPPolicyRules {
|
|
|
2588
2924
|
public delete(id): Promise<void> {
|
|
2589
2925
|
return this.httpClient
|
|
2590
2926
|
.url(`/ip_policy_rules/${id}`)
|
|
2591
|
-
.delete(
|
|
2592
|
-
.
|
|
2927
|
+
.delete()
|
|
2928
|
+
.res()
|
|
2593
2929
|
.then(f => f, util.onRejected);
|
|
2594
2930
|
}
|
|
2595
2931
|
/**
|
|
@@ -2598,7 +2934,7 @@ export class IPPolicyRules {
|
|
|
2598
2934
|
public get(id): Promise<datatypes.IPPolicyRule> {
|
|
2599
2935
|
return this.httpClient
|
|
2600
2936
|
.url(`/ip_policy_rules/${id}`)
|
|
2601
|
-
.get(
|
|
2937
|
+
.get()
|
|
2602
2938
|
.json(payload => util.deserializeResult(payload))
|
|
2603
2939
|
.then(f => f, util.onRejected);
|
|
2604
2940
|
}
|
|
@@ -2699,8 +3035,8 @@ export class IPRestrictions {
|
|
|
2699
3035
|
public delete(id): Promise<void> {
|
|
2700
3036
|
return this.httpClient
|
|
2701
3037
|
.url(`/ip_restrictions/${id}`)
|
|
2702
|
-
.delete(
|
|
2703
|
-
.
|
|
3038
|
+
.delete()
|
|
3039
|
+
.res()
|
|
2704
3040
|
.then(f => f, util.onRejected);
|
|
2705
3041
|
}
|
|
2706
3042
|
/**
|
|
@@ -2709,7 +3045,7 @@ export class IPRestrictions {
|
|
|
2709
3045
|
public get(id): Promise<datatypes.IPRestriction> {
|
|
2710
3046
|
return this.httpClient
|
|
2711
3047
|
.url(`/ip_restrictions/${id}`)
|
|
2712
|
-
.get(
|
|
3048
|
+
.get()
|
|
2713
3049
|
.json(payload => util.deserializeResult(payload))
|
|
2714
3050
|
.then(f => f, util.onRejected);
|
|
2715
3051
|
}
|
|
@@ -2807,8 +3143,8 @@ export class ReservedAddrs {
|
|
|
2807
3143
|
public delete(id): Promise<void> {
|
|
2808
3144
|
return this.httpClient
|
|
2809
3145
|
.url(`/reserved_addrs/${id}`)
|
|
2810
|
-
.delete(
|
|
2811
|
-
.
|
|
3146
|
+
.delete()
|
|
3147
|
+
.res()
|
|
2812
3148
|
.then(f => f, util.onRejected);
|
|
2813
3149
|
}
|
|
2814
3150
|
/**
|
|
@@ -2817,7 +3153,7 @@ export class ReservedAddrs {
|
|
|
2817
3153
|
public get(id): Promise<datatypes.ReservedAddr> {
|
|
2818
3154
|
return this.httpClient
|
|
2819
3155
|
.url(`/reserved_addrs/${id}`)
|
|
2820
|
-
.get(
|
|
3156
|
+
.get()
|
|
2821
3157
|
.json(payload => util.deserializeResult(payload))
|
|
2822
3158
|
.then(f => f, util.onRejected);
|
|
2823
3159
|
}
|
|
@@ -2916,8 +3252,8 @@ export class ReservedDomains {
|
|
|
2916
3252
|
public delete(id): Promise<void> {
|
|
2917
3253
|
return this.httpClient
|
|
2918
3254
|
.url(`/reserved_domains/${id}`)
|
|
2919
|
-
.delete(
|
|
2920
|
-
.
|
|
3255
|
+
.delete()
|
|
3256
|
+
.res()
|
|
2921
3257
|
.then(f => f, util.onRejected);
|
|
2922
3258
|
}
|
|
2923
3259
|
/**
|
|
@@ -2926,7 +3262,7 @@ export class ReservedDomains {
|
|
|
2926
3262
|
public get(id): Promise<datatypes.ReservedDomain> {
|
|
2927
3263
|
return this.httpClient
|
|
2928
3264
|
.url(`/reserved_domains/${id}`)
|
|
2929
|
-
.get(
|
|
3265
|
+
.get()
|
|
2930
3266
|
.json(payload => util.deserializeResult(payload))
|
|
2931
3267
|
.then(f => f, util.onRejected);
|
|
2932
3268
|
}
|
|
@@ -2998,8 +3334,8 @@ export class ReservedDomains {
|
|
|
2998
3334
|
public deleteCertificateManagementPolicy(id): Promise<void> {
|
|
2999
3335
|
return this.httpClient
|
|
3000
3336
|
.url(`/reserved_domains/${id}/certificate_management_policy`)
|
|
3001
|
-
.delete(
|
|
3002
|
-
.
|
|
3337
|
+
.delete()
|
|
3338
|
+
.res()
|
|
3003
3339
|
.then(f => f, util.onRejected);
|
|
3004
3340
|
}
|
|
3005
3341
|
/**
|
|
@@ -3008,8 +3344,8 @@ export class ReservedDomains {
|
|
|
3008
3344
|
public deleteCertificate(id): Promise<void> {
|
|
3009
3345
|
return this.httpClient
|
|
3010
3346
|
.url(`/reserved_domains/${id}/certificate`)
|
|
3011
|
-
.delete(
|
|
3012
|
-
.
|
|
3347
|
+
.delete()
|
|
3348
|
+
.res()
|
|
3013
3349
|
.then(f => f, util.onRejected);
|
|
3014
3350
|
}
|
|
3015
3351
|
}
|
|
@@ -3043,8 +3379,8 @@ export class SSHCertificateAuthorities {
|
|
|
3043
3379
|
public delete(id): Promise<void> {
|
|
3044
3380
|
return this.httpClient
|
|
3045
3381
|
.url(`/ssh_certificate_authorities/${id}`)
|
|
3046
|
-
.delete(
|
|
3047
|
-
.
|
|
3382
|
+
.delete()
|
|
3383
|
+
.res()
|
|
3048
3384
|
.then(f => f, util.onRejected);
|
|
3049
3385
|
}
|
|
3050
3386
|
/**
|
|
@@ -3053,7 +3389,7 @@ export class SSHCertificateAuthorities {
|
|
|
3053
3389
|
public get(id): Promise<datatypes.SSHCertificateAuthority> {
|
|
3054
3390
|
return this.httpClient
|
|
3055
3391
|
.url(`/ssh_certificate_authorities/${id}`)
|
|
3056
|
-
.get(
|
|
3392
|
+
.get()
|
|
3057
3393
|
.json(payload => util.deserializeResult(payload))
|
|
3058
3394
|
.then(f => f, util.onRejected);
|
|
3059
3395
|
}
|
|
@@ -3151,8 +3487,8 @@ export class SSHCredentials {
|
|
|
3151
3487
|
public delete(id): Promise<void> {
|
|
3152
3488
|
return this.httpClient
|
|
3153
3489
|
.url(`/ssh_credentials/${id}`)
|
|
3154
|
-
.delete(
|
|
3155
|
-
.
|
|
3490
|
+
.delete()
|
|
3491
|
+
.res()
|
|
3156
3492
|
.then(f => f, util.onRejected);
|
|
3157
3493
|
}
|
|
3158
3494
|
/**
|
|
@@ -3161,7 +3497,7 @@ export class SSHCredentials {
|
|
|
3161
3497
|
public get(id): Promise<datatypes.SSHCredential> {
|
|
3162
3498
|
return this.httpClient
|
|
3163
3499
|
.url(`/ssh_credentials/${id}`)
|
|
3164
|
-
.get(
|
|
3500
|
+
.get()
|
|
3165
3501
|
.json(payload => util.deserializeResult(payload))
|
|
3166
3502
|
.then(f => f, util.onRejected);
|
|
3167
3503
|
}
|
|
@@ -3259,8 +3595,8 @@ export class SSHHostCertificates {
|
|
|
3259
3595
|
public delete(id): Promise<void> {
|
|
3260
3596
|
return this.httpClient
|
|
3261
3597
|
.url(`/ssh_host_certificates/${id}`)
|
|
3262
|
-
.delete(
|
|
3263
|
-
.
|
|
3598
|
+
.delete()
|
|
3599
|
+
.res()
|
|
3264
3600
|
.then(f => f, util.onRejected);
|
|
3265
3601
|
}
|
|
3266
3602
|
/**
|
|
@@ -3269,7 +3605,7 @@ export class SSHHostCertificates {
|
|
|
3269
3605
|
public get(id): Promise<datatypes.SSHHostCertificate> {
|
|
3270
3606
|
return this.httpClient
|
|
3271
3607
|
.url(`/ssh_host_certificates/${id}`)
|
|
3272
|
-
.get(
|
|
3608
|
+
.get()
|
|
3273
3609
|
.json(payload => util.deserializeResult(payload))
|
|
3274
3610
|
.then(f => f, util.onRejected);
|
|
3275
3611
|
}
|
|
@@ -3368,8 +3704,8 @@ export class SSHUserCertificates {
|
|
|
3368
3704
|
public delete(id): Promise<void> {
|
|
3369
3705
|
return this.httpClient
|
|
3370
3706
|
.url(`/ssh_user_certificates/${id}`)
|
|
3371
|
-
.delete(
|
|
3372
|
-
.
|
|
3707
|
+
.delete()
|
|
3708
|
+
.res()
|
|
3373
3709
|
.then(f => f, util.onRejected);
|
|
3374
3710
|
}
|
|
3375
3711
|
/**
|
|
@@ -3378,7 +3714,7 @@ export class SSHUserCertificates {
|
|
|
3378
3714
|
public get(id): Promise<datatypes.SSHUserCertificate> {
|
|
3379
3715
|
return this.httpClient
|
|
3380
3716
|
.url(`/ssh_user_certificates/${id}`)
|
|
3381
|
-
.get(
|
|
3717
|
+
.get()
|
|
3382
3718
|
.json(payload => util.deserializeResult(payload))
|
|
3383
3719
|
.then(f => f, util.onRejected);
|
|
3384
3720
|
}
|
|
@@ -3479,8 +3815,8 @@ export class TLSCertificates {
|
|
|
3479
3815
|
public delete(id): Promise<void> {
|
|
3480
3816
|
return this.httpClient
|
|
3481
3817
|
.url(`/tls_certificates/${id}`)
|
|
3482
|
-
.delete(
|
|
3483
|
-
.
|
|
3818
|
+
.delete()
|
|
3819
|
+
.res()
|
|
3484
3820
|
.then(f => f, util.onRejected);
|
|
3485
3821
|
}
|
|
3486
3822
|
/**
|
|
@@ -3489,7 +3825,7 @@ export class TLSCertificates {
|
|
|
3489
3825
|
public get(id): Promise<datatypes.TLSCertificate> {
|
|
3490
3826
|
return this.httpClient
|
|
3491
3827
|
.url(`/tls_certificates/${id}`)
|
|
3492
|
-
.get(
|
|
3828
|
+
.get()
|
|
3493
3829
|
.json(payload => util.deserializeResult(payload))
|
|
3494
3830
|
.then(f => f, util.onRejected);
|
|
3495
3831
|
}
|
|
@@ -3622,7 +3958,7 @@ export class Tunnels {
|
|
|
3622
3958
|
public get(id): Promise<datatypes.Tunnel> {
|
|
3623
3959
|
return this.httpClient
|
|
3624
3960
|
.url(`/tunnels/${id}`)
|
|
3625
|
-
.get(
|
|
3961
|
+
.get()
|
|
3626
3962
|
.json(payload => util.deserializeResult(payload))
|
|
3627
3963
|
.then(f => f, util.onRejected);
|
|
3628
3964
|
}
|