@nirvana-labs/nirvana 1.91.0 → 1.91.2
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 +15 -0
- package/bin/migration-config.json +47 -47
- package/package.json +1 -1
- package/resources/api-keys/api-keys.d.mts +12 -12
- package/resources/api-keys/api-keys.d.mts.map +1 -1
- package/resources/api-keys/api-keys.d.ts +12 -12
- package/resources/api-keys/api-keys.d.ts.map +1 -1
- package/resources/api-keys/api-keys.js +15 -15
- package/resources/api-keys/api-keys.js.map +1 -1
- package/resources/api-keys/api-keys.mjs +15 -15
- package/resources/api-keys/api-keys.mjs.map +1 -1
- package/resources/audit-logs/audit-logs.d.mts +4 -4
- package/resources/audit-logs/audit-logs.d.mts.map +1 -1
- package/resources/audit-logs/audit-logs.d.ts +4 -4
- package/resources/audit-logs/audit-logs.d.ts.map +1 -1
- package/resources/audit-logs/audit-logs.js +6 -6
- package/resources/audit-logs/audit-logs.js.map +1 -1
- package/resources/audit-logs/audit-logs.mjs +6 -6
- package/resources/audit-logs/audit-logs.mjs.map +1 -1
- package/resources/compute/vms/vms.d.mts +14 -14
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +14 -14
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js +17 -17
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs +17 -17
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/volumes/volumes.d.mts +22 -22
- package/resources/compute/volumes/volumes.d.mts.map +1 -1
- package/resources/compute/volumes/volumes.d.ts +22 -22
- package/resources/compute/volumes/volumes.d.ts.map +1 -1
- package/resources/compute/volumes/volumes.js +26 -26
- package/resources/compute/volumes/volumes.js.map +1 -1
- package/resources/compute/volumes/volumes.mjs +26 -26
- package/resources/compute/volumes/volumes.mjs.map +1 -1
- package/resources/instance-types/instance-types.d.mts +15 -15
- package/resources/instance-types/instance-types.d.mts.map +1 -1
- package/resources/instance-types/instance-types.d.ts +15 -15
- package/resources/instance-types/instance-types.d.ts.map +1 -1
- package/resources/instance-types/instance-types.js +14 -14
- package/resources/instance-types/instance-types.js.map +1 -1
- package/resources/instance-types/instance-types.mjs +14 -14
- package/resources/instance-types/instance-types.mjs.map +1 -1
- package/resources/networking/connect/connections.d.mts +18 -18
- package/resources/networking/connect/connections.d.mts.map +1 -1
- package/resources/networking/connect/connections.d.ts +18 -18
- package/resources/networking/connect/connections.d.ts.map +1 -1
- package/resources/networking/connect/connections.js +21 -21
- package/resources/networking/connect/connections.js.map +1 -1
- package/resources/networking/connect/connections.mjs +21 -21
- package/resources/networking/connect/connections.mjs.map +1 -1
- package/resources/networking/firewall-rules.d.mts +27 -27
- package/resources/networking/firewall-rules.d.mts.map +1 -1
- package/resources/networking/firewall-rules.d.ts +27 -27
- package/resources/networking/firewall-rules.d.ts.map +1 -1
- package/resources/networking/firewall-rules.js +28 -28
- package/resources/networking/firewall-rules.js.map +1 -1
- package/resources/networking/firewall-rules.mjs +28 -28
- package/resources/networking/firewall-rules.mjs.map +1 -1
- package/resources/networking/index.d.mts +1 -1
- package/resources/networking/index.d.mts.map +1 -1
- package/resources/networking/index.d.ts +1 -1
- package/resources/networking/index.d.ts.map +1 -1
- package/resources/networking/networking.d.mts +1 -1
- package/resources/networking/networking.d.mts.map +1 -1
- package/resources/networking/networking.d.ts +1 -1
- package/resources/networking/networking.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.mts +16 -16
- package/resources/networking/vpcs/vpcs.d.mts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.ts +16 -16
- package/resources/networking/vpcs/vpcs.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.js +19 -19
- package/resources/networking/vpcs/vpcs.js.map +1 -1
- package/resources/networking/vpcs/vpcs.mjs +19 -19
- package/resources/networking/vpcs/vpcs.mjs.map +1 -1
- package/resources/nks/clusters/clusters.d.mts +20 -20
- package/resources/nks/clusters/clusters.d.mts.map +1 -1
- package/resources/nks/clusters/clusters.d.ts +20 -20
- package/resources/nks/clusters/clusters.d.ts.map +1 -1
- package/resources/nks/clusters/clusters.js +19 -19
- package/resources/nks/clusters/clusters.js.map +1 -1
- package/resources/nks/clusters/clusters.mjs +19 -19
- package/resources/nks/clusters/clusters.mjs.map +1 -1
- package/resources/nks/clusters/controllers/controllers.d.mts +17 -17
- package/resources/nks/clusters/controllers/controllers.d.mts.map +1 -1
- package/resources/nks/clusters/controllers/controllers.d.ts +17 -17
- package/resources/nks/clusters/controllers/controllers.d.ts.map +1 -1
- package/resources/nks/clusters/controllers/controllers.js +16 -16
- package/resources/nks/clusters/controllers/controllers.js.map +1 -1
- package/resources/nks/clusters/controllers/controllers.mjs +16 -16
- package/resources/nks/clusters/controllers/controllers.mjs.map +1 -1
- package/resources/nks/clusters/controllers/index.d.mts +2 -2
- package/resources/nks/clusters/controllers/index.d.mts.map +1 -1
- package/resources/nks/clusters/controllers/index.d.ts +2 -2
- package/resources/nks/clusters/controllers/index.d.ts.map +1 -1
- package/resources/nks/clusters/controllers/volumes.d.mts +22 -22
- package/resources/nks/clusters/controllers/volumes.d.mts.map +1 -1
- package/resources/nks/clusters/controllers/volumes.d.ts +22 -22
- package/resources/nks/clusters/controllers/volumes.d.ts.map +1 -1
- package/resources/nks/clusters/controllers/volumes.js +18 -18
- package/resources/nks/clusters/controllers/volumes.js.map +1 -1
- package/resources/nks/clusters/controllers/volumes.mjs +18 -18
- package/resources/nks/clusters/controllers/volumes.mjs.map +1 -1
- package/resources/nks/clusters/index.d.mts +4 -4
- package/resources/nks/clusters/index.d.mts.map +1 -1
- package/resources/nks/clusters/index.d.ts +4 -4
- package/resources/nks/clusters/index.d.ts.map +1 -1
- package/resources/nks/clusters/load-balancers.d.mts +20 -20
- package/resources/nks/clusters/load-balancers.d.mts.map +1 -1
- package/resources/nks/clusters/load-balancers.d.ts +20 -20
- package/resources/nks/clusters/load-balancers.d.ts.map +1 -1
- package/resources/nks/clusters/load-balancers.js +16 -16
- package/resources/nks/clusters/load-balancers.js.map +1 -1
- package/resources/nks/clusters/load-balancers.mjs +16 -16
- package/resources/nks/clusters/load-balancers.mjs.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.d.mts +16 -16
- package/resources/nks/clusters/persistent-volume-claims.d.mts.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.d.ts +16 -16
- package/resources/nks/clusters/persistent-volume-claims.d.ts.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.js +16 -16
- package/resources/nks/clusters/persistent-volume-claims.js.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.mjs +16 -16
- package/resources/nks/clusters/persistent-volume-claims.mjs.map +1 -1
- package/resources/nks/clusters/pools/index.d.mts +2 -2
- package/resources/nks/clusters/pools/index.d.mts.map +1 -1
- package/resources/nks/clusters/pools/index.d.ts +2 -2
- package/resources/nks/clusters/pools/index.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/index.d.mts +2 -2
- package/resources/nks/clusters/pools/nodes/index.d.mts.map +1 -1
- package/resources/nks/clusters/pools/nodes/index.d.ts +2 -2
- package/resources/nks/clusters/pools/nodes/index.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.d.mts +25 -25
- package/resources/nks/clusters/pools/nodes/nodes.d.mts.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.d.ts +25 -25
- package/resources/nks/clusters/pools/nodes/nodes.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.js +19 -19
- package/resources/nks/clusters/pools/nodes/nodes.js.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.mjs +19 -19
- package/resources/nks/clusters/pools/nodes/nodes.mjs.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.d.mts +26 -26
- package/resources/nks/clusters/pools/nodes/volumes.d.mts.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.d.ts +26 -26
- package/resources/nks/clusters/pools/nodes/volumes.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.js +18 -18
- package/resources/nks/clusters/pools/nodes/volumes.js.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.mjs +18 -18
- package/resources/nks/clusters/pools/nodes/volumes.mjs.map +1 -1
- package/resources/nks/clusters/pools/pools.d.mts +26 -26
- package/resources/nks/clusters/pools/pools.d.mts.map +1 -1
- package/resources/nks/clusters/pools/pools.d.ts +26 -26
- package/resources/nks/clusters/pools/pools.d.ts.map +1 -1
- package/resources/nks/clusters/pools/pools.js +25 -25
- package/resources/nks/clusters/pools/pools.js.map +1 -1
- package/resources/nks/clusters/pools/pools.mjs +25 -25
- package/resources/nks/clusters/pools/pools.mjs.map +1 -1
- package/resources/operations/operations.d.mts +4 -4
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +4 -4
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.js +6 -6
- package/resources/operations/operations.js.map +1 -1
- package/resources/operations/operations.mjs +6 -6
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/organizations/address.d.mts +175 -0
- package/resources/organizations/address.d.mts.map +1 -0
- package/resources/organizations/address.d.ts +175 -0
- package/resources/organizations/address.d.ts.map +1 -0
- package/resources/organizations/address.js +56 -0
- package/resources/organizations/address.js.map +1 -0
- package/resources/organizations/address.mjs +52 -0
- package/resources/organizations/address.mjs.map +1 -0
- package/resources/organizations/index.d.mts +2 -1
- package/resources/organizations/index.d.mts.map +1 -1
- package/resources/organizations/index.d.ts +2 -1
- package/resources/organizations/index.d.ts.map +1 -1
- package/resources/organizations/index.js +3 -1
- package/resources/organizations/index.js.map +1 -1
- package/resources/organizations/index.mjs +1 -0
- package/resources/organizations/index.mjs.map +1 -1
- package/resources/organizations/memberships.d.mts +16 -16
- package/resources/organizations/memberships.d.mts.map +1 -1
- package/resources/organizations/memberships.d.ts +16 -16
- package/resources/organizations/memberships.d.ts.map +1 -1
- package/resources/organizations/memberships.js +16 -16
- package/resources/organizations/memberships.js.map +1 -1
- package/resources/organizations/memberships.mjs +16 -16
- package/resources/organizations/memberships.mjs.map +1 -1
- package/resources/organizations/organizations.d.mts +16 -12
- package/resources/organizations/organizations.d.mts.map +1 -1
- package/resources/organizations/organizations.d.ts +16 -12
- package/resources/organizations/organizations.d.ts.map +1 -1
- package/resources/organizations/organizations.js +17 -13
- package/resources/organizations/organizations.js.map +1 -1
- package/resources/organizations/organizations.mjs +17 -13
- package/resources/organizations/organizations.mjs.map +1 -1
- package/resources/projects/projects.d.mts +12 -12
- package/resources/projects/projects.d.mts.map +1 -1
- package/resources/projects/projects.d.ts +12 -12
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/projects/projects.js +15 -15
- package/resources/projects/projects.js.map +1 -1
- package/resources/projects/projects.mjs +15 -15
- package/resources/projects/projects.mjs.map +1 -1
- package/resources/quotas/quotas.d.mts +6 -6
- package/resources/quotas/quotas.d.mts.map +1 -1
- package/resources/quotas/quotas.d.ts +6 -6
- package/resources/quotas/quotas.d.ts.map +1 -1
- package/resources/quotas/quotas.js +8 -8
- package/resources/quotas/quotas.js.map +1 -1
- package/resources/quotas/quotas.mjs +8 -8
- package/resources/quotas/quotas.mjs.map +1 -1
- package/resources/regions/regions.d.mts +9 -9
- package/resources/regions/regions.d.mts.map +1 -1
- package/resources/regions/regions.d.ts +9 -9
- package/resources/regions/regions.d.ts.map +1 -1
- package/resources/regions/regions.js +11 -11
- package/resources/regions/regions.js.map +1 -1
- package/resources/regions/regions.mjs +11 -11
- package/resources/regions/regions.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.mts +11 -11
- package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.ts +11 -11
- package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.js +13 -13
- package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.mjs +13 -13
- package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.mts +14 -14
- package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.ts +14 -14
- package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.js +17 -17
- package/resources/rpc-nodes/flex/flex.js.map +1 -1
- package/resources/rpc-nodes/flex/flex.mjs +17 -17
- package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
- package/resources/usage/usage.d.mts +12 -12
- package/resources/usage/usage.d.mts.map +1 -1
- package/resources/usage/usage.d.ts +12 -12
- package/resources/usage/usage.d.ts.map +1 -1
- package/resources/usage/usage.js +14 -14
- package/resources/usage/usage.js.map +1 -1
- package/resources/usage/usage.mjs +14 -14
- package/resources/usage/usage.mjs.map +1 -1
- package/resources/user/security.d.mts +4 -4
- package/resources/user/security.d.mts.map +1 -1
- package/resources/user/security.d.ts +4 -4
- package/resources/user/security.d.ts.map +1 -1
- package/resources/user/security.js +6 -6
- package/resources/user/security.js.map +1 -1
- package/resources/user/security.mjs +6 -6
- package/resources/user/security.mjs.map +1 -1
- package/src/resources/api-keys/api-keys.ts +18 -18
- package/src/resources/api-keys/api.md +2 -2
- package/src/resources/audit-logs/api.md +1 -1
- package/src/resources/audit-logs/audit-logs.ts +7 -7
- package/src/resources/compute/api.md +4 -4
- package/src/resources/compute/vms/vms.ts +17 -17
- package/src/resources/compute/volumes/volumes.ts +28 -28
- package/src/resources/instance-types/api.md +1 -1
- package/src/resources/instance-types/instance-types.ts +19 -19
- package/src/resources/networking/api.md +6 -6
- package/src/resources/networking/connect/connections.ts +30 -30
- package/src/resources/networking/firewall-rules.ts +46 -46
- package/src/resources/networking/index.ts +2 -2
- package/src/resources/networking/networking.ts +2 -2
- package/src/resources/networking/vpcs/vpcs.ts +21 -21
- package/src/resources/nks/api.md +11 -11
- package/src/resources/nks/clusters/clusters.ts +28 -28
- package/src/resources/nks/clusters/controllers/controllers.ts +25 -25
- package/src/resources/nks/clusters/controllers/index.ts +2 -2
- package/src/resources/nks/clusters/controllers/volumes.ts +31 -31
- package/src/resources/nks/clusters/index.ts +5 -5
- package/src/resources/nks/clusters/load-balancers.ts +29 -29
- package/src/resources/nks/clusters/persistent-volume-claims.ts +27 -27
- package/src/resources/nks/clusters/pools/index.ts +4 -4
- package/src/resources/nks/clusters/pools/nodes/index.ts +3 -3
- package/src/resources/nks/clusters/pools/nodes/nodes.ts +39 -39
- package/src/resources/nks/clusters/pools/nodes/volumes.ts +36 -36
- package/src/resources/nks/clusters/pools/pools.ts +44 -44
- package/src/resources/operations/api.md +1 -1
- package/src/resources/operations/operations.ts +6 -6
- package/src/resources/organizations/address.ts +227 -0
- package/src/resources/organizations/api.md +14 -2
- package/src/resources/organizations/index.ts +7 -1
- package/src/resources/organizations/memberships.ts +24 -24
- package/src/resources/organizations/organizations.ts +26 -15
- package/src/resources/projects/api.md +2 -2
- package/src/resources/projects/projects.ts +18 -18
- package/src/resources/quotas/api.md +1 -1
- package/src/resources/quotas/quotas.ts +8 -8
- package/src/resources/regions/api.md +1 -1
- package/src/resources/regions/regions.ts +12 -12
- package/src/resources/rpc-nodes/api.md +3 -3
- package/src/resources/rpc-nodes/dedicated/dedicated.ts +14 -14
- package/src/resources/rpc-nodes/flex/flex.ts +17 -17
- package/src/resources/usage/api.md +1 -1
- package/src/resources/usage/usage.ts +15 -15
- package/src/resources/user/api.md +1 -1
- package/src/resources/user/security.ts +6 -6
- 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
|
@@ -9,6 +9,30 @@ import { RequestOptions } from '../../../../../internal/request-options';
|
|
|
9
9
|
import { path } from '../../../../../internal/utils/path';
|
|
10
10
|
|
|
11
11
|
export class Volumes extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get details about a volume attached to an NKS node
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const nksNodeVolume =
|
|
18
|
+
* await client.nks.clusters.pools.nodes.volumes.get(
|
|
19
|
+
* 'volume_id',
|
|
20
|
+
* {
|
|
21
|
+
* cluster_id: 'cluster_id',
|
|
22
|
+
* pool_id: 'pool_id',
|
|
23
|
+
* node_id: 'node_id',
|
|
24
|
+
* },
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
get(volumeID: string, params: VolumeGetParams, options?: RequestOptions): APIPromise<NKSNodeVolume> {
|
|
29
|
+
const { cluster_id, pool_id, node_id } = params;
|
|
30
|
+
return this._client.get(
|
|
31
|
+
path`/v1/nks/clusters/${cluster_id}/pools/${pool_id}/nodes/${node_id}/volumes/${volumeID}`,
|
|
32
|
+
options,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
12
36
|
/**
|
|
13
37
|
* List all volumes attached to an NKS node
|
|
14
38
|
*
|
|
@@ -35,30 +59,6 @@ export class Volumes extends APIResource {
|
|
|
35
59
|
{ query, ...options },
|
|
36
60
|
);
|
|
37
61
|
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Get details about a volume attached to an NKS node
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* const nksNodeVolume =
|
|
45
|
-
* await client.nks.clusters.pools.nodes.volumes.get(
|
|
46
|
-
* 'volume_id',
|
|
47
|
-
* {
|
|
48
|
-
* cluster_id: 'cluster_id',
|
|
49
|
-
* pool_id: 'pool_id',
|
|
50
|
-
* node_id: 'node_id',
|
|
51
|
-
* },
|
|
52
|
-
* );
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
get(volumeID: string, params: VolumeGetParams, options?: RequestOptions): APIPromise<NKSNodeVolume> {
|
|
56
|
-
const { cluster_id, pool_id, node_id } = params;
|
|
57
|
-
return this._client.get(
|
|
58
|
-
path`/v1/nks/clusters/${cluster_id}/pools/${pool_id}/nodes/${node_id}/volumes/${volumeID}`,
|
|
59
|
-
options,
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
export type NKSNodeVolumesCursor = Cursor<NKSNodeVolume>;
|
|
@@ -117,33 +117,33 @@ export interface NKSNodeVolumeList {
|
|
|
117
117
|
pagination: Shared.Pagination;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export interface
|
|
120
|
+
export interface VolumeGetParams {
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* Cluster ID
|
|
123
123
|
*/
|
|
124
124
|
cluster_id: string;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
127
|
+
* Node Pool ID
|
|
128
128
|
*/
|
|
129
129
|
pool_id: string;
|
|
130
|
-
}
|
|
131
130
|
|
|
132
|
-
export interface VolumeGetParams {
|
|
133
131
|
/**
|
|
134
|
-
*
|
|
132
|
+
* Node ID
|
|
135
133
|
*/
|
|
136
|
-
|
|
134
|
+
node_id: string;
|
|
135
|
+
}
|
|
137
136
|
|
|
137
|
+
export interface VolumeListParams extends CursorParams {
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* Path param: Cluster ID
|
|
140
140
|
*/
|
|
141
|
-
|
|
141
|
+
cluster_id: string;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
|
-
* Node ID
|
|
144
|
+
* Path param: Node Pool ID
|
|
145
145
|
*/
|
|
146
|
-
|
|
146
|
+
pool_id: string;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
export declare namespace Volumes {
|
|
@@ -151,7 +151,7 @@ export declare namespace Volumes {
|
|
|
151
151
|
type NKSNodeVolume as NKSNodeVolume,
|
|
152
152
|
type NKSNodeVolumeList as NKSNodeVolumeList,
|
|
153
153
|
type NKSNodeVolumesCursor as NKSNodeVolumesCursor,
|
|
154
|
-
type VolumeListParams as VolumeListParams,
|
|
155
154
|
type VolumeGetParams as VolumeGetParams,
|
|
155
|
+
type VolumeListParams as VolumeListParams,
|
|
156
156
|
};
|
|
157
157
|
}
|
|
@@ -52,47 +52,39 @@ export class Pools extends APIResource {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Get details about an NKS node pool
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
58
|
* ```ts
|
|
59
|
-
* const
|
|
59
|
+
* const nksNodePool = await client.nks.clusters.pools.get(
|
|
60
60
|
* 'pool_id',
|
|
61
61
|
* { cluster_id: 'cluster_id' },
|
|
62
62
|
* );
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
options?: RequestOptions,
|
|
69
|
-
): APIPromise<OperationsAPI.Operation> {
|
|
70
|
-
const { cluster_id, ...body } = params;
|
|
71
|
-
return this._client.patch(path`/v1/nks/clusters/${cluster_id}/pools/${poolID}`, { body, ...options });
|
|
65
|
+
get(poolID: string, params: PoolGetParams, options?: RequestOptions): APIPromise<NKSNodePool> {
|
|
66
|
+
const { cluster_id } = params;
|
|
67
|
+
return this._client.get(path`/v1/nks/clusters/${cluster_id}/pools/${poolID}`, options);
|
|
72
68
|
}
|
|
73
69
|
|
|
74
70
|
/**
|
|
75
|
-
*
|
|
71
|
+
* Update an NKS node pool
|
|
76
72
|
*
|
|
77
73
|
* @example
|
|
78
74
|
* ```ts
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* 'cluster_id',
|
|
82
|
-
* )
|
|
83
|
-
* // ...
|
|
84
|
-
* }
|
|
75
|
+
* const operation = await client.nks.clusters.pools.update(
|
|
76
|
+
* 'pool_id',
|
|
77
|
+
* { cluster_id: 'cluster_id' },
|
|
78
|
+
* );
|
|
85
79
|
* ```
|
|
86
80
|
*/
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
81
|
+
update(
|
|
82
|
+
poolID: string,
|
|
83
|
+
params: PoolUpdateParams,
|
|
90
84
|
options?: RequestOptions,
|
|
91
|
-
):
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
...options,
|
|
95
|
-
});
|
|
85
|
+
): APIPromise<OperationsAPI.Operation> {
|
|
86
|
+
const { cluster_id, ...body } = params;
|
|
87
|
+
return this._client.patch(path`/v1/nks/clusters/${cluster_id}/pools/${poolID}`, { body, ...options });
|
|
96
88
|
}
|
|
97
89
|
|
|
98
90
|
/**
|
|
@@ -116,19 +108,27 @@ export class Pools extends APIResource {
|
|
|
116
108
|
}
|
|
117
109
|
|
|
118
110
|
/**
|
|
119
|
-
*
|
|
111
|
+
* List all node pools in an NKS cluster
|
|
120
112
|
*
|
|
121
113
|
* @example
|
|
122
114
|
* ```ts
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
* )
|
|
115
|
+
* // Automatically fetches more pages as needed.
|
|
116
|
+
* for await (const nksNodePool of client.nks.clusters.pools.list(
|
|
117
|
+
* 'cluster_id',
|
|
118
|
+
* )) {
|
|
119
|
+
* // ...
|
|
120
|
+
* }
|
|
127
121
|
* ```
|
|
128
122
|
*/
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
123
|
+
list(
|
|
124
|
+
clusterID: string,
|
|
125
|
+
query: PoolListParams | null | undefined = {},
|
|
126
|
+
options?: RequestOptions,
|
|
127
|
+
): PagePromise<NKSNodePoolsCursor, NKSNodePool> {
|
|
128
|
+
return this._client.getAPIList(path`/v1/nks/clusters/${clusterID}/pools`, Cursor<NKSNodePool>, {
|
|
129
|
+
query,
|
|
130
|
+
...options,
|
|
131
|
+
});
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -286,6 +286,13 @@ export interface PoolCreateParams {
|
|
|
286
286
|
tags?: Array<string>;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
+
export interface PoolGetParams {
|
|
290
|
+
/**
|
|
291
|
+
* Cluster ID
|
|
292
|
+
*/
|
|
293
|
+
cluster_id: string;
|
|
294
|
+
}
|
|
295
|
+
|
|
289
296
|
export interface PoolUpdateParams {
|
|
290
297
|
/**
|
|
291
298
|
* Path param: Cluster ID
|
|
@@ -327,8 +334,6 @@ export namespace PoolUpdateParams {
|
|
|
327
334
|
}
|
|
328
335
|
}
|
|
329
336
|
|
|
330
|
-
export interface PoolListParams extends CursorParams {}
|
|
331
|
-
|
|
332
337
|
export interface PoolDeleteParams {
|
|
333
338
|
/**
|
|
334
339
|
* Cluster ID
|
|
@@ -336,12 +341,7 @@ export interface PoolDeleteParams {
|
|
|
336
341
|
cluster_id: string;
|
|
337
342
|
}
|
|
338
343
|
|
|
339
|
-
export interface
|
|
340
|
-
/**
|
|
341
|
-
* Cluster ID
|
|
342
|
-
*/
|
|
343
|
-
cluster_id: string;
|
|
344
|
-
}
|
|
344
|
+
export interface PoolListParams extends CursorParams {}
|
|
345
345
|
|
|
346
346
|
Pools.Availability = Availability;
|
|
347
347
|
Pools.Nodes = Nodes;
|
|
@@ -356,10 +356,10 @@ export declare namespace Pools {
|
|
|
356
356
|
type NKSNodePoolNodeConfigResponse as NKSNodePoolNodeConfigResponse,
|
|
357
357
|
type NKSNodePoolsCursor as NKSNodePoolsCursor,
|
|
358
358
|
type PoolCreateParams as PoolCreateParams,
|
|
359
|
+
type PoolGetParams as PoolGetParams,
|
|
359
360
|
type PoolUpdateParams as PoolUpdateParams,
|
|
360
|
-
type PoolListParams as PoolListParams,
|
|
361
361
|
type PoolDeleteParams as PoolDeleteParams,
|
|
362
|
-
type
|
|
362
|
+
type PoolListParams as PoolListParams,
|
|
363
363
|
};
|
|
364
364
|
|
|
365
365
|
export {
|
|
@@ -373,8 +373,8 @@ export declare namespace Pools {
|
|
|
373
373
|
type NKSNode as NKSNode,
|
|
374
374
|
type NKSNodeList as NKSNodeList,
|
|
375
375
|
type NKSNodesCursor as NKSNodesCursor,
|
|
376
|
-
type NodeListParams as NodeListParams,
|
|
377
|
-
type NodeDeleteParams as NodeDeleteParams,
|
|
378
376
|
type NodeGetParams as NodeGetParams,
|
|
377
|
+
type NodeDeleteParams as NodeDeleteParams,
|
|
378
|
+
type NodeListParams as NodeListParams,
|
|
379
379
|
};
|
|
380
380
|
}
|
|
@@ -13,5 +13,5 @@ Types:
|
|
|
13
13
|
|
|
14
14
|
Methods:
|
|
15
15
|
|
|
16
|
-
- <code title="get /v1/operations">client.operations.<a href="./src/resources/operations.ts">list</a>({ ...params }) -> OperationsCursor</code>
|
|
17
16
|
- <code title="get /v1/operations/{operation_id}">client.operations.<a href="./src/resources/operations.ts">get</a>(operationID) -> Operation</code>
|
|
17
|
+
- <code title="get /v1/operations">client.operations.<a href="./src/resources/operations.ts">list</a>({ ...params }) -> OperationsCursor</code>
|
|
@@ -9,17 +9,17 @@ import { path } from '../../internal/utils/path';
|
|
|
9
9
|
|
|
10
10
|
export class Operations extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Get details about a specific operation
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
return this._client.
|
|
14
|
+
get(operationID: string, options?: RequestOptions): APIPromise<Operation> {
|
|
15
|
+
return this._client.get(path`/v1/operations/${operationID}`, options);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* List all operations
|
|
20
20
|
*/
|
|
21
|
-
|
|
22
|
-
return this._client.
|
|
21
|
+
list(query: OperationListParams, options?: RequestOptions): PagePromise<OperationsCursor, Operation> {
|
|
22
|
+
return this._client.getAPIList('/v1/operations', Cursor<Operation>, { query, ...options });
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Address extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create the address for an organization
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const organizationAddress =
|
|
15
|
+
* await client.organizations.address.create(
|
|
16
|
+
* 'organization_id',
|
|
17
|
+
* {
|
|
18
|
+
* city: 'San Francisco',
|
|
19
|
+
* country: 'US',
|
|
20
|
+
* line1: '123 Main St',
|
|
21
|
+
* postal_code: '94105',
|
|
22
|
+
* },
|
|
23
|
+
* );
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
create(
|
|
27
|
+
organizationID: string,
|
|
28
|
+
body: AddressCreateParams,
|
|
29
|
+
options?: RequestOptions,
|
|
30
|
+
): APIPromise<OrganizationAddress> {
|
|
31
|
+
return this._client.post(path`/v1/organizations/${organizationID}/address`, { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Get the address for an organization
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const organizationAddress =
|
|
40
|
+
* await client.organizations.address.get('organization_id');
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
get(organizationID: string, options?: RequestOptions): APIPromise<OrganizationAddress> {
|
|
44
|
+
return this._client.get(path`/v1/organizations/${organizationID}/address`, options);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Update the address for an organization
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const organizationAddress =
|
|
53
|
+
* await client.organizations.address.update(
|
|
54
|
+
* 'organization_id',
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
update(
|
|
59
|
+
organizationID: string,
|
|
60
|
+
body: AddressUpdateParams,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): APIPromise<OrganizationAddress> {
|
|
63
|
+
return this._client.patch(path`/v1/organizations/${organizationID}/address`, { body, ...options });
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Organization address details.
|
|
69
|
+
*/
|
|
70
|
+
export interface OrganizationAddress {
|
|
71
|
+
/**
|
|
72
|
+
* Address ID.
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* City or locality.
|
|
78
|
+
*/
|
|
79
|
+
city: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
83
|
+
*/
|
|
84
|
+
country: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* When the address was created.
|
|
88
|
+
*/
|
|
89
|
+
created_at: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* First line of the street address.
|
|
93
|
+
*/
|
|
94
|
+
line1: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Second line of the street address. Null when not provided.
|
|
98
|
+
*/
|
|
99
|
+
line2: string | null;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Organization ID the address belongs to.
|
|
103
|
+
*/
|
|
104
|
+
organization_id: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Postal or ZIP code.
|
|
108
|
+
*/
|
|
109
|
+
postal_code: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* State, province, or region. Null when not provided.
|
|
113
|
+
*/
|
|
114
|
+
state: string | null;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Tax identification number. Null when not provided.
|
|
118
|
+
*/
|
|
119
|
+
tax_id: string | null;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Type of the tax identification number. Null when not provided.
|
|
123
|
+
*/
|
|
124
|
+
tax_id_type: string | null;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* When the address was updated.
|
|
128
|
+
*/
|
|
129
|
+
updated_at: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface AddressCreateParams {
|
|
133
|
+
/**
|
|
134
|
+
* City or locality.
|
|
135
|
+
*/
|
|
136
|
+
city: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
140
|
+
*/
|
|
141
|
+
country: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* First line of the street address.
|
|
145
|
+
*/
|
|
146
|
+
line1: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Postal or ZIP code.
|
|
150
|
+
*/
|
|
151
|
+
postal_code: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Second line of the street address (suite, unit, building).
|
|
155
|
+
*/
|
|
156
|
+
line2?: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* State, province, or region. Required by some tax jurisdictions (e.g. US, CA).
|
|
160
|
+
*/
|
|
161
|
+
state?: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Tax identification number (e.g. VAT, EIN, ABN). Optional.
|
|
165
|
+
*/
|
|
166
|
+
tax_id?: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Type of the tax identification number (e.g. eu_vat, us_ein, gb_vat, au_abn).
|
|
170
|
+
* Optional.
|
|
171
|
+
*/
|
|
172
|
+
tax_id_type?: string;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface AddressUpdateParams {
|
|
176
|
+
/**
|
|
177
|
+
* City or locality.
|
|
178
|
+
*/
|
|
179
|
+
city?: string;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
183
|
+
*/
|
|
184
|
+
country?: string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* First line of the street address.
|
|
188
|
+
*/
|
|
189
|
+
line1?: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Second line of the street address (suite, unit, building). Omit to leave
|
|
193
|
+
* unchanged, send null to clear, or send a value to set it.
|
|
194
|
+
*/
|
|
195
|
+
line2?: string | null;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Postal or ZIP code.
|
|
199
|
+
*/
|
|
200
|
+
postal_code?: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* State, province, or region. Omit to leave unchanged, send null to clear, or send
|
|
204
|
+
* a value to set it.
|
|
205
|
+
*/
|
|
206
|
+
state?: string | null;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Tax identification number (e.g. VAT, EIN, ABN). Omit to leave unchanged, send
|
|
210
|
+
* null to clear, or send a value to set it.
|
|
211
|
+
*/
|
|
212
|
+
tax_id?: string | null;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Type of the tax identification number (e.g. eu_vat, us_ein, gb_vat, au_abn).
|
|
216
|
+
* Omit to leave unchanged, send null to clear, or send a value to set it.
|
|
217
|
+
*/
|
|
218
|
+
tax_id_type?: string | null;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export declare namespace Address {
|
|
222
|
+
export {
|
|
223
|
+
type OrganizationAddress as OrganizationAddress,
|
|
224
|
+
type AddressCreateParams as AddressCreateParams,
|
|
225
|
+
type AddressUpdateParams as AddressUpdateParams,
|
|
226
|
+
};
|
|
227
|
+
}
|
|
@@ -11,9 +11,9 @@ Types:
|
|
|
11
11
|
Methods:
|
|
12
12
|
|
|
13
13
|
- <code title="post /v1/organizations">client.organizations.<a href="./src/resources/organizations/organizations.ts">create</a>({ ...params }) -> Organization</code>
|
|
14
|
+
- <code title="get /v1/organizations/{organization_id}">client.organizations.<a href="./src/resources/organizations/organizations.ts">get</a>(organizationID) -> Organization</code>
|
|
14
15
|
- <code title="patch /v1/organizations/{organization_id}">client.organizations.<a href="./src/resources/organizations/organizations.ts">update</a>(organizationID, { ...params }) -> Organization</code>
|
|
15
16
|
- <code title="get /v1/organizations">client.organizations.<a href="./src/resources/organizations/organizations.ts">list</a>({ ...params }) -> OrganizationsCursor</code>
|
|
16
|
-
- <code title="get /v1/organizations/{organization_id}">client.organizations.<a href="./src/resources/organizations/organizations.ts">get</a>(organizationID) -> Organization</code>
|
|
17
17
|
- <code title="post /v1/organizations/{organization_id}/leave">client.organizations.<a href="./src/resources/organizations/organizations.ts">leave</a>(organizationID) -> void</code>
|
|
18
18
|
|
|
19
19
|
## Memberships
|
|
@@ -25,5 +25,17 @@ Types:
|
|
|
25
25
|
|
|
26
26
|
Methods:
|
|
27
27
|
|
|
28
|
-
- <code title="get /v1/organizations/{organization_id}/memberships">client.organizations.memberships.<a href="./src/resources/organizations/memberships.ts">list</a>(organizationID, { ...params }) -> OrganizationMembershipsCursor</code>
|
|
29
28
|
- <code title="get /v1/organizations/{organization_id}/memberships/{membership_id}">client.organizations.memberships.<a href="./src/resources/organizations/memberships.ts">get</a>(membershipID, { ...params }) -> OrganizationMembership</code>
|
|
29
|
+
- <code title="get /v1/organizations/{organization_id}/memberships">client.organizations.memberships.<a href="./src/resources/organizations/memberships.ts">list</a>(organizationID, { ...params }) -> OrganizationMembershipsCursor</code>
|
|
30
|
+
|
|
31
|
+
## Address
|
|
32
|
+
|
|
33
|
+
Types:
|
|
34
|
+
|
|
35
|
+
- <code><a href="./src/resources/organizations/address.ts">OrganizationAddress</a></code>
|
|
36
|
+
|
|
37
|
+
Methods:
|
|
38
|
+
|
|
39
|
+
- <code title="post /v1/organizations/{organization_id}/address">client.organizations.address.<a href="./src/resources/organizations/address.ts">create</a>(organizationID, { ...params }) -> OrganizationAddress</code>
|
|
40
|
+
- <code title="get /v1/organizations/{organization_id}/address">client.organizations.address.<a href="./src/resources/organizations/address.ts">get</a>(organizationID) -> OrganizationAddress</code>
|
|
41
|
+
- <code title="patch /v1/organizations/{organization_id}/address">client.organizations.address.<a href="./src/resources/organizations/address.ts">update</a>(organizationID, { ...params }) -> OrganizationAddress</code>
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Address,
|
|
5
|
+
type OrganizationAddress,
|
|
6
|
+
type AddressCreateParams,
|
|
7
|
+
type AddressUpdateParams,
|
|
8
|
+
} from './address';
|
|
3
9
|
export {
|
|
4
10
|
Memberships,
|
|
5
11
|
type OrganizationMembership,
|
|
6
12
|
type OrganizationMembershipList,
|
|
7
|
-
type MembershipListParams,
|
|
8
13
|
type MembershipGetParams,
|
|
14
|
+
type MembershipListParams,
|
|
9
15
|
type OrganizationMembershipsCursor,
|
|
10
16
|
} from './memberships';
|
|
11
17
|
export { Organizations } from './organizations';
|
|
@@ -8,6 +8,27 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
8
8
|
import { path } from '../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class Memberships extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get details about an organization membership
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const organizationMembership =
|
|
17
|
+
* await client.organizations.memberships.get(
|
|
18
|
+
* 'membership_id',
|
|
19
|
+
* { organization_id: 'organization_id' },
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
get(
|
|
24
|
+
membershipID: string,
|
|
25
|
+
params: MembershipGetParams,
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): APIPromise<OrganizationMembership> {
|
|
28
|
+
const { organization_id } = params;
|
|
29
|
+
return this._client.get(path`/v1/organizations/${organization_id}/memberships/${membershipID}`, options);
|
|
30
|
+
}
|
|
31
|
+
|
|
11
32
|
/**
|
|
12
33
|
* List all memberships for an organization
|
|
13
34
|
*
|
|
@@ -32,27 +53,6 @@ export class Memberships extends APIResource {
|
|
|
32
53
|
{ query, ...options },
|
|
33
54
|
);
|
|
34
55
|
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Get details about an organization membership
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* const organizationMembership =
|
|
42
|
-
* await client.organizations.memberships.get(
|
|
43
|
-
* 'membership_id',
|
|
44
|
-
* { organization_id: 'organization_id' },
|
|
45
|
-
* );
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
get(
|
|
49
|
-
membershipID: string,
|
|
50
|
-
params: MembershipGetParams,
|
|
51
|
-
options?: RequestOptions,
|
|
52
|
-
): APIPromise<OrganizationMembership> {
|
|
53
|
-
const { organization_id } = params;
|
|
54
|
-
return this._client.get(path`/v1/organizations/${organization_id}/memberships/${membershipID}`, options);
|
|
55
|
-
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export type OrganizationMembershipsCursor = Cursor<OrganizationMembership>;
|
|
@@ -101,8 +101,6 @@ export interface OrganizationMembershipList {
|
|
|
101
101
|
pagination: Shared.Pagination;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
export interface MembershipListParams extends CursorParams {}
|
|
105
|
-
|
|
106
104
|
export interface MembershipGetParams {
|
|
107
105
|
/**
|
|
108
106
|
* Organization ID
|
|
@@ -110,12 +108,14 @@ export interface MembershipGetParams {
|
|
|
110
108
|
organization_id: string;
|
|
111
109
|
}
|
|
112
110
|
|
|
111
|
+
export interface MembershipListParams extends CursorParams {}
|
|
112
|
+
|
|
113
113
|
export declare namespace Memberships {
|
|
114
114
|
export {
|
|
115
115
|
type OrganizationMembership as OrganizationMembership,
|
|
116
116
|
type OrganizationMembershipList as OrganizationMembershipList,
|
|
117
117
|
type OrganizationMembershipsCursor as OrganizationMembershipsCursor,
|
|
118
|
-
type MembershipListParams as MembershipListParams,
|
|
119
118
|
type MembershipGetParams as MembershipGetParams,
|
|
119
|
+
type MembershipListParams as MembershipListParams,
|
|
120
120
|
};
|
|
121
121
|
}
|