@nirvana-labs/nirvana 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -6
- package/README.md +108 -50
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/{_shims/auto/runtime.js → api-promise.js} +3 -5
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +189 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +189 -0
- package/client.d.ts.map +1 -0
- package/client.js +481 -0
- package/client.js.map +1 -0
- package/client.mjs +454 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +47 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +47 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +84 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +80 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +47 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +47 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +1 -46
- package/error.d.ts.map +1 -1
- package/error.js +16 -110
- package/error.js.map +1 -1
- package/error.mjs +1 -96
- package/error.mjs.map +1 -1
- package/index.d.mts +6 -124
- package/index.d.mts.map +1 -0
- package/index.d.ts +5 -123
- package/index.d.ts.map +1 -1
- package/index.js +12 -116
- package/index.js.map +1 -1
- package/index.mjs +5 -89
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts +75 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +75 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +21 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +21 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +77 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +72 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +13 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +13 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +36 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +33 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +33 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +28 -0
- package/internal/shim-types.d.ts +28 -0
- package/internal/shims/crypto.d.mts +13 -0
- package/internal/shims/crypto.d.mts.map +1 -0
- package/internal/shims/crypto.d.ts +13 -0
- package/internal/shims/crypto.d.ts.map +1 -0
- package/internal/shims/crypto.js +13 -0
- package/internal/shims/crypto.js.map +1 -0
- package/internal/shims/crypto.mjs +9 -0
- package/internal/shims/crypto.mjs.map +1 -0
- package/internal/shims/file.d.mts +23 -0
- package/internal/shims/file.d.mts.map +1 -0
- package/internal/shims/file.d.ts +23 -0
- package/internal/shims/file.d.ts.map +1 -0
- package/internal/shims/file.js +16 -0
- package/internal/shims/file.js.map +1 -0
- package/internal/shims/file.mjs +12 -0
- package/internal/shims/file.mjs.map +1 -0
- package/internal/shims/getBuiltinModule.d.mts +11 -0
- package/internal/shims/getBuiltinModule.d.mts.map +1 -0
- package/internal/shims/getBuiltinModule.d.ts +11 -0
- package/internal/shims/getBuiltinModule.d.ts.map +1 -0
- package/internal/shims/getBuiltinModule.js +71 -0
- package/internal/shims/getBuiltinModule.js.map +1 -0
- package/internal/shims/getBuiltinModule.mjs +67 -0
- package/internal/shims/getBuiltinModule.mjs.map +1 -0
- package/internal/shims/nullGetBuiltinModule.d.mts +2 -0
- package/internal/shims/nullGetBuiltinModule.d.mts.map +1 -0
- package/internal/shims/nullGetBuiltinModule.d.ts +2 -0
- package/internal/shims/nullGetBuiltinModule.d.ts.map +1 -0
- package/internal/shims/nullGetBuiltinModule.js +5 -0
- package/internal/shims/nullGetBuiltinModule.js.map +1 -0
- package/internal/shims/nullGetBuiltinModule.mjs +2 -0
- package/internal/shims/nullGetBuiltinModule.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +93 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +46 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +46 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +87 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/types.d.mts +68 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +68 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +44 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +44 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +131 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +122 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +33 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +28 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +38 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +38 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +58 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +53 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +20 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +16 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +16 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +16 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +109 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +92 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/{_shims/auto/runtime-bun.js → internal/utils.js} +8 -5
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +106 -63
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +1 -5
- package/resource.d.ts.map +1 -1
- package/resource.js +16 -8
- package/resource.js.map +1 -1
- package/resource.mjs +1 -6
- package/resource.mjs.map +1 -1
- package/resources/api-keys.d.mts +93 -0
- package/resources/api-keys.d.mts.map +1 -0
- package/resources/api-keys.d.ts +8 -7
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +10 -8
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +10 -8
- package/resources/api-keys.mjs.map +1 -1
- package/resources/compute/compute.d.mts +14 -0
- package/resources/compute/compute.d.mts.map +1 -0
- package/resources/compute/compute.d.ts +1 -1
- package/resources/compute/compute.d.ts.map +1 -1
- package/resources/compute/compute.js +1 -1
- package/resources/compute/compute.js.map +1 -1
- package/resources/compute/compute.mjs +1 -1
- package/resources/compute/index.d.mts +4 -0
- package/resources/compute/index.d.mts.map +1 -0
- package/resources/compute/index.d.ts.map +1 -1
- package/resources/compute/vms/index.d.mts +4 -0
- package/resources/compute/vms/index.d.mts.map +1 -0
- package/resources/compute/vms/index.d.ts.map +1 -1
- package/resources/compute/vms/os-images.d.mts +15 -0
- package/resources/compute/vms/os-images.d.mts.map +1 -0
- package/resources/compute/vms/os-images.d.ts +4 -3
- package/resources/compute/vms/os-images.d.ts.map +1 -1
- package/resources/compute/vms/os-images.js +1 -1
- package/resources/compute/vms/os-images.js.map +1 -1
- package/resources/compute/vms/os-images.mjs +1 -1
- package/resources/compute/vms/os-images.mjs.map +1 -1
- package/resources/compute/vms/vms.d.mts +148 -0
- package/resources/compute/vms/vms.d.mts.map +1 -0
- package/resources/compute/vms/vms.d.ts +8 -7
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js +8 -7
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs +8 -7
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/vms/volumes.d.mts +11 -0
- package/resources/compute/vms/volumes.d.mts.map +1 -0
- package/resources/compute/vms/volumes.d.ts +4 -3
- package/resources/compute/vms/volumes.d.ts.map +1 -1
- package/resources/compute/vms/volumes.js +4 -3
- package/resources/compute/vms/volumes.js.map +1 -1
- package/resources/compute/vms/volumes.mjs +4 -3
- package/resources/compute/vms/volumes.mjs.map +1 -1
- package/resources/compute/vms.d.mts +2 -0
- package/resources/compute/vms.d.mts.map +1 -0
- package/resources/compute/vms.d.ts.map +1 -1
- package/resources/compute/volumes.d.mts +72 -0
- package/resources/compute/volumes.d.mts.map +1 -0
- package/resources/compute/volumes.d.ts +8 -7
- package/resources/compute/volumes.d.ts.map +1 -1
- package/resources/compute/volumes.js +8 -7
- package/resources/compute/volumes.js.map +1 -1
- package/resources/compute/volumes.mjs +8 -7
- package/resources/compute/volumes.mjs.map +1 -1
- package/resources/compute.d.mts +2 -0
- package/resources/compute.d.mts.map +1 -0
- package/resources/compute.d.ts.map +1 -1
- package/resources/index.d.mts +7 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/networking/firewall-rules.d.mts +100 -0
- package/resources/networking/firewall-rules.d.mts.map +1 -0
- package/resources/networking/firewall-rules.d.ts +38 -9
- package/resources/networking/firewall-rules.d.ts.map +1 -1
- package/resources/networking/firewall-rules.js +15 -11
- package/resources/networking/firewall-rules.js.map +1 -1
- package/resources/networking/firewall-rules.mjs +15 -11
- package/resources/networking/firewall-rules.mjs.map +1 -1
- package/resources/networking/index.d.mts +4 -0
- package/resources/networking/index.d.mts.map +1 -0
- package/resources/networking/index.d.ts +1 -1
- package/resources/networking/index.d.ts.map +1 -1
- package/resources/networking/index.js.map +1 -1
- package/resources/networking/index.mjs.map +1 -1
- package/resources/networking/networking.d.mts +14 -0
- package/resources/networking/networking.d.mts.map +1 -0
- package/resources/networking/networking.d.ts +3 -3
- package/resources/networking/networking.d.ts.map +1 -1
- package/resources/networking/networking.js +1 -1
- package/resources/networking/networking.js.map +1 -1
- package/resources/networking/networking.mjs +1 -1
- package/resources/networking/networking.mjs.map +1 -1
- package/resources/networking/vpcs.d.mts +69 -0
- package/resources/networking/vpcs.d.mts.map +1 -0
- package/resources/networking/vpcs.d.ts +8 -7
- package/resources/networking/vpcs.d.ts.map +1 -1
- package/resources/networking/vpcs.js +8 -7
- package/resources/networking/vpcs.js.map +1 -1
- package/resources/networking/vpcs.mjs +8 -7
- package/resources/networking/vpcs.mjs.map +1 -1
- package/resources/networking.d.mts +2 -0
- package/resources/networking.d.mts.map +1 -0
- package/resources/networking.d.ts.map +1 -1
- package/resources/operations.d.mts +35 -0
- package/resources/operations.d.mts.map +1 -0
- package/resources/operations.d.ts +5 -4
- package/resources/operations.d.ts.map +1 -1
- package/resources/operations.js +4 -3
- package/resources/operations.js.map +1 -1
- package/resources/operations.mjs +4 -3
- package/resources/operations.mjs.map +1 -1
- package/resources/shared.d.mts +3 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/user.d.mts +23 -0
- package/resources/user.d.mts.map +1 -0
- package/resources/user.d.ts +4 -3
- package/resources/user.d.ts.map +1 -1
- package/resources/user.js +1 -1
- package/resources/user.js.map +1 -1
- package/resources/user.mjs +1 -1
- package/resources/user.mjs.map +1 -1
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts.map +1 -1
- package/src/api-promise.ts +2 -0
- package/src/client.ts +707 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -130
- package/src/index.ts +5 -191
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +96 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +37 -0
- package/src/internal/shim-types.d.ts +28 -0
- package/src/internal/shims/crypto.ts +18 -0
- package/src/internal/shims/file.ts +32 -0
- package/src/internal/shims/getBuiltinModule.ts +66 -0
- package/src/internal/shims/nullGetBuiltinModule.ts +1 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +152 -0
- package/src/internal/types.ts +92 -0
- package/src/internal/uploads.ts +175 -0
- package/src/internal/utils/base64.ts +37 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +65 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +19 -0
- package/src/internal/utils/values.ts +102 -0
- package/src/internal/utils.ts +8 -0
- package/src/resource.ts +2 -11
- package/src/resources/api-keys.ts +14 -11
- package/src/resources/compute/compute.ts +1 -1
- package/src/resources/compute/vms/os-images.ts +4 -3
- package/src/resources/compute/vms/vms.ts +12 -14
- package/src/resources/compute/vms/volumes.ts +6 -4
- package/src/resources/compute/volumes.ts +14 -12
- package/src/resources/networking/firewall-rules.ts +63 -22
- package/src/resources/networking/index.ts +2 -0
- package/src/resources/networking/networking.ts +5 -1
- package/src/resources/networking/vpcs.ts +14 -12
- package/src/resources/operations.ts +7 -5
- package/src/resources/user.ts +4 -3
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +2 -255
- package/src/version.ts +1 -1
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +1 -74
- package/uploads.d.ts.map +1 -1
- package/uploads.js +16 -168
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -157
- package/uploads.mjs.map +1 -1
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js +0 -21
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js +0 -21
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -14
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -83
- package/_shims/index.js +0 -17
- package/_shims/index.mjs +0 -11
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -89
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -78
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -252
- package/core.d.ts.map +0 -1
- package/core.js +0 -917
- package/core.js.map +0 -1
- package/core.mjs +0 -885
- package/core.mjs.map +0 -1
- package/shims/node.d.ts +0 -30
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js +0 -31
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -5
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js +0 -31
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -5
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -83
- package/src/_shims/index.js +0 -17
- package/src/_shims/index.mjs +0 -11
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -81
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -67
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1228
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../resource.mjs";
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as OSImagesAPI from "./os-images.mjs";
|
|
4
4
|
import { OSImages } from "./os-images.mjs";
|
|
5
5
|
import * as VolumesAPI from "./volumes.mjs";
|
|
6
6
|
import { Volumes } from "./volumes.mjs";
|
|
7
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
7
8
|
export class VMs extends APIResource {
|
|
8
9
|
constructor() {
|
|
9
10
|
super(...arguments);
|
|
@@ -19,8 +20,8 @@ export class VMs extends APIResource {
|
|
|
19
20
|
/**
|
|
20
21
|
* Update a VM
|
|
21
22
|
*/
|
|
22
|
-
update(
|
|
23
|
-
return this._client.patch(`/v1/compute/vms/${
|
|
23
|
+
update(vmID, body, options) {
|
|
24
|
+
return this._client.patch(path `/v1/compute/vms/${vmID}`, { body, ...options });
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* List all VMs
|
|
@@ -31,14 +32,14 @@ export class VMs extends APIResource {
|
|
|
31
32
|
/**
|
|
32
33
|
* Delete a VM
|
|
33
34
|
*/
|
|
34
|
-
delete(
|
|
35
|
-
return this._client.delete(`/v1/compute/vms/${
|
|
35
|
+
delete(vmID, options) {
|
|
36
|
+
return this._client.delete(path `/v1/compute/vms/${vmID}`, options);
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
39
|
* Get details about a VM
|
|
39
40
|
*/
|
|
40
|
-
get(
|
|
41
|
-
return this._client.get(`/v1/compute/vms/${
|
|
41
|
+
get(vmID, options) {
|
|
42
|
+
return this._client.get(path `/v1/compute/vms/${vmID}`, options);
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
VMs.Volumes = Volumes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vms.mjs","sourceRoot":"","sources":["../../../src/resources/compute/vms/vms.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"vms.mjs","sourceRoot":"","sources":["../../../src/resources/compute/vms/vms.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,WAAW;OAChB,EAAuB,QAAQ,EAAE;OACjC,KAAK,UAAU;OACf,EAAE,OAAO,EAAE;OAGX,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,GAAI,SAAQ,WAAW;IAApC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoC1E,CAAC;IAlCC;;OAEG;IACH,MAAM,CAAC,IAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAY,EAAE,IAAoB,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,mBAAmB,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAY,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,mBAAmB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,IAAY,EAAE,OAAwB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF;AAsJD,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC;AACtB,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as VolumesAPI from "../volumes.mjs";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
|
+
export declare class Volumes extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List VM's Volumes
|
|
8
|
+
*/
|
|
9
|
+
list(vmID: string, options?: RequestOptions): APIPromise<VolumesAPI.VolumeList>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=volumes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumes.d.mts","sourceRoot":"","sources":["../../../src/resources/compute/vms/volumes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC;CAGhF"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { APIResource } from "../../../resource.js";
|
|
2
|
-
import * as Core from "../../../core.js";
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
3
2
|
import * as VolumesAPI from "../volumes.js";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
5
|
export declare class Volumes extends APIResource {
|
|
5
6
|
/**
|
|
6
7
|
* List VM's Volumes
|
|
7
8
|
*/
|
|
8
|
-
list(
|
|
9
|
+
list(vmID: string, options?: RequestOptions): APIPromise<VolumesAPI.VolumeList>;
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=volumes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumes.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/vms/volumes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"volumes.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/vms/volumes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC;CAGhF"}
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Volumes = void 0;
|
|
5
|
-
const resource_1 = require("../../../resource.js");
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
6
7
|
class Volumes extends resource_1.APIResource {
|
|
7
8
|
/**
|
|
8
9
|
* List VM's Volumes
|
|
9
10
|
*/
|
|
10
|
-
list(
|
|
11
|
-
return this._client.get(`/v1/compute/vms/${
|
|
11
|
+
list(vmID, options) {
|
|
12
|
+
return this._client.get((0, path_1.path) `/v1/compute/vms/${vmID}/volumes`, options);
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
exports.Volumes = Volumes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumes.js","sourceRoot":"","sources":["../../../src/resources/compute/vms/volumes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"volumes.js","sourceRoot":"","sources":["../../../src/resources/compute/vms/volumes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAoD;AAEpD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,IAAI,CAAC,IAAY,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,IAAI,UAAU,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AAPD,0BAOC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../resource.mjs";
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
3
4
|
export class Volumes extends APIResource {
|
|
4
5
|
/**
|
|
5
6
|
* List VM's Volumes
|
|
6
7
|
*/
|
|
7
|
-
list(
|
|
8
|
-
return this._client.get(`/v1/compute/vms/${
|
|
8
|
+
list(vmID, options) {
|
|
9
|
+
return this._client.get(path `/v1/compute/vms/${vmID}/volumes`, options);
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=volumes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumes.mjs","sourceRoot":"","sources":["../../../src/resources/compute/vms/volumes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"volumes.mjs","sourceRoot":"","sources":["../../../src/resources/compute/vms/volumes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CAAC,IAAY,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,IAAI,UAAU,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vms.d.mts","sourceRoot":"","sources":["../../src/resources/compute/vms.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vms.d.ts","sourceRoot":"","sources":["../../src/resources/compute/vms.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vms.d.ts","sourceRoot":"","sources":["../../src/resources/compute/vms.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as OperationsAPI from "../operations.mjs";
|
|
3
|
+
import * as Shared from "../shared.mjs";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
export declare class Volumes extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a Volume. Only data volumes can be created.
|
|
9
|
+
*/
|
|
10
|
+
create(body: VolumeCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
11
|
+
/**
|
|
12
|
+
* Update a Volume. Boot or data volumes can be updated.
|
|
13
|
+
*/
|
|
14
|
+
update(volumeID: string, body: VolumeUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
15
|
+
/**
|
|
16
|
+
* List all volumes
|
|
17
|
+
*/
|
|
18
|
+
list(options?: RequestOptions): APIPromise<VolumeList>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete a Volume. Boot or data volumes can be deleted.
|
|
21
|
+
*/
|
|
22
|
+
delete(volumeID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
23
|
+
/**
|
|
24
|
+
* Get a Volume.
|
|
25
|
+
*/
|
|
26
|
+
get(volumeID: string, options?: RequestOptions): APIPromise<Volume>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Storage type.
|
|
30
|
+
*/
|
|
31
|
+
export type StorageType = 'nvme';
|
|
32
|
+
/**
|
|
33
|
+
* Volume details.
|
|
34
|
+
*/
|
|
35
|
+
export interface Volume {
|
|
36
|
+
id: string;
|
|
37
|
+
created_at: string;
|
|
38
|
+
/**
|
|
39
|
+
* Volume kind.
|
|
40
|
+
*/
|
|
41
|
+
kind: VolumeKind;
|
|
42
|
+
name: string;
|
|
43
|
+
size: number;
|
|
44
|
+
status: Shared.ResourceStatus;
|
|
45
|
+
/**
|
|
46
|
+
* Storage type.
|
|
47
|
+
*/
|
|
48
|
+
type: StorageType;
|
|
49
|
+
updated_at: string;
|
|
50
|
+
vm_id: string | null;
|
|
51
|
+
vm_name: string | null;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Volume kind.
|
|
55
|
+
*/
|
|
56
|
+
export type VolumeKind = 'boot' | 'data';
|
|
57
|
+
export interface VolumeList {
|
|
58
|
+
items: Array<Volume>;
|
|
59
|
+
}
|
|
60
|
+
export interface VolumeCreateParams {
|
|
61
|
+
name: string;
|
|
62
|
+
size: number;
|
|
63
|
+
vm_id: string;
|
|
64
|
+
}
|
|
65
|
+
export interface VolumeUpdateParams {
|
|
66
|
+
name?: string;
|
|
67
|
+
size?: number;
|
|
68
|
+
}
|
|
69
|
+
export declare namespace Volumes {
|
|
70
|
+
export { type StorageType as StorageType, type Volume as Volume, type VolumeKind as VolumeKind, type VolumeList as VolumeList, type VolumeCreateParams as VolumeCreateParams, type VolumeUpdateParams as VolumeUpdateParams, };
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=volumes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumes.d.mts","sourceRoot":"","sources":["../../src/resources/compute/volumes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAI/F;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAItC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAItD;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAIvF;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAGpE;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IAEX,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;IAE9B;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAElB,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
3
2
|
import * as OperationsAPI from "../operations.js";
|
|
4
3
|
import * as Shared from "../shared.js";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
6
|
export declare class Volumes extends APIResource {
|
|
6
7
|
/**
|
|
7
8
|
* Create a Volume. Only data volumes can be created.
|
|
8
9
|
*/
|
|
9
|
-
create(body: VolumeCreateParams, options?:
|
|
10
|
+
create(body: VolumeCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
10
11
|
/**
|
|
11
12
|
* Update a Volume. Boot or data volumes can be updated.
|
|
12
13
|
*/
|
|
13
|
-
update(
|
|
14
|
+
update(volumeID: string, body: VolumeUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
14
15
|
/**
|
|
15
16
|
* List all volumes
|
|
16
17
|
*/
|
|
17
|
-
list(options?:
|
|
18
|
+
list(options?: RequestOptions): APIPromise<VolumeList>;
|
|
18
19
|
/**
|
|
19
20
|
* Delete a Volume. Boot or data volumes can be deleted.
|
|
20
21
|
*/
|
|
21
|
-
delete(
|
|
22
|
+
delete(volumeID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
22
23
|
/**
|
|
23
24
|
* Get a Volume.
|
|
24
25
|
*/
|
|
25
|
-
get(
|
|
26
|
+
get(volumeID: string, options?: RequestOptions): APIPromise<Volume>;
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* Storage type.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumes.d.ts","sourceRoot":"","sources":["../../src/resources/compute/volumes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"volumes.d.ts","sourceRoot":"","sources":["../../src/resources/compute/volumes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAI/F;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAItC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAItD;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAIvF;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAGpE;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IAEX,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;IAE9B;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAElB,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Volumes = void 0;
|
|
5
|
-
const resource_1 = require("../../resource.js");
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
6
7
|
class Volumes extends resource_1.APIResource {
|
|
7
8
|
/**
|
|
8
9
|
* Create a Volume. Only data volumes can be created.
|
|
@@ -13,8 +14,8 @@ class Volumes extends resource_1.APIResource {
|
|
|
13
14
|
/**
|
|
14
15
|
* Update a Volume. Boot or data volumes can be updated.
|
|
15
16
|
*/
|
|
16
|
-
update(
|
|
17
|
-
return this._client.patch(`/v1/compute/volumes/${
|
|
17
|
+
update(volumeID, body, options) {
|
|
18
|
+
return this._client.patch((0, path_1.path) `/v1/compute/volumes/${volumeID}`, { body, ...options });
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* List all volumes
|
|
@@ -25,14 +26,14 @@ class Volumes extends resource_1.APIResource {
|
|
|
25
26
|
/**
|
|
26
27
|
* Delete a Volume. Boot or data volumes can be deleted.
|
|
27
28
|
*/
|
|
28
|
-
delete(
|
|
29
|
-
return this._client.delete(`/v1/compute/volumes/${
|
|
29
|
+
delete(volumeID, options) {
|
|
30
|
+
return this._client.delete((0, path_1.path) `/v1/compute/volumes/${volumeID}`, options);
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
33
|
* Get a Volume.
|
|
33
34
|
*/
|
|
34
|
-
get(
|
|
35
|
-
return this._client.get(`/v1/compute/volumes/${
|
|
35
|
+
get(volumeID, options) {
|
|
36
|
+
return this._client.get((0, path_1.path) `/v1/compute/volumes/${volumeID}`, options);
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
exports.Volumes = Volumes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumes.js","sourceRoot":"","sources":["../../src/resources/compute/volumes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"volumes.js","sourceRoot":"","sources":["../../src/resources/compute/volumes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,uBAAuB,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,uBAAuB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,QAAgB,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AAvCD,0BAuCC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../resource.mjs";
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
3
4
|
export class Volumes extends APIResource {
|
|
4
5
|
/**
|
|
5
6
|
* Create a Volume. Only data volumes can be created.
|
|
@@ -10,8 +11,8 @@ export class Volumes extends APIResource {
|
|
|
10
11
|
/**
|
|
11
12
|
* Update a Volume. Boot or data volumes can be updated.
|
|
12
13
|
*/
|
|
13
|
-
update(
|
|
14
|
-
return this._client.patch(`/v1/compute/volumes/${
|
|
14
|
+
update(volumeID, body, options) {
|
|
15
|
+
return this._client.patch(path `/v1/compute/volumes/${volumeID}`, { body, ...options });
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
18
|
* List all volumes
|
|
@@ -22,14 +23,14 @@ export class Volumes extends APIResource {
|
|
|
22
23
|
/**
|
|
23
24
|
* Delete a Volume. Boot or data volumes can be deleted.
|
|
24
25
|
*/
|
|
25
|
-
delete(
|
|
26
|
-
return this._client.delete(`/v1/compute/volumes/${
|
|
26
|
+
delete(volumeID, options) {
|
|
27
|
+
return this._client.delete(path `/v1/compute/volumes/${volumeID}`, options);
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
30
|
* Get a Volume.
|
|
30
31
|
*/
|
|
31
|
-
get(
|
|
32
|
-
return this._client.get(`/v1/compute/volumes/${
|
|
32
|
+
get(volumeID, options) {
|
|
33
|
+
return this._client.get(path `/v1/compute/volumes/${volumeID}`, options);
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
//# sourceMappingURL=volumes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumes.mjs","sourceRoot":"","sources":["../../src/resources/compute/volumes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"volumes.mjs","sourceRoot":"","sources":["../../src/resources/compute/volumes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,uBAAuB,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uBAAuB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,QAAgB,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute.d.mts","sourceRoot":"","sources":["../src/resources/compute.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../src/resources/compute.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../src/resources/compute.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./shared.mjs";
|
|
2
|
+
export { APIKeys } from "./api-keys.mjs";
|
|
3
|
+
export { Compute } from "./compute/compute.mjs";
|
|
4
|
+
export { Networking } from "./networking/networking.mjs";
|
|
5
|
+
export { Operations } from "./operations.mjs";
|
|
6
|
+
export { UserResource } from "./user.mjs";
|
|
7
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,OAAO,EAAE;OACX,EAAE,OAAO,EAAE;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE"}
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,OAAO,EAAE;OACX,EAAE,OAAO,EAAE;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as OperationsAPI from "../operations.mjs";
|
|
3
|
+
import * as Shared from "../shared.mjs";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
export declare class FirewallRules extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a firewall rule
|
|
9
|
+
*/
|
|
10
|
+
create(vpcID: string, body: FirewallRuleCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
11
|
+
/**
|
|
12
|
+
* Update a firewall rule
|
|
13
|
+
*/
|
|
14
|
+
update(firewallRuleID: string, params: FirewallRuleUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
15
|
+
/**
|
|
16
|
+
* List all firewall rules
|
|
17
|
+
*/
|
|
18
|
+
list(vpcID: string, options?: RequestOptions): APIPromise<FirewallRuleList>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete a firewall rule
|
|
21
|
+
*/
|
|
22
|
+
delete(firewallRuleID: string, params: FirewallRuleDeleteParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
23
|
+
/**
|
|
24
|
+
* Get details about a firewall rule
|
|
25
|
+
*/
|
|
26
|
+
get(firewallRuleID: string, params: FirewallRuleGetParams, options?: RequestOptions): APIPromise<FirewallRule>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Firewall rule details.
|
|
30
|
+
*/
|
|
31
|
+
export interface FirewallRule {
|
|
32
|
+
id: string;
|
|
33
|
+
created_at: string;
|
|
34
|
+
destination_address: string;
|
|
35
|
+
destination_ports: Array<string>;
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* Supported Firewall Rule protocols.
|
|
39
|
+
*/
|
|
40
|
+
protocol: 'tcp' | 'udp';
|
|
41
|
+
source_address: string;
|
|
42
|
+
status: Shared.ResourceStatus;
|
|
43
|
+
updated_at: string;
|
|
44
|
+
vpc_id: string;
|
|
45
|
+
}
|
|
46
|
+
export interface FirewallRuleList {
|
|
47
|
+
items: Array<FirewallRule>;
|
|
48
|
+
}
|
|
49
|
+
export interface FirewallRuleCreateParams {
|
|
50
|
+
destination_address: string;
|
|
51
|
+
destination_ports: Array<string>;
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
* Supported Firewall Rule protocols.
|
|
55
|
+
*/
|
|
56
|
+
protocol: string;
|
|
57
|
+
source_address: string;
|
|
58
|
+
}
|
|
59
|
+
export interface FirewallRuleUpdateParams {
|
|
60
|
+
/**
|
|
61
|
+
* Path param: VPC ID
|
|
62
|
+
*/
|
|
63
|
+
vpc_id: string;
|
|
64
|
+
/**
|
|
65
|
+
* Body param:
|
|
66
|
+
*/
|
|
67
|
+
destination_address?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Body param:
|
|
70
|
+
*/
|
|
71
|
+
destination_ports?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Body param:
|
|
74
|
+
*/
|
|
75
|
+
name?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Body param: Supported Firewall Rule protocols.
|
|
78
|
+
*/
|
|
79
|
+
protocol?: 'tcp' | 'udp';
|
|
80
|
+
/**
|
|
81
|
+
* Body param:
|
|
82
|
+
*/
|
|
83
|
+
source_address?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface FirewallRuleDeleteParams {
|
|
86
|
+
/**
|
|
87
|
+
* VPC ID
|
|
88
|
+
*/
|
|
89
|
+
vpc_id: string;
|
|
90
|
+
}
|
|
91
|
+
export interface FirewallRuleGetParams {
|
|
92
|
+
/**
|
|
93
|
+
* VPC ID
|
|
94
|
+
*/
|
|
95
|
+
vpc_id: string;
|
|
96
|
+
}
|
|
97
|
+
export declare namespace FirewallRules {
|
|
98
|
+
export { type FirewallRule as FirewallRule, type FirewallRuleList as FirewallRuleList, type FirewallRuleCreateParams as FirewallRuleCreateParams, type FirewallRuleUpdateParams as FirewallRuleUpdateParams, type FirewallRuleDeleteParams as FirewallRuleDeleteParams, type FirewallRuleGetParams as FirewallRuleGetParams, };
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=firewall-rules.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firewall-rules.d.mts","sourceRoot":"","sources":["../../src/resources/networking/firewall-rules.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAItC;;OAEG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAQtC;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI3E;;OAEG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAKtC;;OAEG;IACH,GAAG,CACD,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC;CAI5B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IAEX,UAAU,EAAE,MAAM,CAAC;IAEnB,mBAAmB,EAAE,MAAM,CAAC;IAE5B,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEjC,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,KAAK,GAAG,KAAK,CAAC;IAExB,cAAc,EAAE,MAAM,CAAC;IAEvB,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;IAE9B,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAwB;IACvC,mBAAmB,EAAE,MAAM,CAAC;IAE5B,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEjC,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAElC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
3
2
|
import * as OperationsAPI from "../operations.js";
|
|
4
3
|
import * as Shared from "../shared.js";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
6
|
export declare class FirewallRules extends APIResource {
|
|
6
7
|
/**
|
|
7
8
|
* Create a firewall rule
|
|
8
9
|
*/
|
|
9
|
-
create(
|
|
10
|
+
create(vpcID: string, body: FirewallRuleCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
10
11
|
/**
|
|
11
12
|
* Update a firewall rule
|
|
12
13
|
*/
|
|
13
|
-
update(
|
|
14
|
+
update(firewallRuleID: string, params: FirewallRuleUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
14
15
|
/**
|
|
15
16
|
* List all firewall rules
|
|
16
17
|
*/
|
|
17
|
-
list(
|
|
18
|
+
list(vpcID: string, options?: RequestOptions): APIPromise<FirewallRuleList>;
|
|
18
19
|
/**
|
|
19
20
|
* Delete a firewall rule
|
|
20
21
|
*/
|
|
21
|
-
delete(
|
|
22
|
+
delete(firewallRuleID: string, params: FirewallRuleDeleteParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
22
23
|
/**
|
|
23
24
|
* Get details about a firewall rule
|
|
24
25
|
*/
|
|
25
|
-
get(
|
|
26
|
+
get(firewallRuleID: string, params: FirewallRuleGetParams, options?: RequestOptions): APIPromise<FirewallRule>;
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* Firewall rule details.
|
|
@@ -56,16 +57,44 @@ export interface FirewallRuleCreateParams {
|
|
|
56
57
|
source_address: string;
|
|
57
58
|
}
|
|
58
59
|
export interface FirewallRuleUpdateParams {
|
|
60
|
+
/**
|
|
61
|
+
* Path param: VPC ID
|
|
62
|
+
*/
|
|
63
|
+
vpc_id: string;
|
|
64
|
+
/**
|
|
65
|
+
* Body param:
|
|
66
|
+
*/
|
|
59
67
|
destination_address?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Body param:
|
|
70
|
+
*/
|
|
60
71
|
destination_ports?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Body param:
|
|
74
|
+
*/
|
|
61
75
|
name?: string;
|
|
62
76
|
/**
|
|
63
|
-
* Supported Firewall Rule protocols.
|
|
77
|
+
* Body param: Supported Firewall Rule protocols.
|
|
64
78
|
*/
|
|
65
79
|
protocol?: 'tcp' | 'udp';
|
|
80
|
+
/**
|
|
81
|
+
* Body param:
|
|
82
|
+
*/
|
|
66
83
|
source_address?: string;
|
|
67
84
|
}
|
|
85
|
+
export interface FirewallRuleDeleteParams {
|
|
86
|
+
/**
|
|
87
|
+
* VPC ID
|
|
88
|
+
*/
|
|
89
|
+
vpc_id: string;
|
|
90
|
+
}
|
|
91
|
+
export interface FirewallRuleGetParams {
|
|
92
|
+
/**
|
|
93
|
+
* VPC ID
|
|
94
|
+
*/
|
|
95
|
+
vpc_id: string;
|
|
96
|
+
}
|
|
68
97
|
export declare namespace FirewallRules {
|
|
69
|
-
export { type FirewallRule as FirewallRule, type FirewallRuleList as FirewallRuleList, type FirewallRuleCreateParams as FirewallRuleCreateParams, type FirewallRuleUpdateParams as FirewallRuleUpdateParams, };
|
|
98
|
+
export { type FirewallRule as FirewallRule, type FirewallRuleList as FirewallRuleList, type FirewallRuleCreateParams as FirewallRuleCreateParams, type FirewallRuleUpdateParams as FirewallRuleUpdateParams, type FirewallRuleDeleteParams as FirewallRuleDeleteParams, type FirewallRuleGetParams as FirewallRuleGetParams, };
|
|
70
99
|
}
|
|
71
100
|
//# sourceMappingURL=firewall-rules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firewall-rules.d.ts","sourceRoot":"","sources":["../../src/resources/networking/firewall-rules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"firewall-rules.d.ts","sourceRoot":"","sources":["../../src/resources/networking/firewall-rules.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAItC;;OAEG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAQtC;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI3E;;OAEG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAKtC;;OAEG;IACH,GAAG,CACD,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC;CAI5B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IAEX,UAAU,EAAE,MAAM,CAAC;IAEnB,mBAAmB,EAAE,MAAM,CAAC;IAE5B,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEjC,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,KAAK,GAAG,KAAK,CAAC;IAExB,cAAc,EAAE,MAAM,CAAC;IAEvB,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;IAE9B,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAwB;IACvC,mBAAmB,EAAE,MAAM,CAAC;IAE5B,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEjC,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAElC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|