@nebius/js-sdk 0.1.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/LICENSE +21 -0
- package/README.md +338 -0
- package/dist/cjs/__tests__/generator_basic.cases.d.ts +2 -0
- package/dist/cjs/__tests__/generator_basic.cases.d.ts.map +1 -0
- package/dist/cjs/__tests__/generator_basic.cases.js +596 -0
- package/dist/cjs/__tests__/generator_basic.cases.js.map +1 -0
- package/dist/cjs/__tests__/generator_cross.cases.d.ts +2 -0
- package/dist/cjs/__tests__/generator_cross.cases.d.ts.map +1 -0
- package/dist/cjs/__tests__/generator_cross.cases.js +448 -0
- package/dist/cjs/__tests__/generator_cross.cases.js.map +1 -0
- package/dist/cjs/__tests__/generator_extensions.cases.d.ts +2 -0
- package/dist/cjs/__tests__/generator_extensions.cases.d.ts.map +1 -0
- package/dist/cjs/__tests__/generator_extensions.cases.js +347 -0
- package/dist/cjs/__tests__/generator_extensions.cases.js.map +1 -0
- package/dist/cjs/__tests__/generator_registry.cases.d.ts +7 -0
- package/dist/cjs/__tests__/generator_registry.cases.d.ts.map +1 -0
- package/dist/cjs/__tests__/generator_registry.cases.js +35 -0
- package/dist/cjs/__tests__/generator_registry.cases.js.map +1 -0
- package/dist/cjs/__tests__/generator_sanitization.cases.d.ts +2 -0
- package/dist/cjs/__tests__/generator_sanitization.cases.d.ts.map +1 -0
- package/dist/cjs/__tests__/generator_sanitization.cases.js +62 -0
- package/dist/cjs/__tests__/generator_sanitization.cases.js.map +1 -0
- package/dist/cjs/__tests__/generator_shared.helpers.d.ts +21 -0
- package/dist/cjs/__tests__/generator_shared.helpers.d.ts.map +1 -0
- package/dist/cjs/__tests__/generator_shared.helpers.js +396 -0
- package/dist/cjs/__tests__/generator_shared.helpers.js.map +1 -0
- package/dist/cjs/api/buf/validate/index.d.ts +2681 -0
- package/dist/cjs/api/buf/validate/index.d.ts.map +1 -0
- package/dist/cjs/api/buf/validate/index.js +9586 -0
- package/dist/cjs/api/buf/validate/index.js.map +1 -0
- package/dist/cjs/api/google/protobuf/index.d.ts +1779 -0
- package/dist/cjs/api/google/protobuf/index.d.ts.map +1 -0
- package/dist/cjs/api/google/protobuf/index.js +7326 -0
- package/dist/cjs/api/google/protobuf/index.js.map +1 -0
- package/dist/cjs/api/google/rpc/index.d.ts +247 -0
- package/dist/cjs/api/google/rpc/index.d.ts.map +1 -0
- package/dist/cjs/api/google/rpc/index.js +366 -0
- package/dist/cjs/api/google/rpc/index.js.map +1 -0
- package/dist/cjs/api/nebius/applications/v1alpha1/index.d.ts +210 -0
- package/dist/cjs/api/nebius/applications/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/applications/v1alpha1/index.js +1421 -0
- package/dist/cjs/api/nebius/applications/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/nebius/audit/v2/index.d.ts +457 -0
- package/dist/cjs/api/nebius/audit/v2/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/audit/v2/index.js +2695 -0
- package/dist/cjs/api/nebius/audit/v2/index.js.map +1 -0
- package/dist/cjs/api/nebius/billing/v1alpha1/index.d.ts +262 -0
- package/dist/cjs/api/nebius/billing/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/billing/v1alpha1/index.js +1319 -0
- package/dist/cjs/api/nebius/billing/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/nebius/common/error/v1alpha1/index.d.ts +327 -0
- package/dist/cjs/api/nebius/common/error/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/common/error/v1alpha1/index.js +2050 -0
- package/dist/cjs/api/nebius/common/error/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/nebius/common/v1/index.d.ts +717 -0
- package/dist/cjs/api/nebius/common/v1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/common/v1/index.js +3971 -0
- package/dist/cjs/api/nebius/common/v1/index.js.map +1 -0
- package/dist/cjs/api/nebius/common/v1alpha1/index.d.ts +314 -0
- package/dist/cjs/api/nebius/common/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/common/v1alpha1/index.js +1154 -0
- package/dist/cjs/api/nebius/common/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/nebius/compute/v1/index.d.ts +2279 -0
- package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/compute/v1/index.js +12616 -0
- package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -0
- package/dist/cjs/api/nebius/compute/v1alpha1/index.d.ts +1430 -0
- package/dist/cjs/api/nebius/compute/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/compute/v1alpha1/index.js +8107 -0
- package/dist/cjs/api/nebius/compute/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/nebius/iam/v1/index.d.ts +4055 -0
- package/dist/cjs/api/nebius/iam/v1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/iam/v1/index.js +23617 -0
- package/dist/cjs/api/nebius/iam/v1/index.js.map +1 -0
- package/dist/cjs/api/nebius/iam/v2/index.d.ts +674 -0
- package/dist/cjs/api/nebius/iam/v2/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/iam/v2/index.js +3640 -0
- package/dist/cjs/api/nebius/iam/v2/index.js.map +1 -0
- package/dist/cjs/api/nebius/index.d.ts +257 -0
- package/dist/cjs/api/nebius/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/index.js +1667 -0
- package/dist/cjs/api/nebius/index.js.map +1 -0
- package/dist/cjs/api/nebius/logging/v1/agentmanager/index.d.ts +416 -0
- package/dist/cjs/api/nebius/logging/v1/agentmanager/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/logging/v1/agentmanager/index.js +1752 -0
- package/dist/cjs/api/nebius/logging/v1/agentmanager/index.js.map +1 -0
- package/dist/cjs/api/nebius/maintenance/v1alpha1/index.d.ts +281 -0
- package/dist/cjs/api/nebius/maintenance/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/maintenance/v1alpha1/index.js +1207 -0
- package/dist/cjs/api/nebius/maintenance/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts +1191 -0
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/mk8s/v1/index.js +6964 -0
- package/dist/cjs/api/nebius/mk8s/v1/index.js.map +1 -0
- package/dist/cjs/api/nebius/mk8s/v1alpha1/index.d.ts +1132 -0
- package/dist/cjs/api/nebius/mk8s/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/mk8s/v1alpha1/index.js +7189 -0
- package/dist/cjs/api/nebius/mk8s/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/nebius/msp/mlflow/v1alpha1/index.d.ts +349 -0
- package/dist/cjs/api/nebius/msp/mlflow/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/msp/mlflow/v1alpha1/index.js +1604 -0
- package/dist/cjs/api/nebius/msp/mlflow/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/nebius/msp/postgresql/v1alpha1/config/index.d.ts +46 -0
- package/dist/cjs/api/nebius/msp/postgresql/v1alpha1/config/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/msp/postgresql/v1alpha1/config/index.js +360 -0
- package/dist/cjs/api/nebius/msp/postgresql/v1alpha1/config/index.js.map +1 -0
- package/dist/cjs/api/nebius/msp/postgresql/v1alpha1/index.d.ts +875 -0
- package/dist/cjs/api/nebius/msp/postgresql/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/msp/postgresql/v1alpha1/index.js +3926 -0
- package/dist/cjs/api/nebius/msp/postgresql/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/nebius/msp/serverless/v1alpha1/index.d.ts +670 -0
- package/dist/cjs/api/nebius/msp/serverless/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/msp/serverless/v1alpha1/index.js +2975 -0
- package/dist/cjs/api/nebius/msp/serverless/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/nebius/msp/v1alpha1/index.d.ts +145 -0
- package/dist/cjs/api/nebius/msp/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/msp/v1alpha1/index.js +946 -0
- package/dist/cjs/api/nebius/msp/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/nebius/msp/v1alpha1/resource/index.d.ts +90 -0
- package/dist/cjs/api/nebius/msp/v1alpha1/resource/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/msp/v1alpha1/resource/index.js +1288 -0
- package/dist/cjs/api/nebius/msp/v1alpha1/resource/index.js.map +1 -0
- package/dist/cjs/api/nebius/mysterybox/v1/index.d.ts +826 -0
- package/dist/cjs/api/nebius/mysterybox/v1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/mysterybox/v1/index.js +3691 -0
- package/dist/cjs/api/nebius/mysterybox/v1/index.js.map +1 -0
- package/dist/cjs/api/nebius/quotas/v1/index.d.ts +299 -0
- package/dist/cjs/api/nebius/quotas/v1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/quotas/v1/index.js +1178 -0
- package/dist/cjs/api/nebius/quotas/v1/index.js.map +1 -0
- package/dist/cjs/api/nebius/registry/v1/index.d.ts +366 -0
- package/dist/cjs/api/nebius/registry/v1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/registry/v1/index.js +2146 -0
- package/dist/cjs/api/nebius/registry/v1/index.js.map +1 -0
- package/dist/cjs/api/nebius/storage/v1/index.d.ts +928 -0
- package/dist/cjs/api/nebius/storage/v1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/storage/v1/index.js +7811 -0
- package/dist/cjs/api/nebius/storage/v1/index.js.map +1 -0
- package/dist/cjs/api/nebius/storage/v1alpha1/index.d.ts +579 -0
- package/dist/cjs/api/nebius/storage/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/storage/v1alpha1/index.js +3554 -0
- package/dist/cjs/api/nebius/storage/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/nebius/vpc/v1/index.d.ts +2458 -0
- package/dist/cjs/api/nebius/vpc/v1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/vpc/v1/index.js +13277 -0
- package/dist/cjs/api/nebius/vpc/v1/index.js.map +1 -0
- package/dist/cjs/api/nebius/vpc/v1alpha1/index.d.ts +1493 -0
- package/dist/cjs/api/nebius/vpc/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/vpc/v1alpha1/index.js +8338 -0
- package/dist/cjs/api/nebius/vpc/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/protobuf.d.ts +3 -0
- package/dist/cjs/api/protobuf.d.ts.map +1 -0
- package/dist/cjs/api/protobuf.js +9 -0
- package/dist/cjs/api/protobuf.js.map +1 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +24 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/runtime/authorization/interceptor.d.ts +5 -0
- package/dist/cjs/runtime/authorization/interceptor.d.ts.map +1 -0
- package/dist/cjs/runtime/authorization/interceptor.js +120 -0
- package/dist/cjs/runtime/authorization/interceptor.js.map +1 -0
- package/dist/cjs/runtime/authorization/provider.d.ts +16 -0
- package/dist/cjs/runtime/authorization/provider.d.ts.map +1 -0
- package/dist/cjs/runtime/authorization/provider.js +3 -0
- package/dist/cjs/runtime/authorization/provider.js.map +1 -0
- package/dist/cjs/runtime/authorization/token.d.ts +23 -0
- package/dist/cjs/runtime/authorization/token.d.ts.map +1 -0
- package/dist/cjs/runtime/authorization/token.js +54 -0
- package/dist/cjs/runtime/authorization/token.js.map +1 -0
- package/dist/cjs/runtime/cli_config.d.ts +41 -0
- package/dist/cjs/runtime/cli_config.d.ts.map +1 -0
- package/dist/cjs/runtime/cli_config.js +331 -0
- package/dist/cjs/runtime/cli_config.js.map +1 -0
- package/dist/cjs/runtime/cli_config_interfaces.d.ts +21 -0
- package/dist/cjs/runtime/cli_config_interfaces.d.ts.map +1 -0
- package/dist/cjs/runtime/cli_config_interfaces.js +3 -0
- package/dist/cjs/runtime/cli_config_interfaces.js.map +1 -0
- package/dist/cjs/runtime/constants.d.ts +8 -0
- package/dist/cjs/runtime/constants.d.ts.map +1 -0
- package/dist/cjs/runtime/constants.js +12 -0
- package/dist/cjs/runtime/constants.js.map +1 -0
- package/dist/cjs/runtime/error.d.ts +18 -0
- package/dist/cjs/runtime/error.d.ts.map +1 -0
- package/dist/cjs/runtime/error.js +242 -0
- package/dist/cjs/runtime/error.js.map +1 -0
- package/dist/cjs/runtime/fieldmask.d.ts +68 -0
- package/dist/cjs/runtime/fieldmask.d.ts.map +1 -0
- package/dist/cjs/runtime/fieldmask.js +516 -0
- package/dist/cjs/runtime/fieldmask.js.map +1 -0
- package/dist/cjs/runtime/fieldmask_parser.d.ts +3 -0
- package/dist/cjs/runtime/fieldmask_parser.d.ts.map +1 -0
- package/dist/cjs/runtime/fieldmask_parser.js +173 -0
- package/dist/cjs/runtime/fieldmask_parser.js.map +1 -0
- package/dist/cjs/runtime/operation.d.ts +59 -0
- package/dist/cjs/runtime/operation.d.ts.map +1 -0
- package/dist/cjs/runtime/operation.js +122 -0
- package/dist/cjs/runtime/operation.js.map +1 -0
- package/dist/cjs/runtime/protos/any.d.ts +11 -0
- package/dist/cjs/runtime/protos/any.d.ts.map +1 -0
- package/dist/cjs/runtime/protos/any.js +43 -0
- package/dist/cjs/runtime/protos/any.js.map +1 -0
- package/dist/cjs/runtime/protos/base64.d.ts +3 -0
- package/dist/cjs/runtime/protos/base64.d.ts.map +1 -0
- package/dist/cjs/runtime/protos/base64.js +26 -0
- package/dist/cjs/runtime/protos/base64.js.map +1 -0
- package/dist/cjs/runtime/protos/core.d.ts +23 -0
- package/dist/cjs/runtime/protos/core.d.ts.map +1 -0
- package/dist/cjs/runtime/protos/core.js +28 -0
- package/dist/cjs/runtime/protos/core.js.map +1 -0
- package/dist/cjs/runtime/protos/enum.d.ts +31 -0
- package/dist/cjs/runtime/protos/enum.d.ts.map +1 -0
- package/dist/cjs/runtime/protos/enum.js +91 -0
- package/dist/cjs/runtime/protos/enum.js.map +1 -0
- package/dist/cjs/runtime/protos/fieldmask.d.ts +6 -0
- package/dist/cjs/runtime/protos/fieldmask.d.ts.map +1 -0
- package/dist/cjs/runtime/protos/fieldmask.js +37 -0
- package/dist/cjs/runtime/protos/fieldmask.js.map +1 -0
- package/dist/cjs/runtime/protos/index.d.ts +8 -0
- package/dist/cjs/runtime/protos/index.d.ts.map +1 -0
- package/dist/cjs/runtime/protos/index.js +20 -0
- package/dist/cjs/runtime/protos/index.js.map +1 -0
- package/dist/cjs/runtime/protos/long.d.ts +2 -0
- package/dist/cjs/runtime/protos/long.d.ts.map +1 -0
- package/dist/cjs/runtime/protos/long.js +3 -0
- package/dist/cjs/runtime/protos/long.js.map +1 -0
- package/dist/cjs/runtime/protos/registry.d.ts +83 -0
- package/dist/cjs/runtime/protos/registry.d.ts.map +1 -0
- package/dist/cjs/runtime/protos/registry.js +48 -0
- package/dist/cjs/runtime/protos/registry.js.map +1 -0
- package/dist/cjs/runtime/protos/values.d.ts +6 -0
- package/dist/cjs/runtime/protos/values.d.ts.map +1 -0
- package/dist/cjs/runtime/protos/values.js +162 -0
- package/dist/cjs/runtime/protos/values.js.map +1 -0
- package/dist/cjs/runtime/protos/wkt.d.ts +92 -0
- package/dist/cjs/runtime/protos/wkt.d.ts.map +1 -0
- package/dist/cjs/runtime/protos/wkt.js +276 -0
- package/dist/cjs/runtime/protos/wkt.js.map +1 -0
- package/dist/cjs/runtime/request.d.ts +49 -0
- package/dist/cjs/runtime/request.d.ts.map +1 -0
- package/dist/cjs/runtime/request.js +635 -0
- package/dist/cjs/runtime/request.js.map +1 -0
- package/dist/cjs/runtime/resetmask.d.ts +7 -0
- package/dist/cjs/runtime/resetmask.d.ts.map +1 -0
- package/dist/cjs/runtime/resetmask.js +142 -0
- package/dist/cjs/runtime/resetmask.js.map +1 -0
- package/dist/cjs/runtime/resolver.d.ts +73 -0
- package/dist/cjs/runtime/resolver.d.ts.map +1 -0
- package/dist/cjs/runtime/resolver.js +235 -0
- package/dist/cjs/runtime/resolver.js.map +1 -0
- package/dist/cjs/runtime/service_account/cached.d.ts +13 -0
- package/dist/cjs/runtime/service_account/cached.d.ts.map +1 -0
- package/dist/cjs/runtime/service_account/cached.js +33 -0
- package/dist/cjs/runtime/service_account/cached.js.map +1 -0
- package/dist/cjs/runtime/service_account/credentials_file.d.ts +16 -0
- package/dist/cjs/runtime/service_account/credentials_file.d.ts.map +1 -0
- package/dist/cjs/runtime/service_account/credentials_file.js +57 -0
- package/dist/cjs/runtime/service_account/credentials_file.js.map +1 -0
- package/dist/cjs/runtime/service_account/federated_credentials.d.ts +31 -0
- package/dist/cjs/runtime/service_account/federated_credentials.d.ts.map +1 -0
- package/dist/cjs/runtime/service_account/federated_credentials.js +95 -0
- package/dist/cjs/runtime/service_account/federated_credentials.js.map +1 -0
- package/dist/cjs/runtime/service_account/pk_file.d.ts +18 -0
- package/dist/cjs/runtime/service_account/pk_file.d.ts.map +1 -0
- package/dist/cjs/runtime/service_account/pk_file.js +43 -0
- package/dist/cjs/runtime/service_account/pk_file.js.map +1 -0
- package/dist/cjs/runtime/service_account/service_account.d.ts +22 -0
- package/dist/cjs/runtime/service_account/service_account.d.ts.map +1 -0
- package/dist/cjs/runtime/service_account/service_account.js +70 -0
- package/dist/cjs/runtime/service_account/service_account.js.map +1 -0
- package/dist/cjs/runtime/service_account/static.d.ts +13 -0
- package/dist/cjs/runtime/service_account/static.d.ts.map +1 -0
- package/dist/cjs/runtime/service_account/static.js +29 -0
- package/dist/cjs/runtime/service_account/static.js.map +1 -0
- package/dist/cjs/runtime/tls/system_certs.d.ts +15 -0
- package/dist/cjs/runtime/tls/system_certs.d.ts.map +1 -0
- package/dist/cjs/runtime/tls/system_certs.js +99 -0
- package/dist/cjs/runtime/tls/system_certs.js.map +1 -0
- package/dist/cjs/runtime/token/exchangeable.d.ts +26 -0
- package/dist/cjs/runtime/token/exchangeable.d.ts.map +1 -0
- package/dist/cjs/runtime/token/exchangeable.js +151 -0
- package/dist/cjs/runtime/token/exchangeable.js.map +1 -0
- package/dist/cjs/runtime/token/federated_credentials.d.ts +27 -0
- package/dist/cjs/runtime/token/federated_credentials.d.ts.map +1 -0
- package/dist/cjs/runtime/token/federated_credentials.js +76 -0
- package/dist/cjs/runtime/token/federated_credentials.js.map +1 -0
- package/dist/cjs/runtime/token/federation_account.d.ts +27 -0
- package/dist/cjs/runtime/token/federation_account.d.ts.map +1 -0
- package/dist/cjs/runtime/token/federation_account.js +47 -0
- package/dist/cjs/runtime/token/federation_account.js.map +1 -0
- package/dist/cjs/runtime/token/federation_bearer/auth.d.ts +42 -0
- package/dist/cjs/runtime/token/federation_bearer/auth.d.ts.map +1 -0
- package/dist/cjs/runtime/token/federation_bearer/auth.js +197 -0
- package/dist/cjs/runtime/token/federation_bearer/auth.js.map +1 -0
- package/dist/cjs/runtime/token/federation_bearer/constants.d.ts +3 -0
- package/dist/cjs/runtime/token/federation_bearer/constants.d.ts.map +1 -0
- package/dist/cjs/runtime/token/federation_bearer/constants.js +6 -0
- package/dist/cjs/runtime/token/federation_bearer/constants.js.map +1 -0
- package/dist/cjs/runtime/token/federation_bearer/index.d.ts +19 -0
- package/dist/cjs/runtime/token/federation_bearer/index.d.ts.map +1 -0
- package/dist/cjs/runtime/token/federation_bearer/index.js +120 -0
- package/dist/cjs/runtime/token/federation_bearer/index.js.map +1 -0
- package/dist/cjs/runtime/token/federation_bearer/is_wsl.d.ts +2 -0
- package/dist/cjs/runtime/token/federation_bearer/is_wsl.d.ts.map +1 -0
- package/dist/cjs/runtime/token/federation_bearer/is_wsl.js +14 -0
- package/dist/cjs/runtime/token/federation_bearer/is_wsl.js.map +1 -0
- package/dist/cjs/runtime/token/federation_bearer/pkce.d.ts +8 -0
- package/dist/cjs/runtime/token/federation_bearer/pkce.d.ts.map +1 -0
- package/dist/cjs/runtime/token/federation_bearer/pkce.js +30 -0
- package/dist/cjs/runtime/token/federation_bearer/pkce.js.map +1 -0
- package/dist/cjs/runtime/token/federation_bearer/server.d.ts +20 -0
- package/dist/cjs/runtime/token/federation_bearer/server.d.ts.map +1 -0
- package/dist/cjs/runtime/token/federation_bearer/server.js +132 -0
- package/dist/cjs/runtime/token/federation_bearer/server.js.map +1 -0
- package/dist/cjs/runtime/token/file.d.ts +11 -0
- package/dist/cjs/runtime/token/file.d.ts.map +1 -0
- package/dist/cjs/runtime/token/file.js +55 -0
- package/dist/cjs/runtime/token/file.js.map +1 -0
- package/dist/cjs/runtime/token/file_cache/async_renewable_bearer.d.ts +63 -0
- package/dist/cjs/runtime/token/file_cache/async_renewable_bearer.d.ts.map +1 -0
- package/dist/cjs/runtime/token/file_cache/async_renewable_bearer.js +452 -0
- package/dist/cjs/runtime/token/file_cache/async_renewable_bearer.js.map +1 -0
- package/dist/cjs/runtime/token/file_cache/file_bearer.d.ts +16 -0
- package/dist/cjs/runtime/token/file_cache/file_bearer.d.ts.map +1 -0
- package/dist/cjs/runtime/token/file_cache/file_bearer.js +65 -0
- package/dist/cjs/runtime/token/file_cache/file_bearer.js.map +1 -0
- package/dist/cjs/runtime/token/file_cache/renewable_bearer.d.ts +15 -0
- package/dist/cjs/runtime/token/file_cache/renewable_bearer.d.ts.map +1 -0
- package/dist/cjs/runtime/token/file_cache/renewable_bearer.js +135 -0
- package/dist/cjs/runtime/token/file_cache/renewable_bearer.js.map +1 -0
- package/dist/cjs/runtime/token/file_cache/throttled_token_cache.d.ts +22 -0
- package/dist/cjs/runtime/token/file_cache/throttled_token_cache.d.ts.map +1 -0
- package/dist/cjs/runtime/token/file_cache/throttled_token_cache.js +89 -0
- package/dist/cjs/runtime/token/file_cache/throttled_token_cache.js.map +1 -0
- package/dist/cjs/runtime/token/file_cache/token_cache.d.ts +24 -0
- package/dist/cjs/runtime/token/file_cache/token_cache.d.ts.map +1 -0
- package/dist/cjs/runtime/token/file_cache/token_cache.js +316 -0
- package/dist/cjs/runtime/token/file_cache/token_cache.js.map +1 -0
- package/dist/cjs/runtime/token/renewable.d.ts +59 -0
- package/dist/cjs/runtime/token/renewable.d.ts.map +1 -0
- package/dist/cjs/runtime/token/renewable.js +393 -0
- package/dist/cjs/runtime/token/renewable.js.map +1 -0
- package/dist/cjs/runtime/token/service_account.d.ts +28 -0
- package/dist/cjs/runtime/token/service_account.d.ts.map +1 -0
- package/dist/cjs/runtime/token/service_account.js +95 -0
- package/dist/cjs/runtime/token/service_account.js.map +1 -0
- package/dist/cjs/runtime/token/static.d.ts +17 -0
- package/dist/cjs/runtime/token/static.d.ts.map +1 -0
- package/dist/cjs/runtime/token/static.js +69 -0
- package/dist/cjs/runtime/token/static.js.map +1 -0
- package/dist/cjs/runtime/token.d.ts +52 -0
- package/dist/cjs/runtime/token.d.ts.map +1 -0
- package/dist/cjs/runtime/token.js +135 -0
- package/dist/cjs/runtime/token.js.map +1 -0
- package/dist/cjs/runtime/token_sanitizer.d.ts +31 -0
- package/dist/cjs/runtime/token_sanitizer.d.ts.map +1 -0
- package/dist/cjs/runtime/token_sanitizer.js +94 -0
- package/dist/cjs/runtime/token_sanitizer.js.map +1 -0
- package/dist/cjs/runtime/util/cancelable.d.ts +25 -0
- package/dist/cjs/runtime/util/cancelable.d.ts.map +1 -0
- package/dist/cjs/runtime/util/cancelable.js +130 -0
- package/dist/cjs/runtime/util/cancelable.js.map +1 -0
- package/dist/cjs/runtime/util/logging.d.ts +146 -0
- package/dist/cjs/runtime/util/logging.d.ts.map +1 -0
- package/dist/cjs/runtime/util/logging.js +865 -0
- package/dist/cjs/runtime/util/logging.js.map +1 -0
- package/dist/cjs/runtime/util/path.d.ts +2 -0
- package/dist/cjs/runtime/util/path.d.ts.map +1 -0
- package/dist/cjs/runtime/util/path.js +22 -0
- package/dist/cjs/runtime/util/path.js.map +1 -0
- package/dist/cjs/sdk.d.ts +98 -0
- package/dist/cjs/sdk.d.ts.map +1 -0
- package/dist/cjs/sdk.js +543 -0
- package/dist/cjs/sdk.js.map +1 -0
- package/dist/cjs/test/setup.d.ts +1 -0
- package/dist/cjs/test/setup.d.ts.map +1 -0
- package/dist/cjs/test/setup.js +24 -0
- package/dist/cjs/test/setup.js.map +1 -0
- package/dist/cjs/version.d.ts +2 -0
- package/dist/cjs/version.d.ts.map +1 -0
- package/dist/cjs/version.js +6 -0
- package/dist/cjs/version.js.map +1 -0
- package/dist/esm/__tests__/generator_basic.cases.d.ts +2 -0
- package/dist/esm/__tests__/generator_basic.cases.d.ts.map +1 -0
- package/dist/esm/__tests__/generator_basic.cases.js +4 -0
- package/dist/esm/__tests__/generator_cross.cases.d.ts +2 -0
- package/dist/esm/__tests__/generator_cross.cases.d.ts.map +1 -0
- package/dist/esm/__tests__/generator_cross.cases.js +4 -0
- package/dist/esm/__tests__/generator_extensions.cases.d.ts +2 -0
- package/dist/esm/__tests__/generator_extensions.cases.d.ts.map +1 -0
- package/dist/esm/__tests__/generator_extensions.cases.js +4 -0
- package/dist/esm/__tests__/generator_registry.cases.d.ts +7 -0
- package/dist/esm/__tests__/generator_registry.cases.d.ts.map +1 -0
- package/dist/esm/__tests__/generator_registry.cases.js +4 -0
- package/dist/esm/__tests__/generator_sanitization.cases.d.ts +2 -0
- package/dist/esm/__tests__/generator_sanitization.cases.d.ts.map +1 -0
- package/dist/esm/__tests__/generator_sanitization.cases.js +4 -0
- package/dist/esm/__tests__/generator_shared.helpers.d.ts +21 -0
- package/dist/esm/__tests__/generator_shared.helpers.d.ts.map +1 -0
- package/dist/esm/__tests__/generator_shared.helpers.js +4 -0
- package/dist/esm/api/buf/validate/index.d.ts +2681 -0
- package/dist/esm/api/buf/validate/index.d.ts.map +1 -0
- package/dist/esm/api/buf/validate/index.js +4 -0
- package/dist/esm/api/google/protobuf/index.d.ts +1779 -0
- package/dist/esm/api/google/protobuf/index.d.ts.map +1 -0
- package/dist/esm/api/google/protobuf/index.js +4 -0
- package/dist/esm/api/google/rpc/index.d.ts +247 -0
- package/dist/esm/api/google/rpc/index.d.ts.map +1 -0
- package/dist/esm/api/google/rpc/index.js +4 -0
- package/dist/esm/api/nebius/applications/v1alpha1/index.d.ts +210 -0
- package/dist/esm/api/nebius/applications/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/applications/v1alpha1/index.js +4 -0
- package/dist/esm/api/nebius/audit/v2/index.d.ts +457 -0
- package/dist/esm/api/nebius/audit/v2/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/audit/v2/index.js +4 -0
- package/dist/esm/api/nebius/billing/v1alpha1/index.d.ts +262 -0
- package/dist/esm/api/nebius/billing/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/billing/v1alpha1/index.js +4 -0
- package/dist/esm/api/nebius/common/error/v1alpha1/index.d.ts +327 -0
- package/dist/esm/api/nebius/common/error/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/common/error/v1alpha1/index.js +4 -0
- package/dist/esm/api/nebius/common/v1/index.d.ts +717 -0
- package/dist/esm/api/nebius/common/v1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/common/v1/index.js +4 -0
- package/dist/esm/api/nebius/common/v1alpha1/index.d.ts +314 -0
- package/dist/esm/api/nebius/common/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/common/v1alpha1/index.js +4 -0
- package/dist/esm/api/nebius/compute/v1/index.d.ts +2279 -0
- package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/compute/v1/index.js +4 -0
- package/dist/esm/api/nebius/compute/v1alpha1/index.d.ts +1430 -0
- package/dist/esm/api/nebius/compute/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/compute/v1alpha1/index.js +4 -0
- package/dist/esm/api/nebius/iam/v1/index.d.ts +4055 -0
- package/dist/esm/api/nebius/iam/v1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/iam/v1/index.js +4 -0
- package/dist/esm/api/nebius/iam/v2/index.d.ts +674 -0
- package/dist/esm/api/nebius/iam/v2/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/iam/v2/index.js +4 -0
- package/dist/esm/api/nebius/index.d.ts +257 -0
- package/dist/esm/api/nebius/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/index.js +4 -0
- package/dist/esm/api/nebius/logging/v1/agentmanager/index.d.ts +416 -0
- package/dist/esm/api/nebius/logging/v1/agentmanager/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/logging/v1/agentmanager/index.js +4 -0
- package/dist/esm/api/nebius/maintenance/v1alpha1/index.d.ts +281 -0
- package/dist/esm/api/nebius/maintenance/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/maintenance/v1alpha1/index.js +4 -0
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts +1191 -0
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/mk8s/v1/index.js +4 -0
- package/dist/esm/api/nebius/mk8s/v1alpha1/index.d.ts +1132 -0
- package/dist/esm/api/nebius/mk8s/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/mk8s/v1alpha1/index.js +4 -0
- package/dist/esm/api/nebius/msp/mlflow/v1alpha1/index.d.ts +349 -0
- package/dist/esm/api/nebius/msp/mlflow/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/msp/mlflow/v1alpha1/index.js +4 -0
- package/dist/esm/api/nebius/msp/postgresql/v1alpha1/config/index.d.ts +46 -0
- package/dist/esm/api/nebius/msp/postgresql/v1alpha1/config/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/msp/postgresql/v1alpha1/config/index.js +4 -0
- package/dist/esm/api/nebius/msp/postgresql/v1alpha1/index.d.ts +875 -0
- package/dist/esm/api/nebius/msp/postgresql/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/msp/postgresql/v1alpha1/index.js +4 -0
- package/dist/esm/api/nebius/msp/serverless/v1alpha1/index.d.ts +670 -0
- package/dist/esm/api/nebius/msp/serverless/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/msp/serverless/v1alpha1/index.js +4 -0
- package/dist/esm/api/nebius/msp/v1alpha1/index.d.ts +145 -0
- package/dist/esm/api/nebius/msp/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/msp/v1alpha1/index.js +4 -0
- package/dist/esm/api/nebius/msp/v1alpha1/resource/index.d.ts +90 -0
- package/dist/esm/api/nebius/msp/v1alpha1/resource/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/msp/v1alpha1/resource/index.js +4 -0
- package/dist/esm/api/nebius/mysterybox/v1/index.d.ts +826 -0
- package/dist/esm/api/nebius/mysterybox/v1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/mysterybox/v1/index.js +4 -0
- package/dist/esm/api/nebius/quotas/v1/index.d.ts +299 -0
- package/dist/esm/api/nebius/quotas/v1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/quotas/v1/index.js +4 -0
- package/dist/esm/api/nebius/registry/v1/index.d.ts +366 -0
- package/dist/esm/api/nebius/registry/v1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/registry/v1/index.js +4 -0
- package/dist/esm/api/nebius/storage/v1/index.d.ts +928 -0
- package/dist/esm/api/nebius/storage/v1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/storage/v1/index.js +4 -0
- package/dist/esm/api/nebius/storage/v1alpha1/index.d.ts +579 -0
- package/dist/esm/api/nebius/storage/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/storage/v1alpha1/index.js +4 -0
- package/dist/esm/api/nebius/vpc/v1/index.d.ts +2458 -0
- package/dist/esm/api/nebius/vpc/v1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/vpc/v1/index.js +4 -0
- package/dist/esm/api/nebius/vpc/v1alpha1/index.d.ts +1493 -0
- package/dist/esm/api/nebius/vpc/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/vpc/v1alpha1/index.js +4 -0
- package/dist/esm/api/protobuf.d.ts +3 -0
- package/dist/esm/api/protobuf.d.ts.map +1 -0
- package/dist/esm/api/protobuf.js +4 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/runtime/authorization/interceptor.d.ts +5 -0
- package/dist/esm/runtime/authorization/interceptor.d.ts.map +1 -0
- package/dist/esm/runtime/authorization/interceptor.js +4 -0
- package/dist/esm/runtime/authorization/provider.d.ts +16 -0
- package/dist/esm/runtime/authorization/provider.d.ts.map +1 -0
- package/dist/esm/runtime/authorization/provider.js +4 -0
- package/dist/esm/runtime/authorization/token.d.ts +23 -0
- package/dist/esm/runtime/authorization/token.d.ts.map +1 -0
- package/dist/esm/runtime/authorization/token.js +4 -0
- package/dist/esm/runtime/cli_config.d.ts +41 -0
- package/dist/esm/runtime/cli_config.d.ts.map +1 -0
- package/dist/esm/runtime/cli_config.js +4 -0
- package/dist/esm/runtime/cli_config_interfaces.d.ts +21 -0
- package/dist/esm/runtime/cli_config_interfaces.d.ts.map +1 -0
- package/dist/esm/runtime/cli_config_interfaces.js +4 -0
- package/dist/esm/runtime/constants.d.ts +8 -0
- package/dist/esm/runtime/constants.d.ts.map +1 -0
- package/dist/esm/runtime/constants.js +4 -0
- package/dist/esm/runtime/error.d.ts +18 -0
- package/dist/esm/runtime/error.d.ts.map +1 -0
- package/dist/esm/runtime/error.js +4 -0
- package/dist/esm/runtime/fieldmask.d.ts +68 -0
- package/dist/esm/runtime/fieldmask.d.ts.map +1 -0
- package/dist/esm/runtime/fieldmask.js +4 -0
- package/dist/esm/runtime/fieldmask_parser.d.ts +3 -0
- package/dist/esm/runtime/fieldmask_parser.d.ts.map +1 -0
- package/dist/esm/runtime/fieldmask_parser.js +4 -0
- package/dist/esm/runtime/operation.d.ts +59 -0
- package/dist/esm/runtime/operation.d.ts.map +1 -0
- package/dist/esm/runtime/operation.js +4 -0
- package/dist/esm/runtime/protos/any.d.ts +11 -0
- package/dist/esm/runtime/protos/any.d.ts.map +1 -0
- package/dist/esm/runtime/protos/any.js +4 -0
- package/dist/esm/runtime/protos/base64.d.ts +3 -0
- package/dist/esm/runtime/protos/base64.d.ts.map +1 -0
- package/dist/esm/runtime/protos/base64.js +4 -0
- package/dist/esm/runtime/protos/core.d.ts +23 -0
- package/dist/esm/runtime/protos/core.d.ts.map +1 -0
- package/dist/esm/runtime/protos/core.js +4 -0
- package/dist/esm/runtime/protos/enum.d.ts +31 -0
- package/dist/esm/runtime/protos/enum.d.ts.map +1 -0
- package/dist/esm/runtime/protos/enum.js +4 -0
- package/dist/esm/runtime/protos/fieldmask.d.ts +6 -0
- package/dist/esm/runtime/protos/fieldmask.d.ts.map +1 -0
- package/dist/esm/runtime/protos/fieldmask.js +4 -0
- package/dist/esm/runtime/protos/index.d.ts +8 -0
- package/dist/esm/runtime/protos/index.d.ts.map +1 -0
- package/dist/esm/runtime/protos/index.js +4 -0
- package/dist/esm/runtime/protos/long.d.ts +2 -0
- package/dist/esm/runtime/protos/long.d.ts.map +1 -0
- package/dist/esm/runtime/protos/long.js +4 -0
- package/dist/esm/runtime/protos/registry.d.ts +83 -0
- package/dist/esm/runtime/protos/registry.d.ts.map +1 -0
- package/dist/esm/runtime/protos/registry.js +4 -0
- package/dist/esm/runtime/protos/values.d.ts +6 -0
- package/dist/esm/runtime/protos/values.d.ts.map +1 -0
- package/dist/esm/runtime/protos/values.js +4 -0
- package/dist/esm/runtime/protos/wkt.d.ts +92 -0
- package/dist/esm/runtime/protos/wkt.d.ts.map +1 -0
- package/dist/esm/runtime/protos/wkt.js +4 -0
- package/dist/esm/runtime/request.d.ts +49 -0
- package/dist/esm/runtime/request.d.ts.map +1 -0
- package/dist/esm/runtime/request.js +4 -0
- package/dist/esm/runtime/resetmask.d.ts +7 -0
- package/dist/esm/runtime/resetmask.d.ts.map +1 -0
- package/dist/esm/runtime/resetmask.js +4 -0
- package/dist/esm/runtime/resolver.d.ts +73 -0
- package/dist/esm/runtime/resolver.d.ts.map +1 -0
- package/dist/esm/runtime/resolver.js +4 -0
- package/dist/esm/runtime/service_account/cached.d.ts +13 -0
- package/dist/esm/runtime/service_account/cached.d.ts.map +1 -0
- package/dist/esm/runtime/service_account/cached.js +4 -0
- package/dist/esm/runtime/service_account/credentials_file.d.ts +16 -0
- package/dist/esm/runtime/service_account/credentials_file.d.ts.map +1 -0
- package/dist/esm/runtime/service_account/credentials_file.js +4 -0
- package/dist/esm/runtime/service_account/federated_credentials.d.ts +31 -0
- package/dist/esm/runtime/service_account/federated_credentials.d.ts.map +1 -0
- package/dist/esm/runtime/service_account/federated_credentials.js +4 -0
- package/dist/esm/runtime/service_account/pk_file.d.ts +18 -0
- package/dist/esm/runtime/service_account/pk_file.d.ts.map +1 -0
- package/dist/esm/runtime/service_account/pk_file.js +4 -0
- package/dist/esm/runtime/service_account/service_account.d.ts +22 -0
- package/dist/esm/runtime/service_account/service_account.d.ts.map +1 -0
- package/dist/esm/runtime/service_account/service_account.js +4 -0
- package/dist/esm/runtime/service_account/static.d.ts +13 -0
- package/dist/esm/runtime/service_account/static.d.ts.map +1 -0
- package/dist/esm/runtime/service_account/static.js +4 -0
- package/dist/esm/runtime/tls/system_certs.d.ts +15 -0
- package/dist/esm/runtime/tls/system_certs.d.ts.map +1 -0
- package/dist/esm/runtime/tls/system_certs.js +4 -0
- package/dist/esm/runtime/token/exchangeable.d.ts +26 -0
- package/dist/esm/runtime/token/exchangeable.d.ts.map +1 -0
- package/dist/esm/runtime/token/exchangeable.js +4 -0
- package/dist/esm/runtime/token/federated_credentials.d.ts +27 -0
- package/dist/esm/runtime/token/federated_credentials.d.ts.map +1 -0
- package/dist/esm/runtime/token/federated_credentials.js +4 -0
- package/dist/esm/runtime/token/federation_account.d.ts +27 -0
- package/dist/esm/runtime/token/federation_account.d.ts.map +1 -0
- package/dist/esm/runtime/token/federation_account.js +4 -0
- package/dist/esm/runtime/token/federation_bearer/auth.d.ts +42 -0
- package/dist/esm/runtime/token/federation_bearer/auth.d.ts.map +1 -0
- package/dist/esm/runtime/token/federation_bearer/auth.js +4 -0
- package/dist/esm/runtime/token/federation_bearer/constants.d.ts +3 -0
- package/dist/esm/runtime/token/federation_bearer/constants.d.ts.map +1 -0
- package/dist/esm/runtime/token/federation_bearer/constants.js +4 -0
- package/dist/esm/runtime/token/federation_bearer/index.d.ts +19 -0
- package/dist/esm/runtime/token/federation_bearer/index.d.ts.map +1 -0
- package/dist/esm/runtime/token/federation_bearer/index.js +4 -0
- package/dist/esm/runtime/token/federation_bearer/is_wsl.d.ts +2 -0
- package/dist/esm/runtime/token/federation_bearer/is_wsl.d.ts.map +1 -0
- package/dist/esm/runtime/token/federation_bearer/is_wsl.js +4 -0
- package/dist/esm/runtime/token/federation_bearer/pkce.d.ts +8 -0
- package/dist/esm/runtime/token/federation_bearer/pkce.d.ts.map +1 -0
- package/dist/esm/runtime/token/federation_bearer/pkce.js +4 -0
- package/dist/esm/runtime/token/federation_bearer/server.d.ts +20 -0
- package/dist/esm/runtime/token/federation_bearer/server.d.ts.map +1 -0
- package/dist/esm/runtime/token/federation_bearer/server.js +4 -0
- package/dist/esm/runtime/token/file.d.ts +11 -0
- package/dist/esm/runtime/token/file.d.ts.map +1 -0
- package/dist/esm/runtime/token/file.js +4 -0
- package/dist/esm/runtime/token/file_cache/async_renewable_bearer.d.ts +63 -0
- package/dist/esm/runtime/token/file_cache/async_renewable_bearer.d.ts.map +1 -0
- package/dist/esm/runtime/token/file_cache/async_renewable_bearer.js +4 -0
- package/dist/esm/runtime/token/file_cache/file_bearer.d.ts +16 -0
- package/dist/esm/runtime/token/file_cache/file_bearer.d.ts.map +1 -0
- package/dist/esm/runtime/token/file_cache/file_bearer.js +4 -0
- package/dist/esm/runtime/token/file_cache/renewable_bearer.d.ts +15 -0
- package/dist/esm/runtime/token/file_cache/renewable_bearer.d.ts.map +1 -0
- package/dist/esm/runtime/token/file_cache/renewable_bearer.js +4 -0
- package/dist/esm/runtime/token/file_cache/throttled_token_cache.d.ts +22 -0
- package/dist/esm/runtime/token/file_cache/throttled_token_cache.d.ts.map +1 -0
- package/dist/esm/runtime/token/file_cache/throttled_token_cache.js +4 -0
- package/dist/esm/runtime/token/file_cache/token_cache.d.ts +24 -0
- package/dist/esm/runtime/token/file_cache/token_cache.d.ts.map +1 -0
- package/dist/esm/runtime/token/file_cache/token_cache.js +4 -0
- package/dist/esm/runtime/token/renewable.d.ts +59 -0
- package/dist/esm/runtime/token/renewable.d.ts.map +1 -0
- package/dist/esm/runtime/token/renewable.js +4 -0
- package/dist/esm/runtime/token/service_account.d.ts +28 -0
- package/dist/esm/runtime/token/service_account.d.ts.map +1 -0
- package/dist/esm/runtime/token/service_account.js +4 -0
- package/dist/esm/runtime/token/static.d.ts +17 -0
- package/dist/esm/runtime/token/static.d.ts.map +1 -0
- package/dist/esm/runtime/token/static.js +4 -0
- package/dist/esm/runtime/token.d.ts +52 -0
- package/dist/esm/runtime/token.d.ts.map +1 -0
- package/dist/esm/runtime/token.js +4 -0
- package/dist/esm/runtime/token_sanitizer.d.ts +31 -0
- package/dist/esm/runtime/token_sanitizer.d.ts.map +1 -0
- package/dist/esm/runtime/token_sanitizer.js +4 -0
- package/dist/esm/runtime/util/cancelable.d.ts +25 -0
- package/dist/esm/runtime/util/cancelable.d.ts.map +1 -0
- package/dist/esm/runtime/util/cancelable.js +4 -0
- package/dist/esm/runtime/util/logging.d.ts +146 -0
- package/dist/esm/runtime/util/logging.d.ts.map +1 -0
- package/dist/esm/runtime/util/logging.js +4 -0
- package/dist/esm/runtime/util/path.d.ts +2 -0
- package/dist/esm/runtime/util/path.d.ts.map +1 -0
- package/dist/esm/runtime/util/path.js +4 -0
- package/dist/esm/sdk.d.ts +98 -0
- package/dist/esm/sdk.d.ts.map +1 -0
- package/dist/esm/sdk.js +4 -0
- package/dist/esm/test/setup.d.ts +1 -0
- package/dist/esm/test/setup.d.ts.map +1 -0
- package/dist/esm/test/setup.js +4 -0
- package/dist/esm/version.d.ts +2 -0
- package/dist/esm/version.d.ts.map +1 -0
- package/dist/esm/version.js +4 -0
- package/package.json +121 -0
|
@@ -0,0 +1,3971 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Generated by Nebius TS generator. DO NOT EDIT! */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RecurrentResourceEvent = exports.ResourceEvent = exports.ResourceEvent_Level = exports.Operation_RequestHeader = exports.Operation = exports.OperationService = exports.OperationServiceBaseClient = exports.OperationServiceServiceDescription = exports.ListOperationsResponse = exports.ListOperationsRequest = exports.GetOperationRequest = exports.GetByNameRequest = exports.ResourceMetadata = exports.NotEnoughResources_Violation = exports.NotEnoughResources = exports.QuotaFailure_Violation = exports.QuotaFailure = exports.TooManyRequests = exports.InternalError = exports.PermissionDenied = exports.OutOfRange = exports.OperationAborted = exports.ResourceConflict = exports.ResourceAlreadyExists = exports.ResourceNotFound = exports.BadResourceState = exports.BadRequest_Violation = exports.BadRequest = exports.ServiceError = exports.ServiceError_RetryType = void 0;
|
|
5
|
+
const index_1 = require("../../../../runtime/protos/index");
|
|
6
|
+
const util_1 = require("util");
|
|
7
|
+
const protobuf_1 = require("../../../protobuf");
|
|
8
|
+
const logging_1 = require("../../../../runtime/util/logging");
|
|
9
|
+
const grpc_js_1 = require("@grpc/grpc-js");
|
|
10
|
+
const request_1 = require("../../../../runtime/request");
|
|
11
|
+
const operation_1 = require("../../../../runtime/operation");
|
|
12
|
+
const rpc_1 = require("../../../google/rpc");
|
|
13
|
+
const __deprecatedWarned = new Set();
|
|
14
|
+
const ServiceError_RetryType_VALUE_COMMENTS = {
|
|
15
|
+
CALL: " Just retry the failed call.\n",
|
|
16
|
+
UNIT_OF_WORK: " Retry whole logic before call and make a new one.\n",
|
|
17
|
+
NOTHING: " Do not retry, this is a fatal error.\n",
|
|
18
|
+
};
|
|
19
|
+
exports.ServiceError_RetryType = (0, index_1.createEnum)("nebius.common.v1.ServiceError.RetryType", {
|
|
20
|
+
UNSPECIFIED: 0,
|
|
21
|
+
/**
|
|
22
|
+
* Just retry the failed call.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
CALL: 1,
|
|
26
|
+
/**
|
|
27
|
+
* Retry whole logic before call and make a new one.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
UNIT_OF_WORK: 2,
|
|
31
|
+
/**
|
|
32
|
+
* Do not retry, this is a fatal error.
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
NOTHING: 3,
|
|
36
|
+
}, ServiceError_RetryType_VALUE_COMMENTS);
|
|
37
|
+
protobuf_1.protoRegistry.registerEnum(exports.ServiceError_RetryType);
|
|
38
|
+
exports.ServiceError = {
|
|
39
|
+
$type: "nebius.common.v1.ServiceError",
|
|
40
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
41
|
+
if (message.service !== "") {
|
|
42
|
+
writer.uint32(10).string(message.service);
|
|
43
|
+
}
|
|
44
|
+
if (message.code !== "") {
|
|
45
|
+
writer.uint32(18).string(message.code);
|
|
46
|
+
}
|
|
47
|
+
if ((message.retryType ?? exports.ServiceError_RetryType.UNSPECIFIED) !== exports.ServiceError_RetryType.UNSPECIFIED) {
|
|
48
|
+
exports.ServiceError_RetryType.encodeField(writer, 30, message.retryType);
|
|
49
|
+
}
|
|
50
|
+
if (message.details?.$case === undefined) { /* noop */ }
|
|
51
|
+
else if (message.details?.$case === "badRequest") {
|
|
52
|
+
const w = writer.uint32(802).fork();
|
|
53
|
+
exports.BadRequest.encode(message.details.badRequest, w);
|
|
54
|
+
w.join();
|
|
55
|
+
}
|
|
56
|
+
else if (message.details?.$case === "badResourceState") {
|
|
57
|
+
const w = writer.uint32(882).fork();
|
|
58
|
+
exports.BadResourceState.encode(message.details.badResourceState, w);
|
|
59
|
+
w.join();
|
|
60
|
+
}
|
|
61
|
+
else if (message.details?.$case === "resourceNotFound") {
|
|
62
|
+
const w = writer.uint32(890).fork();
|
|
63
|
+
exports.ResourceNotFound.encode(message.details.resourceNotFound, w);
|
|
64
|
+
w.join();
|
|
65
|
+
}
|
|
66
|
+
else if (message.details?.$case === "resourceAlreadyExists") {
|
|
67
|
+
const w = writer.uint32(898).fork();
|
|
68
|
+
exports.ResourceAlreadyExists.encode(message.details.resourceAlreadyExists, w);
|
|
69
|
+
w.join();
|
|
70
|
+
}
|
|
71
|
+
else if (message.details?.$case === "outOfRange") {
|
|
72
|
+
const w = writer.uint32(906).fork();
|
|
73
|
+
exports.OutOfRange.encode(message.details.outOfRange, w);
|
|
74
|
+
w.join();
|
|
75
|
+
}
|
|
76
|
+
else if (message.details?.$case === "permissionDenied") {
|
|
77
|
+
const w = writer.uint32(962).fork();
|
|
78
|
+
exports.PermissionDenied.encode(message.details.permissionDenied, w);
|
|
79
|
+
w.join();
|
|
80
|
+
}
|
|
81
|
+
else if (message.details?.$case === "resourceConflict") {
|
|
82
|
+
const w = writer.uint32(1042).fork();
|
|
83
|
+
exports.ResourceConflict.encode(message.details.resourceConflict, w);
|
|
84
|
+
w.join();
|
|
85
|
+
}
|
|
86
|
+
else if (message.details?.$case === "operationAborted") {
|
|
87
|
+
const w = writer.uint32(1050).fork();
|
|
88
|
+
exports.OperationAborted.encode(message.details.operationAborted, w);
|
|
89
|
+
w.join();
|
|
90
|
+
}
|
|
91
|
+
else if (message.details?.$case === "tooManyRequests") {
|
|
92
|
+
const w = writer.uint32(1122).fork();
|
|
93
|
+
exports.TooManyRequests.encode(message.details.tooManyRequests, w);
|
|
94
|
+
w.join();
|
|
95
|
+
}
|
|
96
|
+
else if (message.details?.$case === "quotaFailure") {
|
|
97
|
+
const w = writer.uint32(1130).fork();
|
|
98
|
+
exports.QuotaFailure.encode(message.details.quotaFailure, w);
|
|
99
|
+
w.join();
|
|
100
|
+
}
|
|
101
|
+
else if (message.details?.$case === "notEnoughResources") {
|
|
102
|
+
const w = writer.uint32(1138).fork();
|
|
103
|
+
exports.NotEnoughResources.encode(message.details.notEnoughResources, w);
|
|
104
|
+
w.join();
|
|
105
|
+
}
|
|
106
|
+
else if (message.details?.$case === "internalError") {
|
|
107
|
+
const w = writer.uint32(7994).fork();
|
|
108
|
+
exports.InternalError.encode(message.details.internalError, w);
|
|
109
|
+
w.join();
|
|
110
|
+
}
|
|
111
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
112
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
113
|
+
}
|
|
114
|
+
return writer;
|
|
115
|
+
},
|
|
116
|
+
decode(input, length) {
|
|
117
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
118
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
119
|
+
const message = createBaseServiceError();
|
|
120
|
+
let writer = undefined;
|
|
121
|
+
while (reader.pos < end) {
|
|
122
|
+
const tag = reader.uint32();
|
|
123
|
+
switch (tag >>> 3) {
|
|
124
|
+
case 1: {
|
|
125
|
+
if (tag !== 10)
|
|
126
|
+
break;
|
|
127
|
+
message.service = reader.string();
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
case 2: {
|
|
131
|
+
if (tag !== 18)
|
|
132
|
+
break;
|
|
133
|
+
message.code = reader.string();
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
case 30: {
|
|
137
|
+
if (tag !== 240)
|
|
138
|
+
break;
|
|
139
|
+
message.retryType = exports.ServiceError_RetryType.fromNumber(reader.int32());
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
case 100: {
|
|
143
|
+
if (tag !== 802)
|
|
144
|
+
break;
|
|
145
|
+
message.details = {
|
|
146
|
+
$case: "badRequest",
|
|
147
|
+
badRequest: exports.BadRequest.decode(reader, reader.uint32())
|
|
148
|
+
};
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
case 110: {
|
|
152
|
+
if (tag !== 882)
|
|
153
|
+
break;
|
|
154
|
+
message.details = {
|
|
155
|
+
$case: "badResourceState",
|
|
156
|
+
badResourceState: exports.BadResourceState.decode(reader, reader.uint32())
|
|
157
|
+
};
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
case 111: {
|
|
161
|
+
if (tag !== 890)
|
|
162
|
+
break;
|
|
163
|
+
message.details = {
|
|
164
|
+
$case: "resourceNotFound",
|
|
165
|
+
resourceNotFound: exports.ResourceNotFound.decode(reader, reader.uint32())
|
|
166
|
+
};
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
case 112: {
|
|
170
|
+
if (tag !== 898)
|
|
171
|
+
break;
|
|
172
|
+
message.details = {
|
|
173
|
+
$case: "resourceAlreadyExists",
|
|
174
|
+
resourceAlreadyExists: exports.ResourceAlreadyExists.decode(reader, reader.uint32())
|
|
175
|
+
};
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
case 113: {
|
|
179
|
+
if (tag !== 906)
|
|
180
|
+
break;
|
|
181
|
+
message.details = {
|
|
182
|
+
$case: "outOfRange",
|
|
183
|
+
outOfRange: exports.OutOfRange.decode(reader, reader.uint32())
|
|
184
|
+
};
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
case 120: {
|
|
188
|
+
if (tag !== 962)
|
|
189
|
+
break;
|
|
190
|
+
message.details = {
|
|
191
|
+
$case: "permissionDenied",
|
|
192
|
+
permissionDenied: exports.PermissionDenied.decode(reader, reader.uint32())
|
|
193
|
+
};
|
|
194
|
+
continue;
|
|
195
|
+
}
|
|
196
|
+
case 130: {
|
|
197
|
+
if (tag !== 1042)
|
|
198
|
+
break;
|
|
199
|
+
message.details = {
|
|
200
|
+
$case: "resourceConflict",
|
|
201
|
+
resourceConflict: exports.ResourceConflict.decode(reader, reader.uint32())
|
|
202
|
+
};
|
|
203
|
+
continue;
|
|
204
|
+
}
|
|
205
|
+
case 131: {
|
|
206
|
+
if (tag !== 1050)
|
|
207
|
+
break;
|
|
208
|
+
message.details = {
|
|
209
|
+
$case: "operationAborted",
|
|
210
|
+
operationAborted: exports.OperationAborted.decode(reader, reader.uint32())
|
|
211
|
+
};
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
214
|
+
case 140: {
|
|
215
|
+
if (tag !== 1122)
|
|
216
|
+
break;
|
|
217
|
+
message.details = {
|
|
218
|
+
$case: "tooManyRequests",
|
|
219
|
+
tooManyRequests: exports.TooManyRequests.decode(reader, reader.uint32())
|
|
220
|
+
};
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
case 141: {
|
|
224
|
+
if (tag !== 1130)
|
|
225
|
+
break;
|
|
226
|
+
message.details = {
|
|
227
|
+
$case: "quotaFailure",
|
|
228
|
+
quotaFailure: exports.QuotaFailure.decode(reader, reader.uint32())
|
|
229
|
+
};
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
case 142: {
|
|
233
|
+
if (tag !== 1138)
|
|
234
|
+
break;
|
|
235
|
+
message.details = {
|
|
236
|
+
$case: "notEnoughResources",
|
|
237
|
+
notEnoughResources: exports.NotEnoughResources.decode(reader, reader.uint32())
|
|
238
|
+
};
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
case 999: {
|
|
242
|
+
if (tag !== 7994)
|
|
243
|
+
break;
|
|
244
|
+
message.details = {
|
|
245
|
+
$case: "internalError",
|
|
246
|
+
internalError: exports.InternalError.decode(reader, reader.uint32())
|
|
247
|
+
};
|
|
248
|
+
continue;
|
|
249
|
+
}
|
|
250
|
+
default:
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
{
|
|
257
|
+
if (!writer)
|
|
258
|
+
writer = new index_1.BinaryWriter();
|
|
259
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
260
|
+
writer.uint32(tag).raw(skipped);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
if (writer) {
|
|
264
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
265
|
+
}
|
|
266
|
+
return message;
|
|
267
|
+
},
|
|
268
|
+
fromJSON(object) {
|
|
269
|
+
return applyServiceErrorCustom({
|
|
270
|
+
$type: "nebius.common.v1.ServiceError",
|
|
271
|
+
service: (0, index_1.isSet)(object.service ?? object.service)
|
|
272
|
+
? String(object.service ?? object.service)
|
|
273
|
+
: "",
|
|
274
|
+
code: (0, index_1.isSet)(object.code ?? object.code)
|
|
275
|
+
? String(object.code ?? object.code)
|
|
276
|
+
: "",
|
|
277
|
+
retryType: (0, index_1.isSet)(object.retryType ?? object.retry_type)
|
|
278
|
+
? exports.ServiceError_RetryType.fromJSON(object.retryType ?? object.retry_type)
|
|
279
|
+
: exports.ServiceError_RetryType.UNSPECIFIED,
|
|
280
|
+
details: (() => {
|
|
281
|
+
if ((0, index_1.isSet)(object.badRequest) || (0, index_1.isSet)(object.bad_request)) {
|
|
282
|
+
return {
|
|
283
|
+
$case: "badRequest",
|
|
284
|
+
badRequest: exports.BadRequest.fromJSON(object.badRequest ?? object.bad_request)
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
if ((0, index_1.isSet)(object.badResourceState) || (0, index_1.isSet)(object.bad_resource_state)) {
|
|
288
|
+
return {
|
|
289
|
+
$case: "badResourceState",
|
|
290
|
+
badResourceState: exports.BadResourceState.fromJSON(object.badResourceState ?? object.bad_resource_state)
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
if ((0, index_1.isSet)(object.resourceNotFound) || (0, index_1.isSet)(object.resource_not_found)) {
|
|
294
|
+
return {
|
|
295
|
+
$case: "resourceNotFound",
|
|
296
|
+
resourceNotFound: exports.ResourceNotFound.fromJSON(object.resourceNotFound ?? object.resource_not_found)
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
if ((0, index_1.isSet)(object.resourceAlreadyExists) || (0, index_1.isSet)(object.resource_already_exists)) {
|
|
300
|
+
return {
|
|
301
|
+
$case: "resourceAlreadyExists",
|
|
302
|
+
resourceAlreadyExists: exports.ResourceAlreadyExists.fromJSON(object.resourceAlreadyExists ?? object.resource_already_exists)
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
if ((0, index_1.isSet)(object.outOfRange) || (0, index_1.isSet)(object.out_of_range)) {
|
|
306
|
+
return {
|
|
307
|
+
$case: "outOfRange",
|
|
308
|
+
outOfRange: exports.OutOfRange.fromJSON(object.outOfRange ?? object.out_of_range)
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
if ((0, index_1.isSet)(object.permissionDenied) || (0, index_1.isSet)(object.permission_denied)) {
|
|
312
|
+
return {
|
|
313
|
+
$case: "permissionDenied",
|
|
314
|
+
permissionDenied: exports.PermissionDenied.fromJSON(object.permissionDenied ?? object.permission_denied)
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
if ((0, index_1.isSet)(object.resourceConflict) || (0, index_1.isSet)(object.resource_conflict)) {
|
|
318
|
+
return {
|
|
319
|
+
$case: "resourceConflict",
|
|
320
|
+
resourceConflict: exports.ResourceConflict.fromJSON(object.resourceConflict ?? object.resource_conflict)
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
if ((0, index_1.isSet)(object.operationAborted) || (0, index_1.isSet)(object.operation_aborted)) {
|
|
324
|
+
return {
|
|
325
|
+
$case: "operationAborted",
|
|
326
|
+
operationAborted: exports.OperationAborted.fromJSON(object.operationAborted ?? object.operation_aborted)
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
if ((0, index_1.isSet)(object.tooManyRequests) || (0, index_1.isSet)(object.too_many_requests)) {
|
|
330
|
+
return {
|
|
331
|
+
$case: "tooManyRequests",
|
|
332
|
+
tooManyRequests: exports.TooManyRequests.fromJSON(object.tooManyRequests ?? object.too_many_requests)
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
if ((0, index_1.isSet)(object.quotaFailure) || (0, index_1.isSet)(object.quota_failure)) {
|
|
336
|
+
return {
|
|
337
|
+
$case: "quotaFailure",
|
|
338
|
+
quotaFailure: exports.QuotaFailure.fromJSON(object.quotaFailure ?? object.quota_failure)
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
if ((0, index_1.isSet)(object.notEnoughResources) || (0, index_1.isSet)(object.not_enough_resources)) {
|
|
342
|
+
return {
|
|
343
|
+
$case: "notEnoughResources",
|
|
344
|
+
notEnoughResources: exports.NotEnoughResources.fromJSON(object.notEnoughResources ?? object.not_enough_resources)
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
if ((0, index_1.isSet)(object.internalError) || (0, index_1.isSet)(object.internal_error)) {
|
|
348
|
+
return {
|
|
349
|
+
$case: "internalError",
|
|
350
|
+
internalError: exports.InternalError.fromJSON(object.internalError ?? object.internal_error)
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
return undefined;
|
|
354
|
+
})(),
|
|
355
|
+
});
|
|
356
|
+
},
|
|
357
|
+
toJSON(message, use = "json") {
|
|
358
|
+
const obj = {};
|
|
359
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
360
|
+
if (message.service !== "") {
|
|
361
|
+
obj[pick("service", "service")] = message.service;
|
|
362
|
+
}
|
|
363
|
+
if (message.code !== "") {
|
|
364
|
+
obj[pick("code", "code")] = message.code;
|
|
365
|
+
}
|
|
366
|
+
if ((message.retryType ?? exports.ServiceError_RetryType.UNSPECIFIED) !== exports.ServiceError_RetryType.UNSPECIFIED) {
|
|
367
|
+
obj[pick("retryType", "retry_type")] = exports.ServiceError_RetryType.toJSON(message.retryType);
|
|
368
|
+
}
|
|
369
|
+
switch (message.details?.$case) {
|
|
370
|
+
case "badRequest": {
|
|
371
|
+
obj[pick("badRequest", "bad_request")] = exports.BadRequest.toJSON(message.details.badRequest, use);
|
|
372
|
+
break;
|
|
373
|
+
}
|
|
374
|
+
case "badResourceState": {
|
|
375
|
+
obj[pick("badResourceState", "bad_resource_state")] = exports.BadResourceState.toJSON(message.details.badResourceState, use);
|
|
376
|
+
break;
|
|
377
|
+
}
|
|
378
|
+
case "resourceNotFound": {
|
|
379
|
+
obj[pick("resourceNotFound", "resource_not_found")] = exports.ResourceNotFound.toJSON(message.details.resourceNotFound, use);
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
case "resourceAlreadyExists": {
|
|
383
|
+
obj[pick("resourceAlreadyExists", "resource_already_exists")] = exports.ResourceAlreadyExists.toJSON(message.details.resourceAlreadyExists, use);
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
case "outOfRange": {
|
|
387
|
+
obj[pick("outOfRange", "out_of_range")] = exports.OutOfRange.toJSON(message.details.outOfRange, use);
|
|
388
|
+
break;
|
|
389
|
+
}
|
|
390
|
+
case "permissionDenied": {
|
|
391
|
+
obj[pick("permissionDenied", "permission_denied")] = exports.PermissionDenied.toJSON(message.details.permissionDenied, use);
|
|
392
|
+
break;
|
|
393
|
+
}
|
|
394
|
+
case "resourceConflict": {
|
|
395
|
+
obj[pick("resourceConflict", "resource_conflict")] = exports.ResourceConflict.toJSON(message.details.resourceConflict, use);
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
398
|
+
case "operationAborted": {
|
|
399
|
+
obj[pick("operationAborted", "operation_aborted")] = exports.OperationAborted.toJSON(message.details.operationAborted, use);
|
|
400
|
+
break;
|
|
401
|
+
}
|
|
402
|
+
case "tooManyRequests": {
|
|
403
|
+
obj[pick("tooManyRequests", "too_many_requests")] = exports.TooManyRequests.toJSON(message.details.tooManyRequests, use);
|
|
404
|
+
break;
|
|
405
|
+
}
|
|
406
|
+
case "quotaFailure": {
|
|
407
|
+
obj[pick("quotaFailure", "quota_failure")] = exports.QuotaFailure.toJSON(message.details.quotaFailure, use);
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
case "notEnoughResources": {
|
|
411
|
+
obj[pick("notEnoughResources", "not_enough_resources")] = exports.NotEnoughResources.toJSON(message.details.notEnoughResources, use);
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
case "internalError": {
|
|
415
|
+
obj[pick("internalError", "internal_error")] = exports.InternalError.toJSON(message.details.internalError, use);
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
default: break;
|
|
419
|
+
}
|
|
420
|
+
return obj;
|
|
421
|
+
},
|
|
422
|
+
create(base) {
|
|
423
|
+
return exports.ServiceError.fromPartial(base ?? {});
|
|
424
|
+
},
|
|
425
|
+
fromPartial(object) {
|
|
426
|
+
const message = createBaseServiceError();
|
|
427
|
+
message.service = (object.service !== undefined && object.service !== null)
|
|
428
|
+
? object.service
|
|
429
|
+
: "";
|
|
430
|
+
message.code = (object.code !== undefined && object.code !== null)
|
|
431
|
+
? object.code
|
|
432
|
+
: "";
|
|
433
|
+
message.retryType = (object.retryType !== undefined && object.retryType !== null)
|
|
434
|
+
? exports.ServiceError_RetryType.fromJSON(object.retryType.name)
|
|
435
|
+
: exports.ServiceError_RetryType.UNSPECIFIED;
|
|
436
|
+
switch (object.details?.$case) {
|
|
437
|
+
case "badRequest": {
|
|
438
|
+
if (object.details.badRequest !== undefined && object.details.badRequest !== null) {
|
|
439
|
+
message.details = {
|
|
440
|
+
$case: "badRequest",
|
|
441
|
+
badRequest: exports.BadRequest.fromPartial(object.details.badRequest),
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
break;
|
|
445
|
+
}
|
|
446
|
+
case "badResourceState": {
|
|
447
|
+
if (object.details.badResourceState !== undefined && object.details.badResourceState !== null) {
|
|
448
|
+
message.details = {
|
|
449
|
+
$case: "badResourceState",
|
|
450
|
+
badResourceState: exports.BadResourceState.fromPartial(object.details.badResourceState),
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
case "resourceNotFound": {
|
|
456
|
+
if (object.details.resourceNotFound !== undefined && object.details.resourceNotFound !== null) {
|
|
457
|
+
message.details = {
|
|
458
|
+
$case: "resourceNotFound",
|
|
459
|
+
resourceNotFound: exports.ResourceNotFound.fromPartial(object.details.resourceNotFound),
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
break;
|
|
463
|
+
}
|
|
464
|
+
case "resourceAlreadyExists": {
|
|
465
|
+
if (object.details.resourceAlreadyExists !== undefined && object.details.resourceAlreadyExists !== null) {
|
|
466
|
+
message.details = {
|
|
467
|
+
$case: "resourceAlreadyExists",
|
|
468
|
+
resourceAlreadyExists: exports.ResourceAlreadyExists.fromPartial(object.details.resourceAlreadyExists),
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
case "outOfRange": {
|
|
474
|
+
if (object.details.outOfRange !== undefined && object.details.outOfRange !== null) {
|
|
475
|
+
message.details = {
|
|
476
|
+
$case: "outOfRange",
|
|
477
|
+
outOfRange: exports.OutOfRange.fromPartial(object.details.outOfRange),
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
break;
|
|
481
|
+
}
|
|
482
|
+
case "permissionDenied": {
|
|
483
|
+
if (object.details.permissionDenied !== undefined && object.details.permissionDenied !== null) {
|
|
484
|
+
message.details = {
|
|
485
|
+
$case: "permissionDenied",
|
|
486
|
+
permissionDenied: exports.PermissionDenied.fromPartial(object.details.permissionDenied),
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
break;
|
|
490
|
+
}
|
|
491
|
+
case "resourceConflict": {
|
|
492
|
+
if (object.details.resourceConflict !== undefined && object.details.resourceConflict !== null) {
|
|
493
|
+
message.details = {
|
|
494
|
+
$case: "resourceConflict",
|
|
495
|
+
resourceConflict: exports.ResourceConflict.fromPartial(object.details.resourceConflict),
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
break;
|
|
499
|
+
}
|
|
500
|
+
case "operationAborted": {
|
|
501
|
+
if (object.details.operationAborted !== undefined && object.details.operationAborted !== null) {
|
|
502
|
+
message.details = {
|
|
503
|
+
$case: "operationAborted",
|
|
504
|
+
operationAborted: exports.OperationAborted.fromPartial(object.details.operationAborted),
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
break;
|
|
508
|
+
}
|
|
509
|
+
case "tooManyRequests": {
|
|
510
|
+
if (object.details.tooManyRequests !== undefined && object.details.tooManyRequests !== null) {
|
|
511
|
+
message.details = {
|
|
512
|
+
$case: "tooManyRequests",
|
|
513
|
+
tooManyRequests: exports.TooManyRequests.fromPartial(object.details.tooManyRequests),
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
case "quotaFailure": {
|
|
519
|
+
if (object.details.quotaFailure !== undefined && object.details.quotaFailure !== null) {
|
|
520
|
+
message.details = {
|
|
521
|
+
$case: "quotaFailure",
|
|
522
|
+
quotaFailure: exports.QuotaFailure.fromPartial(object.details.quotaFailure),
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
break;
|
|
526
|
+
}
|
|
527
|
+
case "notEnoughResources": {
|
|
528
|
+
if (object.details.notEnoughResources !== undefined && object.details.notEnoughResources !== null) {
|
|
529
|
+
message.details = {
|
|
530
|
+
$case: "notEnoughResources",
|
|
531
|
+
notEnoughResources: exports.NotEnoughResources.fromPartial(object.details.notEnoughResources),
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
break;
|
|
535
|
+
}
|
|
536
|
+
case "internalError": {
|
|
537
|
+
if (object.details.internalError !== undefined && object.details.internalError !== null) {
|
|
538
|
+
message.details = {
|
|
539
|
+
$case: "internalError",
|
|
540
|
+
internalError: exports.InternalError.fromPartial(object.details.internalError),
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
break;
|
|
544
|
+
}
|
|
545
|
+
default: break;
|
|
546
|
+
}
|
|
547
|
+
return message;
|
|
548
|
+
},
|
|
549
|
+
};
|
|
550
|
+
protobuf_1.protoRegistry.registerMessage(exports.ServiceError);
|
|
551
|
+
function ServiceErrorCustomInspect() {
|
|
552
|
+
const parts = [];
|
|
553
|
+
if (this.service !== "")
|
|
554
|
+
parts.push("service" + "=" + (0, util_1.inspect)(this.service));
|
|
555
|
+
if (this.code !== "")
|
|
556
|
+
parts.push("code" + "=" + (0, util_1.inspect)(this.code));
|
|
557
|
+
if (this.retryType !== undefined)
|
|
558
|
+
parts.push("retryType" + "=" + (0, util_1.inspect)(this.retryType));
|
|
559
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
560
|
+
}
|
|
561
|
+
function ServiceErrorCustomJson() {
|
|
562
|
+
const obj = {
|
|
563
|
+
type: this.$type,
|
|
564
|
+
};
|
|
565
|
+
if (this.service !== "")
|
|
566
|
+
obj.service = (0, logging_1.inspectJson)(this.service);
|
|
567
|
+
if (this.code !== "")
|
|
568
|
+
obj.code = (0, logging_1.inspectJson)(this.code);
|
|
569
|
+
if (this.retryType !== undefined)
|
|
570
|
+
obj.retryType = (0, logging_1.inspectJson)(this.retryType);
|
|
571
|
+
return obj;
|
|
572
|
+
}
|
|
573
|
+
function applyServiceErrorCustom(message) {
|
|
574
|
+
message[logging_1.custom] = ServiceErrorCustomInspect;
|
|
575
|
+
message[logging_1.customJson] = ServiceErrorCustomJson;
|
|
576
|
+
return message;
|
|
577
|
+
}
|
|
578
|
+
function createBaseServiceError() {
|
|
579
|
+
const message = {
|
|
580
|
+
$type: "nebius.common.v1.ServiceError",
|
|
581
|
+
service: "",
|
|
582
|
+
code: "",
|
|
583
|
+
retryType: exports.ServiceError_RetryType.UNSPECIFIED,
|
|
584
|
+
details: undefined,
|
|
585
|
+
};
|
|
586
|
+
return applyServiceErrorCustom(message);
|
|
587
|
+
}
|
|
588
|
+
exports.BadRequest = {
|
|
589
|
+
$type: "nebius.common.v1.BadRequest",
|
|
590
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
591
|
+
for (const v of (message.violations ?? [])) {
|
|
592
|
+
const w = writer.uint32(10).fork();
|
|
593
|
+
exports.BadRequest_Violation.encode(v, w);
|
|
594
|
+
w.join();
|
|
595
|
+
}
|
|
596
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
597
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
598
|
+
}
|
|
599
|
+
return writer;
|
|
600
|
+
},
|
|
601
|
+
decode(input, length) {
|
|
602
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
603
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
604
|
+
const message = createBaseBadRequest();
|
|
605
|
+
let writer = undefined;
|
|
606
|
+
while (reader.pos < end) {
|
|
607
|
+
const tag = reader.uint32();
|
|
608
|
+
switch (tag >>> 3) {
|
|
609
|
+
case 1: {
|
|
610
|
+
if (tag !== 10)
|
|
611
|
+
break;
|
|
612
|
+
message.violations.push(exports.BadRequest_Violation.decode(reader, reader.uint32()));
|
|
613
|
+
continue;
|
|
614
|
+
}
|
|
615
|
+
default:
|
|
616
|
+
break;
|
|
617
|
+
}
|
|
618
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
619
|
+
break;
|
|
620
|
+
}
|
|
621
|
+
{
|
|
622
|
+
if (!writer)
|
|
623
|
+
writer = new index_1.BinaryWriter();
|
|
624
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
625
|
+
writer.uint32(tag).raw(skipped);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
if (writer) {
|
|
629
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
630
|
+
}
|
|
631
|
+
return message;
|
|
632
|
+
},
|
|
633
|
+
fromJSON(object) {
|
|
634
|
+
return applyBadRequestCustom({
|
|
635
|
+
$type: "nebius.common.v1.BadRequest",
|
|
636
|
+
violations: globalThis.Array.isArray(object?.violations ?? object?.violations)
|
|
637
|
+
? (object.violations ?? object.violations).map((e) => exports.BadRequest_Violation.fromJSON(e))
|
|
638
|
+
: [],
|
|
639
|
+
});
|
|
640
|
+
},
|
|
641
|
+
toJSON(message, use = "json") {
|
|
642
|
+
const obj = {};
|
|
643
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
644
|
+
if (message.violations?.length) {
|
|
645
|
+
obj[pick("violations", "violations")] = message.violations.map((e) => e ? exports.BadRequest_Violation.toJSON(e, use) : undefined);
|
|
646
|
+
}
|
|
647
|
+
return obj;
|
|
648
|
+
},
|
|
649
|
+
create(base) {
|
|
650
|
+
return exports.BadRequest.fromPartial(base ?? {});
|
|
651
|
+
},
|
|
652
|
+
fromPartial(object) {
|
|
653
|
+
const message = createBaseBadRequest();
|
|
654
|
+
message.violations = object.violations?.map((e) => exports.BadRequest_Violation.fromPartial(e)) || [];
|
|
655
|
+
return message;
|
|
656
|
+
},
|
|
657
|
+
};
|
|
658
|
+
protobuf_1.protoRegistry.registerMessage(exports.BadRequest);
|
|
659
|
+
function BadRequestCustomInspect() {
|
|
660
|
+
const parts = [];
|
|
661
|
+
if ((this.violations?.length ?? 0) !== 0)
|
|
662
|
+
parts.push("violations" + "=" + (0, util_1.inspect)(this.violations));
|
|
663
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
664
|
+
}
|
|
665
|
+
function BadRequestCustomJson() {
|
|
666
|
+
const obj = {
|
|
667
|
+
type: this.$type,
|
|
668
|
+
};
|
|
669
|
+
if ((this.violations?.length ?? 0) !== 0)
|
|
670
|
+
obj.violations = (0, logging_1.inspectJson)(this.violations);
|
|
671
|
+
return obj;
|
|
672
|
+
}
|
|
673
|
+
function applyBadRequestCustom(message) {
|
|
674
|
+
message[logging_1.custom] = BadRequestCustomInspect;
|
|
675
|
+
message[logging_1.customJson] = BadRequestCustomJson;
|
|
676
|
+
return message;
|
|
677
|
+
}
|
|
678
|
+
function createBaseBadRequest() {
|
|
679
|
+
const message = {
|
|
680
|
+
$type: "nebius.common.v1.BadRequest",
|
|
681
|
+
violations: [],
|
|
682
|
+
};
|
|
683
|
+
return applyBadRequestCustom(message);
|
|
684
|
+
}
|
|
685
|
+
exports.BadRequest_Violation = {
|
|
686
|
+
$type: "nebius.common.v1.BadRequest.Violation",
|
|
687
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
688
|
+
if (message.field !== "") {
|
|
689
|
+
writer.uint32(10).string(message.field);
|
|
690
|
+
}
|
|
691
|
+
if (message.message !== "") {
|
|
692
|
+
writer.uint32(18).string(message.message);
|
|
693
|
+
}
|
|
694
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
695
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
696
|
+
}
|
|
697
|
+
return writer;
|
|
698
|
+
},
|
|
699
|
+
decode(input, length) {
|
|
700
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
701
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
702
|
+
const message = createBaseBadRequest_Violation();
|
|
703
|
+
let writer = undefined;
|
|
704
|
+
while (reader.pos < end) {
|
|
705
|
+
const tag = reader.uint32();
|
|
706
|
+
switch (tag >>> 3) {
|
|
707
|
+
case 1: {
|
|
708
|
+
if (tag !== 10)
|
|
709
|
+
break;
|
|
710
|
+
message.field = reader.string();
|
|
711
|
+
continue;
|
|
712
|
+
}
|
|
713
|
+
case 2: {
|
|
714
|
+
if (tag !== 18)
|
|
715
|
+
break;
|
|
716
|
+
message.message = reader.string();
|
|
717
|
+
continue;
|
|
718
|
+
}
|
|
719
|
+
default:
|
|
720
|
+
break;
|
|
721
|
+
}
|
|
722
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
723
|
+
break;
|
|
724
|
+
}
|
|
725
|
+
{
|
|
726
|
+
if (!writer)
|
|
727
|
+
writer = new index_1.BinaryWriter();
|
|
728
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
729
|
+
writer.uint32(tag).raw(skipped);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
if (writer) {
|
|
733
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
734
|
+
}
|
|
735
|
+
return message;
|
|
736
|
+
},
|
|
737
|
+
fromJSON(object) {
|
|
738
|
+
return applyBadRequest_ViolationCustom({
|
|
739
|
+
$type: "nebius.common.v1.BadRequest.Violation",
|
|
740
|
+
field: (0, index_1.isSet)(object.field ?? object.field)
|
|
741
|
+
? String(object.field ?? object.field)
|
|
742
|
+
: "",
|
|
743
|
+
message: (0, index_1.isSet)(object.message ?? object.message)
|
|
744
|
+
? String(object.message ?? object.message)
|
|
745
|
+
: "",
|
|
746
|
+
});
|
|
747
|
+
},
|
|
748
|
+
toJSON(message, use = "json") {
|
|
749
|
+
const obj = {};
|
|
750
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
751
|
+
if (message.field !== "") {
|
|
752
|
+
obj[pick("field", "field")] = message.field;
|
|
753
|
+
}
|
|
754
|
+
if (message.message !== "") {
|
|
755
|
+
obj[pick("message", "message")] = message.message;
|
|
756
|
+
}
|
|
757
|
+
return obj;
|
|
758
|
+
},
|
|
759
|
+
create(base) {
|
|
760
|
+
return exports.BadRequest_Violation.fromPartial(base ?? {});
|
|
761
|
+
},
|
|
762
|
+
fromPartial(object) {
|
|
763
|
+
const message = createBaseBadRequest_Violation();
|
|
764
|
+
message.field = (object.field !== undefined && object.field !== null)
|
|
765
|
+
? object.field
|
|
766
|
+
: "";
|
|
767
|
+
message.message = (object.message !== undefined && object.message !== null)
|
|
768
|
+
? object.message
|
|
769
|
+
: "";
|
|
770
|
+
return message;
|
|
771
|
+
},
|
|
772
|
+
};
|
|
773
|
+
protobuf_1.protoRegistry.registerMessage(exports.BadRequest_Violation);
|
|
774
|
+
function BadRequest_ViolationCustomInspect() {
|
|
775
|
+
const parts = [];
|
|
776
|
+
if (this.field !== "")
|
|
777
|
+
parts.push("field" + "=" + (0, util_1.inspect)(this.field));
|
|
778
|
+
if (this.message !== "")
|
|
779
|
+
parts.push("message" + "=" + (0, util_1.inspect)(this.message));
|
|
780
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
781
|
+
}
|
|
782
|
+
function BadRequest_ViolationCustomJson() {
|
|
783
|
+
const obj = {
|
|
784
|
+
type: this.$type,
|
|
785
|
+
};
|
|
786
|
+
if (this.field !== "")
|
|
787
|
+
obj.field = (0, logging_1.inspectJson)(this.field);
|
|
788
|
+
if (this.message !== "")
|
|
789
|
+
obj.message = (0, logging_1.inspectJson)(this.message);
|
|
790
|
+
return obj;
|
|
791
|
+
}
|
|
792
|
+
function applyBadRequest_ViolationCustom(message) {
|
|
793
|
+
message[logging_1.custom] = BadRequest_ViolationCustomInspect;
|
|
794
|
+
message[logging_1.customJson] = BadRequest_ViolationCustomJson;
|
|
795
|
+
return message;
|
|
796
|
+
}
|
|
797
|
+
function createBaseBadRequest_Violation() {
|
|
798
|
+
const message = {
|
|
799
|
+
$type: "nebius.common.v1.BadRequest.Violation",
|
|
800
|
+
field: "",
|
|
801
|
+
message: "",
|
|
802
|
+
};
|
|
803
|
+
return applyBadRequest_ViolationCustom(message);
|
|
804
|
+
}
|
|
805
|
+
exports.BadResourceState = {
|
|
806
|
+
$type: "nebius.common.v1.BadResourceState",
|
|
807
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
808
|
+
if (message.resourceId !== "") {
|
|
809
|
+
writer.uint32(10).string(message.resourceId);
|
|
810
|
+
}
|
|
811
|
+
if (message.message !== "") {
|
|
812
|
+
writer.uint32(18).string(message.message);
|
|
813
|
+
}
|
|
814
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
815
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
816
|
+
}
|
|
817
|
+
return writer;
|
|
818
|
+
},
|
|
819
|
+
decode(input, length) {
|
|
820
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
821
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
822
|
+
const message = createBaseBadResourceState();
|
|
823
|
+
let writer = undefined;
|
|
824
|
+
while (reader.pos < end) {
|
|
825
|
+
const tag = reader.uint32();
|
|
826
|
+
switch (tag >>> 3) {
|
|
827
|
+
case 1: {
|
|
828
|
+
if (tag !== 10)
|
|
829
|
+
break;
|
|
830
|
+
message.resourceId = reader.string();
|
|
831
|
+
continue;
|
|
832
|
+
}
|
|
833
|
+
case 2: {
|
|
834
|
+
if (tag !== 18)
|
|
835
|
+
break;
|
|
836
|
+
message.message = reader.string();
|
|
837
|
+
continue;
|
|
838
|
+
}
|
|
839
|
+
default:
|
|
840
|
+
break;
|
|
841
|
+
}
|
|
842
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
843
|
+
break;
|
|
844
|
+
}
|
|
845
|
+
{
|
|
846
|
+
if (!writer)
|
|
847
|
+
writer = new index_1.BinaryWriter();
|
|
848
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
849
|
+
writer.uint32(tag).raw(skipped);
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
if (writer) {
|
|
853
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
854
|
+
}
|
|
855
|
+
return message;
|
|
856
|
+
},
|
|
857
|
+
fromJSON(object) {
|
|
858
|
+
return applyBadResourceStateCustom({
|
|
859
|
+
$type: "nebius.common.v1.BadResourceState",
|
|
860
|
+
resourceId: (0, index_1.isSet)(object.resourceId ?? object.resource_id)
|
|
861
|
+
? String(object.resourceId ?? object.resource_id)
|
|
862
|
+
: "",
|
|
863
|
+
message: (0, index_1.isSet)(object.message ?? object.message)
|
|
864
|
+
? String(object.message ?? object.message)
|
|
865
|
+
: "",
|
|
866
|
+
});
|
|
867
|
+
},
|
|
868
|
+
toJSON(message, use = "json") {
|
|
869
|
+
const obj = {};
|
|
870
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
871
|
+
if (message.resourceId !== "") {
|
|
872
|
+
obj[pick("resourceId", "resource_id")] = message.resourceId;
|
|
873
|
+
}
|
|
874
|
+
if (message.message !== "") {
|
|
875
|
+
obj[pick("message", "message")] = message.message;
|
|
876
|
+
}
|
|
877
|
+
return obj;
|
|
878
|
+
},
|
|
879
|
+
create(base) {
|
|
880
|
+
return exports.BadResourceState.fromPartial(base ?? {});
|
|
881
|
+
},
|
|
882
|
+
fromPartial(object) {
|
|
883
|
+
const message = createBaseBadResourceState();
|
|
884
|
+
message.resourceId = (object.resourceId !== undefined && object.resourceId !== null)
|
|
885
|
+
? object.resourceId
|
|
886
|
+
: "";
|
|
887
|
+
message.message = (object.message !== undefined && object.message !== null)
|
|
888
|
+
? object.message
|
|
889
|
+
: "";
|
|
890
|
+
return message;
|
|
891
|
+
},
|
|
892
|
+
};
|
|
893
|
+
protobuf_1.protoRegistry.registerMessage(exports.BadResourceState);
|
|
894
|
+
function BadResourceStateCustomInspect() {
|
|
895
|
+
const parts = [];
|
|
896
|
+
if (this.resourceId !== "")
|
|
897
|
+
parts.push("resourceId" + "=" + (0, util_1.inspect)(this.resourceId));
|
|
898
|
+
if (this.message !== "")
|
|
899
|
+
parts.push("message" + "=" + (0, util_1.inspect)(this.message));
|
|
900
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
901
|
+
}
|
|
902
|
+
function BadResourceStateCustomJson() {
|
|
903
|
+
const obj = {
|
|
904
|
+
type: this.$type,
|
|
905
|
+
};
|
|
906
|
+
if (this.resourceId !== "")
|
|
907
|
+
obj.resourceId = (0, logging_1.inspectJson)(this.resourceId);
|
|
908
|
+
if (this.message !== "")
|
|
909
|
+
obj.message = (0, logging_1.inspectJson)(this.message);
|
|
910
|
+
return obj;
|
|
911
|
+
}
|
|
912
|
+
function applyBadResourceStateCustom(message) {
|
|
913
|
+
message[logging_1.custom] = BadResourceStateCustomInspect;
|
|
914
|
+
message[logging_1.customJson] = BadResourceStateCustomJson;
|
|
915
|
+
return message;
|
|
916
|
+
}
|
|
917
|
+
function createBaseBadResourceState() {
|
|
918
|
+
const message = {
|
|
919
|
+
$type: "nebius.common.v1.BadResourceState",
|
|
920
|
+
resourceId: "",
|
|
921
|
+
message: "",
|
|
922
|
+
};
|
|
923
|
+
return applyBadResourceStateCustom(message);
|
|
924
|
+
}
|
|
925
|
+
exports.ResourceNotFound = {
|
|
926
|
+
$type: "nebius.common.v1.ResourceNotFound",
|
|
927
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
928
|
+
if (message.resourceId !== "") {
|
|
929
|
+
writer.uint32(10).string(message.resourceId);
|
|
930
|
+
}
|
|
931
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
932
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
933
|
+
}
|
|
934
|
+
return writer;
|
|
935
|
+
},
|
|
936
|
+
decode(input, length) {
|
|
937
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
938
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
939
|
+
const message = createBaseResourceNotFound();
|
|
940
|
+
let writer = undefined;
|
|
941
|
+
while (reader.pos < end) {
|
|
942
|
+
const tag = reader.uint32();
|
|
943
|
+
switch (tag >>> 3) {
|
|
944
|
+
case 1: {
|
|
945
|
+
if (tag !== 10)
|
|
946
|
+
break;
|
|
947
|
+
message.resourceId = reader.string();
|
|
948
|
+
continue;
|
|
949
|
+
}
|
|
950
|
+
default:
|
|
951
|
+
break;
|
|
952
|
+
}
|
|
953
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
954
|
+
break;
|
|
955
|
+
}
|
|
956
|
+
{
|
|
957
|
+
if (!writer)
|
|
958
|
+
writer = new index_1.BinaryWriter();
|
|
959
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
960
|
+
writer.uint32(tag).raw(skipped);
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
if (writer) {
|
|
964
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
965
|
+
}
|
|
966
|
+
return message;
|
|
967
|
+
},
|
|
968
|
+
fromJSON(object) {
|
|
969
|
+
return applyResourceNotFoundCustom({
|
|
970
|
+
$type: "nebius.common.v1.ResourceNotFound",
|
|
971
|
+
resourceId: (0, index_1.isSet)(object.resourceId ?? object.resource_id)
|
|
972
|
+
? String(object.resourceId ?? object.resource_id)
|
|
973
|
+
: "",
|
|
974
|
+
});
|
|
975
|
+
},
|
|
976
|
+
toJSON(message, use = "json") {
|
|
977
|
+
const obj = {};
|
|
978
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
979
|
+
if (message.resourceId !== "") {
|
|
980
|
+
obj[pick("resourceId", "resource_id")] = message.resourceId;
|
|
981
|
+
}
|
|
982
|
+
return obj;
|
|
983
|
+
},
|
|
984
|
+
create(base) {
|
|
985
|
+
return exports.ResourceNotFound.fromPartial(base ?? {});
|
|
986
|
+
},
|
|
987
|
+
fromPartial(object) {
|
|
988
|
+
const message = createBaseResourceNotFound();
|
|
989
|
+
message.resourceId = (object.resourceId !== undefined && object.resourceId !== null)
|
|
990
|
+
? object.resourceId
|
|
991
|
+
: "";
|
|
992
|
+
return message;
|
|
993
|
+
},
|
|
994
|
+
};
|
|
995
|
+
protobuf_1.protoRegistry.registerMessage(exports.ResourceNotFound);
|
|
996
|
+
function ResourceNotFoundCustomInspect() {
|
|
997
|
+
const parts = [];
|
|
998
|
+
if (this.resourceId !== "")
|
|
999
|
+
parts.push("resourceId" + "=" + (0, util_1.inspect)(this.resourceId));
|
|
1000
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
1001
|
+
}
|
|
1002
|
+
function ResourceNotFoundCustomJson() {
|
|
1003
|
+
const obj = {
|
|
1004
|
+
type: this.$type,
|
|
1005
|
+
};
|
|
1006
|
+
if (this.resourceId !== "")
|
|
1007
|
+
obj.resourceId = (0, logging_1.inspectJson)(this.resourceId);
|
|
1008
|
+
return obj;
|
|
1009
|
+
}
|
|
1010
|
+
function applyResourceNotFoundCustom(message) {
|
|
1011
|
+
message[logging_1.custom] = ResourceNotFoundCustomInspect;
|
|
1012
|
+
message[logging_1.customJson] = ResourceNotFoundCustomJson;
|
|
1013
|
+
return message;
|
|
1014
|
+
}
|
|
1015
|
+
function createBaseResourceNotFound() {
|
|
1016
|
+
const message = {
|
|
1017
|
+
$type: "nebius.common.v1.ResourceNotFound",
|
|
1018
|
+
resourceId: "",
|
|
1019
|
+
};
|
|
1020
|
+
return applyResourceNotFoundCustom(message);
|
|
1021
|
+
}
|
|
1022
|
+
exports.ResourceAlreadyExists = {
|
|
1023
|
+
$type: "nebius.common.v1.ResourceAlreadyExists",
|
|
1024
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
1025
|
+
if (message.resourceId !== "") {
|
|
1026
|
+
writer.uint32(10).string(message.resourceId);
|
|
1027
|
+
}
|
|
1028
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
1029
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1030
|
+
}
|
|
1031
|
+
return writer;
|
|
1032
|
+
},
|
|
1033
|
+
decode(input, length) {
|
|
1034
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
1035
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1036
|
+
const message = createBaseResourceAlreadyExists();
|
|
1037
|
+
let writer = undefined;
|
|
1038
|
+
while (reader.pos < end) {
|
|
1039
|
+
const tag = reader.uint32();
|
|
1040
|
+
switch (tag >>> 3) {
|
|
1041
|
+
case 1: {
|
|
1042
|
+
if (tag !== 10)
|
|
1043
|
+
break;
|
|
1044
|
+
message.resourceId = reader.string();
|
|
1045
|
+
continue;
|
|
1046
|
+
}
|
|
1047
|
+
default:
|
|
1048
|
+
break;
|
|
1049
|
+
}
|
|
1050
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1051
|
+
break;
|
|
1052
|
+
}
|
|
1053
|
+
{
|
|
1054
|
+
if (!writer)
|
|
1055
|
+
writer = new index_1.BinaryWriter();
|
|
1056
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
1057
|
+
writer.uint32(tag).raw(skipped);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
if (writer) {
|
|
1061
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1062
|
+
}
|
|
1063
|
+
return message;
|
|
1064
|
+
},
|
|
1065
|
+
fromJSON(object) {
|
|
1066
|
+
return applyResourceAlreadyExistsCustom({
|
|
1067
|
+
$type: "nebius.common.v1.ResourceAlreadyExists",
|
|
1068
|
+
resourceId: (0, index_1.isSet)(object.resourceId ?? object.resource_id)
|
|
1069
|
+
? String(object.resourceId ?? object.resource_id)
|
|
1070
|
+
: "",
|
|
1071
|
+
});
|
|
1072
|
+
},
|
|
1073
|
+
toJSON(message, use = "json") {
|
|
1074
|
+
const obj = {};
|
|
1075
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
1076
|
+
if (message.resourceId !== "") {
|
|
1077
|
+
obj[pick("resourceId", "resource_id")] = message.resourceId;
|
|
1078
|
+
}
|
|
1079
|
+
return obj;
|
|
1080
|
+
},
|
|
1081
|
+
create(base) {
|
|
1082
|
+
return exports.ResourceAlreadyExists.fromPartial(base ?? {});
|
|
1083
|
+
},
|
|
1084
|
+
fromPartial(object) {
|
|
1085
|
+
const message = createBaseResourceAlreadyExists();
|
|
1086
|
+
message.resourceId = (object.resourceId !== undefined && object.resourceId !== null)
|
|
1087
|
+
? object.resourceId
|
|
1088
|
+
: "";
|
|
1089
|
+
return message;
|
|
1090
|
+
},
|
|
1091
|
+
};
|
|
1092
|
+
protobuf_1.protoRegistry.registerMessage(exports.ResourceAlreadyExists);
|
|
1093
|
+
function ResourceAlreadyExistsCustomInspect() {
|
|
1094
|
+
const parts = [];
|
|
1095
|
+
if (this.resourceId !== "")
|
|
1096
|
+
parts.push("resourceId" + "=" + (0, util_1.inspect)(this.resourceId));
|
|
1097
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
1098
|
+
}
|
|
1099
|
+
function ResourceAlreadyExistsCustomJson() {
|
|
1100
|
+
const obj = {
|
|
1101
|
+
type: this.$type,
|
|
1102
|
+
};
|
|
1103
|
+
if (this.resourceId !== "")
|
|
1104
|
+
obj.resourceId = (0, logging_1.inspectJson)(this.resourceId);
|
|
1105
|
+
return obj;
|
|
1106
|
+
}
|
|
1107
|
+
function applyResourceAlreadyExistsCustom(message) {
|
|
1108
|
+
message[logging_1.custom] = ResourceAlreadyExistsCustomInspect;
|
|
1109
|
+
message[logging_1.customJson] = ResourceAlreadyExistsCustomJson;
|
|
1110
|
+
return message;
|
|
1111
|
+
}
|
|
1112
|
+
function createBaseResourceAlreadyExists() {
|
|
1113
|
+
const message = {
|
|
1114
|
+
$type: "nebius.common.v1.ResourceAlreadyExists",
|
|
1115
|
+
resourceId: "",
|
|
1116
|
+
};
|
|
1117
|
+
return applyResourceAlreadyExistsCustom(message);
|
|
1118
|
+
}
|
|
1119
|
+
exports.ResourceConflict = {
|
|
1120
|
+
$type: "nebius.common.v1.ResourceConflict",
|
|
1121
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
1122
|
+
if (message.resourceId !== "") {
|
|
1123
|
+
writer.uint32(10).string(message.resourceId);
|
|
1124
|
+
}
|
|
1125
|
+
if (message.message !== "") {
|
|
1126
|
+
writer.uint32(18).string(message.message);
|
|
1127
|
+
}
|
|
1128
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
1129
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1130
|
+
}
|
|
1131
|
+
return writer;
|
|
1132
|
+
},
|
|
1133
|
+
decode(input, length) {
|
|
1134
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
1135
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1136
|
+
const message = createBaseResourceConflict();
|
|
1137
|
+
let writer = undefined;
|
|
1138
|
+
while (reader.pos < end) {
|
|
1139
|
+
const tag = reader.uint32();
|
|
1140
|
+
switch (tag >>> 3) {
|
|
1141
|
+
case 1: {
|
|
1142
|
+
if (tag !== 10)
|
|
1143
|
+
break;
|
|
1144
|
+
message.resourceId = reader.string();
|
|
1145
|
+
continue;
|
|
1146
|
+
}
|
|
1147
|
+
case 2: {
|
|
1148
|
+
if (tag !== 18)
|
|
1149
|
+
break;
|
|
1150
|
+
message.message = reader.string();
|
|
1151
|
+
continue;
|
|
1152
|
+
}
|
|
1153
|
+
default:
|
|
1154
|
+
break;
|
|
1155
|
+
}
|
|
1156
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1157
|
+
break;
|
|
1158
|
+
}
|
|
1159
|
+
{
|
|
1160
|
+
if (!writer)
|
|
1161
|
+
writer = new index_1.BinaryWriter();
|
|
1162
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
1163
|
+
writer.uint32(tag).raw(skipped);
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
if (writer) {
|
|
1167
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1168
|
+
}
|
|
1169
|
+
return message;
|
|
1170
|
+
},
|
|
1171
|
+
fromJSON(object) {
|
|
1172
|
+
return applyResourceConflictCustom({
|
|
1173
|
+
$type: "nebius.common.v1.ResourceConflict",
|
|
1174
|
+
resourceId: (0, index_1.isSet)(object.resourceId ?? object.resource_id)
|
|
1175
|
+
? String(object.resourceId ?? object.resource_id)
|
|
1176
|
+
: "",
|
|
1177
|
+
message: (0, index_1.isSet)(object.message ?? object.message)
|
|
1178
|
+
? String(object.message ?? object.message)
|
|
1179
|
+
: "",
|
|
1180
|
+
});
|
|
1181
|
+
},
|
|
1182
|
+
toJSON(message, use = "json") {
|
|
1183
|
+
const obj = {};
|
|
1184
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
1185
|
+
if (message.resourceId !== "") {
|
|
1186
|
+
obj[pick("resourceId", "resource_id")] = message.resourceId;
|
|
1187
|
+
}
|
|
1188
|
+
if (message.message !== "") {
|
|
1189
|
+
obj[pick("message", "message")] = message.message;
|
|
1190
|
+
}
|
|
1191
|
+
return obj;
|
|
1192
|
+
},
|
|
1193
|
+
create(base) {
|
|
1194
|
+
return exports.ResourceConflict.fromPartial(base ?? {});
|
|
1195
|
+
},
|
|
1196
|
+
fromPartial(object) {
|
|
1197
|
+
const message = createBaseResourceConflict();
|
|
1198
|
+
message.resourceId = (object.resourceId !== undefined && object.resourceId !== null)
|
|
1199
|
+
? object.resourceId
|
|
1200
|
+
: "";
|
|
1201
|
+
message.message = (object.message !== undefined && object.message !== null)
|
|
1202
|
+
? object.message
|
|
1203
|
+
: "";
|
|
1204
|
+
return message;
|
|
1205
|
+
},
|
|
1206
|
+
};
|
|
1207
|
+
protobuf_1.protoRegistry.registerMessage(exports.ResourceConflict);
|
|
1208
|
+
function ResourceConflictCustomInspect() {
|
|
1209
|
+
const parts = [];
|
|
1210
|
+
if (this.resourceId !== "")
|
|
1211
|
+
parts.push("resourceId" + "=" + (0, util_1.inspect)(this.resourceId));
|
|
1212
|
+
if (this.message !== "")
|
|
1213
|
+
parts.push("message" + "=" + (0, util_1.inspect)(this.message));
|
|
1214
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
1215
|
+
}
|
|
1216
|
+
function ResourceConflictCustomJson() {
|
|
1217
|
+
const obj = {
|
|
1218
|
+
type: this.$type,
|
|
1219
|
+
};
|
|
1220
|
+
if (this.resourceId !== "")
|
|
1221
|
+
obj.resourceId = (0, logging_1.inspectJson)(this.resourceId);
|
|
1222
|
+
if (this.message !== "")
|
|
1223
|
+
obj.message = (0, logging_1.inspectJson)(this.message);
|
|
1224
|
+
return obj;
|
|
1225
|
+
}
|
|
1226
|
+
function applyResourceConflictCustom(message) {
|
|
1227
|
+
message[logging_1.custom] = ResourceConflictCustomInspect;
|
|
1228
|
+
message[logging_1.customJson] = ResourceConflictCustomJson;
|
|
1229
|
+
return message;
|
|
1230
|
+
}
|
|
1231
|
+
function createBaseResourceConflict() {
|
|
1232
|
+
const message = {
|
|
1233
|
+
$type: "nebius.common.v1.ResourceConflict",
|
|
1234
|
+
resourceId: "",
|
|
1235
|
+
message: "",
|
|
1236
|
+
};
|
|
1237
|
+
return applyResourceConflictCustom(message);
|
|
1238
|
+
}
|
|
1239
|
+
exports.OperationAborted = {
|
|
1240
|
+
$type: "nebius.common.v1.OperationAborted",
|
|
1241
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
1242
|
+
if (message.operationId !== "") {
|
|
1243
|
+
writer.uint32(10).string(message.operationId);
|
|
1244
|
+
}
|
|
1245
|
+
if (message.abortedByOperationId !== "") {
|
|
1246
|
+
writer.uint32(18).string(message.abortedByOperationId);
|
|
1247
|
+
}
|
|
1248
|
+
if (message.resourceId !== "") {
|
|
1249
|
+
writer.uint32(26).string(message.resourceId);
|
|
1250
|
+
}
|
|
1251
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
1252
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1253
|
+
}
|
|
1254
|
+
return writer;
|
|
1255
|
+
},
|
|
1256
|
+
decode(input, length) {
|
|
1257
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
1258
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1259
|
+
const message = createBaseOperationAborted();
|
|
1260
|
+
let writer = undefined;
|
|
1261
|
+
while (reader.pos < end) {
|
|
1262
|
+
const tag = reader.uint32();
|
|
1263
|
+
switch (tag >>> 3) {
|
|
1264
|
+
case 1: {
|
|
1265
|
+
if (tag !== 10)
|
|
1266
|
+
break;
|
|
1267
|
+
message.operationId = reader.string();
|
|
1268
|
+
continue;
|
|
1269
|
+
}
|
|
1270
|
+
case 2: {
|
|
1271
|
+
if (tag !== 18)
|
|
1272
|
+
break;
|
|
1273
|
+
message.abortedByOperationId = reader.string();
|
|
1274
|
+
continue;
|
|
1275
|
+
}
|
|
1276
|
+
case 3: {
|
|
1277
|
+
if (tag !== 26)
|
|
1278
|
+
break;
|
|
1279
|
+
message.resourceId = reader.string();
|
|
1280
|
+
continue;
|
|
1281
|
+
}
|
|
1282
|
+
default:
|
|
1283
|
+
break;
|
|
1284
|
+
}
|
|
1285
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1286
|
+
break;
|
|
1287
|
+
}
|
|
1288
|
+
{
|
|
1289
|
+
if (!writer)
|
|
1290
|
+
writer = new index_1.BinaryWriter();
|
|
1291
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
1292
|
+
writer.uint32(tag).raw(skipped);
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
if (writer) {
|
|
1296
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1297
|
+
}
|
|
1298
|
+
return message;
|
|
1299
|
+
},
|
|
1300
|
+
fromJSON(object) {
|
|
1301
|
+
return applyOperationAbortedCustom({
|
|
1302
|
+
$type: "nebius.common.v1.OperationAborted",
|
|
1303
|
+
operationId: (0, index_1.isSet)(object.operationId ?? object.operation_id)
|
|
1304
|
+
? String(object.operationId ?? object.operation_id)
|
|
1305
|
+
: "",
|
|
1306
|
+
abortedByOperationId: (0, index_1.isSet)(object.abortedByOperationId ?? object.aborted_by_operation_id)
|
|
1307
|
+
? String(object.abortedByOperationId ?? object.aborted_by_operation_id)
|
|
1308
|
+
: "",
|
|
1309
|
+
resourceId: (0, index_1.isSet)(object.resourceId ?? object.resource_id)
|
|
1310
|
+
? String(object.resourceId ?? object.resource_id)
|
|
1311
|
+
: "",
|
|
1312
|
+
});
|
|
1313
|
+
},
|
|
1314
|
+
toJSON(message, use = "json") {
|
|
1315
|
+
const obj = {};
|
|
1316
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
1317
|
+
if (message.operationId !== "") {
|
|
1318
|
+
obj[pick("operationId", "operation_id")] = message.operationId;
|
|
1319
|
+
}
|
|
1320
|
+
if (message.abortedByOperationId !== "") {
|
|
1321
|
+
obj[pick("abortedByOperationId", "aborted_by_operation_id")] = message.abortedByOperationId;
|
|
1322
|
+
}
|
|
1323
|
+
if (message.resourceId !== "") {
|
|
1324
|
+
obj[pick("resourceId", "resource_id")] = message.resourceId;
|
|
1325
|
+
}
|
|
1326
|
+
return obj;
|
|
1327
|
+
},
|
|
1328
|
+
create(base) {
|
|
1329
|
+
return exports.OperationAborted.fromPartial(base ?? {});
|
|
1330
|
+
},
|
|
1331
|
+
fromPartial(object) {
|
|
1332
|
+
const message = createBaseOperationAborted();
|
|
1333
|
+
message.operationId = (object.operationId !== undefined && object.operationId !== null)
|
|
1334
|
+
? object.operationId
|
|
1335
|
+
: "";
|
|
1336
|
+
message.abortedByOperationId = (object.abortedByOperationId !== undefined && object.abortedByOperationId !== null)
|
|
1337
|
+
? object.abortedByOperationId
|
|
1338
|
+
: "";
|
|
1339
|
+
message.resourceId = (object.resourceId !== undefined && object.resourceId !== null)
|
|
1340
|
+
? object.resourceId
|
|
1341
|
+
: "";
|
|
1342
|
+
return message;
|
|
1343
|
+
},
|
|
1344
|
+
};
|
|
1345
|
+
protobuf_1.protoRegistry.registerMessage(exports.OperationAborted);
|
|
1346
|
+
function OperationAbortedCustomInspect() {
|
|
1347
|
+
const parts = [];
|
|
1348
|
+
if (this.operationId !== "")
|
|
1349
|
+
parts.push("operationId" + "=" + (0, util_1.inspect)(this.operationId));
|
|
1350
|
+
if (this.abortedByOperationId !== "")
|
|
1351
|
+
parts.push("abortedByOperationId" + "=" + (0, util_1.inspect)(this.abortedByOperationId));
|
|
1352
|
+
if (this.resourceId !== "")
|
|
1353
|
+
parts.push("resourceId" + "=" + (0, util_1.inspect)(this.resourceId));
|
|
1354
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
1355
|
+
}
|
|
1356
|
+
function OperationAbortedCustomJson() {
|
|
1357
|
+
const obj = {
|
|
1358
|
+
type: this.$type,
|
|
1359
|
+
};
|
|
1360
|
+
if (this.operationId !== "")
|
|
1361
|
+
obj.operationId = (0, logging_1.inspectJson)(this.operationId);
|
|
1362
|
+
if (this.abortedByOperationId !== "")
|
|
1363
|
+
obj.abortedByOperationId = (0, logging_1.inspectJson)(this.abortedByOperationId);
|
|
1364
|
+
if (this.resourceId !== "")
|
|
1365
|
+
obj.resourceId = (0, logging_1.inspectJson)(this.resourceId);
|
|
1366
|
+
return obj;
|
|
1367
|
+
}
|
|
1368
|
+
function applyOperationAbortedCustom(message) {
|
|
1369
|
+
message[logging_1.custom] = OperationAbortedCustomInspect;
|
|
1370
|
+
message[logging_1.customJson] = OperationAbortedCustomJson;
|
|
1371
|
+
return message;
|
|
1372
|
+
}
|
|
1373
|
+
function createBaseOperationAborted() {
|
|
1374
|
+
const message = {
|
|
1375
|
+
$type: "nebius.common.v1.OperationAborted",
|
|
1376
|
+
operationId: "",
|
|
1377
|
+
abortedByOperationId: "",
|
|
1378
|
+
resourceId: "",
|
|
1379
|
+
};
|
|
1380
|
+
return applyOperationAbortedCustom(message);
|
|
1381
|
+
}
|
|
1382
|
+
exports.OutOfRange = {
|
|
1383
|
+
$type: "nebius.common.v1.OutOfRange",
|
|
1384
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
1385
|
+
if (message.requested !== "") {
|
|
1386
|
+
writer.uint32(10).string(message.requested);
|
|
1387
|
+
}
|
|
1388
|
+
if (message.limit !== "") {
|
|
1389
|
+
writer.uint32(18).string(message.limit);
|
|
1390
|
+
}
|
|
1391
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
1392
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1393
|
+
}
|
|
1394
|
+
return writer;
|
|
1395
|
+
},
|
|
1396
|
+
decode(input, length) {
|
|
1397
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
1398
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1399
|
+
const message = createBaseOutOfRange();
|
|
1400
|
+
let writer = undefined;
|
|
1401
|
+
while (reader.pos < end) {
|
|
1402
|
+
const tag = reader.uint32();
|
|
1403
|
+
switch (tag >>> 3) {
|
|
1404
|
+
case 1: {
|
|
1405
|
+
if (tag !== 10)
|
|
1406
|
+
break;
|
|
1407
|
+
message.requested = reader.string();
|
|
1408
|
+
continue;
|
|
1409
|
+
}
|
|
1410
|
+
case 2: {
|
|
1411
|
+
if (tag !== 18)
|
|
1412
|
+
break;
|
|
1413
|
+
message.limit = reader.string();
|
|
1414
|
+
continue;
|
|
1415
|
+
}
|
|
1416
|
+
default:
|
|
1417
|
+
break;
|
|
1418
|
+
}
|
|
1419
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1420
|
+
break;
|
|
1421
|
+
}
|
|
1422
|
+
{
|
|
1423
|
+
if (!writer)
|
|
1424
|
+
writer = new index_1.BinaryWriter();
|
|
1425
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
1426
|
+
writer.uint32(tag).raw(skipped);
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
if (writer) {
|
|
1430
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1431
|
+
}
|
|
1432
|
+
return message;
|
|
1433
|
+
},
|
|
1434
|
+
fromJSON(object) {
|
|
1435
|
+
return applyOutOfRangeCustom({
|
|
1436
|
+
$type: "nebius.common.v1.OutOfRange",
|
|
1437
|
+
requested: (0, index_1.isSet)(object.requested ?? object.requested)
|
|
1438
|
+
? String(object.requested ?? object.requested)
|
|
1439
|
+
: "",
|
|
1440
|
+
limit: (0, index_1.isSet)(object.limit ?? object.limit)
|
|
1441
|
+
? String(object.limit ?? object.limit)
|
|
1442
|
+
: "",
|
|
1443
|
+
});
|
|
1444
|
+
},
|
|
1445
|
+
toJSON(message, use = "json") {
|
|
1446
|
+
const obj = {};
|
|
1447
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
1448
|
+
if (message.requested !== "") {
|
|
1449
|
+
obj[pick("requested", "requested")] = message.requested;
|
|
1450
|
+
}
|
|
1451
|
+
if (message.limit !== "") {
|
|
1452
|
+
obj[pick("limit", "limit")] = message.limit;
|
|
1453
|
+
}
|
|
1454
|
+
return obj;
|
|
1455
|
+
},
|
|
1456
|
+
create(base) {
|
|
1457
|
+
return exports.OutOfRange.fromPartial(base ?? {});
|
|
1458
|
+
},
|
|
1459
|
+
fromPartial(object) {
|
|
1460
|
+
const message = createBaseOutOfRange();
|
|
1461
|
+
message.requested = (object.requested !== undefined && object.requested !== null)
|
|
1462
|
+
? object.requested
|
|
1463
|
+
: "";
|
|
1464
|
+
message.limit = (object.limit !== undefined && object.limit !== null)
|
|
1465
|
+
? object.limit
|
|
1466
|
+
: "";
|
|
1467
|
+
return message;
|
|
1468
|
+
},
|
|
1469
|
+
};
|
|
1470
|
+
protobuf_1.protoRegistry.registerMessage(exports.OutOfRange);
|
|
1471
|
+
function OutOfRangeCustomInspect() {
|
|
1472
|
+
const parts = [];
|
|
1473
|
+
if (this.requested !== "")
|
|
1474
|
+
parts.push("requested" + "=" + (0, util_1.inspect)(this.requested));
|
|
1475
|
+
if (this.limit !== "")
|
|
1476
|
+
parts.push("limit" + "=" + (0, util_1.inspect)(this.limit));
|
|
1477
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
1478
|
+
}
|
|
1479
|
+
function OutOfRangeCustomJson() {
|
|
1480
|
+
const obj = {
|
|
1481
|
+
type: this.$type,
|
|
1482
|
+
};
|
|
1483
|
+
if (this.requested !== "")
|
|
1484
|
+
obj.requested = (0, logging_1.inspectJson)(this.requested);
|
|
1485
|
+
if (this.limit !== "")
|
|
1486
|
+
obj.limit = (0, logging_1.inspectJson)(this.limit);
|
|
1487
|
+
return obj;
|
|
1488
|
+
}
|
|
1489
|
+
function applyOutOfRangeCustom(message) {
|
|
1490
|
+
message[logging_1.custom] = OutOfRangeCustomInspect;
|
|
1491
|
+
message[logging_1.customJson] = OutOfRangeCustomJson;
|
|
1492
|
+
return message;
|
|
1493
|
+
}
|
|
1494
|
+
function createBaseOutOfRange() {
|
|
1495
|
+
const message = {
|
|
1496
|
+
$type: "nebius.common.v1.OutOfRange",
|
|
1497
|
+
requested: "",
|
|
1498
|
+
limit: "",
|
|
1499
|
+
};
|
|
1500
|
+
return applyOutOfRangeCustom(message);
|
|
1501
|
+
}
|
|
1502
|
+
exports.PermissionDenied = {
|
|
1503
|
+
$type: "nebius.common.v1.PermissionDenied",
|
|
1504
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
1505
|
+
if (message.resourceId !== "") {
|
|
1506
|
+
writer.uint32(10).string(message.resourceId);
|
|
1507
|
+
}
|
|
1508
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
1509
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1510
|
+
}
|
|
1511
|
+
return writer;
|
|
1512
|
+
},
|
|
1513
|
+
decode(input, length) {
|
|
1514
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
1515
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1516
|
+
const message = createBasePermissionDenied();
|
|
1517
|
+
let writer = undefined;
|
|
1518
|
+
while (reader.pos < end) {
|
|
1519
|
+
const tag = reader.uint32();
|
|
1520
|
+
switch (tag >>> 3) {
|
|
1521
|
+
case 1: {
|
|
1522
|
+
if (tag !== 10)
|
|
1523
|
+
break;
|
|
1524
|
+
message.resourceId = reader.string();
|
|
1525
|
+
continue;
|
|
1526
|
+
}
|
|
1527
|
+
default:
|
|
1528
|
+
break;
|
|
1529
|
+
}
|
|
1530
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1531
|
+
break;
|
|
1532
|
+
}
|
|
1533
|
+
{
|
|
1534
|
+
if (!writer)
|
|
1535
|
+
writer = new index_1.BinaryWriter();
|
|
1536
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
1537
|
+
writer.uint32(tag).raw(skipped);
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
if (writer) {
|
|
1541
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1542
|
+
}
|
|
1543
|
+
return message;
|
|
1544
|
+
},
|
|
1545
|
+
fromJSON(object) {
|
|
1546
|
+
return applyPermissionDeniedCustom({
|
|
1547
|
+
$type: "nebius.common.v1.PermissionDenied",
|
|
1548
|
+
resourceId: (0, index_1.isSet)(object.resourceId ?? object.resource_id)
|
|
1549
|
+
? String(object.resourceId ?? object.resource_id)
|
|
1550
|
+
: "",
|
|
1551
|
+
});
|
|
1552
|
+
},
|
|
1553
|
+
toJSON(message, use = "json") {
|
|
1554
|
+
const obj = {};
|
|
1555
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
1556
|
+
if (message.resourceId !== "") {
|
|
1557
|
+
obj[pick("resourceId", "resource_id")] = message.resourceId;
|
|
1558
|
+
}
|
|
1559
|
+
return obj;
|
|
1560
|
+
},
|
|
1561
|
+
create(base) {
|
|
1562
|
+
return exports.PermissionDenied.fromPartial(base ?? {});
|
|
1563
|
+
},
|
|
1564
|
+
fromPartial(object) {
|
|
1565
|
+
const message = createBasePermissionDenied();
|
|
1566
|
+
message.resourceId = (object.resourceId !== undefined && object.resourceId !== null)
|
|
1567
|
+
? object.resourceId
|
|
1568
|
+
: "";
|
|
1569
|
+
return message;
|
|
1570
|
+
},
|
|
1571
|
+
};
|
|
1572
|
+
protobuf_1.protoRegistry.registerMessage(exports.PermissionDenied);
|
|
1573
|
+
function PermissionDeniedCustomInspect() {
|
|
1574
|
+
const parts = [];
|
|
1575
|
+
if (this.resourceId !== "")
|
|
1576
|
+
parts.push("resourceId" + "=" + (0, util_1.inspect)(this.resourceId));
|
|
1577
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
1578
|
+
}
|
|
1579
|
+
function PermissionDeniedCustomJson() {
|
|
1580
|
+
const obj = {
|
|
1581
|
+
type: this.$type,
|
|
1582
|
+
};
|
|
1583
|
+
if (this.resourceId !== "")
|
|
1584
|
+
obj.resourceId = (0, logging_1.inspectJson)(this.resourceId);
|
|
1585
|
+
return obj;
|
|
1586
|
+
}
|
|
1587
|
+
function applyPermissionDeniedCustom(message) {
|
|
1588
|
+
message[logging_1.custom] = PermissionDeniedCustomInspect;
|
|
1589
|
+
message[logging_1.customJson] = PermissionDeniedCustomJson;
|
|
1590
|
+
return message;
|
|
1591
|
+
}
|
|
1592
|
+
function createBasePermissionDenied() {
|
|
1593
|
+
const message = {
|
|
1594
|
+
$type: "nebius.common.v1.PermissionDenied",
|
|
1595
|
+
resourceId: "",
|
|
1596
|
+
};
|
|
1597
|
+
return applyPermissionDeniedCustom(message);
|
|
1598
|
+
}
|
|
1599
|
+
exports.InternalError = {
|
|
1600
|
+
$type: "nebius.common.v1.InternalError",
|
|
1601
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
1602
|
+
if (message.requestId !== "") {
|
|
1603
|
+
writer.uint32(10).string(message.requestId);
|
|
1604
|
+
}
|
|
1605
|
+
if (message.traceId !== "") {
|
|
1606
|
+
writer.uint32(18).string(message.traceId);
|
|
1607
|
+
}
|
|
1608
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
1609
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1610
|
+
}
|
|
1611
|
+
return writer;
|
|
1612
|
+
},
|
|
1613
|
+
decode(input, length) {
|
|
1614
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
1615
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1616
|
+
const message = createBaseInternalError();
|
|
1617
|
+
let writer = undefined;
|
|
1618
|
+
while (reader.pos < end) {
|
|
1619
|
+
const tag = reader.uint32();
|
|
1620
|
+
switch (tag >>> 3) {
|
|
1621
|
+
case 1: {
|
|
1622
|
+
if (tag !== 10)
|
|
1623
|
+
break;
|
|
1624
|
+
message.requestId = reader.string();
|
|
1625
|
+
continue;
|
|
1626
|
+
}
|
|
1627
|
+
case 2: {
|
|
1628
|
+
if (tag !== 18)
|
|
1629
|
+
break;
|
|
1630
|
+
message.traceId = reader.string();
|
|
1631
|
+
continue;
|
|
1632
|
+
}
|
|
1633
|
+
default:
|
|
1634
|
+
break;
|
|
1635
|
+
}
|
|
1636
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1637
|
+
break;
|
|
1638
|
+
}
|
|
1639
|
+
{
|
|
1640
|
+
if (!writer)
|
|
1641
|
+
writer = new index_1.BinaryWriter();
|
|
1642
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
1643
|
+
writer.uint32(tag).raw(skipped);
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
if (writer) {
|
|
1647
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1648
|
+
}
|
|
1649
|
+
return message;
|
|
1650
|
+
},
|
|
1651
|
+
fromJSON(object) {
|
|
1652
|
+
return applyInternalErrorCustom({
|
|
1653
|
+
$type: "nebius.common.v1.InternalError",
|
|
1654
|
+
requestId: (0, index_1.isSet)(object.requestId ?? object.request_id)
|
|
1655
|
+
? String(object.requestId ?? object.request_id)
|
|
1656
|
+
: "",
|
|
1657
|
+
traceId: (0, index_1.isSet)(object.traceId ?? object.trace_id)
|
|
1658
|
+
? String(object.traceId ?? object.trace_id)
|
|
1659
|
+
: "",
|
|
1660
|
+
});
|
|
1661
|
+
},
|
|
1662
|
+
toJSON(message, use = "json") {
|
|
1663
|
+
const obj = {};
|
|
1664
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
1665
|
+
if (message.requestId !== "") {
|
|
1666
|
+
obj[pick("requestId", "request_id")] = message.requestId;
|
|
1667
|
+
}
|
|
1668
|
+
if (message.traceId !== "") {
|
|
1669
|
+
obj[pick("traceId", "trace_id")] = message.traceId;
|
|
1670
|
+
}
|
|
1671
|
+
return obj;
|
|
1672
|
+
},
|
|
1673
|
+
create(base) {
|
|
1674
|
+
return exports.InternalError.fromPartial(base ?? {});
|
|
1675
|
+
},
|
|
1676
|
+
fromPartial(object) {
|
|
1677
|
+
const message = createBaseInternalError();
|
|
1678
|
+
message.requestId = (object.requestId !== undefined && object.requestId !== null)
|
|
1679
|
+
? object.requestId
|
|
1680
|
+
: "";
|
|
1681
|
+
message.traceId = (object.traceId !== undefined && object.traceId !== null)
|
|
1682
|
+
? object.traceId
|
|
1683
|
+
: "";
|
|
1684
|
+
return message;
|
|
1685
|
+
},
|
|
1686
|
+
};
|
|
1687
|
+
protobuf_1.protoRegistry.registerMessage(exports.InternalError);
|
|
1688
|
+
function InternalErrorCustomInspect() {
|
|
1689
|
+
const parts = [];
|
|
1690
|
+
if (this.requestId !== "")
|
|
1691
|
+
parts.push("requestId" + "=" + (0, util_1.inspect)(this.requestId));
|
|
1692
|
+
if (this.traceId !== "")
|
|
1693
|
+
parts.push("traceId" + "=" + (0, util_1.inspect)(this.traceId));
|
|
1694
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
1695
|
+
}
|
|
1696
|
+
function InternalErrorCustomJson() {
|
|
1697
|
+
const obj = {
|
|
1698
|
+
type: this.$type,
|
|
1699
|
+
};
|
|
1700
|
+
if (this.requestId !== "")
|
|
1701
|
+
obj.requestId = (0, logging_1.inspectJson)(this.requestId);
|
|
1702
|
+
if (this.traceId !== "")
|
|
1703
|
+
obj.traceId = (0, logging_1.inspectJson)(this.traceId);
|
|
1704
|
+
return obj;
|
|
1705
|
+
}
|
|
1706
|
+
function applyInternalErrorCustom(message) {
|
|
1707
|
+
message[logging_1.custom] = InternalErrorCustomInspect;
|
|
1708
|
+
message[logging_1.customJson] = InternalErrorCustomJson;
|
|
1709
|
+
return message;
|
|
1710
|
+
}
|
|
1711
|
+
function createBaseInternalError() {
|
|
1712
|
+
const message = {
|
|
1713
|
+
$type: "nebius.common.v1.InternalError",
|
|
1714
|
+
requestId: "",
|
|
1715
|
+
traceId: "",
|
|
1716
|
+
};
|
|
1717
|
+
return applyInternalErrorCustom(message);
|
|
1718
|
+
}
|
|
1719
|
+
exports.TooManyRequests = {
|
|
1720
|
+
$type: "nebius.common.v1.TooManyRequests",
|
|
1721
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
1722
|
+
if (message.violation !== "") {
|
|
1723
|
+
writer.uint32(10).string(message.violation);
|
|
1724
|
+
}
|
|
1725
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
1726
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1727
|
+
}
|
|
1728
|
+
return writer;
|
|
1729
|
+
},
|
|
1730
|
+
decode(input, length) {
|
|
1731
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
1732
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1733
|
+
const message = createBaseTooManyRequests();
|
|
1734
|
+
let writer = undefined;
|
|
1735
|
+
while (reader.pos < end) {
|
|
1736
|
+
const tag = reader.uint32();
|
|
1737
|
+
switch (tag >>> 3) {
|
|
1738
|
+
case 1: {
|
|
1739
|
+
if (tag !== 10)
|
|
1740
|
+
break;
|
|
1741
|
+
message.violation = reader.string();
|
|
1742
|
+
continue;
|
|
1743
|
+
}
|
|
1744
|
+
default:
|
|
1745
|
+
break;
|
|
1746
|
+
}
|
|
1747
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1748
|
+
break;
|
|
1749
|
+
}
|
|
1750
|
+
{
|
|
1751
|
+
if (!writer)
|
|
1752
|
+
writer = new index_1.BinaryWriter();
|
|
1753
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
1754
|
+
writer.uint32(tag).raw(skipped);
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
if (writer) {
|
|
1758
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1759
|
+
}
|
|
1760
|
+
return message;
|
|
1761
|
+
},
|
|
1762
|
+
fromJSON(object) {
|
|
1763
|
+
return applyTooManyRequestsCustom({
|
|
1764
|
+
$type: "nebius.common.v1.TooManyRequests",
|
|
1765
|
+
violation: (0, index_1.isSet)(object.violation ?? object.violation)
|
|
1766
|
+
? String(object.violation ?? object.violation)
|
|
1767
|
+
: "",
|
|
1768
|
+
});
|
|
1769
|
+
},
|
|
1770
|
+
toJSON(message, use = "json") {
|
|
1771
|
+
const obj = {};
|
|
1772
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
1773
|
+
if (message.violation !== "") {
|
|
1774
|
+
obj[pick("violation", "violation")] = message.violation;
|
|
1775
|
+
}
|
|
1776
|
+
return obj;
|
|
1777
|
+
},
|
|
1778
|
+
create(base) {
|
|
1779
|
+
return exports.TooManyRequests.fromPartial(base ?? {});
|
|
1780
|
+
},
|
|
1781
|
+
fromPartial(object) {
|
|
1782
|
+
const message = createBaseTooManyRequests();
|
|
1783
|
+
message.violation = (object.violation !== undefined && object.violation !== null)
|
|
1784
|
+
? object.violation
|
|
1785
|
+
: "";
|
|
1786
|
+
return message;
|
|
1787
|
+
},
|
|
1788
|
+
};
|
|
1789
|
+
protobuf_1.protoRegistry.registerMessage(exports.TooManyRequests);
|
|
1790
|
+
function TooManyRequestsCustomInspect() {
|
|
1791
|
+
const parts = [];
|
|
1792
|
+
if (this.violation !== "")
|
|
1793
|
+
parts.push("violation" + "=" + (0, util_1.inspect)(this.violation));
|
|
1794
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
1795
|
+
}
|
|
1796
|
+
function TooManyRequestsCustomJson() {
|
|
1797
|
+
const obj = {
|
|
1798
|
+
type: this.$type,
|
|
1799
|
+
};
|
|
1800
|
+
if (this.violation !== "")
|
|
1801
|
+
obj.violation = (0, logging_1.inspectJson)(this.violation);
|
|
1802
|
+
return obj;
|
|
1803
|
+
}
|
|
1804
|
+
function applyTooManyRequestsCustom(message) {
|
|
1805
|
+
message[logging_1.custom] = TooManyRequestsCustomInspect;
|
|
1806
|
+
message[logging_1.customJson] = TooManyRequestsCustomJson;
|
|
1807
|
+
return message;
|
|
1808
|
+
}
|
|
1809
|
+
function createBaseTooManyRequests() {
|
|
1810
|
+
const message = {
|
|
1811
|
+
$type: "nebius.common.v1.TooManyRequests",
|
|
1812
|
+
violation: "",
|
|
1813
|
+
};
|
|
1814
|
+
return applyTooManyRequestsCustom(message);
|
|
1815
|
+
}
|
|
1816
|
+
exports.QuotaFailure = {
|
|
1817
|
+
$type: "nebius.common.v1.QuotaFailure",
|
|
1818
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
1819
|
+
for (const v of (message.violations ?? [])) {
|
|
1820
|
+
const w = writer.uint32(10).fork();
|
|
1821
|
+
exports.QuotaFailure_Violation.encode(v, w);
|
|
1822
|
+
w.join();
|
|
1823
|
+
}
|
|
1824
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
1825
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1826
|
+
}
|
|
1827
|
+
return writer;
|
|
1828
|
+
},
|
|
1829
|
+
decode(input, length) {
|
|
1830
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
1831
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1832
|
+
const message = createBaseQuotaFailure();
|
|
1833
|
+
let writer = undefined;
|
|
1834
|
+
while (reader.pos < end) {
|
|
1835
|
+
const tag = reader.uint32();
|
|
1836
|
+
switch (tag >>> 3) {
|
|
1837
|
+
case 1: {
|
|
1838
|
+
if (tag !== 10)
|
|
1839
|
+
break;
|
|
1840
|
+
message.violations.push(exports.QuotaFailure_Violation.decode(reader, reader.uint32()));
|
|
1841
|
+
continue;
|
|
1842
|
+
}
|
|
1843
|
+
default:
|
|
1844
|
+
break;
|
|
1845
|
+
}
|
|
1846
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1847
|
+
break;
|
|
1848
|
+
}
|
|
1849
|
+
{
|
|
1850
|
+
if (!writer)
|
|
1851
|
+
writer = new index_1.BinaryWriter();
|
|
1852
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
1853
|
+
writer.uint32(tag).raw(skipped);
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
if (writer) {
|
|
1857
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1858
|
+
}
|
|
1859
|
+
return message;
|
|
1860
|
+
},
|
|
1861
|
+
fromJSON(object) {
|
|
1862
|
+
return applyQuotaFailureCustom({
|
|
1863
|
+
$type: "nebius.common.v1.QuotaFailure",
|
|
1864
|
+
violations: globalThis.Array.isArray(object?.violations ?? object?.violations)
|
|
1865
|
+
? (object.violations ?? object.violations).map((e) => exports.QuotaFailure_Violation.fromJSON(e))
|
|
1866
|
+
: [],
|
|
1867
|
+
});
|
|
1868
|
+
},
|
|
1869
|
+
toJSON(message, use = "json") {
|
|
1870
|
+
const obj = {};
|
|
1871
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
1872
|
+
if (message.violations?.length) {
|
|
1873
|
+
obj[pick("violations", "violations")] = message.violations.map((e) => e ? exports.QuotaFailure_Violation.toJSON(e, use) : undefined);
|
|
1874
|
+
}
|
|
1875
|
+
return obj;
|
|
1876
|
+
},
|
|
1877
|
+
create(base) {
|
|
1878
|
+
return exports.QuotaFailure.fromPartial(base ?? {});
|
|
1879
|
+
},
|
|
1880
|
+
fromPartial(object) {
|
|
1881
|
+
const message = createBaseQuotaFailure();
|
|
1882
|
+
message.violations = object.violations?.map((e) => exports.QuotaFailure_Violation.fromPartial(e)) || [];
|
|
1883
|
+
return message;
|
|
1884
|
+
},
|
|
1885
|
+
};
|
|
1886
|
+
protobuf_1.protoRegistry.registerMessage(exports.QuotaFailure);
|
|
1887
|
+
function QuotaFailureCustomInspect() {
|
|
1888
|
+
const parts = [];
|
|
1889
|
+
if ((this.violations?.length ?? 0) !== 0)
|
|
1890
|
+
parts.push("violations" + "=" + (0, util_1.inspect)(this.violations));
|
|
1891
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
1892
|
+
}
|
|
1893
|
+
function QuotaFailureCustomJson() {
|
|
1894
|
+
const obj = {
|
|
1895
|
+
type: this.$type,
|
|
1896
|
+
};
|
|
1897
|
+
if ((this.violations?.length ?? 0) !== 0)
|
|
1898
|
+
obj.violations = (0, logging_1.inspectJson)(this.violations);
|
|
1899
|
+
return obj;
|
|
1900
|
+
}
|
|
1901
|
+
function applyQuotaFailureCustom(message) {
|
|
1902
|
+
message[logging_1.custom] = QuotaFailureCustomInspect;
|
|
1903
|
+
message[logging_1.customJson] = QuotaFailureCustomJson;
|
|
1904
|
+
return message;
|
|
1905
|
+
}
|
|
1906
|
+
function createBaseQuotaFailure() {
|
|
1907
|
+
const message = {
|
|
1908
|
+
$type: "nebius.common.v1.QuotaFailure",
|
|
1909
|
+
violations: [],
|
|
1910
|
+
};
|
|
1911
|
+
return applyQuotaFailureCustom(message);
|
|
1912
|
+
}
|
|
1913
|
+
exports.QuotaFailure_Violation = {
|
|
1914
|
+
$type: "nebius.common.v1.QuotaFailure.Violation",
|
|
1915
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
1916
|
+
if (message.quota !== "") {
|
|
1917
|
+
writer.uint32(10).string(message.quota);
|
|
1918
|
+
}
|
|
1919
|
+
if (message.message !== "") {
|
|
1920
|
+
writer.uint32(18).string(message.message);
|
|
1921
|
+
}
|
|
1922
|
+
if (message.limit !== "") {
|
|
1923
|
+
writer.uint32(26).string(message.limit);
|
|
1924
|
+
}
|
|
1925
|
+
if (message.requested !== "") {
|
|
1926
|
+
writer.uint32(34).string(message.requested);
|
|
1927
|
+
}
|
|
1928
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
1929
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1930
|
+
}
|
|
1931
|
+
return writer;
|
|
1932
|
+
},
|
|
1933
|
+
decode(input, length) {
|
|
1934
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
1935
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1936
|
+
const message = createBaseQuotaFailure_Violation();
|
|
1937
|
+
let writer = undefined;
|
|
1938
|
+
while (reader.pos < end) {
|
|
1939
|
+
const tag = reader.uint32();
|
|
1940
|
+
switch (tag >>> 3) {
|
|
1941
|
+
case 1: {
|
|
1942
|
+
if (tag !== 10)
|
|
1943
|
+
break;
|
|
1944
|
+
message.quota = reader.string();
|
|
1945
|
+
continue;
|
|
1946
|
+
}
|
|
1947
|
+
case 2: {
|
|
1948
|
+
if (tag !== 18)
|
|
1949
|
+
break;
|
|
1950
|
+
message.message = reader.string();
|
|
1951
|
+
continue;
|
|
1952
|
+
}
|
|
1953
|
+
case 3: {
|
|
1954
|
+
if (tag !== 26)
|
|
1955
|
+
break;
|
|
1956
|
+
message.limit = reader.string();
|
|
1957
|
+
continue;
|
|
1958
|
+
}
|
|
1959
|
+
case 4: {
|
|
1960
|
+
if (tag !== 34)
|
|
1961
|
+
break;
|
|
1962
|
+
message.requested = reader.string();
|
|
1963
|
+
continue;
|
|
1964
|
+
}
|
|
1965
|
+
default:
|
|
1966
|
+
break;
|
|
1967
|
+
}
|
|
1968
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1969
|
+
break;
|
|
1970
|
+
}
|
|
1971
|
+
{
|
|
1972
|
+
if (!writer)
|
|
1973
|
+
writer = new index_1.BinaryWriter();
|
|
1974
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
1975
|
+
writer.uint32(tag).raw(skipped);
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
if (writer) {
|
|
1979
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1980
|
+
}
|
|
1981
|
+
return message;
|
|
1982
|
+
},
|
|
1983
|
+
fromJSON(object) {
|
|
1984
|
+
return applyQuotaFailure_ViolationCustom({
|
|
1985
|
+
$type: "nebius.common.v1.QuotaFailure.Violation",
|
|
1986
|
+
quota: (0, index_1.isSet)(object.quota ?? object.quota)
|
|
1987
|
+
? String(object.quota ?? object.quota)
|
|
1988
|
+
: "",
|
|
1989
|
+
message: (0, index_1.isSet)(object.message ?? object.message)
|
|
1990
|
+
? String(object.message ?? object.message)
|
|
1991
|
+
: "",
|
|
1992
|
+
limit: (0, index_1.isSet)(object.limit ?? object.limit)
|
|
1993
|
+
? String(object.limit ?? object.limit)
|
|
1994
|
+
: "",
|
|
1995
|
+
requested: (0, index_1.isSet)(object.requested ?? object.requested)
|
|
1996
|
+
? String(object.requested ?? object.requested)
|
|
1997
|
+
: "",
|
|
1998
|
+
});
|
|
1999
|
+
},
|
|
2000
|
+
toJSON(message, use = "json") {
|
|
2001
|
+
const obj = {};
|
|
2002
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2003
|
+
if (message.quota !== "") {
|
|
2004
|
+
obj[pick("quota", "quota")] = message.quota;
|
|
2005
|
+
}
|
|
2006
|
+
if (message.message !== "") {
|
|
2007
|
+
obj[pick("message", "message")] = message.message;
|
|
2008
|
+
}
|
|
2009
|
+
if (message.limit !== "") {
|
|
2010
|
+
obj[pick("limit", "limit")] = message.limit;
|
|
2011
|
+
}
|
|
2012
|
+
if (message.requested !== "") {
|
|
2013
|
+
obj[pick("requested", "requested")] = message.requested;
|
|
2014
|
+
}
|
|
2015
|
+
return obj;
|
|
2016
|
+
},
|
|
2017
|
+
create(base) {
|
|
2018
|
+
return exports.QuotaFailure_Violation.fromPartial(base ?? {});
|
|
2019
|
+
},
|
|
2020
|
+
fromPartial(object) {
|
|
2021
|
+
const message = createBaseQuotaFailure_Violation();
|
|
2022
|
+
message.quota = (object.quota !== undefined && object.quota !== null)
|
|
2023
|
+
? object.quota
|
|
2024
|
+
: "";
|
|
2025
|
+
message.message = (object.message !== undefined && object.message !== null)
|
|
2026
|
+
? object.message
|
|
2027
|
+
: "";
|
|
2028
|
+
message.limit = (object.limit !== undefined && object.limit !== null)
|
|
2029
|
+
? object.limit
|
|
2030
|
+
: "";
|
|
2031
|
+
message.requested = (object.requested !== undefined && object.requested !== null)
|
|
2032
|
+
? object.requested
|
|
2033
|
+
: "";
|
|
2034
|
+
return message;
|
|
2035
|
+
},
|
|
2036
|
+
};
|
|
2037
|
+
protobuf_1.protoRegistry.registerMessage(exports.QuotaFailure_Violation);
|
|
2038
|
+
function QuotaFailure_ViolationCustomInspect() {
|
|
2039
|
+
const parts = [];
|
|
2040
|
+
if (this.quota !== "")
|
|
2041
|
+
parts.push("quota" + "=" + (0, util_1.inspect)(this.quota));
|
|
2042
|
+
if (this.message !== "")
|
|
2043
|
+
parts.push("message" + "=" + (0, util_1.inspect)(this.message));
|
|
2044
|
+
if (this.limit !== "")
|
|
2045
|
+
parts.push("limit" + "=" + (0, util_1.inspect)(this.limit));
|
|
2046
|
+
if (this.requested !== "")
|
|
2047
|
+
parts.push("requested" + "=" + (0, util_1.inspect)(this.requested));
|
|
2048
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2049
|
+
}
|
|
2050
|
+
function QuotaFailure_ViolationCustomJson() {
|
|
2051
|
+
const obj = {
|
|
2052
|
+
type: this.$type,
|
|
2053
|
+
};
|
|
2054
|
+
if (this.quota !== "")
|
|
2055
|
+
obj.quota = (0, logging_1.inspectJson)(this.quota);
|
|
2056
|
+
if (this.message !== "")
|
|
2057
|
+
obj.message = (0, logging_1.inspectJson)(this.message);
|
|
2058
|
+
if (this.limit !== "")
|
|
2059
|
+
obj.limit = (0, logging_1.inspectJson)(this.limit);
|
|
2060
|
+
if (this.requested !== "")
|
|
2061
|
+
obj.requested = (0, logging_1.inspectJson)(this.requested);
|
|
2062
|
+
return obj;
|
|
2063
|
+
}
|
|
2064
|
+
function applyQuotaFailure_ViolationCustom(message) {
|
|
2065
|
+
message[logging_1.custom] = QuotaFailure_ViolationCustomInspect;
|
|
2066
|
+
message[logging_1.customJson] = QuotaFailure_ViolationCustomJson;
|
|
2067
|
+
return message;
|
|
2068
|
+
}
|
|
2069
|
+
function createBaseQuotaFailure_Violation() {
|
|
2070
|
+
const message = {
|
|
2071
|
+
$type: "nebius.common.v1.QuotaFailure.Violation",
|
|
2072
|
+
quota: "",
|
|
2073
|
+
message: "",
|
|
2074
|
+
limit: "",
|
|
2075
|
+
requested: "",
|
|
2076
|
+
};
|
|
2077
|
+
return applyQuotaFailure_ViolationCustom(message);
|
|
2078
|
+
}
|
|
2079
|
+
exports.NotEnoughResources = {
|
|
2080
|
+
$type: "nebius.common.v1.NotEnoughResources",
|
|
2081
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2082
|
+
for (const v of (message.violations ?? [])) {
|
|
2083
|
+
const w = writer.uint32(10).fork();
|
|
2084
|
+
exports.NotEnoughResources_Violation.encode(v, w);
|
|
2085
|
+
w.join();
|
|
2086
|
+
}
|
|
2087
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2088
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2089
|
+
}
|
|
2090
|
+
return writer;
|
|
2091
|
+
},
|
|
2092
|
+
decode(input, length) {
|
|
2093
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2094
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2095
|
+
const message = createBaseNotEnoughResources();
|
|
2096
|
+
let writer = undefined;
|
|
2097
|
+
while (reader.pos < end) {
|
|
2098
|
+
const tag = reader.uint32();
|
|
2099
|
+
switch (tag >>> 3) {
|
|
2100
|
+
case 1: {
|
|
2101
|
+
if (tag !== 10)
|
|
2102
|
+
break;
|
|
2103
|
+
message.violations.push(exports.NotEnoughResources_Violation.decode(reader, reader.uint32()));
|
|
2104
|
+
continue;
|
|
2105
|
+
}
|
|
2106
|
+
default:
|
|
2107
|
+
break;
|
|
2108
|
+
}
|
|
2109
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2110
|
+
break;
|
|
2111
|
+
}
|
|
2112
|
+
{
|
|
2113
|
+
if (!writer)
|
|
2114
|
+
writer = new index_1.BinaryWriter();
|
|
2115
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2116
|
+
writer.uint32(tag).raw(skipped);
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
if (writer) {
|
|
2120
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2121
|
+
}
|
|
2122
|
+
return message;
|
|
2123
|
+
},
|
|
2124
|
+
fromJSON(object) {
|
|
2125
|
+
return applyNotEnoughResourcesCustom({
|
|
2126
|
+
$type: "nebius.common.v1.NotEnoughResources",
|
|
2127
|
+
violations: globalThis.Array.isArray(object?.violations ?? object?.violations)
|
|
2128
|
+
? (object.violations ?? object.violations).map((e) => exports.NotEnoughResources_Violation.fromJSON(e))
|
|
2129
|
+
: [],
|
|
2130
|
+
});
|
|
2131
|
+
},
|
|
2132
|
+
toJSON(message, use = "json") {
|
|
2133
|
+
const obj = {};
|
|
2134
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2135
|
+
if (message.violations?.length) {
|
|
2136
|
+
obj[pick("violations", "violations")] = message.violations.map((e) => e ? exports.NotEnoughResources_Violation.toJSON(e, use) : undefined);
|
|
2137
|
+
}
|
|
2138
|
+
return obj;
|
|
2139
|
+
},
|
|
2140
|
+
create(base) {
|
|
2141
|
+
return exports.NotEnoughResources.fromPartial(base ?? {});
|
|
2142
|
+
},
|
|
2143
|
+
fromPartial(object) {
|
|
2144
|
+
const message = createBaseNotEnoughResources();
|
|
2145
|
+
message.violations = object.violations?.map((e) => exports.NotEnoughResources_Violation.fromPartial(e)) || [];
|
|
2146
|
+
return message;
|
|
2147
|
+
},
|
|
2148
|
+
};
|
|
2149
|
+
protobuf_1.protoRegistry.registerMessage(exports.NotEnoughResources);
|
|
2150
|
+
function NotEnoughResourcesCustomInspect() {
|
|
2151
|
+
const parts = [];
|
|
2152
|
+
if ((this.violations?.length ?? 0) !== 0)
|
|
2153
|
+
parts.push("violations" + "=" + (0, util_1.inspect)(this.violations));
|
|
2154
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2155
|
+
}
|
|
2156
|
+
function NotEnoughResourcesCustomJson() {
|
|
2157
|
+
const obj = {
|
|
2158
|
+
type: this.$type,
|
|
2159
|
+
};
|
|
2160
|
+
if ((this.violations?.length ?? 0) !== 0)
|
|
2161
|
+
obj.violations = (0, logging_1.inspectJson)(this.violations);
|
|
2162
|
+
return obj;
|
|
2163
|
+
}
|
|
2164
|
+
function applyNotEnoughResourcesCustom(message) {
|
|
2165
|
+
message[logging_1.custom] = NotEnoughResourcesCustomInspect;
|
|
2166
|
+
message[logging_1.customJson] = NotEnoughResourcesCustomJson;
|
|
2167
|
+
return message;
|
|
2168
|
+
}
|
|
2169
|
+
function createBaseNotEnoughResources() {
|
|
2170
|
+
const message = {
|
|
2171
|
+
$type: "nebius.common.v1.NotEnoughResources",
|
|
2172
|
+
violations: [],
|
|
2173
|
+
};
|
|
2174
|
+
return applyNotEnoughResourcesCustom(message);
|
|
2175
|
+
}
|
|
2176
|
+
exports.NotEnoughResources_Violation = {
|
|
2177
|
+
$type: "nebius.common.v1.NotEnoughResources.Violation",
|
|
2178
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2179
|
+
if (message.resourceType !== "") {
|
|
2180
|
+
writer.uint32(10).string(message.resourceType);
|
|
2181
|
+
}
|
|
2182
|
+
if (message.message !== "") {
|
|
2183
|
+
writer.uint32(18).string(message.message);
|
|
2184
|
+
}
|
|
2185
|
+
if (message.requested !== "") {
|
|
2186
|
+
writer.uint32(26).string(message.requested);
|
|
2187
|
+
}
|
|
2188
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2189
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2190
|
+
}
|
|
2191
|
+
return writer;
|
|
2192
|
+
},
|
|
2193
|
+
decode(input, length) {
|
|
2194
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2195
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2196
|
+
const message = createBaseNotEnoughResources_Violation();
|
|
2197
|
+
let writer = undefined;
|
|
2198
|
+
while (reader.pos < end) {
|
|
2199
|
+
const tag = reader.uint32();
|
|
2200
|
+
switch (tag >>> 3) {
|
|
2201
|
+
case 1: {
|
|
2202
|
+
if (tag !== 10)
|
|
2203
|
+
break;
|
|
2204
|
+
message.resourceType = reader.string();
|
|
2205
|
+
continue;
|
|
2206
|
+
}
|
|
2207
|
+
case 2: {
|
|
2208
|
+
if (tag !== 18)
|
|
2209
|
+
break;
|
|
2210
|
+
message.message = reader.string();
|
|
2211
|
+
continue;
|
|
2212
|
+
}
|
|
2213
|
+
case 3: {
|
|
2214
|
+
if (tag !== 26)
|
|
2215
|
+
break;
|
|
2216
|
+
message.requested = reader.string();
|
|
2217
|
+
continue;
|
|
2218
|
+
}
|
|
2219
|
+
default:
|
|
2220
|
+
break;
|
|
2221
|
+
}
|
|
2222
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2223
|
+
break;
|
|
2224
|
+
}
|
|
2225
|
+
{
|
|
2226
|
+
if (!writer)
|
|
2227
|
+
writer = new index_1.BinaryWriter();
|
|
2228
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2229
|
+
writer.uint32(tag).raw(skipped);
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
if (writer) {
|
|
2233
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2234
|
+
}
|
|
2235
|
+
return message;
|
|
2236
|
+
},
|
|
2237
|
+
fromJSON(object) {
|
|
2238
|
+
return applyNotEnoughResources_ViolationCustom({
|
|
2239
|
+
$type: "nebius.common.v1.NotEnoughResources.Violation",
|
|
2240
|
+
resourceType: (0, index_1.isSet)(object.resourceType ?? object.resource_type)
|
|
2241
|
+
? String(object.resourceType ?? object.resource_type)
|
|
2242
|
+
: "",
|
|
2243
|
+
message: (0, index_1.isSet)(object.message ?? object.message)
|
|
2244
|
+
? String(object.message ?? object.message)
|
|
2245
|
+
: "",
|
|
2246
|
+
requested: (0, index_1.isSet)(object.requested ?? object.requested)
|
|
2247
|
+
? String(object.requested ?? object.requested)
|
|
2248
|
+
: "",
|
|
2249
|
+
});
|
|
2250
|
+
},
|
|
2251
|
+
toJSON(message, use = "json") {
|
|
2252
|
+
const obj = {};
|
|
2253
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2254
|
+
if (message.resourceType !== "") {
|
|
2255
|
+
obj[pick("resourceType", "resource_type")] = message.resourceType;
|
|
2256
|
+
}
|
|
2257
|
+
if (message.message !== "") {
|
|
2258
|
+
obj[pick("message", "message")] = message.message;
|
|
2259
|
+
}
|
|
2260
|
+
if (message.requested !== "") {
|
|
2261
|
+
obj[pick("requested", "requested")] = message.requested;
|
|
2262
|
+
}
|
|
2263
|
+
return obj;
|
|
2264
|
+
},
|
|
2265
|
+
create(base) {
|
|
2266
|
+
return exports.NotEnoughResources_Violation.fromPartial(base ?? {});
|
|
2267
|
+
},
|
|
2268
|
+
fromPartial(object) {
|
|
2269
|
+
const message = createBaseNotEnoughResources_Violation();
|
|
2270
|
+
message.resourceType = (object.resourceType !== undefined && object.resourceType !== null)
|
|
2271
|
+
? object.resourceType
|
|
2272
|
+
: "";
|
|
2273
|
+
message.message = (object.message !== undefined && object.message !== null)
|
|
2274
|
+
? object.message
|
|
2275
|
+
: "";
|
|
2276
|
+
message.requested = (object.requested !== undefined && object.requested !== null)
|
|
2277
|
+
? object.requested
|
|
2278
|
+
: "";
|
|
2279
|
+
return message;
|
|
2280
|
+
},
|
|
2281
|
+
};
|
|
2282
|
+
protobuf_1.protoRegistry.registerMessage(exports.NotEnoughResources_Violation);
|
|
2283
|
+
function NotEnoughResources_ViolationCustomInspect() {
|
|
2284
|
+
const parts = [];
|
|
2285
|
+
if (this.resourceType !== "")
|
|
2286
|
+
parts.push("resourceType" + "=" + (0, util_1.inspect)(this.resourceType));
|
|
2287
|
+
if (this.message !== "")
|
|
2288
|
+
parts.push("message" + "=" + (0, util_1.inspect)(this.message));
|
|
2289
|
+
if (this.requested !== "")
|
|
2290
|
+
parts.push("requested" + "=" + (0, util_1.inspect)(this.requested));
|
|
2291
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2292
|
+
}
|
|
2293
|
+
function NotEnoughResources_ViolationCustomJson() {
|
|
2294
|
+
const obj = {
|
|
2295
|
+
type: this.$type,
|
|
2296
|
+
};
|
|
2297
|
+
if (this.resourceType !== "")
|
|
2298
|
+
obj.resourceType = (0, logging_1.inspectJson)(this.resourceType);
|
|
2299
|
+
if (this.message !== "")
|
|
2300
|
+
obj.message = (0, logging_1.inspectJson)(this.message);
|
|
2301
|
+
if (this.requested !== "")
|
|
2302
|
+
obj.requested = (0, logging_1.inspectJson)(this.requested);
|
|
2303
|
+
return obj;
|
|
2304
|
+
}
|
|
2305
|
+
function applyNotEnoughResources_ViolationCustom(message) {
|
|
2306
|
+
message[logging_1.custom] = NotEnoughResources_ViolationCustomInspect;
|
|
2307
|
+
message[logging_1.customJson] = NotEnoughResources_ViolationCustomJson;
|
|
2308
|
+
return message;
|
|
2309
|
+
}
|
|
2310
|
+
function createBaseNotEnoughResources_Violation() {
|
|
2311
|
+
const message = {
|
|
2312
|
+
$type: "nebius.common.v1.NotEnoughResources.Violation",
|
|
2313
|
+
resourceType: "",
|
|
2314
|
+
message: "",
|
|
2315
|
+
requested: "",
|
|
2316
|
+
};
|
|
2317
|
+
return applyNotEnoughResources_ViolationCustom(message);
|
|
2318
|
+
}
|
|
2319
|
+
exports.ResourceMetadata = {
|
|
2320
|
+
$type: "nebius.common.v1.ResourceMetadata",
|
|
2321
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2322
|
+
if (message.id !== "") {
|
|
2323
|
+
writer.uint32(10).string(message.id);
|
|
2324
|
+
}
|
|
2325
|
+
if (message.parentId !== "") {
|
|
2326
|
+
writer.uint32(18).string(message.parentId);
|
|
2327
|
+
}
|
|
2328
|
+
if (message.name !== "") {
|
|
2329
|
+
writer.uint32(26).string(message.name);
|
|
2330
|
+
}
|
|
2331
|
+
if (message.resourceVersion !== undefined && !message.resourceVersion.isZero?.()) {
|
|
2332
|
+
writer.uint32(32).int64(message.resourceVersion.toString());
|
|
2333
|
+
}
|
|
2334
|
+
if (message.createdAt !== undefined) {
|
|
2335
|
+
const w = writer.uint32(42).fork();
|
|
2336
|
+
index_1.wkt[".google.protobuf.Timestamp"].writeMessage(w, message.createdAt);
|
|
2337
|
+
w.join();
|
|
2338
|
+
}
|
|
2339
|
+
if (message.updatedAt !== undefined) {
|
|
2340
|
+
const w = writer.uint32(50).fork();
|
|
2341
|
+
index_1.wkt[".google.protobuf.Timestamp"].writeMessage(w, message.updatedAt);
|
|
2342
|
+
w.join();
|
|
2343
|
+
}
|
|
2344
|
+
for (const [k, v] of Object.entries(message.labels ?? {})) {
|
|
2345
|
+
const w = writer.uint32(58).fork();
|
|
2346
|
+
w.uint32(10).string(k);
|
|
2347
|
+
w.uint32(18).string(v);
|
|
2348
|
+
w.join();
|
|
2349
|
+
}
|
|
2350
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2351
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2352
|
+
}
|
|
2353
|
+
return writer;
|
|
2354
|
+
},
|
|
2355
|
+
decode(input, length) {
|
|
2356
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2357
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2358
|
+
const message = createBaseResourceMetadata();
|
|
2359
|
+
let writer = undefined;
|
|
2360
|
+
while (reader.pos < end) {
|
|
2361
|
+
const tag = reader.uint32();
|
|
2362
|
+
switch (tag >>> 3) {
|
|
2363
|
+
case 1: {
|
|
2364
|
+
if (tag !== 10)
|
|
2365
|
+
break;
|
|
2366
|
+
message.id = reader.string();
|
|
2367
|
+
continue;
|
|
2368
|
+
}
|
|
2369
|
+
case 2: {
|
|
2370
|
+
if (tag !== 18)
|
|
2371
|
+
break;
|
|
2372
|
+
message.parentId = reader.string();
|
|
2373
|
+
continue;
|
|
2374
|
+
}
|
|
2375
|
+
case 3: {
|
|
2376
|
+
if (tag !== 26)
|
|
2377
|
+
break;
|
|
2378
|
+
message.name = reader.string();
|
|
2379
|
+
continue;
|
|
2380
|
+
}
|
|
2381
|
+
case 4: {
|
|
2382
|
+
if (tag !== 32)
|
|
2383
|
+
break;
|
|
2384
|
+
message.resourceVersion = index_1.Long.fromValue(reader.int64());
|
|
2385
|
+
continue;
|
|
2386
|
+
}
|
|
2387
|
+
case 5: {
|
|
2388
|
+
if (tag !== 42)
|
|
2389
|
+
break;
|
|
2390
|
+
const len = reader.uint32();
|
|
2391
|
+
message.createdAt = index_1.wkt[".google.protobuf.Timestamp"].readMessage(reader, len);
|
|
2392
|
+
continue;
|
|
2393
|
+
}
|
|
2394
|
+
case 6: {
|
|
2395
|
+
if (tag !== 50)
|
|
2396
|
+
break;
|
|
2397
|
+
const len = reader.uint32();
|
|
2398
|
+
message.updatedAt = index_1.wkt[".google.protobuf.Timestamp"].readMessage(reader, len);
|
|
2399
|
+
continue;
|
|
2400
|
+
}
|
|
2401
|
+
case 7: {
|
|
2402
|
+
if (tag !== 58)
|
|
2403
|
+
break; // wire type guard
|
|
2404
|
+
const end2 = reader.uint32() + reader.pos;
|
|
2405
|
+
let key = "";
|
|
2406
|
+
let value = undefined;
|
|
2407
|
+
while (reader.pos < end2) {
|
|
2408
|
+
const tag2 = reader.uint32();
|
|
2409
|
+
switch (tag2 >>> 3) {
|
|
2410
|
+
case 1: {
|
|
2411
|
+
key = reader.string();
|
|
2412
|
+
continue;
|
|
2413
|
+
}
|
|
2414
|
+
case 2: {
|
|
2415
|
+
value = reader.string();
|
|
2416
|
+
continue;
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
if ((tag2 & 7) === 4 || tag2 === 0)
|
|
2420
|
+
break;
|
|
2421
|
+
reader.skip(tag2 & 7);
|
|
2422
|
+
}
|
|
2423
|
+
if (value !== undefined) {
|
|
2424
|
+
const stringKey = String(key);
|
|
2425
|
+
message.labels[stringKey] = value;
|
|
2426
|
+
}
|
|
2427
|
+
continue;
|
|
2428
|
+
}
|
|
2429
|
+
default:
|
|
2430
|
+
break;
|
|
2431
|
+
}
|
|
2432
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2433
|
+
break;
|
|
2434
|
+
}
|
|
2435
|
+
{
|
|
2436
|
+
if (!writer)
|
|
2437
|
+
writer = new index_1.BinaryWriter();
|
|
2438
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2439
|
+
writer.uint32(tag).raw(skipped);
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
if (writer) {
|
|
2443
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2444
|
+
}
|
|
2445
|
+
return message;
|
|
2446
|
+
},
|
|
2447
|
+
fromJSON(object) {
|
|
2448
|
+
return applyResourceMetadataCustom({
|
|
2449
|
+
$type: "nebius.common.v1.ResourceMetadata",
|
|
2450
|
+
id: (0, index_1.isSet)(object.id ?? object.id)
|
|
2451
|
+
? String(object.id ?? object.id)
|
|
2452
|
+
: "",
|
|
2453
|
+
parentId: (0, index_1.isSet)(object.parentId ?? object.parent_id)
|
|
2454
|
+
? String(object.parentId ?? object.parent_id)
|
|
2455
|
+
: "",
|
|
2456
|
+
name: (0, index_1.isSet)(object.name ?? object.name)
|
|
2457
|
+
? String(object.name ?? object.name)
|
|
2458
|
+
: "",
|
|
2459
|
+
resourceVersion: (0, index_1.isSet)(object.resourceVersion ?? object.resource_version)
|
|
2460
|
+
? index_1.Long.fromValue(object.resourceVersion ?? object.resource_version)
|
|
2461
|
+
: index_1.Long.ZERO,
|
|
2462
|
+
createdAt: (0, index_1.isSet)(object.createdAt ?? object.created_at)
|
|
2463
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromJSON(object.createdAt ?? object.created_at)
|
|
2464
|
+
: undefined,
|
|
2465
|
+
updatedAt: (0, index_1.isSet)(object.updatedAt ?? object.updated_at)
|
|
2466
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromJSON(object.updatedAt ?? object.updated_at)
|
|
2467
|
+
: undefined,
|
|
2468
|
+
labels: ((0, index_1.isSet)(object.labels) && typeof object.labels === "object" ? object.labels
|
|
2469
|
+
: ((0, index_1.isSet)(object.labels) && typeof object.labels === "object" ? object.labels : undefined))
|
|
2470
|
+
? Object.entries((object.labels ?? object.labels)).reduce((acc, [key, value]) => {
|
|
2471
|
+
acc[key] = String(value);
|
|
2472
|
+
return acc;
|
|
2473
|
+
}, {})
|
|
2474
|
+
: {},
|
|
2475
|
+
});
|
|
2476
|
+
},
|
|
2477
|
+
toJSON(message, use = "json") {
|
|
2478
|
+
const obj = {};
|
|
2479
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2480
|
+
if (message.id !== "") {
|
|
2481
|
+
obj[pick("id", "id")] = message.id;
|
|
2482
|
+
}
|
|
2483
|
+
if (message.parentId !== "") {
|
|
2484
|
+
obj[pick("parentId", "parent_id")] = message.parentId;
|
|
2485
|
+
}
|
|
2486
|
+
if (message.name !== "") {
|
|
2487
|
+
obj[pick("name", "name")] = message.name;
|
|
2488
|
+
}
|
|
2489
|
+
if (!message.resourceVersion?.isZero?.()) {
|
|
2490
|
+
obj[pick("resourceVersion", "resource_version")] = (message.resourceVersion || index_1.Long.ZERO).toString();
|
|
2491
|
+
}
|
|
2492
|
+
if (message.createdAt !== undefined) {
|
|
2493
|
+
obj[pick("createdAt", "created_at")] = index_1.wkt[".google.protobuf.Timestamp"].toJSON(message.createdAt, use);
|
|
2494
|
+
}
|
|
2495
|
+
if (message.updatedAt !== undefined) {
|
|
2496
|
+
obj[pick("updatedAt", "updated_at")] = index_1.wkt[".google.protobuf.Timestamp"].toJSON(message.updatedAt, use);
|
|
2497
|
+
}
|
|
2498
|
+
if (message.labels) {
|
|
2499
|
+
const entries = Object.entries(message.labels);
|
|
2500
|
+
if (entries.length > 0) {
|
|
2501
|
+
obj[pick("labels", "labels")] = {};
|
|
2502
|
+
entries.forEach(([k, v]) => {
|
|
2503
|
+
obj[pick("labels", "labels")][k] = v;
|
|
2504
|
+
});
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
return obj;
|
|
2508
|
+
},
|
|
2509
|
+
create(base) {
|
|
2510
|
+
return exports.ResourceMetadata.fromPartial(base ?? {});
|
|
2511
|
+
},
|
|
2512
|
+
fromPartial(object) {
|
|
2513
|
+
const message = createBaseResourceMetadata();
|
|
2514
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
2515
|
+
? object.id
|
|
2516
|
+
: "";
|
|
2517
|
+
message.parentId = (object.parentId !== undefined && object.parentId !== null)
|
|
2518
|
+
? object.parentId
|
|
2519
|
+
: "";
|
|
2520
|
+
message.name = (object.name !== undefined && object.name !== null)
|
|
2521
|
+
? object.name
|
|
2522
|
+
: "";
|
|
2523
|
+
message.resourceVersion = (object.resourceVersion !== undefined && object.resourceVersion !== null)
|
|
2524
|
+
? index_1.Long.fromValue(object.resourceVersion)
|
|
2525
|
+
: index_1.Long.ZERO;
|
|
2526
|
+
message.createdAt = (object.createdAt !== undefined && object.createdAt !== null)
|
|
2527
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromPartial(object.createdAt)
|
|
2528
|
+
: undefined;
|
|
2529
|
+
message.updatedAt = (object.updatedAt !== undefined && object.updatedAt !== null)
|
|
2530
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromPartial(object.updatedAt)
|
|
2531
|
+
: undefined;
|
|
2532
|
+
message.labels = Object.entries(object.labels ?? {}).reduce((acc, [key, value]) => {
|
|
2533
|
+
if (value !== undefined) {
|
|
2534
|
+
acc[key] = value;
|
|
2535
|
+
}
|
|
2536
|
+
return acc;
|
|
2537
|
+
}, {});
|
|
2538
|
+
return message;
|
|
2539
|
+
},
|
|
2540
|
+
};
|
|
2541
|
+
protobuf_1.protoRegistry.registerMessage(exports.ResourceMetadata);
|
|
2542
|
+
function ResourceMetadataCustomInspect() {
|
|
2543
|
+
const parts = [];
|
|
2544
|
+
if (this.id !== "")
|
|
2545
|
+
parts.push("id" + "=" + (0, util_1.inspect)(this.id));
|
|
2546
|
+
if (this.parentId !== "")
|
|
2547
|
+
parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
|
|
2548
|
+
if (this.name !== "")
|
|
2549
|
+
parts.push("name" + "=" + (0, util_1.inspect)(this.name));
|
|
2550
|
+
if (!this.resourceVersion?.isZero?.())
|
|
2551
|
+
parts.push("resourceVersion" + "=" + (0, util_1.inspect)(this.resourceVersion));
|
|
2552
|
+
if (this.createdAt !== undefined)
|
|
2553
|
+
parts.push("createdAt" + "=" + (0, util_1.inspect)(this.createdAt));
|
|
2554
|
+
if (this.updatedAt !== undefined)
|
|
2555
|
+
parts.push("updatedAt" + "=" + (0, util_1.inspect)(this.updatedAt));
|
|
2556
|
+
if (Object.keys(this.labels || {}).length)
|
|
2557
|
+
parts.push("labels" + "=" + (0, util_1.inspect)(this.labels));
|
|
2558
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2559
|
+
}
|
|
2560
|
+
function ResourceMetadataCustomJson() {
|
|
2561
|
+
const obj = {
|
|
2562
|
+
type: this.$type,
|
|
2563
|
+
};
|
|
2564
|
+
if (this.id !== "")
|
|
2565
|
+
obj.id = (0, logging_1.inspectJson)(this.id);
|
|
2566
|
+
if (this.parentId !== "")
|
|
2567
|
+
obj.parentId = (0, logging_1.inspectJson)(this.parentId);
|
|
2568
|
+
if (this.name !== "")
|
|
2569
|
+
obj.name = (0, logging_1.inspectJson)(this.name);
|
|
2570
|
+
if (!this.resourceVersion?.isZero?.())
|
|
2571
|
+
obj.resourceVersion = (0, logging_1.inspectJson)(this.resourceVersion);
|
|
2572
|
+
if (this.createdAt !== undefined)
|
|
2573
|
+
obj.createdAt = (0, logging_1.inspectJson)(this.createdAt);
|
|
2574
|
+
if (this.updatedAt !== undefined)
|
|
2575
|
+
obj.updatedAt = (0, logging_1.inspectJson)(this.updatedAt);
|
|
2576
|
+
if (Object.keys(this.labels || {}).length)
|
|
2577
|
+
obj.labels = (0, logging_1.inspectJson)(this.labels);
|
|
2578
|
+
return obj;
|
|
2579
|
+
}
|
|
2580
|
+
function applyResourceMetadataCustom(message) {
|
|
2581
|
+
message[logging_1.custom] = ResourceMetadataCustomInspect;
|
|
2582
|
+
message[logging_1.customJson] = ResourceMetadataCustomJson;
|
|
2583
|
+
return message;
|
|
2584
|
+
}
|
|
2585
|
+
function createBaseResourceMetadata() {
|
|
2586
|
+
const message = {
|
|
2587
|
+
$type: "nebius.common.v1.ResourceMetadata",
|
|
2588
|
+
id: "",
|
|
2589
|
+
parentId: "",
|
|
2590
|
+
name: "",
|
|
2591
|
+
resourceVersion: index_1.Long.ZERO,
|
|
2592
|
+
createdAt: undefined,
|
|
2593
|
+
updatedAt: undefined,
|
|
2594
|
+
labels: {},
|
|
2595
|
+
};
|
|
2596
|
+
return applyResourceMetadataCustom(message);
|
|
2597
|
+
}
|
|
2598
|
+
exports.GetByNameRequest = {
|
|
2599
|
+
$type: "nebius.common.v1.GetByNameRequest",
|
|
2600
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2601
|
+
if (message.parentId !== "") {
|
|
2602
|
+
writer.uint32(10).string(message.parentId);
|
|
2603
|
+
}
|
|
2604
|
+
if (message.name !== "") {
|
|
2605
|
+
writer.uint32(18).string(message.name);
|
|
2606
|
+
}
|
|
2607
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2608
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2609
|
+
}
|
|
2610
|
+
return writer;
|
|
2611
|
+
},
|
|
2612
|
+
decode(input, length) {
|
|
2613
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2614
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2615
|
+
const message = createBaseGetByNameRequest();
|
|
2616
|
+
let writer = undefined;
|
|
2617
|
+
while (reader.pos < end) {
|
|
2618
|
+
const tag = reader.uint32();
|
|
2619
|
+
switch (tag >>> 3) {
|
|
2620
|
+
case 1: {
|
|
2621
|
+
if (tag !== 10)
|
|
2622
|
+
break;
|
|
2623
|
+
message.parentId = reader.string();
|
|
2624
|
+
continue;
|
|
2625
|
+
}
|
|
2626
|
+
case 2: {
|
|
2627
|
+
if (tag !== 18)
|
|
2628
|
+
break;
|
|
2629
|
+
message.name = reader.string();
|
|
2630
|
+
continue;
|
|
2631
|
+
}
|
|
2632
|
+
default:
|
|
2633
|
+
break;
|
|
2634
|
+
}
|
|
2635
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2636
|
+
break;
|
|
2637
|
+
}
|
|
2638
|
+
{
|
|
2639
|
+
if (!writer)
|
|
2640
|
+
writer = new index_1.BinaryWriter();
|
|
2641
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2642
|
+
writer.uint32(tag).raw(skipped);
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
if (writer) {
|
|
2646
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2647
|
+
}
|
|
2648
|
+
return message;
|
|
2649
|
+
},
|
|
2650
|
+
fromJSON(object) {
|
|
2651
|
+
return applyGetByNameRequestCustom({
|
|
2652
|
+
$type: "nebius.common.v1.GetByNameRequest",
|
|
2653
|
+
parentId: (0, index_1.isSet)(object.parentId ?? object.parent_id)
|
|
2654
|
+
? String(object.parentId ?? object.parent_id)
|
|
2655
|
+
: "",
|
|
2656
|
+
name: (0, index_1.isSet)(object.name ?? object.name)
|
|
2657
|
+
? String(object.name ?? object.name)
|
|
2658
|
+
: "",
|
|
2659
|
+
});
|
|
2660
|
+
},
|
|
2661
|
+
toJSON(message, use = "json") {
|
|
2662
|
+
const obj = {};
|
|
2663
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2664
|
+
if (message.parentId !== "") {
|
|
2665
|
+
obj[pick("parentId", "parent_id")] = message.parentId;
|
|
2666
|
+
}
|
|
2667
|
+
if (message.name !== "") {
|
|
2668
|
+
obj[pick("name", "name")] = message.name;
|
|
2669
|
+
}
|
|
2670
|
+
return obj;
|
|
2671
|
+
},
|
|
2672
|
+
create(base) {
|
|
2673
|
+
return exports.GetByNameRequest.fromPartial(base ?? {});
|
|
2674
|
+
},
|
|
2675
|
+
fromPartial(object) {
|
|
2676
|
+
const message = createBaseGetByNameRequest();
|
|
2677
|
+
message.parentId = (object.parentId !== undefined && object.parentId !== null)
|
|
2678
|
+
? object.parentId
|
|
2679
|
+
: "";
|
|
2680
|
+
message.name = (object.name !== undefined && object.name !== null)
|
|
2681
|
+
? object.name
|
|
2682
|
+
: "";
|
|
2683
|
+
return message;
|
|
2684
|
+
},
|
|
2685
|
+
};
|
|
2686
|
+
protobuf_1.protoRegistry.registerMessage(exports.GetByNameRequest);
|
|
2687
|
+
function GetByNameRequestCustomInspect() {
|
|
2688
|
+
const parts = [];
|
|
2689
|
+
if (this.parentId !== "")
|
|
2690
|
+
parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
|
|
2691
|
+
if (this.name !== "")
|
|
2692
|
+
parts.push("name" + "=" + (0, util_1.inspect)(this.name));
|
|
2693
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2694
|
+
}
|
|
2695
|
+
function GetByNameRequestCustomJson() {
|
|
2696
|
+
const obj = {
|
|
2697
|
+
type: this.$type,
|
|
2698
|
+
};
|
|
2699
|
+
if (this.parentId !== "")
|
|
2700
|
+
obj.parentId = (0, logging_1.inspectJson)(this.parentId);
|
|
2701
|
+
if (this.name !== "")
|
|
2702
|
+
obj.name = (0, logging_1.inspectJson)(this.name);
|
|
2703
|
+
return obj;
|
|
2704
|
+
}
|
|
2705
|
+
function applyGetByNameRequestCustom(message) {
|
|
2706
|
+
message[logging_1.custom] = GetByNameRequestCustomInspect;
|
|
2707
|
+
message[logging_1.customJson] = GetByNameRequestCustomJson;
|
|
2708
|
+
return message;
|
|
2709
|
+
}
|
|
2710
|
+
function createBaseGetByNameRequest() {
|
|
2711
|
+
const message = {
|
|
2712
|
+
$type: "nebius.common.v1.GetByNameRequest",
|
|
2713
|
+
parentId: "",
|
|
2714
|
+
name: "",
|
|
2715
|
+
};
|
|
2716
|
+
return applyGetByNameRequestCustom(message);
|
|
2717
|
+
}
|
|
2718
|
+
exports.GetOperationRequest = {
|
|
2719
|
+
$type: "nebius.common.v1.GetOperationRequest",
|
|
2720
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2721
|
+
if (message.id !== "") {
|
|
2722
|
+
writer.uint32(10).string(message.id);
|
|
2723
|
+
}
|
|
2724
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2725
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2726
|
+
}
|
|
2727
|
+
return writer;
|
|
2728
|
+
},
|
|
2729
|
+
decode(input, length) {
|
|
2730
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2731
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2732
|
+
const message = createBaseGetOperationRequest();
|
|
2733
|
+
let writer = undefined;
|
|
2734
|
+
while (reader.pos < end) {
|
|
2735
|
+
const tag = reader.uint32();
|
|
2736
|
+
switch (tag >>> 3) {
|
|
2737
|
+
case 1: {
|
|
2738
|
+
if (tag !== 10)
|
|
2739
|
+
break;
|
|
2740
|
+
message.id = reader.string();
|
|
2741
|
+
continue;
|
|
2742
|
+
}
|
|
2743
|
+
default:
|
|
2744
|
+
break;
|
|
2745
|
+
}
|
|
2746
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2747
|
+
break;
|
|
2748
|
+
}
|
|
2749
|
+
{
|
|
2750
|
+
if (!writer)
|
|
2751
|
+
writer = new index_1.BinaryWriter();
|
|
2752
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2753
|
+
writer.uint32(tag).raw(skipped);
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
if (writer) {
|
|
2757
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2758
|
+
}
|
|
2759
|
+
return message;
|
|
2760
|
+
},
|
|
2761
|
+
fromJSON(object) {
|
|
2762
|
+
return applyGetOperationRequestCustom({
|
|
2763
|
+
$type: "nebius.common.v1.GetOperationRequest",
|
|
2764
|
+
id: (0, index_1.isSet)(object.id ?? object.id)
|
|
2765
|
+
? String(object.id ?? object.id)
|
|
2766
|
+
: "",
|
|
2767
|
+
});
|
|
2768
|
+
},
|
|
2769
|
+
toJSON(message, use = "json") {
|
|
2770
|
+
const obj = {};
|
|
2771
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2772
|
+
if (message.id !== "") {
|
|
2773
|
+
obj[pick("id", "id")] = message.id;
|
|
2774
|
+
}
|
|
2775
|
+
return obj;
|
|
2776
|
+
},
|
|
2777
|
+
create(base) {
|
|
2778
|
+
return exports.GetOperationRequest.fromPartial(base ?? {});
|
|
2779
|
+
},
|
|
2780
|
+
fromPartial(object) {
|
|
2781
|
+
const message = createBaseGetOperationRequest();
|
|
2782
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
2783
|
+
? object.id
|
|
2784
|
+
: "";
|
|
2785
|
+
return message;
|
|
2786
|
+
},
|
|
2787
|
+
};
|
|
2788
|
+
protobuf_1.protoRegistry.registerMessage(exports.GetOperationRequest);
|
|
2789
|
+
function GetOperationRequestCustomInspect() {
|
|
2790
|
+
const parts = [];
|
|
2791
|
+
if (this.id !== "")
|
|
2792
|
+
parts.push("id" + "=" + (0, util_1.inspect)(this.id));
|
|
2793
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2794
|
+
}
|
|
2795
|
+
function GetOperationRequestCustomJson() {
|
|
2796
|
+
const obj = {
|
|
2797
|
+
type: this.$type,
|
|
2798
|
+
};
|
|
2799
|
+
if (this.id !== "")
|
|
2800
|
+
obj.id = (0, logging_1.inspectJson)(this.id);
|
|
2801
|
+
return obj;
|
|
2802
|
+
}
|
|
2803
|
+
function applyGetOperationRequestCustom(message) {
|
|
2804
|
+
message[logging_1.custom] = GetOperationRequestCustomInspect;
|
|
2805
|
+
message[logging_1.customJson] = GetOperationRequestCustomJson;
|
|
2806
|
+
return message;
|
|
2807
|
+
}
|
|
2808
|
+
function createBaseGetOperationRequest() {
|
|
2809
|
+
const message = {
|
|
2810
|
+
$type: "nebius.common.v1.GetOperationRequest",
|
|
2811
|
+
id: "",
|
|
2812
|
+
};
|
|
2813
|
+
return applyGetOperationRequestCustom(message);
|
|
2814
|
+
}
|
|
2815
|
+
exports.ListOperationsRequest = {
|
|
2816
|
+
$type: "nebius.common.v1.ListOperationsRequest",
|
|
2817
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2818
|
+
if (message.resourceId !== "") {
|
|
2819
|
+
writer.uint32(10).string(message.resourceId);
|
|
2820
|
+
}
|
|
2821
|
+
if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
|
|
2822
|
+
writer.uint32(16).int64(message.pageSize.toString());
|
|
2823
|
+
}
|
|
2824
|
+
if (message.pageToken !== "") {
|
|
2825
|
+
writer.uint32(26).string(message.pageToken);
|
|
2826
|
+
}
|
|
2827
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2828
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2829
|
+
}
|
|
2830
|
+
return writer;
|
|
2831
|
+
},
|
|
2832
|
+
decode(input, length) {
|
|
2833
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2834
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2835
|
+
const message = createBaseListOperationsRequest();
|
|
2836
|
+
let writer = undefined;
|
|
2837
|
+
while (reader.pos < end) {
|
|
2838
|
+
const tag = reader.uint32();
|
|
2839
|
+
switch (tag >>> 3) {
|
|
2840
|
+
case 1: {
|
|
2841
|
+
if (tag !== 10)
|
|
2842
|
+
break;
|
|
2843
|
+
message.resourceId = reader.string();
|
|
2844
|
+
continue;
|
|
2845
|
+
}
|
|
2846
|
+
case 2: {
|
|
2847
|
+
if (tag !== 16)
|
|
2848
|
+
break;
|
|
2849
|
+
message.pageSize = index_1.Long.fromValue(reader.int64());
|
|
2850
|
+
continue;
|
|
2851
|
+
}
|
|
2852
|
+
case 3: {
|
|
2853
|
+
if (tag !== 26)
|
|
2854
|
+
break;
|
|
2855
|
+
message.pageToken = reader.string();
|
|
2856
|
+
continue;
|
|
2857
|
+
}
|
|
2858
|
+
default:
|
|
2859
|
+
break;
|
|
2860
|
+
}
|
|
2861
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2862
|
+
break;
|
|
2863
|
+
}
|
|
2864
|
+
{
|
|
2865
|
+
if (!writer)
|
|
2866
|
+
writer = new index_1.BinaryWriter();
|
|
2867
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2868
|
+
writer.uint32(tag).raw(skipped);
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
if (writer) {
|
|
2872
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2873
|
+
}
|
|
2874
|
+
return message;
|
|
2875
|
+
},
|
|
2876
|
+
fromJSON(object) {
|
|
2877
|
+
return applyListOperationsRequestCustom({
|
|
2878
|
+
$type: "nebius.common.v1.ListOperationsRequest",
|
|
2879
|
+
resourceId: (0, index_1.isSet)(object.resourceId ?? object.resource_id)
|
|
2880
|
+
? String(object.resourceId ?? object.resource_id)
|
|
2881
|
+
: "",
|
|
2882
|
+
pageSize: (0, index_1.isSet)(object.pageSize ?? object.page_size)
|
|
2883
|
+
? index_1.Long.fromValue(object.pageSize ?? object.page_size)
|
|
2884
|
+
: index_1.Long.ZERO,
|
|
2885
|
+
pageToken: (0, index_1.isSet)(object.pageToken ?? object.page_token)
|
|
2886
|
+
? String(object.pageToken ?? object.page_token)
|
|
2887
|
+
: "",
|
|
2888
|
+
});
|
|
2889
|
+
},
|
|
2890
|
+
toJSON(message, use = "json") {
|
|
2891
|
+
const obj = {};
|
|
2892
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2893
|
+
if (message.resourceId !== "") {
|
|
2894
|
+
obj[pick("resourceId", "resource_id")] = message.resourceId;
|
|
2895
|
+
}
|
|
2896
|
+
if (!message.pageSize?.isZero?.()) {
|
|
2897
|
+
obj[pick("pageSize", "page_size")] = (message.pageSize || index_1.Long.ZERO).toString();
|
|
2898
|
+
}
|
|
2899
|
+
if (message.pageToken !== "") {
|
|
2900
|
+
obj[pick("pageToken", "page_token")] = message.pageToken;
|
|
2901
|
+
}
|
|
2902
|
+
return obj;
|
|
2903
|
+
},
|
|
2904
|
+
create(base) {
|
|
2905
|
+
return exports.ListOperationsRequest.fromPartial(base ?? {});
|
|
2906
|
+
},
|
|
2907
|
+
fromPartial(object) {
|
|
2908
|
+
const message = createBaseListOperationsRequest();
|
|
2909
|
+
message.resourceId = (object.resourceId !== undefined && object.resourceId !== null)
|
|
2910
|
+
? object.resourceId
|
|
2911
|
+
: "";
|
|
2912
|
+
message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
|
|
2913
|
+
? index_1.Long.fromValue(object.pageSize)
|
|
2914
|
+
: index_1.Long.ZERO;
|
|
2915
|
+
message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
|
|
2916
|
+
? object.pageToken
|
|
2917
|
+
: "";
|
|
2918
|
+
return message;
|
|
2919
|
+
},
|
|
2920
|
+
};
|
|
2921
|
+
protobuf_1.protoRegistry.registerMessage(exports.ListOperationsRequest);
|
|
2922
|
+
function ListOperationsRequestCustomInspect() {
|
|
2923
|
+
const parts = [];
|
|
2924
|
+
if (this.resourceId !== "")
|
|
2925
|
+
parts.push("resourceId" + "=" + (0, util_1.inspect)(this.resourceId));
|
|
2926
|
+
if (!this.pageSize?.isZero?.())
|
|
2927
|
+
parts.push("pageSize" + "=" + (0, util_1.inspect)(this.pageSize));
|
|
2928
|
+
if (this.pageToken !== "")
|
|
2929
|
+
parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
|
|
2930
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2931
|
+
}
|
|
2932
|
+
function ListOperationsRequestCustomJson() {
|
|
2933
|
+
const obj = {
|
|
2934
|
+
type: this.$type,
|
|
2935
|
+
};
|
|
2936
|
+
if (this.resourceId !== "")
|
|
2937
|
+
obj.resourceId = (0, logging_1.inspectJson)(this.resourceId);
|
|
2938
|
+
if (!this.pageSize?.isZero?.())
|
|
2939
|
+
obj.pageSize = (0, logging_1.inspectJson)(this.pageSize);
|
|
2940
|
+
if (this.pageToken !== "")
|
|
2941
|
+
obj.pageToken = (0, logging_1.inspectJson)(this.pageToken);
|
|
2942
|
+
return obj;
|
|
2943
|
+
}
|
|
2944
|
+
function applyListOperationsRequestCustom(message) {
|
|
2945
|
+
message[logging_1.custom] = ListOperationsRequestCustomInspect;
|
|
2946
|
+
message[logging_1.customJson] = ListOperationsRequestCustomJson;
|
|
2947
|
+
return message;
|
|
2948
|
+
}
|
|
2949
|
+
function createBaseListOperationsRequest() {
|
|
2950
|
+
const message = {
|
|
2951
|
+
$type: "nebius.common.v1.ListOperationsRequest",
|
|
2952
|
+
resourceId: "",
|
|
2953
|
+
pageSize: index_1.Long.ZERO,
|
|
2954
|
+
pageToken: "",
|
|
2955
|
+
};
|
|
2956
|
+
return applyListOperationsRequestCustom(message);
|
|
2957
|
+
}
|
|
2958
|
+
exports.ListOperationsResponse = {
|
|
2959
|
+
$type: "nebius.common.v1.ListOperationsResponse",
|
|
2960
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2961
|
+
for (const v of (message.operations ?? [])) {
|
|
2962
|
+
const w = writer.uint32(10).fork();
|
|
2963
|
+
exports.Operation.encode(v, w);
|
|
2964
|
+
w.join();
|
|
2965
|
+
}
|
|
2966
|
+
if (message.nextPageToken !== "") {
|
|
2967
|
+
writer.uint32(18).string(message.nextPageToken);
|
|
2968
|
+
}
|
|
2969
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2970
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2971
|
+
}
|
|
2972
|
+
return writer;
|
|
2973
|
+
},
|
|
2974
|
+
decode(input, length) {
|
|
2975
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2976
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2977
|
+
const message = createBaseListOperationsResponse();
|
|
2978
|
+
let writer = undefined;
|
|
2979
|
+
while (reader.pos < end) {
|
|
2980
|
+
const tag = reader.uint32();
|
|
2981
|
+
switch (tag >>> 3) {
|
|
2982
|
+
case 1: {
|
|
2983
|
+
if (tag !== 10)
|
|
2984
|
+
break;
|
|
2985
|
+
message.operations.push(exports.Operation.decode(reader, reader.uint32()));
|
|
2986
|
+
continue;
|
|
2987
|
+
}
|
|
2988
|
+
case 2: {
|
|
2989
|
+
if (tag !== 18)
|
|
2990
|
+
break;
|
|
2991
|
+
message.nextPageToken = reader.string();
|
|
2992
|
+
continue;
|
|
2993
|
+
}
|
|
2994
|
+
default:
|
|
2995
|
+
break;
|
|
2996
|
+
}
|
|
2997
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2998
|
+
break;
|
|
2999
|
+
}
|
|
3000
|
+
{
|
|
3001
|
+
if (!writer)
|
|
3002
|
+
writer = new index_1.BinaryWriter();
|
|
3003
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
3004
|
+
writer.uint32(tag).raw(skipped);
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
if (writer) {
|
|
3008
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
3009
|
+
}
|
|
3010
|
+
return message;
|
|
3011
|
+
},
|
|
3012
|
+
fromJSON(object) {
|
|
3013
|
+
return applyListOperationsResponseCustom({
|
|
3014
|
+
$type: "nebius.common.v1.ListOperationsResponse",
|
|
3015
|
+
operations: globalThis.Array.isArray(object?.operations ?? object?.operations)
|
|
3016
|
+
? (object.operations ?? object.operations).map((e) => exports.Operation.fromJSON(e))
|
|
3017
|
+
: [],
|
|
3018
|
+
nextPageToken: (0, index_1.isSet)(object.nextPageToken ?? object.next_page_token)
|
|
3019
|
+
? String(object.nextPageToken ?? object.next_page_token)
|
|
3020
|
+
: "",
|
|
3021
|
+
});
|
|
3022
|
+
},
|
|
3023
|
+
toJSON(message, use = "json") {
|
|
3024
|
+
const obj = {};
|
|
3025
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
3026
|
+
if (message.operations?.length) {
|
|
3027
|
+
obj[pick("operations", "operations")] = message.operations.map((e) => e ? exports.Operation.toJSON(e, use) : undefined);
|
|
3028
|
+
}
|
|
3029
|
+
if (message.nextPageToken !== "") {
|
|
3030
|
+
obj[pick("nextPageToken", "next_page_token")] = message.nextPageToken;
|
|
3031
|
+
}
|
|
3032
|
+
return obj;
|
|
3033
|
+
},
|
|
3034
|
+
create(base) {
|
|
3035
|
+
return exports.ListOperationsResponse.fromPartial(base ?? {});
|
|
3036
|
+
},
|
|
3037
|
+
fromPartial(object) {
|
|
3038
|
+
const message = createBaseListOperationsResponse();
|
|
3039
|
+
message.operations = object.operations?.map((e) => exports.Operation.fromPartial(e)) || [];
|
|
3040
|
+
message.nextPageToken = (object.nextPageToken !== undefined && object.nextPageToken !== null)
|
|
3041
|
+
? object.nextPageToken
|
|
3042
|
+
: "";
|
|
3043
|
+
return message;
|
|
3044
|
+
},
|
|
3045
|
+
};
|
|
3046
|
+
protobuf_1.protoRegistry.registerMessage(exports.ListOperationsResponse);
|
|
3047
|
+
function ListOperationsResponseCustomInspect() {
|
|
3048
|
+
const parts = [];
|
|
3049
|
+
if ((this.operations?.length ?? 0) !== 0)
|
|
3050
|
+
parts.push("operations" + "=" + (0, util_1.inspect)(this.operations));
|
|
3051
|
+
if (this.nextPageToken !== "")
|
|
3052
|
+
parts.push("nextPageToken" + "=" + (0, util_1.inspect)(this.nextPageToken));
|
|
3053
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
3054
|
+
}
|
|
3055
|
+
function ListOperationsResponseCustomJson() {
|
|
3056
|
+
const obj = {
|
|
3057
|
+
type: this.$type,
|
|
3058
|
+
};
|
|
3059
|
+
if ((this.operations?.length ?? 0) !== 0)
|
|
3060
|
+
obj.operations = (0, logging_1.inspectJson)(this.operations);
|
|
3061
|
+
if (this.nextPageToken !== "")
|
|
3062
|
+
obj.nextPageToken = (0, logging_1.inspectJson)(this.nextPageToken);
|
|
3063
|
+
return obj;
|
|
3064
|
+
}
|
|
3065
|
+
function applyListOperationsResponseCustom(message) {
|
|
3066
|
+
message[logging_1.custom] = ListOperationsResponseCustomInspect;
|
|
3067
|
+
message[logging_1.customJson] = ListOperationsResponseCustomJson;
|
|
3068
|
+
return message;
|
|
3069
|
+
}
|
|
3070
|
+
function createBaseListOperationsResponse() {
|
|
3071
|
+
const message = {
|
|
3072
|
+
$type: "nebius.common.v1.ListOperationsResponse",
|
|
3073
|
+
operations: [],
|
|
3074
|
+
nextPageToken: "",
|
|
3075
|
+
};
|
|
3076
|
+
return applyListOperationsResponseCustom(message);
|
|
3077
|
+
}
|
|
3078
|
+
exports.OperationServiceServiceDescription = {
|
|
3079
|
+
get: {
|
|
3080
|
+
path: "/nebius.common.v1.OperationService/Get",
|
|
3081
|
+
requestStream: false,
|
|
3082
|
+
responseStream: false,
|
|
3083
|
+
requestSerialize: (value) => Buffer.from(exports.GetOperationRequest.encode(value).finish()),
|
|
3084
|
+
requestDeserialize: (value) => exports.GetOperationRequest.decode(value),
|
|
3085
|
+
responseSerialize: (value) => Buffer.from(exports.Operation.encode(value).finish()),
|
|
3086
|
+
responseDeserialize: (value) => exports.Operation.decode(value),
|
|
3087
|
+
},
|
|
3088
|
+
list: {
|
|
3089
|
+
path: "/nebius.common.v1.OperationService/List",
|
|
3090
|
+
requestStream: false,
|
|
3091
|
+
responseStream: false,
|
|
3092
|
+
requestSerialize: (value) => Buffer.from(exports.ListOperationsRequest.encode(value).finish()),
|
|
3093
|
+
requestDeserialize: (value) => exports.ListOperationsRequest.decode(value),
|
|
3094
|
+
responseSerialize: (value) => Buffer.from(exports.ListOperationsResponse.encode(value).finish()),
|
|
3095
|
+
responseDeserialize: (value) => exports.ListOperationsResponse.decode(value),
|
|
3096
|
+
},
|
|
3097
|
+
};
|
|
3098
|
+
exports.OperationServiceBaseClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.OperationServiceServiceDescription, "nebius.common.v1.OperationService");
|
|
3099
|
+
class OperationService {
|
|
3100
|
+
sdk;
|
|
3101
|
+
addr;
|
|
3102
|
+
$type = "nebius.common.v1.OperationService";
|
|
3103
|
+
spec;
|
|
3104
|
+
constructor(sdk, addr) {
|
|
3105
|
+
this.sdk = sdk;
|
|
3106
|
+
this.addr = addr;
|
|
3107
|
+
this.spec = exports.OperationServiceServiceDescription;
|
|
3108
|
+
}
|
|
3109
|
+
get(...args) {
|
|
3110
|
+
const spec = this.spec.get;
|
|
3111
|
+
const request = args[0];
|
|
3112
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
3113
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
3114
|
+
const deserialize = (value) => {
|
|
3115
|
+
const resp = spec.responseDeserialize(value);
|
|
3116
|
+
return new operation_1.Operation(resp, this, this.sdk.logger.child("operation"));
|
|
3117
|
+
};
|
|
3118
|
+
return new request_1.Request(this.sdk, this.$type, "Get", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
3119
|
+
}
|
|
3120
|
+
list(...args) {
|
|
3121
|
+
const spec = this.spec.list;
|
|
3122
|
+
const request = args[0];
|
|
3123
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
3124
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
3125
|
+
const deserialize = (value) => {
|
|
3126
|
+
const resp = spec.responseDeserialize(value);
|
|
3127
|
+
return { operations: (resp?.operations ?? []).map((o) => new operation_1.Operation(o, this, this.sdk.logger.child("operation"))), nextPageToken: resp?.nextPageToken || "" };
|
|
3128
|
+
};
|
|
3129
|
+
return new request_1.Request(this.sdk, this.$type, "List", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3132
|
+
exports.OperationService = OperationService;
|
|
3133
|
+
exports.Operation = {
|
|
3134
|
+
$type: "nebius.common.v1.Operation",
|
|
3135
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
3136
|
+
if (message.id !== "") {
|
|
3137
|
+
writer.uint32(10).string(message.id);
|
|
3138
|
+
}
|
|
3139
|
+
if (message.description !== "") {
|
|
3140
|
+
writer.uint32(18).string(message.description);
|
|
3141
|
+
}
|
|
3142
|
+
if (message.createdAt !== undefined) {
|
|
3143
|
+
const w = writer.uint32(26).fork();
|
|
3144
|
+
index_1.wkt[".google.protobuf.Timestamp"].writeMessage(w, message.createdAt);
|
|
3145
|
+
w.join();
|
|
3146
|
+
}
|
|
3147
|
+
if (message.createdBy !== "") {
|
|
3148
|
+
writer.uint32(34).string(message.createdBy);
|
|
3149
|
+
}
|
|
3150
|
+
if (message.finishedAt !== undefined) {
|
|
3151
|
+
const w = writer.uint32(42).fork();
|
|
3152
|
+
index_1.wkt[".google.protobuf.Timestamp"].writeMessage(w, message.finishedAt);
|
|
3153
|
+
w.join();
|
|
3154
|
+
}
|
|
3155
|
+
if (message.request !== undefined) {
|
|
3156
|
+
const w = writer.uint32(50).fork();
|
|
3157
|
+
index_1.wkt[".google.protobuf.Any"].writeMessage(w, message.request);
|
|
3158
|
+
w.join();
|
|
3159
|
+
}
|
|
3160
|
+
for (const [k, v] of Object.entries(message.requestHeaders ?? {})) {
|
|
3161
|
+
const w = writer.uint32(90).fork();
|
|
3162
|
+
w.uint32(10).string(k);
|
|
3163
|
+
(() => {
|
|
3164
|
+
const w2 = writer.uint32(18).fork();
|
|
3165
|
+
exports.Operation_RequestHeader.encode(v, w2);
|
|
3166
|
+
w2.join();
|
|
3167
|
+
})();
|
|
3168
|
+
w.join();
|
|
3169
|
+
}
|
|
3170
|
+
if (message.resourceId !== "") {
|
|
3171
|
+
writer.uint32(58).string(message.resourceId);
|
|
3172
|
+
}
|
|
3173
|
+
if (message.status !== undefined) {
|
|
3174
|
+
const w = writer.uint32(82).fork();
|
|
3175
|
+
rpc_1.Status.encode(message.status, w);
|
|
3176
|
+
w.join();
|
|
3177
|
+
}
|
|
3178
|
+
if (message.progressData !== undefined) {
|
|
3179
|
+
const w = writer.uint32(74).fork();
|
|
3180
|
+
index_1.wkt[".google.protobuf.Any"].writeMessage(w, message.progressData);
|
|
3181
|
+
w.join();
|
|
3182
|
+
}
|
|
3183
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
3184
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
3185
|
+
}
|
|
3186
|
+
return writer;
|
|
3187
|
+
},
|
|
3188
|
+
decode(input, length) {
|
|
3189
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
3190
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3191
|
+
const message = createBaseOperation();
|
|
3192
|
+
let writer = undefined;
|
|
3193
|
+
while (reader.pos < end) {
|
|
3194
|
+
const tag = reader.uint32();
|
|
3195
|
+
switch (tag >>> 3) {
|
|
3196
|
+
case 1: {
|
|
3197
|
+
if (tag !== 10)
|
|
3198
|
+
break;
|
|
3199
|
+
message.id = reader.string();
|
|
3200
|
+
continue;
|
|
3201
|
+
}
|
|
3202
|
+
case 2: {
|
|
3203
|
+
if (tag !== 18)
|
|
3204
|
+
break;
|
|
3205
|
+
message.description = reader.string();
|
|
3206
|
+
continue;
|
|
3207
|
+
}
|
|
3208
|
+
case 3: {
|
|
3209
|
+
if (tag !== 26)
|
|
3210
|
+
break;
|
|
3211
|
+
const len = reader.uint32();
|
|
3212
|
+
message.createdAt = index_1.wkt[".google.protobuf.Timestamp"].readMessage(reader, len);
|
|
3213
|
+
continue;
|
|
3214
|
+
}
|
|
3215
|
+
case 4: {
|
|
3216
|
+
if (tag !== 34)
|
|
3217
|
+
break;
|
|
3218
|
+
message.createdBy = reader.string();
|
|
3219
|
+
continue;
|
|
3220
|
+
}
|
|
3221
|
+
case 5: {
|
|
3222
|
+
if (tag !== 42)
|
|
3223
|
+
break;
|
|
3224
|
+
const len = reader.uint32();
|
|
3225
|
+
message.finishedAt = index_1.wkt[".google.protobuf.Timestamp"].readMessage(reader, len);
|
|
3226
|
+
continue;
|
|
3227
|
+
}
|
|
3228
|
+
case 6: {
|
|
3229
|
+
if (tag !== 50)
|
|
3230
|
+
break;
|
|
3231
|
+
const len = reader.uint32();
|
|
3232
|
+
message.request = index_1.wkt[".google.protobuf.Any"].readMessage(reader, len);
|
|
3233
|
+
continue;
|
|
3234
|
+
}
|
|
3235
|
+
case 11: {
|
|
3236
|
+
if (tag !== 90)
|
|
3237
|
+
break; // wire type guard
|
|
3238
|
+
const end2 = reader.uint32() + reader.pos;
|
|
3239
|
+
let key = "";
|
|
3240
|
+
let value = undefined;
|
|
3241
|
+
while (reader.pos < end2) {
|
|
3242
|
+
const tag2 = reader.uint32();
|
|
3243
|
+
switch (tag2 >>> 3) {
|
|
3244
|
+
case 1: {
|
|
3245
|
+
key = reader.string();
|
|
3246
|
+
continue;
|
|
3247
|
+
}
|
|
3248
|
+
case 2: {
|
|
3249
|
+
value = exports.Operation_RequestHeader.decode(reader, reader.uint32());
|
|
3250
|
+
continue;
|
|
3251
|
+
}
|
|
3252
|
+
}
|
|
3253
|
+
if ((tag2 & 7) === 4 || tag2 === 0)
|
|
3254
|
+
break;
|
|
3255
|
+
reader.skip(tag2 & 7);
|
|
3256
|
+
}
|
|
3257
|
+
if (value !== undefined) {
|
|
3258
|
+
const stringKey = String(key);
|
|
3259
|
+
message.requestHeaders[stringKey] = value;
|
|
3260
|
+
}
|
|
3261
|
+
continue;
|
|
3262
|
+
}
|
|
3263
|
+
case 7: {
|
|
3264
|
+
if (tag !== 58)
|
|
3265
|
+
break;
|
|
3266
|
+
message.resourceId = reader.string();
|
|
3267
|
+
continue;
|
|
3268
|
+
}
|
|
3269
|
+
case 10: {
|
|
3270
|
+
if (tag !== 82)
|
|
3271
|
+
break;
|
|
3272
|
+
message.status = rpc_1.Status.decode(reader, reader.uint32());
|
|
3273
|
+
continue;
|
|
3274
|
+
}
|
|
3275
|
+
case 9: {
|
|
3276
|
+
if (tag !== 74)
|
|
3277
|
+
break;
|
|
3278
|
+
const len = reader.uint32();
|
|
3279
|
+
message.progressData = index_1.wkt[".google.protobuf.Any"].readMessage(reader, len);
|
|
3280
|
+
continue;
|
|
3281
|
+
}
|
|
3282
|
+
default:
|
|
3283
|
+
break;
|
|
3284
|
+
}
|
|
3285
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3286
|
+
break;
|
|
3287
|
+
}
|
|
3288
|
+
{
|
|
3289
|
+
if (!writer)
|
|
3290
|
+
writer = new index_1.BinaryWriter();
|
|
3291
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
3292
|
+
writer.uint32(tag).raw(skipped);
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
if (writer) {
|
|
3296
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
3297
|
+
}
|
|
3298
|
+
return message;
|
|
3299
|
+
},
|
|
3300
|
+
fromJSON(object) {
|
|
3301
|
+
return applyOperationCustom({
|
|
3302
|
+
$type: "nebius.common.v1.Operation",
|
|
3303
|
+
id: (0, index_1.isSet)(object.id ?? object.id)
|
|
3304
|
+
? String(object.id ?? object.id)
|
|
3305
|
+
: "",
|
|
3306
|
+
description: (0, index_1.isSet)(object.description ?? object.description)
|
|
3307
|
+
? String(object.description ?? object.description)
|
|
3308
|
+
: "",
|
|
3309
|
+
createdAt: (0, index_1.isSet)(object.createdAt ?? object.created_at)
|
|
3310
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromJSON(object.createdAt ?? object.created_at)
|
|
3311
|
+
: undefined,
|
|
3312
|
+
createdBy: (0, index_1.isSet)(object.createdBy ?? object.created_by)
|
|
3313
|
+
? String(object.createdBy ?? object.created_by)
|
|
3314
|
+
: "",
|
|
3315
|
+
finishedAt: (0, index_1.isSet)(object.finishedAt ?? object.finished_at)
|
|
3316
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromJSON(object.finishedAt ?? object.finished_at)
|
|
3317
|
+
: undefined,
|
|
3318
|
+
request: (0, index_1.isSet)(object.request ?? object.request)
|
|
3319
|
+
? index_1.wkt[".google.protobuf.Any"].fromJSON(object.request ?? object.request)
|
|
3320
|
+
: undefined,
|
|
3321
|
+
requestHeaders: ((0, index_1.isSet)(object.requestHeaders) && typeof object.requestHeaders === "object" ? object.requestHeaders
|
|
3322
|
+
: ((0, index_1.isSet)(object.request_headers) && typeof object.request_headers === "object" ? object.request_headers : undefined))
|
|
3323
|
+
? Object.entries((object.requestHeaders ?? object.request_headers)).reduce((acc, [key, value]) => {
|
|
3324
|
+
acc[key] = exports.Operation_RequestHeader.fromJSON(value);
|
|
3325
|
+
return acc;
|
|
3326
|
+
}, {})
|
|
3327
|
+
: {},
|
|
3328
|
+
resourceId: (0, index_1.isSet)(object.resourceId ?? object.resource_id)
|
|
3329
|
+
? String(object.resourceId ?? object.resource_id)
|
|
3330
|
+
: "",
|
|
3331
|
+
status: (0, index_1.isSet)(object.status ?? object.status)
|
|
3332
|
+
? rpc_1.Status.fromJSON(object.status ?? object.status)
|
|
3333
|
+
: undefined,
|
|
3334
|
+
progressData: (0, index_1.isSet)(object.progressData ?? object.progress_data)
|
|
3335
|
+
? index_1.wkt[".google.protobuf.Any"].fromJSON(object.progressData ?? object.progress_data)
|
|
3336
|
+
: undefined,
|
|
3337
|
+
});
|
|
3338
|
+
},
|
|
3339
|
+
toJSON(message, use = "json") {
|
|
3340
|
+
const obj = {};
|
|
3341
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
3342
|
+
if (message.id !== "") {
|
|
3343
|
+
obj[pick("id", "id")] = message.id;
|
|
3344
|
+
}
|
|
3345
|
+
if (message.description !== "") {
|
|
3346
|
+
obj[pick("description", "description")] = message.description;
|
|
3347
|
+
}
|
|
3348
|
+
if (message.createdAt !== undefined) {
|
|
3349
|
+
obj[pick("createdAt", "created_at")] = index_1.wkt[".google.protobuf.Timestamp"].toJSON(message.createdAt, use);
|
|
3350
|
+
}
|
|
3351
|
+
if (message.createdBy !== "") {
|
|
3352
|
+
obj[pick("createdBy", "created_by")] = message.createdBy;
|
|
3353
|
+
}
|
|
3354
|
+
if (message.finishedAt !== undefined) {
|
|
3355
|
+
obj[pick("finishedAt", "finished_at")] = index_1.wkt[".google.protobuf.Timestamp"].toJSON(message.finishedAt, use);
|
|
3356
|
+
}
|
|
3357
|
+
if (message.request !== undefined) {
|
|
3358
|
+
obj[pick("request", "request")] = index_1.wkt[".google.protobuf.Any"].toJSON(message.request, use);
|
|
3359
|
+
}
|
|
3360
|
+
if (message.requestHeaders) {
|
|
3361
|
+
const entries = Object.entries(message.requestHeaders);
|
|
3362
|
+
if (entries.length > 0) {
|
|
3363
|
+
obj[pick("requestHeaders", "request_headers")] = {};
|
|
3364
|
+
entries.forEach(([k, v]) => {
|
|
3365
|
+
obj[pick("requestHeaders", "request_headers")][k] = exports.Operation_RequestHeader.toJSON(v, use);
|
|
3366
|
+
});
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
if (message.resourceId !== "") {
|
|
3370
|
+
obj[pick("resourceId", "resource_id")] = message.resourceId;
|
|
3371
|
+
}
|
|
3372
|
+
if (message.status !== undefined) {
|
|
3373
|
+
obj[pick("status", "status")] = message.status
|
|
3374
|
+
? rpc_1.Status.toJSON(message.status, use)
|
|
3375
|
+
: undefined;
|
|
3376
|
+
}
|
|
3377
|
+
if (message.progressData !== undefined) {
|
|
3378
|
+
obj[pick("progressData", "progress_data")] = index_1.wkt[".google.protobuf.Any"].toJSON(message.progressData, use);
|
|
3379
|
+
}
|
|
3380
|
+
return obj;
|
|
3381
|
+
},
|
|
3382
|
+
create(base) {
|
|
3383
|
+
return exports.Operation.fromPartial(base ?? {});
|
|
3384
|
+
},
|
|
3385
|
+
fromPartial(object) {
|
|
3386
|
+
const message = createBaseOperation();
|
|
3387
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
3388
|
+
? object.id
|
|
3389
|
+
: "";
|
|
3390
|
+
message.description = (object.description !== undefined && object.description !== null)
|
|
3391
|
+
? object.description
|
|
3392
|
+
: "";
|
|
3393
|
+
message.createdAt = (object.createdAt !== undefined && object.createdAt !== null)
|
|
3394
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromPartial(object.createdAt)
|
|
3395
|
+
: undefined;
|
|
3396
|
+
message.createdBy = (object.createdBy !== undefined && object.createdBy !== null)
|
|
3397
|
+
? object.createdBy
|
|
3398
|
+
: "";
|
|
3399
|
+
message.finishedAt = (object.finishedAt !== undefined && object.finishedAt !== null)
|
|
3400
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromPartial(object.finishedAt)
|
|
3401
|
+
: undefined;
|
|
3402
|
+
message.request = (object.request !== undefined && object.request !== null)
|
|
3403
|
+
? index_1.wkt[".google.protobuf.Any"].fromPartial(object.request)
|
|
3404
|
+
: undefined;
|
|
3405
|
+
message.requestHeaders = Object.entries(object.requestHeaders ?? {}).reduce((acc, [key, value]) => {
|
|
3406
|
+
if (value !== undefined) {
|
|
3407
|
+
acc[key] = exports.Operation_RequestHeader.fromPartial(value);
|
|
3408
|
+
}
|
|
3409
|
+
return acc;
|
|
3410
|
+
}, {});
|
|
3411
|
+
message.resourceId = (object.resourceId !== undefined && object.resourceId !== null)
|
|
3412
|
+
? object.resourceId
|
|
3413
|
+
: "";
|
|
3414
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
3415
|
+
? rpc_1.Status.fromPartial(object.status)
|
|
3416
|
+
: undefined;
|
|
3417
|
+
message.progressData = (object.progressData !== undefined && object.progressData !== null)
|
|
3418
|
+
? index_1.wkt[".google.protobuf.Any"].fromPartial(object.progressData)
|
|
3419
|
+
: undefined;
|
|
3420
|
+
return message;
|
|
3421
|
+
},
|
|
3422
|
+
};
|
|
3423
|
+
protobuf_1.protoRegistry.registerMessage(exports.Operation);
|
|
3424
|
+
function OperationCustomInspect() {
|
|
3425
|
+
const parts = [];
|
|
3426
|
+
if (this.id !== "")
|
|
3427
|
+
parts.push("id" + "=" + (0, util_1.inspect)(this.id));
|
|
3428
|
+
if (this.description !== "")
|
|
3429
|
+
parts.push("description" + "=" + (0, util_1.inspect)(this.description));
|
|
3430
|
+
if (this.createdAt !== undefined)
|
|
3431
|
+
parts.push("createdAt" + "=" + (0, util_1.inspect)(this.createdAt));
|
|
3432
|
+
if (this.createdBy !== "")
|
|
3433
|
+
parts.push("createdBy" + "=" + (0, util_1.inspect)(this.createdBy));
|
|
3434
|
+
if (this.finishedAt !== undefined)
|
|
3435
|
+
parts.push("finishedAt" + "=" + (0, util_1.inspect)(this.finishedAt));
|
|
3436
|
+
if (this.request !== undefined)
|
|
3437
|
+
parts.push("request" + "=" + (0, util_1.inspect)(this.request));
|
|
3438
|
+
if (Object.keys(this.requestHeaders || {}).length)
|
|
3439
|
+
parts.push("requestHeaders" + "=" + (0, util_1.inspect)(this.requestHeaders));
|
|
3440
|
+
if (this.resourceId !== "")
|
|
3441
|
+
parts.push("resourceId" + "=" + (0, util_1.inspect)(this.resourceId));
|
|
3442
|
+
if (this.status !== undefined)
|
|
3443
|
+
parts.push("status" + "=" + (0, util_1.inspect)(this.status));
|
|
3444
|
+
if (this.progressData !== undefined)
|
|
3445
|
+
parts.push("progressData" + "=" + (0, util_1.inspect)(this.progressData));
|
|
3446
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
3447
|
+
}
|
|
3448
|
+
function OperationCustomJson() {
|
|
3449
|
+
const obj = {
|
|
3450
|
+
type: this.$type,
|
|
3451
|
+
};
|
|
3452
|
+
if (this.id !== "")
|
|
3453
|
+
obj.id = (0, logging_1.inspectJson)(this.id);
|
|
3454
|
+
if (this.description !== "")
|
|
3455
|
+
obj.description = (0, logging_1.inspectJson)(this.description);
|
|
3456
|
+
if (this.createdAt !== undefined)
|
|
3457
|
+
obj.createdAt = (0, logging_1.inspectJson)(this.createdAt);
|
|
3458
|
+
if (this.createdBy !== "")
|
|
3459
|
+
obj.createdBy = (0, logging_1.inspectJson)(this.createdBy);
|
|
3460
|
+
if (this.finishedAt !== undefined)
|
|
3461
|
+
obj.finishedAt = (0, logging_1.inspectJson)(this.finishedAt);
|
|
3462
|
+
if (this.request !== undefined)
|
|
3463
|
+
obj.request = (0, logging_1.inspectJson)(this.request);
|
|
3464
|
+
if (Object.keys(this.requestHeaders || {}).length)
|
|
3465
|
+
obj.requestHeaders = (0, logging_1.inspectJson)(this.requestHeaders);
|
|
3466
|
+
if (this.resourceId !== "")
|
|
3467
|
+
obj.resourceId = (0, logging_1.inspectJson)(this.resourceId);
|
|
3468
|
+
if (this.status !== undefined)
|
|
3469
|
+
obj.status = (0, logging_1.inspectJson)(this.status);
|
|
3470
|
+
if (this.progressData !== undefined)
|
|
3471
|
+
obj.progressData = (0, logging_1.inspectJson)(this.progressData);
|
|
3472
|
+
return obj;
|
|
3473
|
+
}
|
|
3474
|
+
function applyOperationCustom(message) {
|
|
3475
|
+
message[logging_1.custom] = OperationCustomInspect;
|
|
3476
|
+
message[logging_1.customJson] = OperationCustomJson;
|
|
3477
|
+
return message;
|
|
3478
|
+
}
|
|
3479
|
+
function createBaseOperation() {
|
|
3480
|
+
const message = {
|
|
3481
|
+
$type: "nebius.common.v1.Operation",
|
|
3482
|
+
id: "",
|
|
3483
|
+
description: "",
|
|
3484
|
+
createdAt: undefined,
|
|
3485
|
+
createdBy: "",
|
|
3486
|
+
finishedAt: undefined,
|
|
3487
|
+
request: undefined,
|
|
3488
|
+
requestHeaders: {},
|
|
3489
|
+
resourceId: "",
|
|
3490
|
+
status: undefined,
|
|
3491
|
+
progressData: undefined,
|
|
3492
|
+
};
|
|
3493
|
+
return applyOperationCustom(message);
|
|
3494
|
+
}
|
|
3495
|
+
exports.Operation_RequestHeader = {
|
|
3496
|
+
$type: "nebius.common.v1.Operation.RequestHeader",
|
|
3497
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
3498
|
+
for (const v of (message.values ?? [])) {
|
|
3499
|
+
writer.uint32(10).string(v);
|
|
3500
|
+
}
|
|
3501
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
3502
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
3503
|
+
}
|
|
3504
|
+
return writer;
|
|
3505
|
+
},
|
|
3506
|
+
decode(input, length) {
|
|
3507
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
3508
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3509
|
+
const message = createBaseOperation_RequestHeader();
|
|
3510
|
+
let writer = undefined;
|
|
3511
|
+
while (reader.pos < end) {
|
|
3512
|
+
const tag = reader.uint32();
|
|
3513
|
+
switch (tag >>> 3) {
|
|
3514
|
+
case 1: {
|
|
3515
|
+
if (tag !== 10)
|
|
3516
|
+
break;
|
|
3517
|
+
message.values.push(reader.string());
|
|
3518
|
+
continue;
|
|
3519
|
+
}
|
|
3520
|
+
default:
|
|
3521
|
+
break;
|
|
3522
|
+
}
|
|
3523
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3524
|
+
break;
|
|
3525
|
+
}
|
|
3526
|
+
{
|
|
3527
|
+
if (!writer)
|
|
3528
|
+
writer = new index_1.BinaryWriter();
|
|
3529
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
3530
|
+
writer.uint32(tag).raw(skipped);
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
if (writer) {
|
|
3534
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
3535
|
+
}
|
|
3536
|
+
return message;
|
|
3537
|
+
},
|
|
3538
|
+
fromJSON(object) {
|
|
3539
|
+
return applyOperation_RequestHeaderCustom({
|
|
3540
|
+
$type: "nebius.common.v1.Operation.RequestHeader",
|
|
3541
|
+
values: globalThis.Array.isArray(object?.values ?? object?.values)
|
|
3542
|
+
? (object.values ?? object.values).map((e) => String(e))
|
|
3543
|
+
: [],
|
|
3544
|
+
});
|
|
3545
|
+
},
|
|
3546
|
+
toJSON(message, use = "json") {
|
|
3547
|
+
const obj = {};
|
|
3548
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
3549
|
+
if (message.values?.length) {
|
|
3550
|
+
obj[pick("values", "values")] = message.values.map((e) => e);
|
|
3551
|
+
}
|
|
3552
|
+
return obj;
|
|
3553
|
+
},
|
|
3554
|
+
create(base) {
|
|
3555
|
+
return exports.Operation_RequestHeader.fromPartial(base ?? {});
|
|
3556
|
+
},
|
|
3557
|
+
fromPartial(object) {
|
|
3558
|
+
const message = createBaseOperation_RequestHeader();
|
|
3559
|
+
message.values = object.values?.map((e) => e) || [];
|
|
3560
|
+
return message;
|
|
3561
|
+
},
|
|
3562
|
+
};
|
|
3563
|
+
protobuf_1.protoRegistry.registerMessage(exports.Operation_RequestHeader);
|
|
3564
|
+
function Operation_RequestHeaderCustomInspect() {
|
|
3565
|
+
const parts = [];
|
|
3566
|
+
if ((this.values?.length ?? 0) !== 0)
|
|
3567
|
+
parts.push("values" + "=" + (0, util_1.inspect)(this.values));
|
|
3568
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
3569
|
+
}
|
|
3570
|
+
function Operation_RequestHeaderCustomJson() {
|
|
3571
|
+
const obj = {
|
|
3572
|
+
type: this.$type,
|
|
3573
|
+
};
|
|
3574
|
+
if ((this.values?.length ?? 0) !== 0)
|
|
3575
|
+
obj.values = (0, logging_1.inspectJson)(this.values);
|
|
3576
|
+
return obj;
|
|
3577
|
+
}
|
|
3578
|
+
function applyOperation_RequestHeaderCustom(message) {
|
|
3579
|
+
message[logging_1.custom] = Operation_RequestHeaderCustomInspect;
|
|
3580
|
+
message[logging_1.customJson] = Operation_RequestHeaderCustomJson;
|
|
3581
|
+
return message;
|
|
3582
|
+
}
|
|
3583
|
+
function createBaseOperation_RequestHeader() {
|
|
3584
|
+
const message = {
|
|
3585
|
+
$type: "nebius.common.v1.Operation.RequestHeader",
|
|
3586
|
+
values: [],
|
|
3587
|
+
};
|
|
3588
|
+
return applyOperation_RequestHeaderCustom(message);
|
|
3589
|
+
}
|
|
3590
|
+
const ResourceEvent_Level_VALUE_COMMENTS = {
|
|
3591
|
+
UNSPECIFIED: " Unspecified event severity level\n",
|
|
3592
|
+
DEBUG: " A debug event providing detailed insight. Such events are used to debug problems with specific resource(s) and process(es)\n",
|
|
3593
|
+
INFO: " A normal event or state change. Informs what is happening with the API resource. Does not require user attention or interaction\n",
|
|
3594
|
+
WARN: " Warning event. Indicates a potential or minor problem with the API resource and/or the corresponding processes. Needs user attention, but requires no immediate action (yet)\n",
|
|
3595
|
+
ERROR: " Error event. Indicates a serious problem with the API resource and/or the corresponding processes. Requires immediate user action\n",
|
|
3596
|
+
};
|
|
3597
|
+
exports.ResourceEvent_Level = (0, index_1.createEnum)("nebius.common.v1.ResourceEvent.Level", {
|
|
3598
|
+
/**
|
|
3599
|
+
* Unspecified event severity level
|
|
3600
|
+
*
|
|
3601
|
+
*/
|
|
3602
|
+
UNSPECIFIED: 0,
|
|
3603
|
+
/**
|
|
3604
|
+
* A debug event providing detailed insight. Such events are used to debug problems with specific resource(s) and process(es)
|
|
3605
|
+
*
|
|
3606
|
+
*/
|
|
3607
|
+
DEBUG: 1,
|
|
3608
|
+
/**
|
|
3609
|
+
* A normal event or state change. Informs what is happening with the API resource. Does not require user attention or interaction
|
|
3610
|
+
*
|
|
3611
|
+
*/
|
|
3612
|
+
INFO: 2,
|
|
3613
|
+
/**
|
|
3614
|
+
* Warning event. Indicates a potential or minor problem with the API resource and/or the corresponding processes. Needs user attention, but requires no immediate action (yet)
|
|
3615
|
+
*
|
|
3616
|
+
*/
|
|
3617
|
+
WARN: 3,
|
|
3618
|
+
/**
|
|
3619
|
+
* Error event. Indicates a serious problem with the API resource and/or the corresponding processes. Requires immediate user action
|
|
3620
|
+
*
|
|
3621
|
+
*/
|
|
3622
|
+
ERROR: 4,
|
|
3623
|
+
}, ResourceEvent_Level_VALUE_COMMENTS);
|
|
3624
|
+
protobuf_1.protoRegistry.registerEnum(exports.ResourceEvent_Level);
|
|
3625
|
+
exports.ResourceEvent = {
|
|
3626
|
+
$type: "nebius.common.v1.ResourceEvent",
|
|
3627
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
3628
|
+
if (message.occurredAt !== undefined) {
|
|
3629
|
+
const w = writer.uint32(10).fork();
|
|
3630
|
+
index_1.wkt[".google.protobuf.Timestamp"].writeMessage(w, message.occurredAt);
|
|
3631
|
+
w.join();
|
|
3632
|
+
}
|
|
3633
|
+
if ((message.level ?? exports.ResourceEvent_Level.UNSPECIFIED) !== exports.ResourceEvent_Level.UNSPECIFIED) {
|
|
3634
|
+
exports.ResourceEvent_Level.encodeField(writer, 2, message.level);
|
|
3635
|
+
}
|
|
3636
|
+
if (message.code !== "") {
|
|
3637
|
+
writer.uint32(26).string(message.code);
|
|
3638
|
+
}
|
|
3639
|
+
if (message.message !== "") {
|
|
3640
|
+
writer.uint32(34).string(message.message);
|
|
3641
|
+
}
|
|
3642
|
+
if (message.error !== undefined) {
|
|
3643
|
+
const w = writer.uint32(82).fork();
|
|
3644
|
+
rpc_1.Status.encode(message.error, w);
|
|
3645
|
+
w.join();
|
|
3646
|
+
}
|
|
3647
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
3648
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
3649
|
+
}
|
|
3650
|
+
return writer;
|
|
3651
|
+
},
|
|
3652
|
+
decode(input, length) {
|
|
3653
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
3654
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3655
|
+
const message = createBaseResourceEvent();
|
|
3656
|
+
let writer = undefined;
|
|
3657
|
+
while (reader.pos < end) {
|
|
3658
|
+
const tag = reader.uint32();
|
|
3659
|
+
switch (tag >>> 3) {
|
|
3660
|
+
case 1: {
|
|
3661
|
+
if (tag !== 10)
|
|
3662
|
+
break;
|
|
3663
|
+
const len = reader.uint32();
|
|
3664
|
+
message.occurredAt = index_1.wkt[".google.protobuf.Timestamp"].readMessage(reader, len);
|
|
3665
|
+
continue;
|
|
3666
|
+
}
|
|
3667
|
+
case 2: {
|
|
3668
|
+
if (tag !== 16)
|
|
3669
|
+
break;
|
|
3670
|
+
message.level = exports.ResourceEvent_Level.fromNumber(reader.int32());
|
|
3671
|
+
continue;
|
|
3672
|
+
}
|
|
3673
|
+
case 3: {
|
|
3674
|
+
if (tag !== 26)
|
|
3675
|
+
break;
|
|
3676
|
+
message.code = reader.string();
|
|
3677
|
+
continue;
|
|
3678
|
+
}
|
|
3679
|
+
case 4: {
|
|
3680
|
+
if (tag !== 34)
|
|
3681
|
+
break;
|
|
3682
|
+
message.message = reader.string();
|
|
3683
|
+
continue;
|
|
3684
|
+
}
|
|
3685
|
+
case 10: {
|
|
3686
|
+
if (tag !== 82)
|
|
3687
|
+
break;
|
|
3688
|
+
message.error = rpc_1.Status.decode(reader, reader.uint32());
|
|
3689
|
+
continue;
|
|
3690
|
+
}
|
|
3691
|
+
default:
|
|
3692
|
+
break;
|
|
3693
|
+
}
|
|
3694
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3695
|
+
break;
|
|
3696
|
+
}
|
|
3697
|
+
{
|
|
3698
|
+
if (!writer)
|
|
3699
|
+
writer = new index_1.BinaryWriter();
|
|
3700
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
3701
|
+
writer.uint32(tag).raw(skipped);
|
|
3702
|
+
}
|
|
3703
|
+
}
|
|
3704
|
+
if (writer) {
|
|
3705
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
3706
|
+
}
|
|
3707
|
+
return message;
|
|
3708
|
+
},
|
|
3709
|
+
fromJSON(object) {
|
|
3710
|
+
return applyResourceEventCustom({
|
|
3711
|
+
$type: "nebius.common.v1.ResourceEvent",
|
|
3712
|
+
occurredAt: (0, index_1.isSet)(object.occurredAt ?? object.occurred_at)
|
|
3713
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromJSON(object.occurredAt ?? object.occurred_at)
|
|
3714
|
+
: undefined,
|
|
3715
|
+
level: (0, index_1.isSet)(object.level ?? object.level)
|
|
3716
|
+
? exports.ResourceEvent_Level.fromJSON(object.level ?? object.level)
|
|
3717
|
+
: exports.ResourceEvent_Level.UNSPECIFIED,
|
|
3718
|
+
code: (0, index_1.isSet)(object.code ?? object.code)
|
|
3719
|
+
? String(object.code ?? object.code)
|
|
3720
|
+
: "",
|
|
3721
|
+
message: (0, index_1.isSet)(object.message ?? object.message)
|
|
3722
|
+
? String(object.message ?? object.message)
|
|
3723
|
+
: "",
|
|
3724
|
+
error: (0, index_1.isSet)(object.error ?? object.error)
|
|
3725
|
+
? rpc_1.Status.fromJSON(object.error ?? object.error)
|
|
3726
|
+
: undefined,
|
|
3727
|
+
});
|
|
3728
|
+
},
|
|
3729
|
+
toJSON(message, use = "json") {
|
|
3730
|
+
const obj = {};
|
|
3731
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
3732
|
+
if (message.occurredAt !== undefined) {
|
|
3733
|
+
obj[pick("occurredAt", "occurred_at")] = index_1.wkt[".google.protobuf.Timestamp"].toJSON(message.occurredAt, use);
|
|
3734
|
+
}
|
|
3735
|
+
if ((message.level ?? exports.ResourceEvent_Level.UNSPECIFIED) !== exports.ResourceEvent_Level.UNSPECIFIED) {
|
|
3736
|
+
obj[pick("level", "level")] = exports.ResourceEvent_Level.toJSON(message.level);
|
|
3737
|
+
}
|
|
3738
|
+
if (message.code !== "") {
|
|
3739
|
+
obj[pick("code", "code")] = message.code;
|
|
3740
|
+
}
|
|
3741
|
+
if (message.message !== "") {
|
|
3742
|
+
obj[pick("message", "message")] = message.message;
|
|
3743
|
+
}
|
|
3744
|
+
if (message.error !== undefined) {
|
|
3745
|
+
obj[pick("error", "error")] = message.error
|
|
3746
|
+
? rpc_1.Status.toJSON(message.error, use)
|
|
3747
|
+
: undefined;
|
|
3748
|
+
}
|
|
3749
|
+
return obj;
|
|
3750
|
+
},
|
|
3751
|
+
create(base) {
|
|
3752
|
+
return exports.ResourceEvent.fromPartial(base ?? {});
|
|
3753
|
+
},
|
|
3754
|
+
fromPartial(object) {
|
|
3755
|
+
const message = createBaseResourceEvent();
|
|
3756
|
+
message.occurredAt = (object.occurredAt !== undefined && object.occurredAt !== null)
|
|
3757
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromPartial(object.occurredAt)
|
|
3758
|
+
: undefined;
|
|
3759
|
+
message.level = (object.level !== undefined && object.level !== null)
|
|
3760
|
+
? exports.ResourceEvent_Level.fromJSON(object.level.name)
|
|
3761
|
+
: exports.ResourceEvent_Level.UNSPECIFIED;
|
|
3762
|
+
message.code = (object.code !== undefined && object.code !== null)
|
|
3763
|
+
? object.code
|
|
3764
|
+
: "";
|
|
3765
|
+
message.message = (object.message !== undefined && object.message !== null)
|
|
3766
|
+
? object.message
|
|
3767
|
+
: "";
|
|
3768
|
+
message.error = (object.error !== undefined && object.error !== null)
|
|
3769
|
+
? rpc_1.Status.fromPartial(object.error)
|
|
3770
|
+
: undefined;
|
|
3771
|
+
return message;
|
|
3772
|
+
},
|
|
3773
|
+
};
|
|
3774
|
+
protobuf_1.protoRegistry.registerMessage(exports.ResourceEvent);
|
|
3775
|
+
function ResourceEventCustomInspect() {
|
|
3776
|
+
const parts = [];
|
|
3777
|
+
if (this.occurredAt !== undefined)
|
|
3778
|
+
parts.push("occurredAt" + "=" + (0, util_1.inspect)(this.occurredAt));
|
|
3779
|
+
if (this.level !== undefined)
|
|
3780
|
+
parts.push("level" + "=" + (0, util_1.inspect)(this.level));
|
|
3781
|
+
if (this.code !== "")
|
|
3782
|
+
parts.push("code" + "=" + (0, util_1.inspect)(this.code));
|
|
3783
|
+
if (this.message !== "")
|
|
3784
|
+
parts.push("message" + "=" + (0, util_1.inspect)(this.message));
|
|
3785
|
+
if (this.error !== undefined)
|
|
3786
|
+
parts.push("error" + "=" + (0, util_1.inspect)(this.error));
|
|
3787
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
3788
|
+
}
|
|
3789
|
+
function ResourceEventCustomJson() {
|
|
3790
|
+
const obj = {
|
|
3791
|
+
type: this.$type,
|
|
3792
|
+
};
|
|
3793
|
+
if (this.occurredAt !== undefined)
|
|
3794
|
+
obj.occurredAt = (0, logging_1.inspectJson)(this.occurredAt);
|
|
3795
|
+
if (this.level !== undefined)
|
|
3796
|
+
obj.level = (0, logging_1.inspectJson)(this.level);
|
|
3797
|
+
if (this.code !== "")
|
|
3798
|
+
obj.code = (0, logging_1.inspectJson)(this.code);
|
|
3799
|
+
if (this.message !== "")
|
|
3800
|
+
obj.message = (0, logging_1.inspectJson)(this.message);
|
|
3801
|
+
if (this.error !== undefined)
|
|
3802
|
+
obj.error = (0, logging_1.inspectJson)(this.error);
|
|
3803
|
+
return obj;
|
|
3804
|
+
}
|
|
3805
|
+
function applyResourceEventCustom(message) {
|
|
3806
|
+
message[logging_1.custom] = ResourceEventCustomInspect;
|
|
3807
|
+
message[logging_1.customJson] = ResourceEventCustomJson;
|
|
3808
|
+
return message;
|
|
3809
|
+
}
|
|
3810
|
+
function createBaseResourceEvent() {
|
|
3811
|
+
const message = {
|
|
3812
|
+
$type: "nebius.common.v1.ResourceEvent",
|
|
3813
|
+
occurredAt: undefined,
|
|
3814
|
+
level: exports.ResourceEvent_Level.UNSPECIFIED,
|
|
3815
|
+
code: "",
|
|
3816
|
+
message: "",
|
|
3817
|
+
error: undefined,
|
|
3818
|
+
};
|
|
3819
|
+
return applyResourceEventCustom(message);
|
|
3820
|
+
}
|
|
3821
|
+
exports.RecurrentResourceEvent = {
|
|
3822
|
+
$type: "nebius.common.v1.RecurrentResourceEvent",
|
|
3823
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
3824
|
+
if (message.firstOccurredAt !== undefined) {
|
|
3825
|
+
const w = writer.uint32(10).fork();
|
|
3826
|
+
index_1.wkt[".google.protobuf.Timestamp"].writeMessage(w, message.firstOccurredAt);
|
|
3827
|
+
w.join();
|
|
3828
|
+
}
|
|
3829
|
+
if (message.lastOccurrence !== undefined) {
|
|
3830
|
+
const w = writer.uint32(18).fork();
|
|
3831
|
+
exports.ResourceEvent.encode(message.lastOccurrence, w);
|
|
3832
|
+
w.join();
|
|
3833
|
+
}
|
|
3834
|
+
if (message.occurrenceCount !== undefined && !message.occurrenceCount.isZero?.()) {
|
|
3835
|
+
writer.uint32(24).int64(message.occurrenceCount.toString());
|
|
3836
|
+
}
|
|
3837
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
3838
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
3839
|
+
}
|
|
3840
|
+
return writer;
|
|
3841
|
+
},
|
|
3842
|
+
decode(input, length) {
|
|
3843
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
3844
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3845
|
+
const message = createBaseRecurrentResourceEvent();
|
|
3846
|
+
let writer = undefined;
|
|
3847
|
+
while (reader.pos < end) {
|
|
3848
|
+
const tag = reader.uint32();
|
|
3849
|
+
switch (tag >>> 3) {
|
|
3850
|
+
case 1: {
|
|
3851
|
+
if (tag !== 10)
|
|
3852
|
+
break;
|
|
3853
|
+
const len = reader.uint32();
|
|
3854
|
+
message.firstOccurredAt = index_1.wkt[".google.protobuf.Timestamp"].readMessage(reader, len);
|
|
3855
|
+
continue;
|
|
3856
|
+
}
|
|
3857
|
+
case 2: {
|
|
3858
|
+
if (tag !== 18)
|
|
3859
|
+
break;
|
|
3860
|
+
message.lastOccurrence = exports.ResourceEvent.decode(reader, reader.uint32());
|
|
3861
|
+
continue;
|
|
3862
|
+
}
|
|
3863
|
+
case 3: {
|
|
3864
|
+
if (tag !== 24)
|
|
3865
|
+
break;
|
|
3866
|
+
message.occurrenceCount = index_1.Long.fromValue(reader.int64());
|
|
3867
|
+
continue;
|
|
3868
|
+
}
|
|
3869
|
+
default:
|
|
3870
|
+
break;
|
|
3871
|
+
}
|
|
3872
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3873
|
+
break;
|
|
3874
|
+
}
|
|
3875
|
+
{
|
|
3876
|
+
if (!writer)
|
|
3877
|
+
writer = new index_1.BinaryWriter();
|
|
3878
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
3879
|
+
writer.uint32(tag).raw(skipped);
|
|
3880
|
+
}
|
|
3881
|
+
}
|
|
3882
|
+
if (writer) {
|
|
3883
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
3884
|
+
}
|
|
3885
|
+
return message;
|
|
3886
|
+
},
|
|
3887
|
+
fromJSON(object) {
|
|
3888
|
+
return applyRecurrentResourceEventCustom({
|
|
3889
|
+
$type: "nebius.common.v1.RecurrentResourceEvent",
|
|
3890
|
+
firstOccurredAt: (0, index_1.isSet)(object.firstOccurredAt ?? object.first_occurred_at)
|
|
3891
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromJSON(object.firstOccurredAt ?? object.first_occurred_at)
|
|
3892
|
+
: undefined,
|
|
3893
|
+
lastOccurrence: (0, index_1.isSet)(object.lastOccurrence ?? object.last_occurrence)
|
|
3894
|
+
? exports.ResourceEvent.fromJSON(object.lastOccurrence ?? object.last_occurrence)
|
|
3895
|
+
: undefined,
|
|
3896
|
+
occurrenceCount: (0, index_1.isSet)(object.occurrenceCount ?? object.occurrence_count)
|
|
3897
|
+
? index_1.Long.fromValue(object.occurrenceCount ?? object.occurrence_count)
|
|
3898
|
+
: index_1.Long.ZERO,
|
|
3899
|
+
});
|
|
3900
|
+
},
|
|
3901
|
+
toJSON(message, use = "json") {
|
|
3902
|
+
const obj = {};
|
|
3903
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
3904
|
+
if (message.firstOccurredAt !== undefined) {
|
|
3905
|
+
obj[pick("firstOccurredAt", "first_occurred_at")] = index_1.wkt[".google.protobuf.Timestamp"].toJSON(message.firstOccurredAt, use);
|
|
3906
|
+
}
|
|
3907
|
+
if (message.lastOccurrence !== undefined) {
|
|
3908
|
+
obj[pick("lastOccurrence", "last_occurrence")] = message.lastOccurrence
|
|
3909
|
+
? exports.ResourceEvent.toJSON(message.lastOccurrence, use)
|
|
3910
|
+
: undefined;
|
|
3911
|
+
}
|
|
3912
|
+
if (!message.occurrenceCount?.isZero?.()) {
|
|
3913
|
+
obj[pick("occurrenceCount", "occurrence_count")] = (message.occurrenceCount || index_1.Long.ZERO).toString();
|
|
3914
|
+
}
|
|
3915
|
+
return obj;
|
|
3916
|
+
},
|
|
3917
|
+
create(base) {
|
|
3918
|
+
return exports.RecurrentResourceEvent.fromPartial(base ?? {});
|
|
3919
|
+
},
|
|
3920
|
+
fromPartial(object) {
|
|
3921
|
+
const message = createBaseRecurrentResourceEvent();
|
|
3922
|
+
message.firstOccurredAt = (object.firstOccurredAt !== undefined && object.firstOccurredAt !== null)
|
|
3923
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromPartial(object.firstOccurredAt)
|
|
3924
|
+
: undefined;
|
|
3925
|
+
message.lastOccurrence = (object.lastOccurrence !== undefined && object.lastOccurrence !== null)
|
|
3926
|
+
? exports.ResourceEvent.fromPartial(object.lastOccurrence)
|
|
3927
|
+
: undefined;
|
|
3928
|
+
message.occurrenceCount = (object.occurrenceCount !== undefined && object.occurrenceCount !== null)
|
|
3929
|
+
? index_1.Long.fromValue(object.occurrenceCount)
|
|
3930
|
+
: index_1.Long.ZERO;
|
|
3931
|
+
return message;
|
|
3932
|
+
},
|
|
3933
|
+
};
|
|
3934
|
+
protobuf_1.protoRegistry.registerMessage(exports.RecurrentResourceEvent);
|
|
3935
|
+
function RecurrentResourceEventCustomInspect() {
|
|
3936
|
+
const parts = [];
|
|
3937
|
+
if (this.firstOccurredAt !== undefined)
|
|
3938
|
+
parts.push("firstOccurredAt" + "=" + (0, util_1.inspect)(this.firstOccurredAt));
|
|
3939
|
+
if (this.lastOccurrence !== undefined)
|
|
3940
|
+
parts.push("lastOccurrence" + "=" + (0, util_1.inspect)(this.lastOccurrence));
|
|
3941
|
+
if (!this.occurrenceCount?.isZero?.())
|
|
3942
|
+
parts.push("occurrenceCount" + "=" + (0, util_1.inspect)(this.occurrenceCount));
|
|
3943
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
3944
|
+
}
|
|
3945
|
+
function RecurrentResourceEventCustomJson() {
|
|
3946
|
+
const obj = {
|
|
3947
|
+
type: this.$type,
|
|
3948
|
+
};
|
|
3949
|
+
if (this.firstOccurredAt !== undefined)
|
|
3950
|
+
obj.firstOccurredAt = (0, logging_1.inspectJson)(this.firstOccurredAt);
|
|
3951
|
+
if (this.lastOccurrence !== undefined)
|
|
3952
|
+
obj.lastOccurrence = (0, logging_1.inspectJson)(this.lastOccurrence);
|
|
3953
|
+
if (!this.occurrenceCount?.isZero?.())
|
|
3954
|
+
obj.occurrenceCount = (0, logging_1.inspectJson)(this.occurrenceCount);
|
|
3955
|
+
return obj;
|
|
3956
|
+
}
|
|
3957
|
+
function applyRecurrentResourceEventCustom(message) {
|
|
3958
|
+
message[logging_1.custom] = RecurrentResourceEventCustomInspect;
|
|
3959
|
+
message[logging_1.customJson] = RecurrentResourceEventCustomJson;
|
|
3960
|
+
return message;
|
|
3961
|
+
}
|
|
3962
|
+
function createBaseRecurrentResourceEvent() {
|
|
3963
|
+
const message = {
|
|
3964
|
+
$type: "nebius.common.v1.RecurrentResourceEvent",
|
|
3965
|
+
firstOccurredAt: undefined,
|
|
3966
|
+
lastOccurrence: undefined,
|
|
3967
|
+
occurrenceCount: index_1.Long.ZERO,
|
|
3968
|
+
};
|
|
3969
|
+
return applyRecurrentResourceEventCustom(message);
|
|
3970
|
+
}
|
|
3971
|
+
//# sourceMappingURL=index.js.map
|