@nirvana-labs/nirvana 1.91.4 → 1.91.5
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 +7 -0
- package/bin/migration-config.json +37 -0
- package/client.d.mts +2 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -0
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/compute/vms/cost.d.mts +149 -0
- package/resources/compute/vms/cost.d.mts.map +1 -0
- package/resources/compute/vms/cost.d.ts +149 -0
- package/resources/compute/vms/cost.d.ts.map +1 -0
- package/resources/compute/vms/cost.js +47 -0
- package/resources/compute/vms/cost.js.map +1 -0
- package/resources/compute/vms/cost.mjs +43 -0
- package/resources/compute/vms/cost.mjs.map +1 -0
- package/resources/compute/vms/index.d.mts +1 -0
- package/resources/compute/vms/index.d.mts.map +1 -1
- package/resources/compute/vms/index.d.ts +1 -0
- package/resources/compute/vms/index.d.ts.map +1 -1
- package/resources/compute/vms/index.js +3 -1
- package/resources/compute/vms/index.js.map +1 -1
- package/resources/compute/vms/index.mjs +1 -0
- package/resources/compute/vms/index.mjs.map +1 -1
- package/resources/compute/vms/vms.d.mts +4 -0
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +4 -0
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js +4 -0
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs +4 -0
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/volumes/cost.d.mts +81 -0
- package/resources/compute/volumes/cost.d.mts.map +1 -0
- package/resources/compute/volumes/cost.d.ts +81 -0
- package/resources/compute/volumes/cost.d.ts.map +1 -0
- package/resources/compute/volumes/cost.js +40 -0
- package/resources/compute/volumes/cost.js.map +1 -0
- package/resources/compute/volumes/cost.mjs +36 -0
- package/resources/compute/volumes/cost.mjs.map +1 -0
- package/resources/compute/volumes/index.d.mts +1 -0
- package/resources/compute/volumes/index.d.mts.map +1 -1
- package/resources/compute/volumes/index.d.ts +1 -0
- package/resources/compute/volumes/index.d.ts.map +1 -1
- package/resources/compute/volumes/index.js +3 -1
- package/resources/compute/volumes/index.js.map +1 -1
- package/resources/compute/volumes/index.mjs +1 -0
- package/resources/compute/volumes/index.mjs.map +1 -1
- package/resources/compute/volumes/volumes.d.mts +4 -0
- package/resources/compute/volumes/volumes.d.mts.map +1 -1
- package/resources/compute/volumes/volumes.d.ts +4 -0
- package/resources/compute/volumes/volumes.d.ts.map +1 -1
- package/resources/compute/volumes/volumes.js +4 -0
- package/resources/compute/volumes/volumes.js.map +1 -1
- package/resources/compute/volumes/volumes.mjs +4 -0
- package/resources/compute/volumes/volumes.mjs.map +1 -1
- package/resources/networking/connect/connect.d.mts +2 -2
- package/resources/networking/connect/connect.d.mts.map +1 -1
- package/resources/networking/connect/connect.d.ts +2 -2
- package/resources/networking/connect/connect.d.ts.map +1 -1
- package/resources/networking/connect/connect.js +2 -2
- package/resources/networking/connect/connect.js.map +1 -1
- package/resources/networking/connect/connect.mjs +2 -2
- package/resources/networking/connect/connect.mjs.map +1 -1
- package/resources/networking/connect/connections/connections.d.mts +136 -0
- package/resources/networking/connect/connections/connections.d.mts.map +1 -0
- package/resources/networking/connect/connections/connections.d.ts +136 -0
- package/resources/networking/connect/connections/connections.d.ts.map +1 -0
- package/resources/networking/connect/connections/connections.js +96 -0
- package/resources/networking/connect/connections/connections.js.map +1 -0
- package/resources/networking/connect/connections/connections.mjs +91 -0
- package/resources/networking/connect/connections/connections.mjs.map +1 -0
- package/resources/networking/connect/connections/cost.d.mts +85 -0
- package/resources/networking/connect/connections/cost.d.mts.map +1 -0
- package/resources/networking/connect/connections/cost.d.ts +85 -0
- package/resources/networking/connect/connections/cost.d.ts.map +1 -0
- package/resources/networking/connect/connections/cost.js +47 -0
- package/resources/networking/connect/connections/cost.js.map +1 -0
- package/resources/networking/connect/connections/cost.mjs +43 -0
- package/resources/networking/connect/connections/cost.mjs.map +1 -0
- package/resources/networking/connect/connections/index.d.mts +3 -0
- package/resources/networking/connect/connections/index.d.mts.map +1 -0
- package/resources/networking/connect/connections/index.d.ts +3 -0
- package/resources/networking/connect/connections/index.d.ts.map +1 -0
- package/resources/networking/connect/connections/index.js +9 -0
- package/resources/networking/connect/connections/index.js.map +1 -0
- package/resources/networking/connect/connections/index.mjs +4 -0
- package/resources/networking/connect/connections/index.mjs.map +1 -0
- package/resources/networking/connect/connections.d.mts +1 -131
- package/resources/networking/connect/connections.d.mts.map +1 -1
- package/resources/networking/connect/connections.d.ts +1 -131
- package/resources/networking/connect/connections.d.ts.map +1 -1
- package/resources/networking/connect/connections.js +2 -84
- package/resources/networking/connect/connections.js.map +1 -1
- package/resources/networking/connect/connections.mjs +1 -82
- package/resources/networking/connect/connections.mjs.map +1 -1
- package/resources/networking/connect/index.d.mts +1 -1
- package/resources/networking/connect/index.d.mts.map +1 -1
- package/resources/networking/connect/index.d.ts +1 -1
- package/resources/networking/connect/index.d.ts.map +1 -1
- package/resources/networking/connect/index.js +2 -2
- package/resources/networking/connect/index.js.map +1 -1
- package/resources/networking/connect/index.mjs +1 -1
- package/resources/networking/connect/index.mjs.map +1 -1
- package/resources/networking/vpcs/cost.d.mts +71 -0
- package/resources/networking/vpcs/cost.d.mts.map +1 -0
- package/resources/networking/vpcs/cost.d.ts +71 -0
- package/resources/networking/vpcs/cost.d.ts.map +1 -0
- package/resources/networking/vpcs/cost.js +39 -0
- package/resources/networking/vpcs/cost.js.map +1 -0
- package/resources/networking/vpcs/cost.mjs +35 -0
- package/resources/networking/vpcs/cost.mjs.map +1 -0
- package/resources/networking/vpcs/index.d.mts +1 -0
- package/resources/networking/vpcs/index.d.mts.map +1 -1
- package/resources/networking/vpcs/index.d.ts +1 -0
- package/resources/networking/vpcs/index.d.ts.map +1 -1
- package/resources/networking/vpcs/index.js +3 -1
- package/resources/networking/vpcs/index.js.map +1 -1
- package/resources/networking/vpcs/index.mjs +1 -0
- package/resources/networking/vpcs/index.mjs.map +1 -1
- package/resources/networking/vpcs/vpcs.d.mts +4 -0
- package/resources/networking/vpcs/vpcs.d.mts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.ts +4 -0
- package/resources/networking/vpcs/vpcs.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.js +4 -0
- package/resources/networking/vpcs/vpcs.js.map +1 -1
- package/resources/networking/vpcs/vpcs.mjs +4 -0
- package/resources/networking/vpcs/vpcs.mjs.map +1 -1
- package/resources/nks/clusters/clusters.d.mts +4 -0
- package/resources/nks/clusters/clusters.d.mts.map +1 -1
- package/resources/nks/clusters/clusters.d.ts +4 -0
- package/resources/nks/clusters/clusters.d.ts.map +1 -1
- package/resources/nks/clusters/clusters.js +4 -0
- package/resources/nks/clusters/clusters.js.map +1 -1
- package/resources/nks/clusters/clusters.mjs +4 -0
- package/resources/nks/clusters/clusters.mjs.map +1 -1
- package/resources/nks/clusters/cost.d.mts +81 -0
- package/resources/nks/clusters/cost.d.mts.map +1 -0
- package/resources/nks/clusters/cost.d.ts +81 -0
- package/resources/nks/clusters/cost.d.ts.map +1 -0
- package/resources/nks/clusters/cost.js +41 -0
- package/resources/nks/clusters/cost.js.map +1 -0
- package/resources/nks/clusters/cost.mjs +37 -0
- package/resources/nks/clusters/cost.mjs.map +1 -0
- package/resources/nks/clusters/index.d.mts +1 -0
- package/resources/nks/clusters/index.d.mts.map +1 -1
- package/resources/nks/clusters/index.d.ts +1 -0
- package/resources/nks/clusters/index.d.ts.map +1 -1
- package/resources/nks/clusters/index.js +3 -1
- package/resources/nks/clusters/index.js.map +1 -1
- package/resources/nks/clusters/index.mjs +1 -0
- package/resources/nks/clusters/index.mjs.map +1 -1
- package/resources/nks/clusters/pools/cost.d.mts +97 -0
- package/resources/nks/clusters/pools/cost.d.mts.map +1 -0
- package/resources/nks/clusters/pools/cost.d.ts +97 -0
- package/resources/nks/clusters/pools/cost.d.ts.map +1 -0
- package/resources/nks/clusters/pools/cost.js +51 -0
- package/resources/nks/clusters/pools/cost.js.map +1 -0
- package/resources/nks/clusters/pools/cost.mjs +47 -0
- package/resources/nks/clusters/pools/cost.mjs.map +1 -0
- package/resources/nks/clusters/pools/index.d.mts +1 -0
- package/resources/nks/clusters/pools/index.d.mts.map +1 -1
- package/resources/nks/clusters/pools/index.d.ts +1 -0
- package/resources/nks/clusters/pools/index.d.ts.map +1 -1
- package/resources/nks/clusters/pools/index.js +3 -1
- package/resources/nks/clusters/pools/index.js.map +1 -1
- package/resources/nks/clusters/pools/index.mjs +1 -0
- package/resources/nks/clusters/pools/index.mjs.map +1 -1
- package/resources/nks/clusters/pools/pools.d.mts +4 -0
- package/resources/nks/clusters/pools/pools.d.mts.map +1 -1
- package/resources/nks/clusters/pools/pools.d.ts +4 -0
- package/resources/nks/clusters/pools/pools.d.ts.map +1 -1
- package/resources/nks/clusters/pools/pools.js +4 -0
- package/resources/nks/clusters/pools/pools.js.map +1 -1
- package/resources/nks/clusters/pools/pools.mjs +4 -0
- package/resources/nks/clusters/pools/pools.mjs.map +1 -1
- package/resources/shared.d.mts +226 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +226 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/compute/api.md +14 -0
- package/src/resources/compute/vms/cost.ts +180 -0
- package/src/resources/compute/vms/index.ts +1 -0
- package/src/resources/compute/vms/vms.ts +10 -0
- package/src/resources/compute/volumes/cost.ts +104 -0
- package/src/resources/compute/volumes/index.ts +1 -0
- package/src/resources/compute/volumes/volumes.ts +10 -0
- package/src/resources/networking/api.md +19 -5
- package/src/resources/networking/connect/connect.ts +4 -4
- package/src/resources/networking/connect/connections/connections.ts +189 -0
- package/src/resources/networking/connect/connections/cost.ts +111 -0
- package/src/resources/networking/connect/connections/index.ts +9 -0
- package/src/resources/networking/connect/connections.ts +1 -175
- package/src/resources/networking/connect/index.ts +1 -1
- package/src/resources/networking/vpcs/cost.ts +92 -0
- package/src/resources/networking/vpcs/index.ts +1 -0
- package/src/resources/networking/vpcs/vpcs.ts +10 -0
- package/src/resources/nks/api.md +14 -0
- package/src/resources/nks/clusters/clusters.ts +10 -0
- package/src/resources/nks/clusters/cost.ts +104 -0
- package/src/resources/nks/clusters/index.ts +1 -0
- package/src/resources/nks/clusters/pools/cost.ts +124 -0
- package/src/resources/nks/clusters/pools/index.ts +1 -0
- package/src/resources/nks/clusters/pools/pools.ts +10 -0
- package/src/resources/shared.ts +267 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cost.d.mts","sourceRoot":"","sources":["../../../../src/resources/networking/connect/connections/cost.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,KAAK,MAAM,4BAAwB;AAC1C,OAAO,KAAK,UAAU,uBAAmB;AACzC,OAAO,EAAE,UAAU,EAAE,yCAAqC;AAC1D,OAAO,EAAE,cAAc,EAAE,iDAA6C;AAGtE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC;IAItF;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC;CAMtC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,cAAc,EAAE,UAAU,CAAC,oBAAoB,CAAC;IAEhD;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B;;OAEG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC,iCAAiC,CAAC;IAEnD;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { APIResource } from "../../../../core/resource.js";
|
|
2
|
+
import * as Shared from "../../../shared.js";
|
|
3
|
+
import * as ConnectAPI from "../connect.js";
|
|
4
|
+
import { APIPromise } from "../../../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
6
|
+
export declare class Cost extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Return a priced cost quote for the proposed Connect Connection.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const costQuote =
|
|
13
|
+
* await client.networking.connect.connections.cost.create({
|
|
14
|
+
* bandwidth_mbps: 50,
|
|
15
|
+
* cidrs: ['10.0.0.0/16'],
|
|
16
|
+
* name: 'my-connect-connection',
|
|
17
|
+
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
18
|
+
* provider_cidrs: ['172.16.0.0/16'],
|
|
19
|
+
* region: 'us-sva-2',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(body: CostCreateParams, options?: RequestOptions): APIPromise<Shared.CostQuote>;
|
|
24
|
+
/**
|
|
25
|
+
* Return a priced cost quote for the proposed Connect Connection update plus a
|
|
26
|
+
* diff against the current state.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const costQuoteUpdate =
|
|
31
|
+
* await client.networking.connect.connections.cost.update(
|
|
32
|
+
* 'connection_id',
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
update(connectionID: string, body: CostUpdateParams, options?: RequestOptions): APIPromise<Shared.CostQuoteUpdate>;
|
|
37
|
+
}
|
|
38
|
+
export interface CostCreateParams {
|
|
39
|
+
/**
|
|
40
|
+
* Connect Connection speed in Mbps
|
|
41
|
+
*/
|
|
42
|
+
bandwidth_mbps: ConnectAPI.ConnectBandwidthMbps;
|
|
43
|
+
/**
|
|
44
|
+
* CIDRs for the Connect Connection. Must be in network-aligned/canonical form.
|
|
45
|
+
*/
|
|
46
|
+
cidrs: Array<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Name of the Connect Connection
|
|
49
|
+
*/
|
|
50
|
+
name: string;
|
|
51
|
+
/**
|
|
52
|
+
* Project ID the Connect Connection belongs to
|
|
53
|
+
*/
|
|
54
|
+
project_id: string;
|
|
55
|
+
/**
|
|
56
|
+
* Provider CIDRs. Must be in network-aligned/canonical form.
|
|
57
|
+
*/
|
|
58
|
+
provider_cidrs: Array<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Region the resource is in.
|
|
61
|
+
*/
|
|
62
|
+
region: Shared.RegionName;
|
|
63
|
+
/**
|
|
64
|
+
* AWS provider configuration
|
|
65
|
+
*/
|
|
66
|
+
aws?: ConnectAPI.ConnectConnectionAWSConfigRequest;
|
|
67
|
+
/**
|
|
68
|
+
* Tags to attach to the Connect Connection
|
|
69
|
+
*/
|
|
70
|
+
tags?: Array<string>;
|
|
71
|
+
}
|
|
72
|
+
export interface CostUpdateParams {
|
|
73
|
+
/**
|
|
74
|
+
* Name of the Connect Connection.
|
|
75
|
+
*/
|
|
76
|
+
name?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Tags to attach to the Connect Connection
|
|
79
|
+
*/
|
|
80
|
+
tags?: Array<string>;
|
|
81
|
+
}
|
|
82
|
+
export declare namespace Cost {
|
|
83
|
+
export { type CostCreateParams as CostCreateParams, type CostUpdateParams as CostUpdateParams };
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=cost.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cost.d.ts","sourceRoot":"","sources":["../../../../src/resources/networking/connect/connections/cost.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,KAAK,MAAM,2BAAwB;AAC1C,OAAO,KAAK,UAAU,sBAAmB;AACzC,OAAO,EAAE,UAAU,EAAE,wCAAqC;AAC1D,OAAO,EAAE,cAAc,EAAE,gDAA6C;AAGtE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC;IAItF;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC;CAMtC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,cAAc,EAAE,UAAU,CAAC,oBAAoB,CAAC;IAEhD;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B;;OAEG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC,iCAAiC,CAAC;IAEnD;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Cost = void 0;
|
|
5
|
+
const resource_1 = require("../../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../../internal/utils/path.js");
|
|
7
|
+
class Cost extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Return a priced cost quote for the proposed Connect Connection.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const costQuote =
|
|
14
|
+
* await client.networking.connect.connections.cost.create({
|
|
15
|
+
* bandwidth_mbps: 50,
|
|
16
|
+
* cidrs: ['10.0.0.0/16'],
|
|
17
|
+
* name: 'my-connect-connection',
|
|
18
|
+
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
19
|
+
* provider_cidrs: ['172.16.0.0/16'],
|
|
20
|
+
* region: 'us-sva-2',
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
create(body, options) {
|
|
25
|
+
return this._client.post('/v1/networking/connect/connections/cost', { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Return a priced cost quote for the proposed Connect Connection update plus a
|
|
29
|
+
* diff against the current state.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const costQuoteUpdate =
|
|
34
|
+
* await client.networking.connect.connections.cost.update(
|
|
35
|
+
* 'connection_id',
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
update(connectionID, body, options) {
|
|
40
|
+
return this._client.patch((0, path_1.path) `/v1/networking/connect/connections/${connectionID}/cost`, {
|
|
41
|
+
body,
|
|
42
|
+
...options,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.Cost = Cost;
|
|
47
|
+
//# sourceMappingURL=cost.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cost.js","sourceRoot":"","sources":["../../../../src/resources/networking/connect/connections/cost.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAKxD,6DAAuD;AAEvD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,sCAAsC,YAAY,OAAO,EAAE;YACvF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA3CD,oBA2CC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../../internal/utils/path.mjs";
|
|
4
|
+
export class Cost extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Return a priced cost quote for the proposed Connect Connection.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const costQuote =
|
|
11
|
+
* await client.networking.connect.connections.cost.create({
|
|
12
|
+
* bandwidth_mbps: 50,
|
|
13
|
+
* cidrs: ['10.0.0.0/16'],
|
|
14
|
+
* name: 'my-connect-connection',
|
|
15
|
+
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
16
|
+
* provider_cidrs: ['172.16.0.0/16'],
|
|
17
|
+
* region: 'us-sva-2',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(body, options) {
|
|
22
|
+
return this._client.post('/v1/networking/connect/connections/cost', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Return a priced cost quote for the proposed Connect Connection update plus a
|
|
26
|
+
* diff against the current state.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const costQuoteUpdate =
|
|
31
|
+
* await client.networking.connect.connections.cost.update(
|
|
32
|
+
* 'connection_id',
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
update(connectionID, body, options) {
|
|
37
|
+
return this._client.patch(path `/v1/networking/connect/connections/${connectionID}/cost`, {
|
|
38
|
+
body,
|
|
39
|
+
...options,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=cost.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cost.mjs","sourceRoot":"","sources":["../../../../src/resources/networking/connect/connections/cost.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AAKxD,OAAO,EAAE,IAAI,EAAE,4CAAwC;AAEvD,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,sCAAsC,YAAY,OAAO,EAAE;YACvF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/networking/connect/connections/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,0BAAsB;AACvB,OAAO,EAAE,IAAI,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,mBAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/networking/connect/connections/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,yBAAsB;AACvB,OAAO,EAAE,IAAI,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,kBAAe"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Cost = exports.Connections = void 0;
|
|
5
|
+
var connections_1 = require("./connections.js");
|
|
6
|
+
Object.defineProperty(exports, "Connections", { enumerable: true, get: function () { return connections_1.Connections; } });
|
|
7
|
+
var cost_1 = require("./cost.js");
|
|
8
|
+
Object.defineProperty(exports, "Cost", { enumerable: true, get: function () { return cost_1.Cost; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/networking/connect/connections/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAKuB;AAJrB,0GAAA,WAAW,OAAA;AAKb,kCAA4E;AAAnE,4FAAA,IAAI,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/networking/connect/connections/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,WAAW,GAIZ,0BAAsB;AACvB,OAAO,EAAE,IAAI,EAAgD,mBAAe"}
|
|
@@ -1,132 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as Shared from "../../shared.mjs";
|
|
3
|
-
import * as OperationsAPI from "../../operations/operations.mjs";
|
|
4
|
-
import * as ConnectAPI from "./connect.mjs";
|
|
5
|
-
import { ConnectConnectionsCursor } from "./connect.mjs";
|
|
6
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
7
|
-
import { type CursorParams, PagePromise } from "../../../core/pagination.mjs";
|
|
8
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
9
|
-
export declare class Connections extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create a Connect Connection
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const operation =
|
|
16
|
-
* await client.networking.connect.connections.create({
|
|
17
|
-
* bandwidth_mbps: 50,
|
|
18
|
-
* cidrs: ['10.0.0.0/16'],
|
|
19
|
-
* name: 'my-connect-connection',
|
|
20
|
-
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
21
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
22
|
-
* region: 'us-sva-2',
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
create(body: ConnectionCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
27
|
-
/**
|
|
28
|
-
* Get Connect Connection details
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const connectConnection =
|
|
33
|
-
* await client.networking.connect.connections.get(
|
|
34
|
-
* 'connection_id',
|
|
35
|
-
* );
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
get(connectionID: string, options?: RequestOptions): APIPromise<ConnectAPI.ConnectConnection>;
|
|
39
|
-
/**
|
|
40
|
-
* Update Connect Connection details
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* const operation =
|
|
45
|
-
* await client.networking.connect.connections.update(
|
|
46
|
-
* 'connection_id',
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
update(connectionID: string, body: ConnectionUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
51
|
-
/**
|
|
52
|
-
* Delete Connect Connection
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```ts
|
|
56
|
-
* const operation =
|
|
57
|
-
* await client.networking.connect.connections.delete(
|
|
58
|
-
* 'connection_id',
|
|
59
|
-
* );
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
delete(connectionID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
63
|
-
/**
|
|
64
|
-
* List all Connect Connections
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* ```ts
|
|
68
|
-
* // Automatically fetches more pages as needed.
|
|
69
|
-
* for await (const connectConnection of client.networking.connect.connections.list(
|
|
70
|
-
* { project_id: 'project_id' },
|
|
71
|
-
* )) {
|
|
72
|
-
* // ...
|
|
73
|
-
* }
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
list(query: ConnectionListParams, options?: RequestOptions): PagePromise<ConnectConnectionsCursor, ConnectAPI.ConnectConnection>;
|
|
77
|
-
}
|
|
78
|
-
export interface ConnectionCreateParams {
|
|
79
|
-
/**
|
|
80
|
-
* Connect Connection speed in Mbps
|
|
81
|
-
*/
|
|
82
|
-
bandwidth_mbps: ConnectAPI.ConnectBandwidthMbps;
|
|
83
|
-
/**
|
|
84
|
-
* CIDRs for the Connect Connection. Must be in network-aligned/canonical form.
|
|
85
|
-
*/
|
|
86
|
-
cidrs: Array<string>;
|
|
87
|
-
/**
|
|
88
|
-
* Name of the Connect Connection
|
|
89
|
-
*/
|
|
90
|
-
name: string;
|
|
91
|
-
/**
|
|
92
|
-
* Project ID the Connect Connection belongs to
|
|
93
|
-
*/
|
|
94
|
-
project_id: string;
|
|
95
|
-
/**
|
|
96
|
-
* Provider CIDRs. Must be in network-aligned/canonical form.
|
|
97
|
-
*/
|
|
98
|
-
provider_cidrs: Array<string>;
|
|
99
|
-
/**
|
|
100
|
-
* Region the resource is in.
|
|
101
|
-
*/
|
|
102
|
-
region: Shared.RegionName;
|
|
103
|
-
/**
|
|
104
|
-
* AWS provider configuration
|
|
105
|
-
*/
|
|
106
|
-
aws?: ConnectAPI.ConnectConnectionAWSConfigRequest;
|
|
107
|
-
/**
|
|
108
|
-
* Tags to attach to the Connect Connection
|
|
109
|
-
*/
|
|
110
|
-
tags?: Array<string>;
|
|
111
|
-
}
|
|
112
|
-
export interface ConnectionUpdateParams {
|
|
113
|
-
/**
|
|
114
|
-
* Name of the Connect Connection.
|
|
115
|
-
*/
|
|
116
|
-
name?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Tags to attach to the Connect Connection
|
|
119
|
-
*/
|
|
120
|
-
tags?: Array<string>;
|
|
121
|
-
}
|
|
122
|
-
export interface ConnectionListParams extends CursorParams {
|
|
123
|
-
/**
|
|
124
|
-
* Project ID of resources to request
|
|
125
|
-
*/
|
|
126
|
-
project_id: string;
|
|
127
|
-
}
|
|
128
|
-
export declare namespace Connections {
|
|
129
|
-
export { type ConnectionCreateParams as ConnectionCreateParams, type ConnectionUpdateParams as ConnectionUpdateParams, type ConnectionListParams as ConnectionListParams, };
|
|
130
|
-
}
|
|
131
|
-
export { type ConnectConnectionsCursor };
|
|
1
|
+
export * from "./connections/index.mjs";
|
|
132
2
|
//# sourceMappingURL=connections.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../../../src/resources/networking/connect/connections.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../../../src/resources/networking/connect/connections.ts"],"names":[],"mappings":"AAEA,wCAAoC"}
|
|
@@ -1,132 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as Shared from "../../shared.js";
|
|
3
|
-
import * as OperationsAPI from "../../operations/operations.js";
|
|
4
|
-
import * as ConnectAPI from "./connect.js";
|
|
5
|
-
import { ConnectConnectionsCursor } from "./connect.js";
|
|
6
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
7
|
-
import { type CursorParams, PagePromise } from "../../../core/pagination.js";
|
|
8
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
9
|
-
export declare class Connections extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create a Connect Connection
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const operation =
|
|
16
|
-
* await client.networking.connect.connections.create({
|
|
17
|
-
* bandwidth_mbps: 50,
|
|
18
|
-
* cidrs: ['10.0.0.0/16'],
|
|
19
|
-
* name: 'my-connect-connection',
|
|
20
|
-
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
21
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
22
|
-
* region: 'us-sva-2',
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
create(body: ConnectionCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
27
|
-
/**
|
|
28
|
-
* Get Connect Connection details
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const connectConnection =
|
|
33
|
-
* await client.networking.connect.connections.get(
|
|
34
|
-
* 'connection_id',
|
|
35
|
-
* );
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
get(connectionID: string, options?: RequestOptions): APIPromise<ConnectAPI.ConnectConnection>;
|
|
39
|
-
/**
|
|
40
|
-
* Update Connect Connection details
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* const operation =
|
|
45
|
-
* await client.networking.connect.connections.update(
|
|
46
|
-
* 'connection_id',
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
update(connectionID: string, body: ConnectionUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
51
|
-
/**
|
|
52
|
-
* Delete Connect Connection
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```ts
|
|
56
|
-
* const operation =
|
|
57
|
-
* await client.networking.connect.connections.delete(
|
|
58
|
-
* 'connection_id',
|
|
59
|
-
* );
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
delete(connectionID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
63
|
-
/**
|
|
64
|
-
* List all Connect Connections
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* ```ts
|
|
68
|
-
* // Automatically fetches more pages as needed.
|
|
69
|
-
* for await (const connectConnection of client.networking.connect.connections.list(
|
|
70
|
-
* { project_id: 'project_id' },
|
|
71
|
-
* )) {
|
|
72
|
-
* // ...
|
|
73
|
-
* }
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
list(query: ConnectionListParams, options?: RequestOptions): PagePromise<ConnectConnectionsCursor, ConnectAPI.ConnectConnection>;
|
|
77
|
-
}
|
|
78
|
-
export interface ConnectionCreateParams {
|
|
79
|
-
/**
|
|
80
|
-
* Connect Connection speed in Mbps
|
|
81
|
-
*/
|
|
82
|
-
bandwidth_mbps: ConnectAPI.ConnectBandwidthMbps;
|
|
83
|
-
/**
|
|
84
|
-
* CIDRs for the Connect Connection. Must be in network-aligned/canonical form.
|
|
85
|
-
*/
|
|
86
|
-
cidrs: Array<string>;
|
|
87
|
-
/**
|
|
88
|
-
* Name of the Connect Connection
|
|
89
|
-
*/
|
|
90
|
-
name: string;
|
|
91
|
-
/**
|
|
92
|
-
* Project ID the Connect Connection belongs to
|
|
93
|
-
*/
|
|
94
|
-
project_id: string;
|
|
95
|
-
/**
|
|
96
|
-
* Provider CIDRs. Must be in network-aligned/canonical form.
|
|
97
|
-
*/
|
|
98
|
-
provider_cidrs: Array<string>;
|
|
99
|
-
/**
|
|
100
|
-
* Region the resource is in.
|
|
101
|
-
*/
|
|
102
|
-
region: Shared.RegionName;
|
|
103
|
-
/**
|
|
104
|
-
* AWS provider configuration
|
|
105
|
-
*/
|
|
106
|
-
aws?: ConnectAPI.ConnectConnectionAWSConfigRequest;
|
|
107
|
-
/**
|
|
108
|
-
* Tags to attach to the Connect Connection
|
|
109
|
-
*/
|
|
110
|
-
tags?: Array<string>;
|
|
111
|
-
}
|
|
112
|
-
export interface ConnectionUpdateParams {
|
|
113
|
-
/**
|
|
114
|
-
* Name of the Connect Connection.
|
|
115
|
-
*/
|
|
116
|
-
name?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Tags to attach to the Connect Connection
|
|
119
|
-
*/
|
|
120
|
-
tags?: Array<string>;
|
|
121
|
-
}
|
|
122
|
-
export interface ConnectionListParams extends CursorParams {
|
|
123
|
-
/**
|
|
124
|
-
* Project ID of resources to request
|
|
125
|
-
*/
|
|
126
|
-
project_id: string;
|
|
127
|
-
}
|
|
128
|
-
export declare namespace Connections {
|
|
129
|
-
export { type ConnectionCreateParams as ConnectionCreateParams, type ConnectionUpdateParams as ConnectionUpdateParams, type ConnectionListParams as ConnectionListParams, };
|
|
130
|
-
}
|
|
131
|
-
export { type ConnectConnectionsCursor };
|
|
1
|
+
export * from "./connections/index.js";
|
|
132
2
|
//# sourceMappingURL=connections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/resources/networking/connect/connections.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/resources/networking/connect/connections.ts"],"names":[],"mappings":"AAEA,uCAAoC"}
|
|
@@ -1,88 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const pagination_1 = require("../../../core/pagination.js");
|
|
7
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
8
|
-
class Connections extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create a Connect Connection
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const operation =
|
|
15
|
-
* await client.networking.connect.connections.create({
|
|
16
|
-
* bandwidth_mbps: 50,
|
|
17
|
-
* cidrs: ['10.0.0.0/16'],
|
|
18
|
-
* name: 'my-connect-connection',
|
|
19
|
-
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
20
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
21
|
-
* region: 'us-sva-2',
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
create(body, options) {
|
|
26
|
-
return this._client.post('/v1/networking/connect/connections', { body, ...options });
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Get Connect Connection details
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* const connectConnection =
|
|
34
|
-
* await client.networking.connect.connections.get(
|
|
35
|
-
* 'connection_id',
|
|
36
|
-
* );
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
get(connectionID, options) {
|
|
40
|
-
return this._client.get((0, path_1.path) `/v1/networking/connect/connections/${connectionID}`, options);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Update Connect Connection details
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```ts
|
|
47
|
-
* const operation =
|
|
48
|
-
* await client.networking.connect.connections.update(
|
|
49
|
-
* 'connection_id',
|
|
50
|
-
* );
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
update(connectionID, body, options) {
|
|
54
|
-
return this._client.patch((0, path_1.path) `/v1/networking/connect/connections/${connectionID}`, { body, ...options });
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Delete Connect Connection
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* const operation =
|
|
62
|
-
* await client.networking.connect.connections.delete(
|
|
63
|
-
* 'connection_id',
|
|
64
|
-
* );
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
delete(connectionID, options) {
|
|
68
|
-
return this._client.delete((0, path_1.path) `/v1/networking/connect/connections/${connectionID}`, options);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* List all Connect Connections
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```ts
|
|
75
|
-
* // Automatically fetches more pages as needed.
|
|
76
|
-
* for await (const connectConnection of client.networking.connect.connections.list(
|
|
77
|
-
* { project_id: 'project_id' },
|
|
78
|
-
* )) {
|
|
79
|
-
* // ...
|
|
80
|
-
* }
|
|
81
|
-
* ```
|
|
82
|
-
*/
|
|
83
|
-
list(query, options) {
|
|
84
|
-
return this._client.getAPIList('/v1/networking/connect/connections', (pagination_1.Cursor), { query, ...options });
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
exports.Connections = Connections;
|
|
4
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./connections/index.js"), exports);
|
|
88
6
|
//# sourceMappingURL=connections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../src/resources/networking/connect/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../src/resources/networking/connect/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,iEAAoC"}
|