@ngrok/ngrok-api 0.11.0 → 0.13.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 -1
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/client.Ngrok.html +38 -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 +6 -6
- 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.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 +4 -4
- 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 +99 -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 +6 -6
- package/docs/classes/services.TCPEdgeBackendModule.html +4 -4
- package/docs/classes/services.TCPEdgeIPRestrictionModule.html +4 -4
- 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.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 +2 -2
- 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 +5 -5
- package/docs/interfaces/datatypes.BotUserCreate.html +2 -2
- package/docs/interfaces/datatypes.BotUserList.html +3 -3
- package/docs/interfaces/datatypes.BotUserUpdate.html +3 -3
- 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.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.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 +3 -3
- 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 +266 -15
- 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.EndpointCreate.html +262 -0
- 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.EndpointRequestHeaders.html +3 -3
- package/docs/interfaces/datatypes.EndpointResponseHeaders.html +3 -3
- 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.EndpointUpdate.html +262 -0
- package/docs/interfaces/datatypes.EndpointUserAgentFilter.html +3 -3
- package/docs/interfaces/datatypes.EndpointWebhookValidation.html +3 -3
- 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 +39 -39
- package/docs/interfaces/datatypes.HTTPSEdgeRouteCreate.html +36 -36
- package/docs/interfaces/datatypes.HTTPSEdgeRouteUpdate.html +37 -37
- 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 +12 -12
- package/docs/interfaces/datatypes.ReservedDomainCertJob.html +4 -4
- package/docs/interfaces/datatypes.ReservedDomainCertPolicy.html +3 -3
- package/docs/interfaces/datatypes.ReservedDomainCertStatus.html +2 -2
- package/docs/interfaces/datatypes.ReservedDomainCreate.html +6 -6
- 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 +7 -7
- package/docs/interfaces/datatypes.StaticBackendCreate.html +4 -4
- package/docs/interfaces/datatypes.StaticBackendList.html +3 -3
- package/docs/interfaces/datatypes.StaticBackendTLS.html +1 -1
- package/docs/interfaces/datatypes.StaticBackendUpdate.html +5 -5
- package/docs/interfaces/datatypes.TCPEdge.html +14 -14
- package/docs/interfaces/datatypes.TCPEdgeCreate.html +11 -11
- package/docs/interfaces/datatypes.TCPEdgeList.html +3 -3
- package/docs/interfaces/datatypes.TCPEdgeUpdate.html +12 -12
- 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 +25 -25
- package/docs/interfaces/datatypes.TLSEdgeCreate.html +22 -22
- package/docs/interfaces/datatypes.TLSEdgeList.html +3 -3
- package/docs/interfaces/datatypes.TLSEdgeUpdate.html +23 -23
- 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 +24 -20
- package/docs/modules/services.html +9 -9
- package/lib/client.d.ts +3 -0
- 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 +87 -35
- package/lib/datatypes.d.ts.map +1 -1
- package/lib/services.d.ts +24 -12
- package/lib/services.d.ts.map +1 -1
- package/lib/services.js +188 -158
- package/lib/services.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +13 -1
- package/src/datatypes.ts +90 -37
- package/src/services.ts +195 -163
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
|
}
|
|
@@ -736,8 +736,8 @@ export class StaticBackends {
|
|
|
736
736
|
public delete(id): Promise<void> {
|
|
737
737
|
return this.httpClient
|
|
738
738
|
.url(`/backends/static/${id}`)
|
|
739
|
-
.delete(
|
|
740
|
-
.
|
|
739
|
+
.delete()
|
|
740
|
+
.res()
|
|
741
741
|
.then(f => f, util.onRejected);
|
|
742
742
|
}
|
|
743
743
|
/**
|
|
@@ -746,7 +746,7 @@ export class StaticBackends {
|
|
|
746
746
|
public get(id): Promise<datatypes.StaticBackend> {
|
|
747
747
|
return this.httpClient
|
|
748
748
|
.url(`/backends/static/${id}`)
|
|
749
|
-
.get(
|
|
749
|
+
.get()
|
|
750
750
|
.json(payload => util.deserializeResult(payload))
|
|
751
751
|
.then(f => f, util.onRejected);
|
|
752
752
|
}
|
|
@@ -843,8 +843,8 @@ export class TunnelGroupBackends {
|
|
|
843
843
|
public delete(id): Promise<void> {
|
|
844
844
|
return this.httpClient
|
|
845
845
|
.url(`/backends/tunnel_group/${id}`)
|
|
846
|
-
.delete(
|
|
847
|
-
.
|
|
846
|
+
.delete()
|
|
847
|
+
.res()
|
|
848
848
|
.then(f => f, util.onRejected);
|
|
849
849
|
}
|
|
850
850
|
/**
|
|
@@ -853,7 +853,7 @@ export class TunnelGroupBackends {
|
|
|
853
853
|
public get(id): Promise<datatypes.TunnelGroupBackend> {
|
|
854
854
|
return this.httpClient
|
|
855
855
|
.url(`/backends/tunnel_group/${id}`)
|
|
856
|
-
.get(
|
|
856
|
+
.get()
|
|
857
857
|
.json(payload => util.deserializeResult(payload))
|
|
858
858
|
.then(f => f, util.onRejected);
|
|
859
859
|
}
|
|
@@ -952,8 +952,8 @@ export class WeightedBackends {
|
|
|
952
952
|
public delete(id): Promise<void> {
|
|
953
953
|
return this.httpClient
|
|
954
954
|
.url(`/backends/weighted/${id}`)
|
|
955
|
-
.delete(
|
|
956
|
-
.
|
|
955
|
+
.delete()
|
|
956
|
+
.res()
|
|
957
957
|
.then(f => f, util.onRejected);
|
|
958
958
|
}
|
|
959
959
|
/**
|
|
@@ -962,7 +962,7 @@ export class WeightedBackends {
|
|
|
962
962
|
public get(id): Promise<datatypes.WeightedBackend> {
|
|
963
963
|
return this.httpClient
|
|
964
964
|
.url(`/backends/weighted/${id}`)
|
|
965
|
-
.get(
|
|
965
|
+
.get()
|
|
966
966
|
.json(payload => util.deserializeResult(payload))
|
|
967
967
|
.then(f => f, util.onRejected);
|
|
968
968
|
}
|
|
@@ -1053,8 +1053,8 @@ export class BotUsers {
|
|
|
1053
1053
|
public delete(id): Promise<void> {
|
|
1054
1054
|
return this.httpClient
|
|
1055
1055
|
.url(`/bot_users/${id}`)
|
|
1056
|
-
.delete(
|
|
1057
|
-
.
|
|
1056
|
+
.delete()
|
|
1057
|
+
.res()
|
|
1058
1058
|
.then(f => f, util.onRejected);
|
|
1059
1059
|
}
|
|
1060
1060
|
/**
|
|
@@ -1063,7 +1063,7 @@ export class BotUsers {
|
|
|
1063
1063
|
public get(id): Promise<datatypes.BotUser> {
|
|
1064
1064
|
return this.httpClient
|
|
1065
1065
|
.url(`/bot_users/${id}`)
|
|
1066
|
-
.get(
|
|
1066
|
+
.get()
|
|
1067
1067
|
.json(payload => util.deserializeResult(payload))
|
|
1068
1068
|
.then(f => f, util.onRejected);
|
|
1069
1069
|
}
|
|
@@ -1159,8 +1159,8 @@ export class CertificateAuthorities {
|
|
|
1159
1159
|
public delete(id): Promise<void> {
|
|
1160
1160
|
return this.httpClient
|
|
1161
1161
|
.url(`/certificate_authorities/${id}`)
|
|
1162
|
-
.delete(
|
|
1163
|
-
.
|
|
1162
|
+
.delete()
|
|
1163
|
+
.res()
|
|
1164
1164
|
.then(f => f, util.onRejected);
|
|
1165
1165
|
}
|
|
1166
1166
|
/**
|
|
@@ -1169,7 +1169,7 @@ export class CertificateAuthorities {
|
|
|
1169
1169
|
public get(id): Promise<datatypes.CertificateAuthority> {
|
|
1170
1170
|
return this.httpClient
|
|
1171
1171
|
.url(`/certificate_authorities/${id}`)
|
|
1172
|
-
.get(
|
|
1172
|
+
.get()
|
|
1173
1173
|
.json(payload => util.deserializeResult(payload))
|
|
1174
1174
|
.then(f => f, util.onRejected);
|
|
1175
1175
|
}
|
|
@@ -1269,8 +1269,8 @@ export class Credentials {
|
|
|
1269
1269
|
public delete(id): Promise<void> {
|
|
1270
1270
|
return this.httpClient
|
|
1271
1271
|
.url(`/credentials/${id}`)
|
|
1272
|
-
.delete(
|
|
1273
|
-
.
|
|
1272
|
+
.delete()
|
|
1273
|
+
.res()
|
|
1274
1274
|
.then(f => f, util.onRejected);
|
|
1275
1275
|
}
|
|
1276
1276
|
/**
|
|
@@ -1279,7 +1279,7 @@ export class Credentials {
|
|
|
1279
1279
|
public get(id): Promise<datatypes.Credential> {
|
|
1280
1280
|
return this.httpClient
|
|
1281
1281
|
.url(`/credentials/${id}`)
|
|
1282
|
-
.get(
|
|
1282
|
+
.get()
|
|
1283
1283
|
.json(payload => util.deserializeResult(payload))
|
|
1284
1284
|
.then(f => f, util.onRejected);
|
|
1285
1285
|
}
|
|
@@ -1393,7 +1393,7 @@ export class EdgesHTTPSRoutes {
|
|
|
1393
1393
|
return this.httpClient
|
|
1394
1394
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}`)
|
|
1395
1395
|
.delete()
|
|
1396
|
-
.
|
|
1396
|
+
.res()
|
|
1397
1397
|
.then(f => f, util.onRejected);
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
@@ -1421,7 +1421,7 @@ export class EdgesHTTPS {
|
|
|
1421
1421
|
public get(id): Promise<datatypes.HTTPSEdge> {
|
|
1422
1422
|
return this.httpClient
|
|
1423
1423
|
.url(`/edges/https/${id}`)
|
|
1424
|
-
.get(
|
|
1424
|
+
.get()
|
|
1425
1425
|
.json(payload => util.deserializeResult(payload))
|
|
1426
1426
|
.then(f => f, util.onRejected);
|
|
1427
1427
|
}
|
|
@@ -1489,8 +1489,8 @@ export class EdgesHTTPS {
|
|
|
1489
1489
|
public delete(id): Promise<void> {
|
|
1490
1490
|
return this.httpClient
|
|
1491
1491
|
.url(`/edges/https/${id}`)
|
|
1492
|
-
.delete(
|
|
1493
|
-
.
|
|
1492
|
+
.delete()
|
|
1493
|
+
.res()
|
|
1494
1494
|
.then(f => f, util.onRejected);
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
@@ -1514,15 +1514,15 @@ export class HTTPSEdgeMutualTLSModule {
|
|
|
1514
1514
|
public get(id): Promise<datatypes.EndpointMutualTLS> {
|
|
1515
1515
|
return this.httpClient
|
|
1516
1516
|
.url(`/edges/https/${id}/mutual_tls`)
|
|
1517
|
-
.get(
|
|
1517
|
+
.get()
|
|
1518
1518
|
.json(payload => util.deserializeResult(payload))
|
|
1519
1519
|
.then(f => f, util.onRejected);
|
|
1520
1520
|
}
|
|
1521
1521
|
public delete(id): Promise<void> {
|
|
1522
1522
|
return this.httpClient
|
|
1523
1523
|
.url(`/edges/https/${id}/mutual_tls`)
|
|
1524
|
-
.delete(
|
|
1525
|
-
.
|
|
1524
|
+
.delete()
|
|
1525
|
+
.res()
|
|
1526
1526
|
.then(f => f, util.onRejected);
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
@@ -1546,15 +1546,15 @@ export class HTTPSEdgeTLSTerminationModule {
|
|
|
1546
1546
|
public get(id): Promise<datatypes.EndpointTLSTermination> {
|
|
1547
1547
|
return this.httpClient
|
|
1548
1548
|
.url(`/edges/https/${id}/tls_termination`)
|
|
1549
|
-
.get(
|
|
1549
|
+
.get()
|
|
1550
1550
|
.json(payload => util.deserializeResult(payload))
|
|
1551
1551
|
.then(f => f, util.onRejected);
|
|
1552
1552
|
}
|
|
1553
1553
|
public delete(id): Promise<void> {
|
|
1554
1554
|
return this.httpClient
|
|
1555
1555
|
.url(`/edges/https/${id}/tls_termination`)
|
|
1556
|
-
.delete(
|
|
1557
|
-
.
|
|
1556
|
+
.delete()
|
|
1557
|
+
.res()
|
|
1558
1558
|
.then(f => f, util.onRejected);
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
@@ -1586,7 +1586,7 @@ export class EdgeRouteBackendModule {
|
|
|
1586
1586
|
return this.httpClient
|
|
1587
1587
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/backend`)
|
|
1588
1588
|
.delete()
|
|
1589
|
-
.
|
|
1589
|
+
.res()
|
|
1590
1590
|
.then(f => f, util.onRejected);
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
@@ -1620,7 +1620,7 @@ export class EdgeRouteIPRestrictionModule {
|
|
|
1620
1620
|
return this.httpClient
|
|
1621
1621
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/ip_restriction`)
|
|
1622
1622
|
.delete()
|
|
1623
|
-
.
|
|
1623
|
+
.res()
|
|
1624
1624
|
.then(f => f, util.onRejected);
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
@@ -1654,7 +1654,7 @@ export class EdgeRouteRequestHeadersModule {
|
|
|
1654
1654
|
return this.httpClient
|
|
1655
1655
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/request_headers`)
|
|
1656
1656
|
.delete()
|
|
1657
|
-
.
|
|
1657
|
+
.res()
|
|
1658
1658
|
.then(f => f, util.onRejected);
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
@@ -1688,7 +1688,7 @@ export class EdgeRouteResponseHeadersModule {
|
|
|
1688
1688
|
return this.httpClient
|
|
1689
1689
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/response_headers`)
|
|
1690
1690
|
.delete()
|
|
1691
|
-
.
|
|
1691
|
+
.res()
|
|
1692
1692
|
.then(f => f, util.onRejected);
|
|
1693
1693
|
}
|
|
1694
1694
|
}
|
|
@@ -1722,7 +1722,7 @@ export class EdgeRouteCompressionModule {
|
|
|
1722
1722
|
return this.httpClient
|
|
1723
1723
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/compression`)
|
|
1724
1724
|
.delete()
|
|
1725
|
-
.
|
|
1725
|
+
.res()
|
|
1726
1726
|
.then(f => f, util.onRejected);
|
|
1727
1727
|
}
|
|
1728
1728
|
}
|
|
@@ -1756,7 +1756,7 @@ export class EdgeRouteCircuitBreakerModule {
|
|
|
1756
1756
|
return this.httpClient
|
|
1757
1757
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/circuit_breaker`)
|
|
1758
1758
|
.delete()
|
|
1759
|
-
.
|
|
1759
|
+
.res()
|
|
1760
1760
|
.then(f => f, util.onRejected);
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|
|
@@ -1790,7 +1790,7 @@ export class EdgeRouteWebhookVerificationModule {
|
|
|
1790
1790
|
return this.httpClient
|
|
1791
1791
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/webhook_verification`)
|
|
1792
1792
|
.delete()
|
|
1793
|
-
.
|
|
1793
|
+
.res()
|
|
1794
1794
|
.then(f => f, util.onRejected);
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
@@ -1822,7 +1822,7 @@ export class EdgeRouteOAuthModule {
|
|
|
1822
1822
|
return this.httpClient
|
|
1823
1823
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oauth`)
|
|
1824
1824
|
.delete()
|
|
1825
|
-
.
|
|
1825
|
+
.res()
|
|
1826
1826
|
.then(f => f, util.onRejected);
|
|
1827
1827
|
}
|
|
1828
1828
|
}
|
|
@@ -1854,7 +1854,7 @@ export class EdgeRouteSAMLModule {
|
|
|
1854
1854
|
return this.httpClient
|
|
1855
1855
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/saml`)
|
|
1856
1856
|
.delete()
|
|
1857
|
-
.
|
|
1857
|
+
.res()
|
|
1858
1858
|
.then(f => f, util.onRejected);
|
|
1859
1859
|
}
|
|
1860
1860
|
}
|
|
@@ -1886,7 +1886,7 @@ export class EdgeRouteOIDCModule {
|
|
|
1886
1886
|
return this.httpClient
|
|
1887
1887
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/oidc`)
|
|
1888
1888
|
.delete()
|
|
1889
|
-
.
|
|
1889
|
+
.res()
|
|
1890
1890
|
.then(f => f, util.onRejected);
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
@@ -1926,7 +1926,7 @@ export class EdgeRouteWebsocketTCPConverterModule {
|
|
|
1926
1926
|
`/edges/https/${arg.edgeId}/routes/${arg.id}/websocket_tcp_converter`
|
|
1927
1927
|
)
|
|
1928
1928
|
.delete()
|
|
1929
|
-
.
|
|
1929
|
+
.res()
|
|
1930
1930
|
.then(f => f, util.onRejected);
|
|
1931
1931
|
}
|
|
1932
1932
|
}
|
|
@@ -1960,39 +1960,41 @@ export class EdgeRouteUserAgentFilterModule {
|
|
|
1960
1960
|
return this.httpClient
|
|
1961
1961
|
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/user_agent_filter`)
|
|
1962
1962
|
.delete()
|
|
1963
|
-
.
|
|
1963
|
+
.res()
|
|
1964
1964
|
.then(f => f, util.onRejected);
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
1967
|
|
|
1968
|
-
export class
|
|
1968
|
+
export class EdgeRouteTrafficPolicyModule {
|
|
1969
1969
|
private httpClient: Wretcher;
|
|
1970
1970
|
|
|
1971
|
-
/** Do not construct this object directly, use the <code>
|
|
1971
|
+
/** Do not construct this object directly, use the <code>edgeRouteTrafficPolicyModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
1972
1972
|
public constructor(httpClient: Wretcher) {
|
|
1973
1973
|
this.httpClient = httpClient;
|
|
1974
1974
|
}
|
|
1975
1975
|
public replace(
|
|
1976
|
-
arg: datatypes.
|
|
1977
|
-
): Promise<datatypes.
|
|
1976
|
+
arg: datatypes.EdgeRouteTrafficPolicyReplace
|
|
1977
|
+
): Promise<datatypes.EndpointTrafficPolicy> {
|
|
1978
1978
|
return this.httpClient
|
|
1979
|
-
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/
|
|
1979
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/traffic_policy`)
|
|
1980
1980
|
.put(util.serializeArgument(arg))
|
|
1981
1981
|
.json(payload => util.deserializeResult(payload))
|
|
1982
1982
|
.then(f => f, util.onRejected);
|
|
1983
1983
|
}
|
|
1984
|
-
public get(
|
|
1984
|
+
public get(
|
|
1985
|
+
arg: datatypes.EdgeRouteItem
|
|
1986
|
+
): Promise<datatypes.EndpointTrafficPolicy> {
|
|
1985
1987
|
return this.httpClient
|
|
1986
|
-
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/
|
|
1988
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/traffic_policy`)
|
|
1987
1989
|
.get()
|
|
1988
1990
|
.json(payload => util.deserializeResult(payload))
|
|
1989
1991
|
.then(f => f, util.onRejected);
|
|
1990
1992
|
}
|
|
1991
1993
|
public delete(arg: datatypes.EdgeRouteItem): Promise<void> {
|
|
1992
1994
|
return this.httpClient
|
|
1993
|
-
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/
|
|
1995
|
+
.url(`/edges/https/${arg.edgeId}/routes/${arg.id}/traffic_policy`)
|
|
1994
1996
|
.delete()
|
|
1995
|
-
.
|
|
1997
|
+
.res()
|
|
1996
1998
|
.then(f => f, util.onRejected);
|
|
1997
1999
|
}
|
|
1998
2000
|
}
|
|
@@ -2020,7 +2022,7 @@ export class EdgesTCP {
|
|
|
2020
2022
|
public get(id): Promise<datatypes.TCPEdge> {
|
|
2021
2023
|
return this.httpClient
|
|
2022
2024
|
.url(`/edges/tcp/${id}`)
|
|
2023
|
-
.get(
|
|
2025
|
+
.get()
|
|
2024
2026
|
.json(payload => util.deserializeResult(payload))
|
|
2025
2027
|
.then(f => f, util.onRejected);
|
|
2026
2028
|
}
|
|
@@ -2088,8 +2090,8 @@ export class EdgesTCP {
|
|
|
2088
2090
|
public delete(id): Promise<void> {
|
|
2089
2091
|
return this.httpClient
|
|
2090
2092
|
.url(`/edges/tcp/${id}`)
|
|
2091
|
-
.delete(
|
|
2092
|
-
.
|
|
2093
|
+
.delete()
|
|
2094
|
+
.res()
|
|
2093
2095
|
.then(f => f, util.onRejected);
|
|
2094
2096
|
}
|
|
2095
2097
|
}
|
|
@@ -2113,15 +2115,15 @@ export class TCPEdgeBackendModule {
|
|
|
2113
2115
|
public get(id): Promise<datatypes.EndpointBackend> {
|
|
2114
2116
|
return this.httpClient
|
|
2115
2117
|
.url(`/edges/tcp/${id}/backend`)
|
|
2116
|
-
.get(
|
|
2118
|
+
.get()
|
|
2117
2119
|
.json(payload => util.deserializeResult(payload))
|
|
2118
2120
|
.then(f => f, util.onRejected);
|
|
2119
2121
|
}
|
|
2120
2122
|
public delete(id): Promise<void> {
|
|
2121
2123
|
return this.httpClient
|
|
2122
2124
|
.url(`/edges/tcp/${id}/backend`)
|
|
2123
|
-
.delete(
|
|
2124
|
-
.
|
|
2125
|
+
.delete()
|
|
2126
|
+
.res()
|
|
2125
2127
|
.then(f => f, util.onRejected);
|
|
2126
2128
|
}
|
|
2127
2129
|
}
|
|
@@ -2145,47 +2147,47 @@ export class TCPEdgeIPRestrictionModule {
|
|
|
2145
2147
|
public get(id): Promise<datatypes.EndpointIPPolicy> {
|
|
2146
2148
|
return this.httpClient
|
|
2147
2149
|
.url(`/edges/tcp/${id}/ip_restriction`)
|
|
2148
|
-
.get(
|
|
2150
|
+
.get()
|
|
2149
2151
|
.json(payload => util.deserializeResult(payload))
|
|
2150
2152
|
.then(f => f, util.onRejected);
|
|
2151
2153
|
}
|
|
2152
2154
|
public delete(id): Promise<void> {
|
|
2153
2155
|
return this.httpClient
|
|
2154
2156
|
.url(`/edges/tcp/${id}/ip_restriction`)
|
|
2155
|
-
.delete(
|
|
2156
|
-
.
|
|
2157
|
+
.delete()
|
|
2158
|
+
.res()
|
|
2157
2159
|
.then(f => f, util.onRejected);
|
|
2158
2160
|
}
|
|
2159
2161
|
}
|
|
2160
2162
|
|
|
2161
|
-
export class
|
|
2163
|
+
export class TCPEdgeTrafficPolicyModule {
|
|
2162
2164
|
private httpClient: Wretcher;
|
|
2163
2165
|
|
|
2164
|
-
/** Do not construct this object directly, use the <code>
|
|
2166
|
+
/** Do not construct this object directly, use the <code>tcpEdgeTrafficPolicyModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
2165
2167
|
public constructor(httpClient: Wretcher) {
|
|
2166
2168
|
this.httpClient = httpClient;
|
|
2167
2169
|
}
|
|
2168
2170
|
public replace(
|
|
2169
|
-
arg: datatypes.
|
|
2170
|
-
): Promise<datatypes.
|
|
2171
|
+
arg: datatypes.EdgeTrafficPolicyReplace
|
|
2172
|
+
): Promise<datatypes.EndpointTrafficPolicy> {
|
|
2171
2173
|
return this.httpClient
|
|
2172
|
-
.url(`/edges/tcp/${arg.id}/
|
|
2174
|
+
.url(`/edges/tcp/${arg.id}/traffic_policy`)
|
|
2173
2175
|
.put(util.serializeArgument(arg))
|
|
2174
2176
|
.json(payload => util.deserializeResult(payload))
|
|
2175
2177
|
.then(f => f, util.onRejected);
|
|
2176
2178
|
}
|
|
2177
|
-
public get(id): Promise<datatypes.
|
|
2179
|
+
public get(id): Promise<datatypes.EndpointTrafficPolicy> {
|
|
2178
2180
|
return this.httpClient
|
|
2179
|
-
.url(`/edges/tcp/${id}/
|
|
2180
|
-
.get(
|
|
2181
|
+
.url(`/edges/tcp/${id}/traffic_policy`)
|
|
2182
|
+
.get()
|
|
2181
2183
|
.json(payload => util.deserializeResult(payload))
|
|
2182
2184
|
.then(f => f, util.onRejected);
|
|
2183
2185
|
}
|
|
2184
2186
|
public delete(id): Promise<void> {
|
|
2185
2187
|
return this.httpClient
|
|
2186
|
-
.url(`/edges/tcp/${id}/
|
|
2187
|
-
.delete(
|
|
2188
|
-
.
|
|
2188
|
+
.url(`/edges/tcp/${id}/traffic_policy`)
|
|
2189
|
+
.delete()
|
|
2190
|
+
.res()
|
|
2189
2191
|
.then(f => f, util.onRejected);
|
|
2190
2192
|
}
|
|
2191
2193
|
}
|
|
@@ -2213,7 +2215,7 @@ export class EdgesTLS {
|
|
|
2213
2215
|
public get(id): Promise<datatypes.TLSEdge> {
|
|
2214
2216
|
return this.httpClient
|
|
2215
2217
|
.url(`/edges/tls/${id}`)
|
|
2216
|
-
.get(
|
|
2218
|
+
.get()
|
|
2217
2219
|
.json(payload => util.deserializeResult(payload))
|
|
2218
2220
|
.then(f => f, util.onRejected);
|
|
2219
2221
|
}
|
|
@@ -2281,8 +2283,8 @@ export class EdgesTLS {
|
|
|
2281
2283
|
public delete(id): Promise<void> {
|
|
2282
2284
|
return this.httpClient
|
|
2283
2285
|
.url(`/edges/tls/${id}`)
|
|
2284
|
-
.delete(
|
|
2285
|
-
.
|
|
2286
|
+
.delete()
|
|
2287
|
+
.res()
|
|
2286
2288
|
.then(f => f, util.onRejected);
|
|
2287
2289
|
}
|
|
2288
2290
|
}
|
|
@@ -2306,15 +2308,15 @@ export class TLSEdgeBackendModule {
|
|
|
2306
2308
|
public get(id): Promise<datatypes.EndpointBackend> {
|
|
2307
2309
|
return this.httpClient
|
|
2308
2310
|
.url(`/edges/tls/${id}/backend`)
|
|
2309
|
-
.get(
|
|
2311
|
+
.get()
|
|
2310
2312
|
.json(payload => util.deserializeResult(payload))
|
|
2311
2313
|
.then(f => f, util.onRejected);
|
|
2312
2314
|
}
|
|
2313
2315
|
public delete(id): Promise<void> {
|
|
2314
2316
|
return this.httpClient
|
|
2315
2317
|
.url(`/edges/tls/${id}/backend`)
|
|
2316
|
-
.delete(
|
|
2317
|
-
.
|
|
2318
|
+
.delete()
|
|
2319
|
+
.res()
|
|
2318
2320
|
.then(f => f, util.onRejected);
|
|
2319
2321
|
}
|
|
2320
2322
|
}
|
|
@@ -2338,15 +2340,15 @@ export class TLSEdgeIPRestrictionModule {
|
|
|
2338
2340
|
public get(id): Promise<datatypes.EndpointIPPolicy> {
|
|
2339
2341
|
return this.httpClient
|
|
2340
2342
|
.url(`/edges/tls/${id}/ip_restriction`)
|
|
2341
|
-
.get(
|
|
2343
|
+
.get()
|
|
2342
2344
|
.json(payload => util.deserializeResult(payload))
|
|
2343
2345
|
.then(f => f, util.onRejected);
|
|
2344
2346
|
}
|
|
2345
2347
|
public delete(id): Promise<void> {
|
|
2346
2348
|
return this.httpClient
|
|
2347
2349
|
.url(`/edges/tls/${id}/ip_restriction`)
|
|
2348
|
-
.delete(
|
|
2349
|
-
.
|
|
2350
|
+
.delete()
|
|
2351
|
+
.res()
|
|
2350
2352
|
.then(f => f, util.onRejected);
|
|
2351
2353
|
}
|
|
2352
2354
|
}
|
|
@@ -2370,15 +2372,15 @@ export class TLSEdgeMutualTLSModule {
|
|
|
2370
2372
|
public get(id): Promise<datatypes.EndpointMutualTLS> {
|
|
2371
2373
|
return this.httpClient
|
|
2372
2374
|
.url(`/edges/tls/${id}/mutual_tls`)
|
|
2373
|
-
.get(
|
|
2375
|
+
.get()
|
|
2374
2376
|
.json(payload => util.deserializeResult(payload))
|
|
2375
2377
|
.then(f => f, util.onRejected);
|
|
2376
2378
|
}
|
|
2377
2379
|
public delete(id): Promise<void> {
|
|
2378
2380
|
return this.httpClient
|
|
2379
2381
|
.url(`/edges/tls/${id}/mutual_tls`)
|
|
2380
|
-
.delete(
|
|
2381
|
-
.
|
|
2382
|
+
.delete()
|
|
2383
|
+
.res()
|
|
2382
2384
|
.then(f => f, util.onRejected);
|
|
2383
2385
|
}
|
|
2384
2386
|
}
|
|
@@ -2402,47 +2404,47 @@ export class TLSEdgeTLSTerminationModule {
|
|
|
2402
2404
|
public get(id): Promise<datatypes.EndpointTLSTermination> {
|
|
2403
2405
|
return this.httpClient
|
|
2404
2406
|
.url(`/edges/tls/${id}/tls_termination`)
|
|
2405
|
-
.get(
|
|
2407
|
+
.get()
|
|
2406
2408
|
.json(payload => util.deserializeResult(payload))
|
|
2407
2409
|
.then(f => f, util.onRejected);
|
|
2408
2410
|
}
|
|
2409
2411
|
public delete(id): Promise<void> {
|
|
2410
2412
|
return this.httpClient
|
|
2411
2413
|
.url(`/edges/tls/${id}/tls_termination`)
|
|
2412
|
-
.delete(
|
|
2413
|
-
.
|
|
2414
|
+
.delete()
|
|
2415
|
+
.res()
|
|
2414
2416
|
.then(f => f, util.onRejected);
|
|
2415
2417
|
}
|
|
2416
2418
|
}
|
|
2417
2419
|
|
|
2418
|
-
export class
|
|
2420
|
+
export class TLSEdgeTrafficPolicyModule {
|
|
2419
2421
|
private httpClient: Wretcher;
|
|
2420
2422
|
|
|
2421
|
-
/** Do not construct this object directly, use the <code>
|
|
2423
|
+
/** Do not construct this object directly, use the <code>tlsEdgeTrafficPolicyModule</code> property of an <code>Ngrok</code> client object instead. */
|
|
2422
2424
|
public constructor(httpClient: Wretcher) {
|
|
2423
2425
|
this.httpClient = httpClient;
|
|
2424
2426
|
}
|
|
2425
2427
|
public replace(
|
|
2426
|
-
arg: datatypes.
|
|
2427
|
-
): Promise<datatypes.
|
|
2428
|
+
arg: datatypes.EdgeTrafficPolicyReplace
|
|
2429
|
+
): Promise<datatypes.EndpointTrafficPolicy> {
|
|
2428
2430
|
return this.httpClient
|
|
2429
|
-
.url(`/edges/tls/${arg.id}/
|
|
2431
|
+
.url(`/edges/tls/${arg.id}/traffic_policy`)
|
|
2430
2432
|
.put(util.serializeArgument(arg))
|
|
2431
2433
|
.json(payload => util.deserializeResult(payload))
|
|
2432
2434
|
.then(f => f, util.onRejected);
|
|
2433
2435
|
}
|
|
2434
|
-
public get(id): Promise<datatypes.
|
|
2436
|
+
public get(id): Promise<datatypes.EndpointTrafficPolicy> {
|
|
2435
2437
|
return this.httpClient
|
|
2436
|
-
.url(`/edges/tls/${id}/
|
|
2437
|
-
.get(
|
|
2438
|
+
.url(`/edges/tls/${id}/traffic_policy`)
|
|
2439
|
+
.get()
|
|
2438
2440
|
.json(payload => util.deserializeResult(payload))
|
|
2439
2441
|
.then(f => f, util.onRejected);
|
|
2440
2442
|
}
|
|
2441
2443
|
public delete(id): Promise<void> {
|
|
2442
2444
|
return this.httpClient
|
|
2443
|
-
.url(`/edges/tls/${id}/
|
|
2444
|
-
.delete(
|
|
2445
|
-
.
|
|
2445
|
+
.url(`/edges/tls/${id}/traffic_policy`)
|
|
2446
|
+
.delete()
|
|
2447
|
+
.res()
|
|
2446
2448
|
.then(f => f, util.onRejected);
|
|
2447
2449
|
}
|
|
2448
2450
|
}
|
|
@@ -2459,6 +2461,16 @@ export class Endpoints {
|
|
|
2459
2461
|
public constructor(httpClient: Wretcher) {
|
|
2460
2462
|
this.httpClient = httpClient;
|
|
2461
2463
|
}
|
|
2464
|
+
/**
|
|
2465
|
+
* Create an endpoint, currently available only for cloud endpoints
|
|
2466
|
+
*/
|
|
2467
|
+
public create(arg: datatypes.EndpointCreate): Promise<datatypes.Endpoint> {
|
|
2468
|
+
return this.httpClient
|
|
2469
|
+
.url(`/endpoints`)
|
|
2470
|
+
.post(util.serializeArgument(arg))
|
|
2471
|
+
.json(payload => util.deserializeResult(payload))
|
|
2472
|
+
.then(f => f, util.onRejected);
|
|
2473
|
+
}
|
|
2462
2474
|
/**
|
|
2463
2475
|
* List all active endpoints on the account
|
|
2464
2476
|
*/
|
|
@@ -2513,10 +2525,30 @@ export class Endpoints {
|
|
|
2513
2525
|
public get(id): Promise<datatypes.Endpoint> {
|
|
2514
2526
|
return this.httpClient
|
|
2515
2527
|
.url(`/endpoints/${id}`)
|
|
2516
|
-
.get(
|
|
2528
|
+
.get()
|
|
2529
|
+
.json(payload => util.deserializeResult(payload))
|
|
2530
|
+
.then(f => f, util.onRejected);
|
|
2531
|
+
}
|
|
2532
|
+
/**
|
|
2533
|
+
* Update an Endpoint by ID, currently available only for cloud endpoints
|
|
2534
|
+
*/
|
|
2535
|
+
public update(arg: datatypes.EndpointUpdate): Promise<datatypes.Endpoint> {
|
|
2536
|
+
return this.httpClient
|
|
2537
|
+
.url(`/endpoints/${arg.id}`)
|
|
2538
|
+
.patch(util.serializeArgument(arg))
|
|
2517
2539
|
.json(payload => util.deserializeResult(payload))
|
|
2518
2540
|
.then(f => f, util.onRejected);
|
|
2519
2541
|
}
|
|
2542
|
+
/**
|
|
2543
|
+
* Delete an Endpoint by ID, currently available only for cloud endpoints
|
|
2544
|
+
*/
|
|
2545
|
+
public delete(id): Promise<void> {
|
|
2546
|
+
return this.httpClient
|
|
2547
|
+
.url(`/endpoints/${id}`)
|
|
2548
|
+
.delete()
|
|
2549
|
+
.res()
|
|
2550
|
+
.then(f => f, util.onRejected);
|
|
2551
|
+
}
|
|
2520
2552
|
}
|
|
2521
2553
|
|
|
2522
2554
|
export class EventDestinations {
|
|
@@ -2544,8 +2576,8 @@ export class EventDestinations {
|
|
|
2544
2576
|
public delete(id): Promise<void> {
|
|
2545
2577
|
return this.httpClient
|
|
2546
2578
|
.url(`/event_destinations/${id}`)
|
|
2547
|
-
.delete(
|
|
2548
|
-
.
|
|
2579
|
+
.delete()
|
|
2580
|
+
.res()
|
|
2549
2581
|
.then(f => f, util.onRejected);
|
|
2550
2582
|
}
|
|
2551
2583
|
/**
|
|
@@ -2554,7 +2586,7 @@ export class EventDestinations {
|
|
|
2554
2586
|
public get(id): Promise<datatypes.EventDestination> {
|
|
2555
2587
|
return this.httpClient
|
|
2556
2588
|
.url(`/event_destinations/${id}`)
|
|
2557
|
-
.get(
|
|
2589
|
+
.get()
|
|
2558
2590
|
.json(payload => util.deserializeResult(payload))
|
|
2559
2591
|
.then(f => f, util.onRejected);
|
|
2560
2592
|
}
|
|
@@ -2647,8 +2679,8 @@ export class EventSubscriptions {
|
|
|
2647
2679
|
public delete(id): Promise<void> {
|
|
2648
2680
|
return this.httpClient
|
|
2649
2681
|
.url(`/event_subscriptions/${id}`)
|
|
2650
|
-
.delete(
|
|
2651
|
-
.
|
|
2682
|
+
.delete()
|
|
2683
|
+
.res()
|
|
2652
2684
|
.then(f => f, util.onRejected);
|
|
2653
2685
|
}
|
|
2654
2686
|
/**
|
|
@@ -2657,7 +2689,7 @@ export class EventSubscriptions {
|
|
|
2657
2689
|
public get(id): Promise<datatypes.EventSubscription> {
|
|
2658
2690
|
return this.httpClient
|
|
2659
2691
|
.url(`/event_subscriptions/${id}`)
|
|
2660
|
-
.get(
|
|
2692
|
+
.get()
|
|
2661
2693
|
.json(payload => util.deserializeResult(payload))
|
|
2662
2694
|
.then(f => f, util.onRejected);
|
|
2663
2695
|
}
|
|
@@ -2751,7 +2783,7 @@ export class EventSources {
|
|
|
2751
2783
|
return this.httpClient
|
|
2752
2784
|
.url(`/event_subscriptions/${arg.subscriptionId}/sources/${arg.type}`)
|
|
2753
2785
|
.delete()
|
|
2754
|
-
.
|
|
2786
|
+
.res()
|
|
2755
2787
|
.then(f => f, util.onRejected);
|
|
2756
2788
|
}
|
|
2757
2789
|
/**
|
|
@@ -2819,8 +2851,8 @@ export class IPPolicies {
|
|
|
2819
2851
|
public delete(id): Promise<void> {
|
|
2820
2852
|
return this.httpClient
|
|
2821
2853
|
.url(`/ip_policies/${id}`)
|
|
2822
|
-
.delete(
|
|
2823
|
-
.
|
|
2854
|
+
.delete()
|
|
2855
|
+
.res()
|
|
2824
2856
|
.then(f => f, util.onRejected);
|
|
2825
2857
|
}
|
|
2826
2858
|
/**
|
|
@@ -2829,7 +2861,7 @@ export class IPPolicies {
|
|
|
2829
2861
|
public get(id): Promise<datatypes.IPPolicy> {
|
|
2830
2862
|
return this.httpClient
|
|
2831
2863
|
.url(`/ip_policies/${id}`)
|
|
2832
|
-
.get(
|
|
2864
|
+
.get()
|
|
2833
2865
|
.json(payload => util.deserializeResult(payload))
|
|
2834
2866
|
.then(f => f, util.onRejected);
|
|
2835
2867
|
}
|
|
@@ -2922,8 +2954,8 @@ export class IPPolicyRules {
|
|
|
2922
2954
|
public delete(id): Promise<void> {
|
|
2923
2955
|
return this.httpClient
|
|
2924
2956
|
.url(`/ip_policy_rules/${id}`)
|
|
2925
|
-
.delete(
|
|
2926
|
-
.
|
|
2957
|
+
.delete()
|
|
2958
|
+
.res()
|
|
2927
2959
|
.then(f => f, util.onRejected);
|
|
2928
2960
|
}
|
|
2929
2961
|
/**
|
|
@@ -2932,7 +2964,7 @@ export class IPPolicyRules {
|
|
|
2932
2964
|
public get(id): Promise<datatypes.IPPolicyRule> {
|
|
2933
2965
|
return this.httpClient
|
|
2934
2966
|
.url(`/ip_policy_rules/${id}`)
|
|
2935
|
-
.get(
|
|
2967
|
+
.get()
|
|
2936
2968
|
.json(payload => util.deserializeResult(payload))
|
|
2937
2969
|
.then(f => f, util.onRejected);
|
|
2938
2970
|
}
|
|
@@ -3033,8 +3065,8 @@ export class IPRestrictions {
|
|
|
3033
3065
|
public delete(id): Promise<void> {
|
|
3034
3066
|
return this.httpClient
|
|
3035
3067
|
.url(`/ip_restrictions/${id}`)
|
|
3036
|
-
.delete(
|
|
3037
|
-
.
|
|
3068
|
+
.delete()
|
|
3069
|
+
.res()
|
|
3038
3070
|
.then(f => f, util.onRejected);
|
|
3039
3071
|
}
|
|
3040
3072
|
/**
|
|
@@ -3043,7 +3075,7 @@ export class IPRestrictions {
|
|
|
3043
3075
|
public get(id): Promise<datatypes.IPRestriction> {
|
|
3044
3076
|
return this.httpClient
|
|
3045
3077
|
.url(`/ip_restrictions/${id}`)
|
|
3046
|
-
.get(
|
|
3078
|
+
.get()
|
|
3047
3079
|
.json(payload => util.deserializeResult(payload))
|
|
3048
3080
|
.then(f => f, util.onRejected);
|
|
3049
3081
|
}
|
|
@@ -3141,8 +3173,8 @@ export class ReservedAddrs {
|
|
|
3141
3173
|
public delete(id): Promise<void> {
|
|
3142
3174
|
return this.httpClient
|
|
3143
3175
|
.url(`/reserved_addrs/${id}`)
|
|
3144
|
-
.delete(
|
|
3145
|
-
.
|
|
3176
|
+
.delete()
|
|
3177
|
+
.res()
|
|
3146
3178
|
.then(f => f, util.onRejected);
|
|
3147
3179
|
}
|
|
3148
3180
|
/**
|
|
@@ -3151,7 +3183,7 @@ export class ReservedAddrs {
|
|
|
3151
3183
|
public get(id): Promise<datatypes.ReservedAddr> {
|
|
3152
3184
|
return this.httpClient
|
|
3153
3185
|
.url(`/reserved_addrs/${id}`)
|
|
3154
|
-
.get(
|
|
3186
|
+
.get()
|
|
3155
3187
|
.json(payload => util.deserializeResult(payload))
|
|
3156
3188
|
.then(f => f, util.onRejected);
|
|
3157
3189
|
}
|
|
@@ -3250,8 +3282,8 @@ export class ReservedDomains {
|
|
|
3250
3282
|
public delete(id): Promise<void> {
|
|
3251
3283
|
return this.httpClient
|
|
3252
3284
|
.url(`/reserved_domains/${id}`)
|
|
3253
|
-
.delete(
|
|
3254
|
-
.
|
|
3285
|
+
.delete()
|
|
3286
|
+
.res()
|
|
3255
3287
|
.then(f => f, util.onRejected);
|
|
3256
3288
|
}
|
|
3257
3289
|
/**
|
|
@@ -3260,7 +3292,7 @@ export class ReservedDomains {
|
|
|
3260
3292
|
public get(id): Promise<datatypes.ReservedDomain> {
|
|
3261
3293
|
return this.httpClient
|
|
3262
3294
|
.url(`/reserved_domains/${id}`)
|
|
3263
|
-
.get(
|
|
3295
|
+
.get()
|
|
3264
3296
|
.json(payload => util.deserializeResult(payload))
|
|
3265
3297
|
.then(f => f, util.onRejected);
|
|
3266
3298
|
}
|
|
@@ -3332,8 +3364,8 @@ export class ReservedDomains {
|
|
|
3332
3364
|
public deleteCertificateManagementPolicy(id): Promise<void> {
|
|
3333
3365
|
return this.httpClient
|
|
3334
3366
|
.url(`/reserved_domains/${id}/certificate_management_policy`)
|
|
3335
|
-
.delete(
|
|
3336
|
-
.
|
|
3367
|
+
.delete()
|
|
3368
|
+
.res()
|
|
3337
3369
|
.then(f => f, util.onRejected);
|
|
3338
3370
|
}
|
|
3339
3371
|
/**
|
|
@@ -3342,8 +3374,8 @@ export class ReservedDomains {
|
|
|
3342
3374
|
public deleteCertificate(id): Promise<void> {
|
|
3343
3375
|
return this.httpClient
|
|
3344
3376
|
.url(`/reserved_domains/${id}/certificate`)
|
|
3345
|
-
.delete(
|
|
3346
|
-
.
|
|
3377
|
+
.delete()
|
|
3378
|
+
.res()
|
|
3347
3379
|
.then(f => f, util.onRejected);
|
|
3348
3380
|
}
|
|
3349
3381
|
}
|
|
@@ -3377,8 +3409,8 @@ export class SSHCertificateAuthorities {
|
|
|
3377
3409
|
public delete(id): Promise<void> {
|
|
3378
3410
|
return this.httpClient
|
|
3379
3411
|
.url(`/ssh_certificate_authorities/${id}`)
|
|
3380
|
-
.delete(
|
|
3381
|
-
.
|
|
3412
|
+
.delete()
|
|
3413
|
+
.res()
|
|
3382
3414
|
.then(f => f, util.onRejected);
|
|
3383
3415
|
}
|
|
3384
3416
|
/**
|
|
@@ -3387,7 +3419,7 @@ export class SSHCertificateAuthorities {
|
|
|
3387
3419
|
public get(id): Promise<datatypes.SSHCertificateAuthority> {
|
|
3388
3420
|
return this.httpClient
|
|
3389
3421
|
.url(`/ssh_certificate_authorities/${id}`)
|
|
3390
|
-
.get(
|
|
3422
|
+
.get()
|
|
3391
3423
|
.json(payload => util.deserializeResult(payload))
|
|
3392
3424
|
.then(f => f, util.onRejected);
|
|
3393
3425
|
}
|
|
@@ -3485,8 +3517,8 @@ export class SSHCredentials {
|
|
|
3485
3517
|
public delete(id): Promise<void> {
|
|
3486
3518
|
return this.httpClient
|
|
3487
3519
|
.url(`/ssh_credentials/${id}`)
|
|
3488
|
-
.delete(
|
|
3489
|
-
.
|
|
3520
|
+
.delete()
|
|
3521
|
+
.res()
|
|
3490
3522
|
.then(f => f, util.onRejected);
|
|
3491
3523
|
}
|
|
3492
3524
|
/**
|
|
@@ -3495,7 +3527,7 @@ export class SSHCredentials {
|
|
|
3495
3527
|
public get(id): Promise<datatypes.SSHCredential> {
|
|
3496
3528
|
return this.httpClient
|
|
3497
3529
|
.url(`/ssh_credentials/${id}`)
|
|
3498
|
-
.get(
|
|
3530
|
+
.get()
|
|
3499
3531
|
.json(payload => util.deserializeResult(payload))
|
|
3500
3532
|
.then(f => f, util.onRejected);
|
|
3501
3533
|
}
|
|
@@ -3593,8 +3625,8 @@ export class SSHHostCertificates {
|
|
|
3593
3625
|
public delete(id): Promise<void> {
|
|
3594
3626
|
return this.httpClient
|
|
3595
3627
|
.url(`/ssh_host_certificates/${id}`)
|
|
3596
|
-
.delete(
|
|
3597
|
-
.
|
|
3628
|
+
.delete()
|
|
3629
|
+
.res()
|
|
3598
3630
|
.then(f => f, util.onRejected);
|
|
3599
3631
|
}
|
|
3600
3632
|
/**
|
|
@@ -3603,7 +3635,7 @@ export class SSHHostCertificates {
|
|
|
3603
3635
|
public get(id): Promise<datatypes.SSHHostCertificate> {
|
|
3604
3636
|
return this.httpClient
|
|
3605
3637
|
.url(`/ssh_host_certificates/${id}`)
|
|
3606
|
-
.get(
|
|
3638
|
+
.get()
|
|
3607
3639
|
.json(payload => util.deserializeResult(payload))
|
|
3608
3640
|
.then(f => f, util.onRejected);
|
|
3609
3641
|
}
|
|
@@ -3702,8 +3734,8 @@ export class SSHUserCertificates {
|
|
|
3702
3734
|
public delete(id): Promise<void> {
|
|
3703
3735
|
return this.httpClient
|
|
3704
3736
|
.url(`/ssh_user_certificates/${id}`)
|
|
3705
|
-
.delete(
|
|
3706
|
-
.
|
|
3737
|
+
.delete()
|
|
3738
|
+
.res()
|
|
3707
3739
|
.then(f => f, util.onRejected);
|
|
3708
3740
|
}
|
|
3709
3741
|
/**
|
|
@@ -3712,7 +3744,7 @@ export class SSHUserCertificates {
|
|
|
3712
3744
|
public get(id): Promise<datatypes.SSHUserCertificate> {
|
|
3713
3745
|
return this.httpClient
|
|
3714
3746
|
.url(`/ssh_user_certificates/${id}`)
|
|
3715
|
-
.get(
|
|
3747
|
+
.get()
|
|
3716
3748
|
.json(payload => util.deserializeResult(payload))
|
|
3717
3749
|
.then(f => f, util.onRejected);
|
|
3718
3750
|
}
|
|
@@ -3813,8 +3845,8 @@ export class TLSCertificates {
|
|
|
3813
3845
|
public delete(id): Promise<void> {
|
|
3814
3846
|
return this.httpClient
|
|
3815
3847
|
.url(`/tls_certificates/${id}`)
|
|
3816
|
-
.delete(
|
|
3817
|
-
.
|
|
3848
|
+
.delete()
|
|
3849
|
+
.res()
|
|
3818
3850
|
.then(f => f, util.onRejected);
|
|
3819
3851
|
}
|
|
3820
3852
|
/**
|
|
@@ -3823,7 +3855,7 @@ export class TLSCertificates {
|
|
|
3823
3855
|
public get(id): Promise<datatypes.TLSCertificate> {
|
|
3824
3856
|
return this.httpClient
|
|
3825
3857
|
.url(`/tls_certificates/${id}`)
|
|
3826
|
-
.get(
|
|
3858
|
+
.get()
|
|
3827
3859
|
.json(payload => util.deserializeResult(payload))
|
|
3828
3860
|
.then(f => f, util.onRejected);
|
|
3829
3861
|
}
|
|
@@ -3956,7 +3988,7 @@ export class Tunnels {
|
|
|
3956
3988
|
public get(id): Promise<datatypes.Tunnel> {
|
|
3957
3989
|
return this.httpClient
|
|
3958
3990
|
.url(`/tunnels/${id}`)
|
|
3959
|
-
.get(
|
|
3991
|
+
.get()
|
|
3960
3992
|
.json(payload => util.deserializeResult(payload))
|
|
3961
3993
|
.then(f => f, util.onRejected);
|
|
3962
3994
|
}
|