@nirvana-labs/nirvana 1.91.1 → 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 +7 -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 +8 -8
- package/resources/organizations/address.d.mts.map +1 -1
- package/resources/organizations/address.d.ts +8 -8
- package/resources/organizations/address.d.ts.map +1 -1
- package/resources/organizations/address.js +10 -10
- package/resources/organizations/address.js.map +1 -1
- package/resources/organizations/address.mjs +10 -10
- package/resources/organizations/address.mjs.map +1 -1
- package/resources/organizations/index.d.mts +1 -1
- package/resources/organizations/index.d.mts.map +1 -1
- package/resources/organizations/index.d.ts +1 -1
- package/resources/organizations/index.d.ts.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 +12 -12
- package/resources/organizations/organizations.d.mts.map +1 -1
- package/resources/organizations/organizations.d.ts +12 -12
- package/resources/organizations/organizations.d.ts.map +1 -1
- package/resources/organizations/organizations.js +13 -13
- package/resources/organizations/organizations.js.map +1 -1
- package/resources/organizations/organizations.mjs +13 -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 +13 -13
- package/src/resources/organizations/api.md +3 -3
- package/src/resources/organizations/index.ts +1 -1
- package/src/resources/organizations/memberships.ts +24 -24
- package/src/resources/organizations/organizations.ts +15 -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
|
@@ -11,7 +11,7 @@ Types:
|
|
|
11
11
|
Methods:
|
|
12
12
|
|
|
13
13
|
- <code title="post /v1/api_keys">client.apiKeys.<a href="./src/resources/api-keys.ts">create</a>({ ...params }) -> APIKey</code>
|
|
14
|
+
- <code title="get /v1/api_keys/{api_key_id}">client.apiKeys.<a href="./src/resources/api-keys.ts">get</a>(apiKeyID) -> APIKey</code>
|
|
14
15
|
- <code title="patch /v1/api_keys/{api_key_id}">client.apiKeys.<a href="./src/resources/api-keys.ts">update</a>(apiKeyID, { ...params }) -> APIKey</code>
|
|
15
|
-
- <code title="get /v1/api_keys">client.apiKeys.<a href="./src/resources/api-keys.ts">list</a>({ ...params }) -> APIKeysCursor</code>
|
|
16
16
|
- <code title="delete /v1/api_keys/{api_key_id}">client.apiKeys.<a href="./src/resources/api-keys.ts">delete</a>(apiKeyID) -> void</code>
|
|
17
|
-
- <code title="get /v1/api_keys
|
|
17
|
+
- <code title="get /v1/api_keys">client.apiKeys.<a href="./src/resources/api-keys.ts">list</a>({ ...params }) -> APIKeysCursor</code>
|
|
@@ -10,5 +10,5 @@ Types:
|
|
|
10
10
|
|
|
11
11
|
Methods:
|
|
12
12
|
|
|
13
|
-
- <code title="get /v1/audit_logs">client.auditLogs.<a href="./src/resources/audit-logs.ts">list</a>({ ...params }) -> AuditLogsCursor</code>
|
|
14
13
|
- <code title="get /v1/audit_logs/{audit_log_id}">client.auditLogs.<a href="./src/resources/audit-logs.ts">get</a>(auditLogID) -> AuditLog</code>
|
|
14
|
+
- <code title="get /v1/audit_logs">client.auditLogs.<a href="./src/resources/audit-logs.ts">list</a>({ ...params }) -> AuditLogsCursor</code>
|
|
@@ -8,6 +8,13 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
8
8
|
import { path } from '../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class AuditLogs extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get an Audit Log entry
|
|
13
|
+
*/
|
|
14
|
+
get(auditLogID: string, options?: RequestOptions): APIPromise<AuditLog> {
|
|
15
|
+
return this._client.get(path`/v1/audit_logs/${auditLogID}`, options);
|
|
16
|
+
}
|
|
17
|
+
|
|
11
18
|
/**
|
|
12
19
|
* List Audit Log entries for an organization
|
|
13
20
|
*/
|
|
@@ -17,13 +24,6 @@ export class AuditLogs extends APIResource {
|
|
|
17
24
|
): PagePromise<AuditLogsCursor, AuditLog> {
|
|
18
25
|
return this._client.getAPIList('/v1/audit_logs', Cursor<AuditLog>, { query, ...options });
|
|
19
26
|
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Get an Audit Log entry
|
|
23
|
-
*/
|
|
24
|
-
get(auditLogID: string, options?: RequestOptions): APIPromise<AuditLog> {
|
|
25
|
-
return this._client.get(path`/v1/audit_logs/${auditLogID}`, options);
|
|
26
|
-
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export type AuditLogsCursor = Cursor<AuditLog>;
|
|
@@ -14,10 +14,10 @@ Types:
|
|
|
14
14
|
Methods:
|
|
15
15
|
|
|
16
16
|
- <code title="post /v1/compute/vms">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">create</a>({ ...params }) -> Operation</code>
|
|
17
|
+
- <code title="get /v1/compute/vms/{vm_id}">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">get</a>(vmID) -> VM</code>
|
|
17
18
|
- <code title="patch /v1/compute/vms/{vm_id}">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">update</a>(vmID, { ...params }) -> Operation</code>
|
|
18
|
-
- <code title="get /v1/compute/vms">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">list</a>({ ...params }) -> VMsCursor</code>
|
|
19
19
|
- <code title="delete /v1/compute/vms/{vm_id}">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">delete</a>(vmID) -> Operation</code>
|
|
20
|
-
- <code title="get /v1/compute/vms
|
|
20
|
+
- <code title="get /v1/compute/vms">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">list</a>({ ...params }) -> VMsCursor</code>
|
|
21
21
|
- <code title="post /v1/compute/vms/{vm_id}/restart">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">restart</a>(vmID) -> Operation</code>
|
|
22
22
|
|
|
23
23
|
### Availability
|
|
@@ -51,12 +51,12 @@ Types:
|
|
|
51
51
|
Methods:
|
|
52
52
|
|
|
53
53
|
- <code title="post /v1/compute/volumes">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">create</a>({ ...params }) -> Operation</code>
|
|
54
|
+
- <code title="get /v1/compute/volumes/{volume_id}">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">get</a>(volumeID) -> Volume</code>
|
|
54
55
|
- <code title="patch /v1/compute/volumes/{volume_id}">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">update</a>(volumeID, { ...params }) -> Operation</code>
|
|
55
|
-
- <code title="get /v1/compute/volumes">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">list</a>({ ...params }) -> VolumesCursor</code>
|
|
56
56
|
- <code title="delete /v1/compute/volumes/{volume_id}">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">delete</a>(volumeID) -> Operation</code>
|
|
57
|
+
- <code title="get /v1/compute/volumes">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">list</a>({ ...params }) -> VolumesCursor</code>
|
|
57
58
|
- <code title="post /v1/compute/volumes/{volume_id}/attach">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">attach</a>(volumeID, { ...params }) -> Operation</code>
|
|
58
59
|
- <code title="post /v1/compute/volumes/{volume_id}/detach">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">detach</a>(volumeID) -> Operation</code>
|
|
59
|
-
- <code title="get /v1/compute/volumes/{volume_id}">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">get</a>(volumeID) -> Volume</code>
|
|
60
60
|
|
|
61
61
|
### Availability
|
|
62
62
|
|
|
@@ -46,32 +46,27 @@ export class VMs extends APIResource {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Get details about a VM
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
52
|
* ```ts
|
|
53
|
-
* const
|
|
53
|
+
* const vm = await client.compute.vms.get('vm_id');
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
|
|
57
|
-
return this._client.
|
|
56
|
+
get(vmID: string, options?: RequestOptions): APIPromise<VM> {
|
|
57
|
+
return this._client.get(path`/v1/compute/vms/${vmID}`, options);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Update a VM
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
64
|
* ```ts
|
|
65
|
-
*
|
|
66
|
-
* for await (const vm of client.compute.vms.list({
|
|
67
|
-
* project_id: 'project_id',
|
|
68
|
-
* })) {
|
|
69
|
-
* // ...
|
|
70
|
-
* }
|
|
65
|
+
* const operation = await client.compute.vms.update('vm_id');
|
|
71
66
|
* ```
|
|
72
67
|
*/
|
|
73
|
-
|
|
74
|
-
return this._client.
|
|
68
|
+
update(vmID: string, body: VMUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
69
|
+
return this._client.patch(path`/v1/compute/vms/${vmID}`, { body, ...options });
|
|
75
70
|
}
|
|
76
71
|
|
|
77
72
|
/**
|
|
@@ -87,15 +82,20 @@ export class VMs extends APIResource {
|
|
|
87
82
|
}
|
|
88
83
|
|
|
89
84
|
/**
|
|
90
|
-
*
|
|
85
|
+
* List all VMs
|
|
91
86
|
*
|
|
92
87
|
* @example
|
|
93
88
|
* ```ts
|
|
94
|
-
*
|
|
89
|
+
* // Automatically fetches more pages as needed.
|
|
90
|
+
* for await (const vm of client.compute.vms.list({
|
|
91
|
+
* project_id: 'project_id',
|
|
92
|
+
* })) {
|
|
93
|
+
* // ...
|
|
94
|
+
* }
|
|
95
95
|
* ```
|
|
96
96
|
*/
|
|
97
|
-
|
|
98
|
-
return this._client.
|
|
97
|
+
list(query: VMListParams, options?: RequestOptions): PagePromise<VMsCursor, VM> {
|
|
98
|
+
return this._client.getAPIList('/v1/compute/vms', Cursor<VM>, { query, ...options });
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/**
|
|
@@ -31,6 +31,20 @@ export class Volumes extends APIResource {
|
|
|
31
31
|
return this._client.post('/v1/compute/volumes', { body, ...options });
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Get a Volume.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const volume = await client.compute.volumes.get(
|
|
40
|
+
* 'volume_id',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
get(volumeID: string, options?: RequestOptions): APIPromise<Volume> {
|
|
45
|
+
return this._client.get(path`/v1/compute/volumes/${volumeID}`, options);
|
|
46
|
+
}
|
|
47
|
+
|
|
34
48
|
/**
|
|
35
49
|
* Update a Volume. Boot or data volumes can be updated.
|
|
36
50
|
*
|
|
@@ -49,6 +63,20 @@ export class Volumes extends APIResource {
|
|
|
49
63
|
return this._client.patch(path`/v1/compute/volumes/${volumeID}`, { body, ...options });
|
|
50
64
|
}
|
|
51
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Delete a Volume. Boot or data volumes can be deleted.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const operation = await client.compute.volumes.delete(
|
|
72
|
+
* 'volume_id',
|
|
73
|
+
* );
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
delete(volumeID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
77
|
+
return this._client.delete(path`/v1/compute/volumes/${volumeID}`, options);
|
|
78
|
+
}
|
|
79
|
+
|
|
52
80
|
/**
|
|
53
81
|
* List all volumes
|
|
54
82
|
*
|
|
@@ -66,20 +94,6 @@ export class Volumes extends APIResource {
|
|
|
66
94
|
return this._client.getAPIList('/v1/compute/volumes', Cursor<Volume>, { query, ...options });
|
|
67
95
|
}
|
|
68
96
|
|
|
69
|
-
/**
|
|
70
|
-
* Delete a Volume. Boot or data volumes can be deleted.
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```ts
|
|
74
|
-
* const operation = await client.compute.volumes.delete(
|
|
75
|
-
* 'volume_id',
|
|
76
|
-
* );
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
delete(volumeID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
80
|
-
return this._client.delete(path`/v1/compute/volumes/${volumeID}`, options);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
97
|
/**
|
|
84
98
|
* Attach a volume to a VM
|
|
85
99
|
*
|
|
@@ -112,20 +126,6 @@ export class Volumes extends APIResource {
|
|
|
112
126
|
detach(volumeID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
113
127
|
return this._client.post(path`/v1/compute/volumes/${volumeID}/detach`, options);
|
|
114
128
|
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Get a Volume.
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* ```ts
|
|
121
|
-
* const volume = await client.compute.volumes.get(
|
|
122
|
-
* 'volume_id',
|
|
123
|
-
* );
|
|
124
|
-
* ```
|
|
125
|
-
*/
|
|
126
|
-
get(volumeID: string, options?: RequestOptions): APIPromise<Volume> {
|
|
127
|
-
return this._client.get(path`/v1/compute/volumes/${volumeID}`, options);
|
|
128
|
-
}
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
export type VolumesCursor = Cursor<Volume>;
|
|
@@ -7,5 +7,5 @@ Types:
|
|
|
7
7
|
|
|
8
8
|
Methods:
|
|
9
9
|
|
|
10
|
-
- <code title="get /v1/instance_types">client.instanceTypes.<a href="./src/resources/instance-types.ts">list</a>({ ...params }) -> InstanceTypesCursor</code>
|
|
11
10
|
- <code title="get /v1/instance_types/{region}/{name}">client.instanceTypes.<a href="./src/resources/instance-types.ts">get</a>(name, { ...params }) -> InstanceType</code>
|
|
11
|
+
- <code title="get /v1/instance_types">client.instanceTypes.<a href="./src/resources/instance-types.ts">list</a>({ ...params }) -> InstanceTypesCursor</code>
|
|
@@ -8,6 +8,22 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
8
8
|
import { path } from '../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class InstanceTypes extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get an instance type by region and name
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const instanceType = await client.instanceTypes.get(
|
|
17
|
+
* 'n1-standard-8',
|
|
18
|
+
* { region: 'us-sva-2' },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
get(name: string, params: InstanceTypeGetParams, options?: RequestOptions): APIPromise<InstanceType> {
|
|
23
|
+
const { region } = params;
|
|
24
|
+
return this._client.get(path`/v1/instance_types/${region}/${name}`, options);
|
|
25
|
+
}
|
|
26
|
+
|
|
11
27
|
/**
|
|
12
28
|
* List instance types
|
|
13
29
|
*
|
|
@@ -25,22 +41,6 @@ export class InstanceTypes extends APIResource {
|
|
|
25
41
|
): PagePromise<InstanceTypesCursor, InstanceType> {
|
|
26
42
|
return this._client.getAPIList('/v1/instance_types', Cursor<InstanceType>, { query, ...options });
|
|
27
43
|
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Get an instance type by region and name
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* const instanceType = await client.instanceTypes.get(
|
|
35
|
-
* 'n1-standard-8',
|
|
36
|
-
* { region: 'us-sva-2' },
|
|
37
|
-
* );
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
get(name: string, params: InstanceTypeGetParams, options?: RequestOptions): APIPromise<InstanceType> {
|
|
41
|
-
const { region } = params;
|
|
42
|
-
return this._client.get(path`/v1/instance_types/${region}/${name}`, options);
|
|
43
|
-
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export type InstanceTypesCursor = Cursor<InstanceType>;
|
|
@@ -91,8 +91,6 @@ export interface InstanceTypeList {
|
|
|
91
91
|
pagination: Shared.Pagination;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
export interface InstanceTypeListParams extends CursorParams {}
|
|
95
|
-
|
|
96
94
|
export interface InstanceTypeGetParams {
|
|
97
95
|
/**
|
|
98
96
|
* Region name
|
|
@@ -100,12 +98,14 @@ export interface InstanceTypeGetParams {
|
|
|
100
98
|
region: 'us-sva-2';
|
|
101
99
|
}
|
|
102
100
|
|
|
101
|
+
export interface InstanceTypeListParams extends CursorParams {}
|
|
102
|
+
|
|
103
103
|
export declare namespace InstanceTypes {
|
|
104
104
|
export {
|
|
105
105
|
type InstanceType as InstanceType,
|
|
106
106
|
type InstanceTypeList as InstanceTypeList,
|
|
107
107
|
type InstanceTypesCursor as InstanceTypesCursor,
|
|
108
|
-
type InstanceTypeListParams as InstanceTypeListParams,
|
|
109
108
|
type InstanceTypeGetParams as InstanceTypeGetParams,
|
|
109
|
+
type InstanceTypeListParams as InstanceTypeListParams,
|
|
110
110
|
};
|
|
111
111
|
}
|
|
@@ -11,10 +11,10 @@ Types:
|
|
|
11
11
|
Methods:
|
|
12
12
|
|
|
13
13
|
- <code title="post /v1/networking/vpcs">client.networking.vpcs.<a href="./src/resources/networking/vpcs/vpcs.ts">create</a>({ ...params }) -> Operation</code>
|
|
14
|
+
- <code title="get /v1/networking/vpcs/{vpc_id}">client.networking.vpcs.<a href="./src/resources/networking/vpcs/vpcs.ts">get</a>(vpcID) -> VPC</code>
|
|
14
15
|
- <code title="patch /v1/networking/vpcs/{vpc_id}">client.networking.vpcs.<a href="./src/resources/networking/vpcs/vpcs.ts">update</a>(vpcID, { ...params }) -> Operation</code>
|
|
15
|
-
- <code title="get /v1/networking/vpcs">client.networking.vpcs.<a href="./src/resources/networking/vpcs/vpcs.ts">list</a>({ ...params }) -> VPCsCursor</code>
|
|
16
16
|
- <code title="delete /v1/networking/vpcs/{vpc_id}">client.networking.vpcs.<a href="./src/resources/networking/vpcs/vpcs.ts">delete</a>(vpcID) -> Operation</code>
|
|
17
|
-
- <code title="get /v1/networking/vpcs
|
|
17
|
+
- <code title="get /v1/networking/vpcs">client.networking.vpcs.<a href="./src/resources/networking/vpcs/vpcs.ts">list</a>({ ...params }) -> VPCsCursor</code>
|
|
18
18
|
|
|
19
19
|
### Availability
|
|
20
20
|
|
|
@@ -33,10 +33,10 @@ Types:
|
|
|
33
33
|
Methods:
|
|
34
34
|
|
|
35
35
|
- <code title="post /v1/networking/vpcs/{vpc_id}/firewall_rules">client.networking.firewallRules.<a href="./src/resources/networking/firewall-rules.ts">create</a>(vpcID, { ...params }) -> Operation</code>
|
|
36
|
+
- <code title="get /v1/networking/vpcs/{vpc_id}/firewall_rules/{firewall_rule_id}">client.networking.firewallRules.<a href="./src/resources/networking/firewall-rules.ts">get</a>(firewallRuleID, { ...params }) -> FirewallRule</code>
|
|
36
37
|
- <code title="patch /v1/networking/vpcs/{vpc_id}/firewall_rules/{firewall_rule_id}">client.networking.firewallRules.<a href="./src/resources/networking/firewall-rules.ts">update</a>(firewallRuleID, { ...params }) -> Operation</code>
|
|
37
|
-
- <code title="get /v1/networking/vpcs/{vpc_id}/firewall_rules">client.networking.firewallRules.<a href="./src/resources/networking/firewall-rules.ts">list</a>(vpcID, { ...params }) -> FirewallRulesCursor</code>
|
|
38
38
|
- <code title="delete /v1/networking/vpcs/{vpc_id}/firewall_rules/{firewall_rule_id}">client.networking.firewallRules.<a href="./src/resources/networking/firewall-rules.ts">delete</a>(firewallRuleID, { ...params }) -> Operation</code>
|
|
39
|
-
- <code title="get /v1/networking/vpcs/{vpc_id}/firewall_rules
|
|
39
|
+
- <code title="get /v1/networking/vpcs/{vpc_id}/firewall_rules">client.networking.firewallRules.<a href="./src/resources/networking/firewall-rules.ts">list</a>(vpcID, { ...params }) -> FirewallRulesCursor</code>
|
|
40
40
|
|
|
41
41
|
## Connect
|
|
42
42
|
|
|
@@ -55,10 +55,10 @@ Types:
|
|
|
55
55
|
Methods:
|
|
56
56
|
|
|
57
57
|
- <code title="post /v1/networking/connect/connections">client.networking.connect.connections.<a href="./src/resources/networking/connect/connections.ts">create</a>({ ...params }) -> Operation</code>
|
|
58
|
+
- <code title="get /v1/networking/connect/connections/{connection_id}">client.networking.connect.connections.<a href="./src/resources/networking/connect/connections.ts">get</a>(connectionID) -> ConnectConnection</code>
|
|
58
59
|
- <code title="patch /v1/networking/connect/connections/{connection_id}">client.networking.connect.connections.<a href="./src/resources/networking/connect/connections.ts">update</a>(connectionID, { ...params }) -> Operation</code>
|
|
59
|
-
- <code title="get /v1/networking/connect/connections">client.networking.connect.connections.<a href="./src/resources/networking/connect/connections.ts">list</a>({ ...params }) -> ConnectConnectionsCursor</code>
|
|
60
60
|
- <code title="delete /v1/networking/connect/connections/{connection_id}">client.networking.connect.connections.<a href="./src/resources/networking/connect/connections.ts">delete</a>(connectionID) -> Operation</code>
|
|
61
|
-
- <code title="get /v1/networking/connect/connections
|
|
61
|
+
- <code title="get /v1/networking/connect/connections">client.networking.connect.connections.<a href="./src/resources/networking/connect/connections.ts">list</a>({ ...params }) -> ConnectConnectionsCursor</code>
|
|
62
62
|
|
|
63
63
|
### Routes
|
|
64
64
|
|
|
@@ -31,6 +31,21 @@ export class Connections extends APIResource {
|
|
|
31
31
|
return this._client.post('/v1/networking/connect/connections', { body, ...options });
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Get Connect Connection details
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const connectConnection =
|
|
40
|
+
* await client.networking.connect.connections.get(
|
|
41
|
+
* 'connection_id',
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
get(connectionID: string, options?: RequestOptions): APIPromise<ConnectAPI.ConnectConnection> {
|
|
46
|
+
return this._client.get(path`/v1/networking/connect/connections/${connectionID}`, options);
|
|
47
|
+
}
|
|
48
|
+
|
|
34
49
|
/**
|
|
35
50
|
* Update Connect Connection details
|
|
36
51
|
*
|
|
@@ -50,6 +65,21 @@ export class Connections extends APIResource {
|
|
|
50
65
|
return this._client.patch(path`/v1/networking/connect/connections/${connectionID}`, { body, ...options });
|
|
51
66
|
}
|
|
52
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Delete Connect Connection
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const operation =
|
|
74
|
+
* await client.networking.connect.connections.delete(
|
|
75
|
+
* 'connection_id',
|
|
76
|
+
* );
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
delete(connectionID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
80
|
+
return this._client.delete(path`/v1/networking/connect/connections/${connectionID}`, options);
|
|
81
|
+
}
|
|
82
|
+
|
|
53
83
|
/**
|
|
54
84
|
* List all Connect Connections
|
|
55
85
|
*
|
|
@@ -73,36 +103,6 @@ export class Connections extends APIResource {
|
|
|
73
103
|
{ query, ...options },
|
|
74
104
|
);
|
|
75
105
|
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Delete Connect Connection
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* ```ts
|
|
82
|
-
* const operation =
|
|
83
|
-
* await client.networking.connect.connections.delete(
|
|
84
|
-
* 'connection_id',
|
|
85
|
-
* );
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
delete(connectionID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
89
|
-
return this._client.delete(path`/v1/networking/connect/connections/${connectionID}`, options);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Get Connect Connection details
|
|
94
|
-
*
|
|
95
|
-
* @example
|
|
96
|
-
* ```ts
|
|
97
|
-
* const connectConnection =
|
|
98
|
-
* await client.networking.connect.connections.get(
|
|
99
|
-
* 'connection_id',
|
|
100
|
-
* );
|
|
101
|
-
* ```
|
|
102
|
-
*/
|
|
103
|
-
get(connectionID: string, options?: RequestOptions): APIPromise<ConnectAPI.ConnectConnection> {
|
|
104
|
-
return this._client.get(path`/v1/networking/connect/connections/${connectionID}`, options);
|
|
105
|
-
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
export interface ConnectionCreateParams {
|
|
@@ -33,49 +33,46 @@ export class FirewallRules extends APIResource {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Get details about a firewall rule
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* ```ts
|
|
40
|
-
* const
|
|
41
|
-
* await client.networking.firewallRules.
|
|
40
|
+
* const firewallRule =
|
|
41
|
+
* await client.networking.firewallRules.get(
|
|
42
42
|
* 'firewall_rule_id',
|
|
43
43
|
* { vpc_id: 'vpc_id' },
|
|
44
44
|
* );
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
get(
|
|
48
48
|
firewallRuleID: string,
|
|
49
|
-
params:
|
|
49
|
+
params: FirewallRuleGetParams,
|
|
50
50
|
options?: RequestOptions,
|
|
51
|
-
): APIPromise<
|
|
52
|
-
const { vpc_id
|
|
53
|
-
return this._client.
|
|
54
|
-
body,
|
|
55
|
-
...options,
|
|
56
|
-
});
|
|
51
|
+
): APIPromise<FirewallRule> {
|
|
52
|
+
const { vpc_id } = params;
|
|
53
|
+
return this._client.get(path`/v1/networking/vpcs/${vpc_id}/firewall_rules/${firewallRuleID}`, options);
|
|
57
54
|
}
|
|
58
55
|
|
|
59
56
|
/**
|
|
60
|
-
*
|
|
57
|
+
* Update a firewall rule
|
|
61
58
|
*
|
|
62
59
|
* @example
|
|
63
60
|
* ```ts
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* }
|
|
61
|
+
* const operation =
|
|
62
|
+
* await client.networking.firewallRules.update(
|
|
63
|
+
* 'firewall_rule_id',
|
|
64
|
+
* { vpc_id: 'vpc_id' },
|
|
65
|
+
* );
|
|
70
66
|
* ```
|
|
71
67
|
*/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
update(
|
|
69
|
+
firewallRuleID: string,
|
|
70
|
+
params: FirewallRuleUpdateParams,
|
|
75
71
|
options?: RequestOptions,
|
|
76
|
-
):
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
): APIPromise<OperationsAPI.Operation> {
|
|
73
|
+
const { vpc_id, ...body } = params;
|
|
74
|
+
return this._client.patch(path`/v1/networking/vpcs/${vpc_id}/firewall_rules/${firewallRuleID}`, {
|
|
75
|
+
body,
|
|
79
76
|
...options,
|
|
80
77
|
});
|
|
81
78
|
}
|
|
@@ -102,24 +99,27 @@ export class FirewallRules extends APIResource {
|
|
|
102
99
|
}
|
|
103
100
|
|
|
104
101
|
/**
|
|
105
|
-
*
|
|
102
|
+
* List all firewall rules
|
|
106
103
|
*
|
|
107
104
|
* @example
|
|
108
105
|
* ```ts
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
106
|
+
* // Automatically fetches more pages as needed.
|
|
107
|
+
* for await (const firewallRule of client.networking.firewallRules.list(
|
|
108
|
+
* 'vpc_id',
|
|
109
|
+
* )) {
|
|
110
|
+
* // ...
|
|
111
|
+
* }
|
|
114
112
|
* ```
|
|
115
113
|
*/
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
114
|
+
list(
|
|
115
|
+
vpcID: string,
|
|
116
|
+
query: FirewallRuleListParams | null | undefined = {},
|
|
119
117
|
options?: RequestOptions,
|
|
120
|
-
):
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
): PagePromise<FirewallRulesCursor, FirewallRule> {
|
|
119
|
+
return this._client.getAPIList(path`/v1/networking/vpcs/${vpcID}/firewall_rules`, Cursor<FirewallRule>, {
|
|
120
|
+
query,
|
|
121
|
+
...options,
|
|
122
|
+
});
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
@@ -229,6 +229,13 @@ export interface FirewallRuleCreateParams {
|
|
|
229
229
|
tags?: Array<string>;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
+
export interface FirewallRuleGetParams {
|
|
233
|
+
/**
|
|
234
|
+
* VPC ID
|
|
235
|
+
*/
|
|
236
|
+
vpc_id: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
232
239
|
export interface FirewallRuleUpdateParams {
|
|
233
240
|
/**
|
|
234
241
|
* Path param: VPC ID
|
|
@@ -268,8 +275,6 @@ export interface FirewallRuleUpdateParams {
|
|
|
268
275
|
tags?: Array<string>;
|
|
269
276
|
}
|
|
270
277
|
|
|
271
|
-
export interface FirewallRuleListParams extends CursorParams {}
|
|
272
|
-
|
|
273
278
|
export interface FirewallRuleDeleteParams {
|
|
274
279
|
/**
|
|
275
280
|
* VPC ID
|
|
@@ -277,12 +282,7 @@ export interface FirewallRuleDeleteParams {
|
|
|
277
282
|
vpc_id: string;
|
|
278
283
|
}
|
|
279
284
|
|
|
280
|
-
export interface
|
|
281
|
-
/**
|
|
282
|
-
* VPC ID
|
|
283
|
-
*/
|
|
284
|
-
vpc_id: string;
|
|
285
|
-
}
|
|
285
|
+
export interface FirewallRuleListParams extends CursorParams {}
|
|
286
286
|
|
|
287
287
|
export declare namespace FirewallRules {
|
|
288
288
|
export {
|
|
@@ -290,9 +290,9 @@ export declare namespace FirewallRules {
|
|
|
290
290
|
type FirewallRuleList as FirewallRuleList,
|
|
291
291
|
type FirewallRulesCursor as FirewallRulesCursor,
|
|
292
292
|
type FirewallRuleCreateParams as FirewallRuleCreateParams,
|
|
293
|
+
type FirewallRuleGetParams as FirewallRuleGetParams,
|
|
293
294
|
type FirewallRuleUpdateParams as FirewallRuleUpdateParams,
|
|
294
|
-
type FirewallRuleListParams as FirewallRuleListParams,
|
|
295
295
|
type FirewallRuleDeleteParams as FirewallRuleDeleteParams,
|
|
296
|
-
type
|
|
296
|
+
type FirewallRuleListParams as FirewallRuleListParams,
|
|
297
297
|
};
|
|
298
298
|
}
|
|
@@ -17,10 +17,10 @@ export {
|
|
|
17
17
|
type FirewallRule,
|
|
18
18
|
type FirewallRuleList,
|
|
19
19
|
type FirewallRuleCreateParams,
|
|
20
|
+
type FirewallRuleGetParams,
|
|
20
21
|
type FirewallRuleUpdateParams,
|
|
21
|
-
type FirewallRuleListParams,
|
|
22
22
|
type FirewallRuleDeleteParams,
|
|
23
|
-
type
|
|
23
|
+
type FirewallRuleListParams,
|
|
24
24
|
type FirewallRulesCursor,
|
|
25
25
|
} from './firewall-rules';
|
|
26
26
|
export { Networking } from './networking';
|
|
@@ -64,10 +64,10 @@ export declare namespace Networking {
|
|
|
64
64
|
type FirewallRuleList as FirewallRuleList,
|
|
65
65
|
type FirewallRulesCursor as FirewallRulesCursor,
|
|
66
66
|
type FirewallRuleCreateParams as FirewallRuleCreateParams,
|
|
67
|
+
type FirewallRuleGetParams as FirewallRuleGetParams,
|
|
67
68
|
type FirewallRuleUpdateParams as FirewallRuleUpdateParams,
|
|
68
|
-
type FirewallRuleListParams as FirewallRuleListParams,
|
|
69
69
|
type FirewallRuleDeleteParams as FirewallRuleDeleteParams,
|
|
70
|
-
type
|
|
70
|
+
type FirewallRuleListParams as FirewallRuleListParams,
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
export {
|