@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,3554 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Generated by Nebius TS generator. DO NOT EDIT! */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TransferIteration = exports.TransferStatus = exports.TransferSpec_StopConditionInfinite = exports.TransferSpec_StopConditionAfterNEmptyIterations = exports.TransferSpec_StopConditionAfterOneIteration = exports.TransferSpec_Limiters = exports.TransferSpec_BucketCredentials_AzureAccessKey = exports.TransferSpec_BucketCredentials_CredentialsAccessKey = exports.TransferSpec_BucketCredentials_CredentialsAnonymous = exports.TransferSpec_BucketCredentials = exports.TransferSpec_DestinationBucket = exports.TransferSpec_SourceBucket = exports.TransferSpec = exports.Transfer = exports.TransferIteration_State = exports.TransferStatus_SuspensionState = exports.TransferStatus_State = exports.TransferSpec_OverwriteStrategy = exports.TransferService = exports.TransferServiceBaseClient = exports.TransferServiceServiceDescription = exports.GetIterationHistoryResponse = exports.GetIterationHistoryRequest = exports.DeleteTransferRequest = exports.ResumeTransferRequest = exports.StopTransferRequest = exports.UpdateTransferRequest = exports.CreateTransferRequest = exports.ListTransfersResponse = exports.ListTransfersRequest = exports.GetTransferRequest = 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 v1_1 = require("../../common/v1");
|
|
13
|
+
const __deprecatedWarned = new Set();
|
|
14
|
+
exports.GetTransferRequest = {
|
|
15
|
+
$type: "nebius.storage.v1alpha1.GetTransferRequest",
|
|
16
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
17
|
+
if (message.id !== "") {
|
|
18
|
+
writer.uint32(10).string(message.id);
|
|
19
|
+
}
|
|
20
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
21
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
27
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBaseGetTransferRequest();
|
|
29
|
+
let writer = undefined;
|
|
30
|
+
while (reader.pos < end) {
|
|
31
|
+
const tag = reader.uint32();
|
|
32
|
+
switch (tag >>> 3) {
|
|
33
|
+
case 1: {
|
|
34
|
+
if (tag !== 10)
|
|
35
|
+
break;
|
|
36
|
+
message.id = reader.string();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
default:
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
{
|
|
46
|
+
if (!writer)
|
|
47
|
+
writer = new index_1.BinaryWriter();
|
|
48
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
49
|
+
writer.uint32(tag).raw(skipped);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
if (writer) {
|
|
53
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
54
|
+
}
|
|
55
|
+
return message;
|
|
56
|
+
},
|
|
57
|
+
fromJSON(object) {
|
|
58
|
+
return applyGetTransferRequestCustom({
|
|
59
|
+
$type: "nebius.storage.v1alpha1.GetTransferRequest",
|
|
60
|
+
id: (0, index_1.isSet)(object.id ?? object.id)
|
|
61
|
+
? String(object.id ?? object.id)
|
|
62
|
+
: "",
|
|
63
|
+
});
|
|
64
|
+
},
|
|
65
|
+
toJSON(message, use = "json") {
|
|
66
|
+
const obj = {};
|
|
67
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
68
|
+
if (message.id !== "") {
|
|
69
|
+
obj[pick("id", "id")] = message.id;
|
|
70
|
+
}
|
|
71
|
+
return obj;
|
|
72
|
+
},
|
|
73
|
+
create(base) {
|
|
74
|
+
return exports.GetTransferRequest.fromPartial(base ?? {});
|
|
75
|
+
},
|
|
76
|
+
fromPartial(object) {
|
|
77
|
+
const message = createBaseGetTransferRequest();
|
|
78
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
79
|
+
? object.id
|
|
80
|
+
: "";
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
protobuf_1.protoRegistry.registerMessage(exports.GetTransferRequest);
|
|
85
|
+
function GetTransferRequestCustomInspect() {
|
|
86
|
+
const parts = [];
|
|
87
|
+
if (this.id !== "")
|
|
88
|
+
parts.push("id" + "=" + (0, util_1.inspect)(this.id));
|
|
89
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
90
|
+
}
|
|
91
|
+
function GetTransferRequestCustomJson() {
|
|
92
|
+
const obj = {
|
|
93
|
+
type: this.$type,
|
|
94
|
+
};
|
|
95
|
+
if (this.id !== "")
|
|
96
|
+
obj.id = (0, logging_1.inspectJson)(this.id);
|
|
97
|
+
return obj;
|
|
98
|
+
}
|
|
99
|
+
function applyGetTransferRequestCustom(message) {
|
|
100
|
+
message[logging_1.custom] = GetTransferRequestCustomInspect;
|
|
101
|
+
message[logging_1.customJson] = GetTransferRequestCustomJson;
|
|
102
|
+
return message;
|
|
103
|
+
}
|
|
104
|
+
function createBaseGetTransferRequest() {
|
|
105
|
+
const message = {
|
|
106
|
+
$type: "nebius.storage.v1alpha1.GetTransferRequest",
|
|
107
|
+
id: "",
|
|
108
|
+
};
|
|
109
|
+
return applyGetTransferRequestCustom(message);
|
|
110
|
+
}
|
|
111
|
+
exports.ListTransfersRequest = {
|
|
112
|
+
$type: "nebius.storage.v1alpha1.ListTransfersRequest",
|
|
113
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
114
|
+
if (message.parentId !== "") {
|
|
115
|
+
writer.uint32(10).string(message.parentId);
|
|
116
|
+
}
|
|
117
|
+
if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
|
|
118
|
+
writer.uint32(16).int64(message.pageSize.toString());
|
|
119
|
+
}
|
|
120
|
+
if (message.pageToken !== "") {
|
|
121
|
+
writer.uint32(26).string(message.pageToken);
|
|
122
|
+
}
|
|
123
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
124
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
125
|
+
}
|
|
126
|
+
return writer;
|
|
127
|
+
},
|
|
128
|
+
decode(input, length) {
|
|
129
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
130
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
131
|
+
const message = createBaseListTransfersRequest();
|
|
132
|
+
let writer = undefined;
|
|
133
|
+
while (reader.pos < end) {
|
|
134
|
+
const tag = reader.uint32();
|
|
135
|
+
switch (tag >>> 3) {
|
|
136
|
+
case 1: {
|
|
137
|
+
if (tag !== 10)
|
|
138
|
+
break;
|
|
139
|
+
message.parentId = reader.string();
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
case 2: {
|
|
143
|
+
if (tag !== 16)
|
|
144
|
+
break;
|
|
145
|
+
message.pageSize = index_1.Long.fromValue(reader.int64());
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
case 3: {
|
|
149
|
+
if (tag !== 26)
|
|
150
|
+
break;
|
|
151
|
+
message.pageToken = reader.string();
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
default:
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
{
|
|
161
|
+
if (!writer)
|
|
162
|
+
writer = new index_1.BinaryWriter();
|
|
163
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
164
|
+
writer.uint32(tag).raw(skipped);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (writer) {
|
|
168
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
169
|
+
}
|
|
170
|
+
return message;
|
|
171
|
+
},
|
|
172
|
+
fromJSON(object) {
|
|
173
|
+
return applyListTransfersRequestCustom({
|
|
174
|
+
$type: "nebius.storage.v1alpha1.ListTransfersRequest",
|
|
175
|
+
parentId: (0, index_1.isSet)(object.parentId ?? object.parent_id)
|
|
176
|
+
? String(object.parentId ?? object.parent_id)
|
|
177
|
+
: "",
|
|
178
|
+
pageSize: (0, index_1.isSet)(object.pageSize ?? object.page_size)
|
|
179
|
+
? index_1.Long.fromValue(object.pageSize ?? object.page_size)
|
|
180
|
+
: index_1.Long.ZERO,
|
|
181
|
+
pageToken: (0, index_1.isSet)(object.pageToken ?? object.page_token)
|
|
182
|
+
? String(object.pageToken ?? object.page_token)
|
|
183
|
+
: "",
|
|
184
|
+
});
|
|
185
|
+
},
|
|
186
|
+
toJSON(message, use = "json") {
|
|
187
|
+
const obj = {};
|
|
188
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
189
|
+
if (message.parentId !== "") {
|
|
190
|
+
obj[pick("parentId", "parent_id")] = message.parentId;
|
|
191
|
+
}
|
|
192
|
+
if (!message.pageSize?.isZero?.()) {
|
|
193
|
+
obj[pick("pageSize", "page_size")] = (message.pageSize || index_1.Long.ZERO).toString();
|
|
194
|
+
}
|
|
195
|
+
if (message.pageToken !== "") {
|
|
196
|
+
obj[pick("pageToken", "page_token")] = message.pageToken;
|
|
197
|
+
}
|
|
198
|
+
return obj;
|
|
199
|
+
},
|
|
200
|
+
create(base) {
|
|
201
|
+
return exports.ListTransfersRequest.fromPartial(base ?? {});
|
|
202
|
+
},
|
|
203
|
+
fromPartial(object) {
|
|
204
|
+
const message = createBaseListTransfersRequest();
|
|
205
|
+
message.parentId = (object.parentId !== undefined && object.parentId !== null)
|
|
206
|
+
? object.parentId
|
|
207
|
+
: "";
|
|
208
|
+
message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
|
|
209
|
+
? index_1.Long.fromValue(object.pageSize)
|
|
210
|
+
: index_1.Long.ZERO;
|
|
211
|
+
message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
|
|
212
|
+
? object.pageToken
|
|
213
|
+
: "";
|
|
214
|
+
return message;
|
|
215
|
+
},
|
|
216
|
+
};
|
|
217
|
+
protobuf_1.protoRegistry.registerMessage(exports.ListTransfersRequest);
|
|
218
|
+
function ListTransfersRequestCustomInspect() {
|
|
219
|
+
const parts = [];
|
|
220
|
+
if (this.parentId !== "")
|
|
221
|
+
parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
|
|
222
|
+
if (!this.pageSize?.isZero?.())
|
|
223
|
+
parts.push("pageSize" + "=" + (0, util_1.inspect)(this.pageSize));
|
|
224
|
+
if (this.pageToken !== "")
|
|
225
|
+
parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
|
|
226
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
227
|
+
}
|
|
228
|
+
function ListTransfersRequestCustomJson() {
|
|
229
|
+
const obj = {
|
|
230
|
+
type: this.$type,
|
|
231
|
+
};
|
|
232
|
+
if (this.parentId !== "")
|
|
233
|
+
obj.parentId = (0, logging_1.inspectJson)(this.parentId);
|
|
234
|
+
if (!this.pageSize?.isZero?.())
|
|
235
|
+
obj.pageSize = (0, logging_1.inspectJson)(this.pageSize);
|
|
236
|
+
if (this.pageToken !== "")
|
|
237
|
+
obj.pageToken = (0, logging_1.inspectJson)(this.pageToken);
|
|
238
|
+
return obj;
|
|
239
|
+
}
|
|
240
|
+
function applyListTransfersRequestCustom(message) {
|
|
241
|
+
message[logging_1.custom] = ListTransfersRequestCustomInspect;
|
|
242
|
+
message[logging_1.customJson] = ListTransfersRequestCustomJson;
|
|
243
|
+
return message;
|
|
244
|
+
}
|
|
245
|
+
function createBaseListTransfersRequest() {
|
|
246
|
+
const message = {
|
|
247
|
+
$type: "nebius.storage.v1alpha1.ListTransfersRequest",
|
|
248
|
+
parentId: "",
|
|
249
|
+
pageSize: index_1.Long.ZERO,
|
|
250
|
+
pageToken: "",
|
|
251
|
+
};
|
|
252
|
+
return applyListTransfersRequestCustom(message);
|
|
253
|
+
}
|
|
254
|
+
exports.ListTransfersResponse = {
|
|
255
|
+
$type: "nebius.storage.v1alpha1.ListTransfersResponse",
|
|
256
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
257
|
+
for (const v of (message.items ?? [])) {
|
|
258
|
+
const w = writer.uint32(10).fork();
|
|
259
|
+
exports.Transfer.encode(v, w);
|
|
260
|
+
w.join();
|
|
261
|
+
}
|
|
262
|
+
if (message.nextPageToken !== "") {
|
|
263
|
+
writer.uint32(18).string(message.nextPageToken);
|
|
264
|
+
}
|
|
265
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
266
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
267
|
+
}
|
|
268
|
+
return writer;
|
|
269
|
+
},
|
|
270
|
+
decode(input, length) {
|
|
271
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
272
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
273
|
+
const message = createBaseListTransfersResponse();
|
|
274
|
+
let writer = undefined;
|
|
275
|
+
while (reader.pos < end) {
|
|
276
|
+
const tag = reader.uint32();
|
|
277
|
+
switch (tag >>> 3) {
|
|
278
|
+
case 1: {
|
|
279
|
+
if (tag !== 10)
|
|
280
|
+
break;
|
|
281
|
+
message.items.push(exports.Transfer.decode(reader, reader.uint32()));
|
|
282
|
+
continue;
|
|
283
|
+
}
|
|
284
|
+
case 2: {
|
|
285
|
+
if (tag !== 18)
|
|
286
|
+
break;
|
|
287
|
+
message.nextPageToken = reader.string();
|
|
288
|
+
continue;
|
|
289
|
+
}
|
|
290
|
+
default:
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
{
|
|
297
|
+
if (!writer)
|
|
298
|
+
writer = new index_1.BinaryWriter();
|
|
299
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
300
|
+
writer.uint32(tag).raw(skipped);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
if (writer) {
|
|
304
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
305
|
+
}
|
|
306
|
+
return message;
|
|
307
|
+
},
|
|
308
|
+
fromJSON(object) {
|
|
309
|
+
return applyListTransfersResponseCustom({
|
|
310
|
+
$type: "nebius.storage.v1alpha1.ListTransfersResponse",
|
|
311
|
+
items: globalThis.Array.isArray(object?.items ?? object?.items)
|
|
312
|
+
? (object.items ?? object.items).map((e) => exports.Transfer.fromJSON(e))
|
|
313
|
+
: [],
|
|
314
|
+
nextPageToken: (0, index_1.isSet)(object.nextPageToken ?? object.next_page_token)
|
|
315
|
+
? String(object.nextPageToken ?? object.next_page_token)
|
|
316
|
+
: "",
|
|
317
|
+
});
|
|
318
|
+
},
|
|
319
|
+
toJSON(message, use = "json") {
|
|
320
|
+
const obj = {};
|
|
321
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
322
|
+
if (message.items?.length) {
|
|
323
|
+
obj[pick("items", "items")] = message.items.map((e) => e ? exports.Transfer.toJSON(e, use) : undefined);
|
|
324
|
+
}
|
|
325
|
+
if (message.nextPageToken !== "") {
|
|
326
|
+
obj[pick("nextPageToken", "next_page_token")] = message.nextPageToken;
|
|
327
|
+
}
|
|
328
|
+
return obj;
|
|
329
|
+
},
|
|
330
|
+
create(base) {
|
|
331
|
+
return exports.ListTransfersResponse.fromPartial(base ?? {});
|
|
332
|
+
},
|
|
333
|
+
fromPartial(object) {
|
|
334
|
+
const message = createBaseListTransfersResponse();
|
|
335
|
+
message.items = object.items?.map((e) => exports.Transfer.fromPartial(e)) || [];
|
|
336
|
+
message.nextPageToken = (object.nextPageToken !== undefined && object.nextPageToken !== null)
|
|
337
|
+
? object.nextPageToken
|
|
338
|
+
: "";
|
|
339
|
+
return message;
|
|
340
|
+
},
|
|
341
|
+
};
|
|
342
|
+
protobuf_1.protoRegistry.registerMessage(exports.ListTransfersResponse);
|
|
343
|
+
function ListTransfersResponseCustomInspect() {
|
|
344
|
+
const parts = [];
|
|
345
|
+
if ((this.items?.length ?? 0) !== 0)
|
|
346
|
+
parts.push("items" + "=" + (0, util_1.inspect)(this.items));
|
|
347
|
+
if (this.nextPageToken !== "")
|
|
348
|
+
parts.push("nextPageToken" + "=" + (0, util_1.inspect)(this.nextPageToken));
|
|
349
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
350
|
+
}
|
|
351
|
+
function ListTransfersResponseCustomJson() {
|
|
352
|
+
const obj = {
|
|
353
|
+
type: this.$type,
|
|
354
|
+
};
|
|
355
|
+
if ((this.items?.length ?? 0) !== 0)
|
|
356
|
+
obj.items = (0, logging_1.inspectJson)(this.items);
|
|
357
|
+
if (this.nextPageToken !== "")
|
|
358
|
+
obj.nextPageToken = (0, logging_1.inspectJson)(this.nextPageToken);
|
|
359
|
+
return obj;
|
|
360
|
+
}
|
|
361
|
+
function applyListTransfersResponseCustom(message) {
|
|
362
|
+
message[logging_1.custom] = ListTransfersResponseCustomInspect;
|
|
363
|
+
message[logging_1.customJson] = ListTransfersResponseCustomJson;
|
|
364
|
+
return message;
|
|
365
|
+
}
|
|
366
|
+
function createBaseListTransfersResponse() {
|
|
367
|
+
const message = {
|
|
368
|
+
$type: "nebius.storage.v1alpha1.ListTransfersResponse",
|
|
369
|
+
items: [],
|
|
370
|
+
nextPageToken: "",
|
|
371
|
+
};
|
|
372
|
+
return applyListTransfersResponseCustom(message);
|
|
373
|
+
}
|
|
374
|
+
exports.CreateTransferRequest = {
|
|
375
|
+
$type: "nebius.storage.v1alpha1.CreateTransferRequest",
|
|
376
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
377
|
+
if (message.metadata !== undefined) {
|
|
378
|
+
const w = writer.uint32(10).fork();
|
|
379
|
+
v1_1.ResourceMetadata.encode(message.metadata, w);
|
|
380
|
+
w.join();
|
|
381
|
+
}
|
|
382
|
+
if (message.spec !== undefined) {
|
|
383
|
+
const w = writer.uint32(18).fork();
|
|
384
|
+
exports.TransferSpec.encode(message.spec, w);
|
|
385
|
+
w.join();
|
|
386
|
+
}
|
|
387
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
388
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
389
|
+
}
|
|
390
|
+
return writer;
|
|
391
|
+
},
|
|
392
|
+
decode(input, length) {
|
|
393
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
394
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
395
|
+
const message = createBaseCreateTransferRequest();
|
|
396
|
+
let writer = undefined;
|
|
397
|
+
while (reader.pos < end) {
|
|
398
|
+
const tag = reader.uint32();
|
|
399
|
+
switch (tag >>> 3) {
|
|
400
|
+
case 1: {
|
|
401
|
+
if (tag !== 10)
|
|
402
|
+
break;
|
|
403
|
+
message.metadata = v1_1.ResourceMetadata.decode(reader, reader.uint32());
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
case 2: {
|
|
407
|
+
if (tag !== 18)
|
|
408
|
+
break;
|
|
409
|
+
message.spec = exports.TransferSpec.decode(reader, reader.uint32());
|
|
410
|
+
continue;
|
|
411
|
+
}
|
|
412
|
+
default:
|
|
413
|
+
break;
|
|
414
|
+
}
|
|
415
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
{
|
|
419
|
+
if (!writer)
|
|
420
|
+
writer = new index_1.BinaryWriter();
|
|
421
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
422
|
+
writer.uint32(tag).raw(skipped);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
if (writer) {
|
|
426
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
427
|
+
}
|
|
428
|
+
return message;
|
|
429
|
+
},
|
|
430
|
+
fromJSON(object) {
|
|
431
|
+
return applyCreateTransferRequestCustom({
|
|
432
|
+
$type: "nebius.storage.v1alpha1.CreateTransferRequest",
|
|
433
|
+
metadata: (0, index_1.isSet)(object.metadata ?? object.metadata)
|
|
434
|
+
? v1_1.ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
|
|
435
|
+
: undefined,
|
|
436
|
+
spec: (0, index_1.isSet)(object.spec ?? object.spec)
|
|
437
|
+
? exports.TransferSpec.fromJSON(object.spec ?? object.spec)
|
|
438
|
+
: undefined,
|
|
439
|
+
});
|
|
440
|
+
},
|
|
441
|
+
toJSON(message, use = "json") {
|
|
442
|
+
const obj = {};
|
|
443
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
444
|
+
if (message.metadata !== undefined) {
|
|
445
|
+
obj[pick("metadata", "metadata")] = message.metadata
|
|
446
|
+
? v1_1.ResourceMetadata.toJSON(message.metadata, use)
|
|
447
|
+
: undefined;
|
|
448
|
+
}
|
|
449
|
+
if (message.spec !== undefined) {
|
|
450
|
+
obj[pick("spec", "spec")] = message.spec
|
|
451
|
+
? exports.TransferSpec.toJSON(message.spec, use)
|
|
452
|
+
: undefined;
|
|
453
|
+
}
|
|
454
|
+
return obj;
|
|
455
|
+
},
|
|
456
|
+
create(base) {
|
|
457
|
+
return exports.CreateTransferRequest.fromPartial(base ?? {});
|
|
458
|
+
},
|
|
459
|
+
fromPartial(object) {
|
|
460
|
+
const message = createBaseCreateTransferRequest();
|
|
461
|
+
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
|
462
|
+
? v1_1.ResourceMetadata.fromPartial(object.metadata)
|
|
463
|
+
: undefined;
|
|
464
|
+
message.spec = (object.spec !== undefined && object.spec !== null)
|
|
465
|
+
? exports.TransferSpec.fromPartial(object.spec)
|
|
466
|
+
: undefined;
|
|
467
|
+
return message;
|
|
468
|
+
},
|
|
469
|
+
};
|
|
470
|
+
protobuf_1.protoRegistry.registerMessage(exports.CreateTransferRequest);
|
|
471
|
+
function CreateTransferRequestCustomInspect() {
|
|
472
|
+
const parts = [];
|
|
473
|
+
if (this.metadata !== undefined)
|
|
474
|
+
parts.push("metadata" + "=" + (0, util_1.inspect)(this.metadata));
|
|
475
|
+
if (this.spec !== undefined)
|
|
476
|
+
parts.push("spec" + "=" + (0, util_1.inspect)(this.spec));
|
|
477
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
478
|
+
}
|
|
479
|
+
function CreateTransferRequestCustomJson() {
|
|
480
|
+
const obj = {
|
|
481
|
+
type: this.$type,
|
|
482
|
+
};
|
|
483
|
+
if (this.metadata !== undefined)
|
|
484
|
+
obj.metadata = (0, logging_1.inspectJson)(this.metadata);
|
|
485
|
+
if (this.spec !== undefined)
|
|
486
|
+
obj.spec = (0, logging_1.inspectJson)(this.spec);
|
|
487
|
+
return obj;
|
|
488
|
+
}
|
|
489
|
+
function applyCreateTransferRequestCustom(message) {
|
|
490
|
+
message[logging_1.custom] = CreateTransferRequestCustomInspect;
|
|
491
|
+
message[logging_1.customJson] = CreateTransferRequestCustomJson;
|
|
492
|
+
return message;
|
|
493
|
+
}
|
|
494
|
+
function createBaseCreateTransferRequest() {
|
|
495
|
+
const message = {
|
|
496
|
+
$type: "nebius.storage.v1alpha1.CreateTransferRequest",
|
|
497
|
+
metadata: undefined,
|
|
498
|
+
spec: undefined,
|
|
499
|
+
};
|
|
500
|
+
return applyCreateTransferRequestCustom(message);
|
|
501
|
+
}
|
|
502
|
+
exports.UpdateTransferRequest = {
|
|
503
|
+
$type: "nebius.storage.v1alpha1.UpdateTransferRequest",
|
|
504
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
505
|
+
if (message.metadata !== undefined) {
|
|
506
|
+
const w = writer.uint32(10).fork();
|
|
507
|
+
v1_1.ResourceMetadata.encode(message.metadata, w);
|
|
508
|
+
w.join();
|
|
509
|
+
}
|
|
510
|
+
if (message.spec !== undefined) {
|
|
511
|
+
const w = writer.uint32(18).fork();
|
|
512
|
+
exports.TransferSpec.encode(message.spec, w);
|
|
513
|
+
w.join();
|
|
514
|
+
}
|
|
515
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
516
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
517
|
+
}
|
|
518
|
+
return writer;
|
|
519
|
+
},
|
|
520
|
+
decode(input, length) {
|
|
521
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
522
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
523
|
+
const message = createBaseUpdateTransferRequest();
|
|
524
|
+
let writer = undefined;
|
|
525
|
+
while (reader.pos < end) {
|
|
526
|
+
const tag = reader.uint32();
|
|
527
|
+
switch (tag >>> 3) {
|
|
528
|
+
case 1: {
|
|
529
|
+
if (tag !== 10)
|
|
530
|
+
break;
|
|
531
|
+
message.metadata = v1_1.ResourceMetadata.decode(reader, reader.uint32());
|
|
532
|
+
continue;
|
|
533
|
+
}
|
|
534
|
+
case 2: {
|
|
535
|
+
if (tag !== 18)
|
|
536
|
+
break;
|
|
537
|
+
message.spec = exports.TransferSpec.decode(reader, reader.uint32());
|
|
538
|
+
continue;
|
|
539
|
+
}
|
|
540
|
+
default:
|
|
541
|
+
break;
|
|
542
|
+
}
|
|
543
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
{
|
|
547
|
+
if (!writer)
|
|
548
|
+
writer = new index_1.BinaryWriter();
|
|
549
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
550
|
+
writer.uint32(tag).raw(skipped);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
if (writer) {
|
|
554
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
555
|
+
}
|
|
556
|
+
return message;
|
|
557
|
+
},
|
|
558
|
+
fromJSON(object) {
|
|
559
|
+
return applyUpdateTransferRequestCustom({
|
|
560
|
+
$type: "nebius.storage.v1alpha1.UpdateTransferRequest",
|
|
561
|
+
metadata: (0, index_1.isSet)(object.metadata ?? object.metadata)
|
|
562
|
+
? v1_1.ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
|
|
563
|
+
: undefined,
|
|
564
|
+
spec: (0, index_1.isSet)(object.spec ?? object.spec)
|
|
565
|
+
? exports.TransferSpec.fromJSON(object.spec ?? object.spec)
|
|
566
|
+
: undefined,
|
|
567
|
+
});
|
|
568
|
+
},
|
|
569
|
+
toJSON(message, use = "json") {
|
|
570
|
+
const obj = {};
|
|
571
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
572
|
+
if (message.metadata !== undefined) {
|
|
573
|
+
obj[pick("metadata", "metadata")] = message.metadata
|
|
574
|
+
? v1_1.ResourceMetadata.toJSON(message.metadata, use)
|
|
575
|
+
: undefined;
|
|
576
|
+
}
|
|
577
|
+
if (message.spec !== undefined) {
|
|
578
|
+
obj[pick("spec", "spec")] = message.spec
|
|
579
|
+
? exports.TransferSpec.toJSON(message.spec, use)
|
|
580
|
+
: undefined;
|
|
581
|
+
}
|
|
582
|
+
return obj;
|
|
583
|
+
},
|
|
584
|
+
create(base) {
|
|
585
|
+
return exports.UpdateTransferRequest.fromPartial(base ?? {});
|
|
586
|
+
},
|
|
587
|
+
fromPartial(object) {
|
|
588
|
+
const message = createBaseUpdateTransferRequest();
|
|
589
|
+
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
|
590
|
+
? v1_1.ResourceMetadata.fromPartial(object.metadata)
|
|
591
|
+
: undefined;
|
|
592
|
+
message.spec = (object.spec !== undefined && object.spec !== null)
|
|
593
|
+
? exports.TransferSpec.fromPartial(object.spec)
|
|
594
|
+
: undefined;
|
|
595
|
+
return message;
|
|
596
|
+
},
|
|
597
|
+
};
|
|
598
|
+
protobuf_1.protoRegistry.registerMessage(exports.UpdateTransferRequest);
|
|
599
|
+
function UpdateTransferRequestCustomInspect() {
|
|
600
|
+
const parts = [];
|
|
601
|
+
if (this.metadata !== undefined)
|
|
602
|
+
parts.push("metadata" + "=" + (0, util_1.inspect)(this.metadata));
|
|
603
|
+
if (this.spec !== undefined)
|
|
604
|
+
parts.push("spec" + "=" + (0, util_1.inspect)(this.spec));
|
|
605
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
606
|
+
}
|
|
607
|
+
function UpdateTransferRequestCustomJson() {
|
|
608
|
+
const obj = {
|
|
609
|
+
type: this.$type,
|
|
610
|
+
};
|
|
611
|
+
if (this.metadata !== undefined)
|
|
612
|
+
obj.metadata = (0, logging_1.inspectJson)(this.metadata);
|
|
613
|
+
if (this.spec !== undefined)
|
|
614
|
+
obj.spec = (0, logging_1.inspectJson)(this.spec);
|
|
615
|
+
return obj;
|
|
616
|
+
}
|
|
617
|
+
function applyUpdateTransferRequestCustom(message) {
|
|
618
|
+
message[logging_1.custom] = UpdateTransferRequestCustomInspect;
|
|
619
|
+
message[logging_1.customJson] = UpdateTransferRequestCustomJson;
|
|
620
|
+
return message;
|
|
621
|
+
}
|
|
622
|
+
function createBaseUpdateTransferRequest() {
|
|
623
|
+
const message = {
|
|
624
|
+
$type: "nebius.storage.v1alpha1.UpdateTransferRequest",
|
|
625
|
+
metadata: undefined,
|
|
626
|
+
spec: undefined,
|
|
627
|
+
};
|
|
628
|
+
return applyUpdateTransferRequestCustom(message);
|
|
629
|
+
}
|
|
630
|
+
exports.StopTransferRequest = {
|
|
631
|
+
$type: "nebius.storage.v1alpha1.StopTransferRequest",
|
|
632
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
633
|
+
if (message.id !== "") {
|
|
634
|
+
writer.uint32(10).string(message.id);
|
|
635
|
+
}
|
|
636
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
637
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
638
|
+
}
|
|
639
|
+
return writer;
|
|
640
|
+
},
|
|
641
|
+
decode(input, length) {
|
|
642
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
643
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
644
|
+
const message = createBaseStopTransferRequest();
|
|
645
|
+
let writer = undefined;
|
|
646
|
+
while (reader.pos < end) {
|
|
647
|
+
const tag = reader.uint32();
|
|
648
|
+
switch (tag >>> 3) {
|
|
649
|
+
case 1: {
|
|
650
|
+
if (tag !== 10)
|
|
651
|
+
break;
|
|
652
|
+
message.id = reader.string();
|
|
653
|
+
continue;
|
|
654
|
+
}
|
|
655
|
+
default:
|
|
656
|
+
break;
|
|
657
|
+
}
|
|
658
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
659
|
+
break;
|
|
660
|
+
}
|
|
661
|
+
{
|
|
662
|
+
if (!writer)
|
|
663
|
+
writer = new index_1.BinaryWriter();
|
|
664
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
665
|
+
writer.uint32(tag).raw(skipped);
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
if (writer) {
|
|
669
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
670
|
+
}
|
|
671
|
+
return message;
|
|
672
|
+
},
|
|
673
|
+
fromJSON(object) {
|
|
674
|
+
return applyStopTransferRequestCustom({
|
|
675
|
+
$type: "nebius.storage.v1alpha1.StopTransferRequest",
|
|
676
|
+
id: (0, index_1.isSet)(object.id ?? object.id)
|
|
677
|
+
? String(object.id ?? object.id)
|
|
678
|
+
: "",
|
|
679
|
+
});
|
|
680
|
+
},
|
|
681
|
+
toJSON(message, use = "json") {
|
|
682
|
+
const obj = {};
|
|
683
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
684
|
+
if (message.id !== "") {
|
|
685
|
+
obj[pick("id", "id")] = message.id;
|
|
686
|
+
}
|
|
687
|
+
return obj;
|
|
688
|
+
},
|
|
689
|
+
create(base) {
|
|
690
|
+
return exports.StopTransferRequest.fromPartial(base ?? {});
|
|
691
|
+
},
|
|
692
|
+
fromPartial(object) {
|
|
693
|
+
const message = createBaseStopTransferRequest();
|
|
694
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
695
|
+
? object.id
|
|
696
|
+
: "";
|
|
697
|
+
return message;
|
|
698
|
+
},
|
|
699
|
+
};
|
|
700
|
+
protobuf_1.protoRegistry.registerMessage(exports.StopTransferRequest);
|
|
701
|
+
function StopTransferRequestCustomInspect() {
|
|
702
|
+
const parts = [];
|
|
703
|
+
if (this.id !== "")
|
|
704
|
+
parts.push("id" + "=" + (0, util_1.inspect)(this.id));
|
|
705
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
706
|
+
}
|
|
707
|
+
function StopTransferRequestCustomJson() {
|
|
708
|
+
const obj = {
|
|
709
|
+
type: this.$type,
|
|
710
|
+
};
|
|
711
|
+
if (this.id !== "")
|
|
712
|
+
obj.id = (0, logging_1.inspectJson)(this.id);
|
|
713
|
+
return obj;
|
|
714
|
+
}
|
|
715
|
+
function applyStopTransferRequestCustom(message) {
|
|
716
|
+
message[logging_1.custom] = StopTransferRequestCustomInspect;
|
|
717
|
+
message[logging_1.customJson] = StopTransferRequestCustomJson;
|
|
718
|
+
return message;
|
|
719
|
+
}
|
|
720
|
+
function createBaseStopTransferRequest() {
|
|
721
|
+
const message = {
|
|
722
|
+
$type: "nebius.storage.v1alpha1.StopTransferRequest",
|
|
723
|
+
id: "",
|
|
724
|
+
};
|
|
725
|
+
return applyStopTransferRequestCustom(message);
|
|
726
|
+
}
|
|
727
|
+
exports.ResumeTransferRequest = {
|
|
728
|
+
$type: "nebius.storage.v1alpha1.ResumeTransferRequest",
|
|
729
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
730
|
+
if (message.id !== "") {
|
|
731
|
+
writer.uint32(10).string(message.id);
|
|
732
|
+
}
|
|
733
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
734
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
735
|
+
}
|
|
736
|
+
return writer;
|
|
737
|
+
},
|
|
738
|
+
decode(input, length) {
|
|
739
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
740
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
741
|
+
const message = createBaseResumeTransferRequest();
|
|
742
|
+
let writer = undefined;
|
|
743
|
+
while (reader.pos < end) {
|
|
744
|
+
const tag = reader.uint32();
|
|
745
|
+
switch (tag >>> 3) {
|
|
746
|
+
case 1: {
|
|
747
|
+
if (tag !== 10)
|
|
748
|
+
break;
|
|
749
|
+
message.id = reader.string();
|
|
750
|
+
continue;
|
|
751
|
+
}
|
|
752
|
+
default:
|
|
753
|
+
break;
|
|
754
|
+
}
|
|
755
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
758
|
+
{
|
|
759
|
+
if (!writer)
|
|
760
|
+
writer = new index_1.BinaryWriter();
|
|
761
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
762
|
+
writer.uint32(tag).raw(skipped);
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
if (writer) {
|
|
766
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
767
|
+
}
|
|
768
|
+
return message;
|
|
769
|
+
},
|
|
770
|
+
fromJSON(object) {
|
|
771
|
+
return applyResumeTransferRequestCustom({
|
|
772
|
+
$type: "nebius.storage.v1alpha1.ResumeTransferRequest",
|
|
773
|
+
id: (0, index_1.isSet)(object.id ?? object.id)
|
|
774
|
+
? String(object.id ?? object.id)
|
|
775
|
+
: "",
|
|
776
|
+
});
|
|
777
|
+
},
|
|
778
|
+
toJSON(message, use = "json") {
|
|
779
|
+
const obj = {};
|
|
780
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
781
|
+
if (message.id !== "") {
|
|
782
|
+
obj[pick("id", "id")] = message.id;
|
|
783
|
+
}
|
|
784
|
+
return obj;
|
|
785
|
+
},
|
|
786
|
+
create(base) {
|
|
787
|
+
return exports.ResumeTransferRequest.fromPartial(base ?? {});
|
|
788
|
+
},
|
|
789
|
+
fromPartial(object) {
|
|
790
|
+
const message = createBaseResumeTransferRequest();
|
|
791
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
792
|
+
? object.id
|
|
793
|
+
: "";
|
|
794
|
+
return message;
|
|
795
|
+
},
|
|
796
|
+
};
|
|
797
|
+
protobuf_1.protoRegistry.registerMessage(exports.ResumeTransferRequest);
|
|
798
|
+
function ResumeTransferRequestCustomInspect() {
|
|
799
|
+
const parts = [];
|
|
800
|
+
if (this.id !== "")
|
|
801
|
+
parts.push("id" + "=" + (0, util_1.inspect)(this.id));
|
|
802
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
803
|
+
}
|
|
804
|
+
function ResumeTransferRequestCustomJson() {
|
|
805
|
+
const obj = {
|
|
806
|
+
type: this.$type,
|
|
807
|
+
};
|
|
808
|
+
if (this.id !== "")
|
|
809
|
+
obj.id = (0, logging_1.inspectJson)(this.id);
|
|
810
|
+
return obj;
|
|
811
|
+
}
|
|
812
|
+
function applyResumeTransferRequestCustom(message) {
|
|
813
|
+
message[logging_1.custom] = ResumeTransferRequestCustomInspect;
|
|
814
|
+
message[logging_1.customJson] = ResumeTransferRequestCustomJson;
|
|
815
|
+
return message;
|
|
816
|
+
}
|
|
817
|
+
function createBaseResumeTransferRequest() {
|
|
818
|
+
const message = {
|
|
819
|
+
$type: "nebius.storage.v1alpha1.ResumeTransferRequest",
|
|
820
|
+
id: "",
|
|
821
|
+
};
|
|
822
|
+
return applyResumeTransferRequestCustom(message);
|
|
823
|
+
}
|
|
824
|
+
exports.DeleteTransferRequest = {
|
|
825
|
+
$type: "nebius.storage.v1alpha1.DeleteTransferRequest",
|
|
826
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
827
|
+
if (message.id !== "") {
|
|
828
|
+
writer.uint32(10).string(message.id);
|
|
829
|
+
}
|
|
830
|
+
if (message.resourceVersion !== undefined && !message.resourceVersion.isZero?.()) {
|
|
831
|
+
writer.uint32(16).int64(message.resourceVersion.toString());
|
|
832
|
+
}
|
|
833
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
834
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
835
|
+
}
|
|
836
|
+
return writer;
|
|
837
|
+
},
|
|
838
|
+
decode(input, length) {
|
|
839
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
840
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
841
|
+
const message = createBaseDeleteTransferRequest();
|
|
842
|
+
let writer = undefined;
|
|
843
|
+
while (reader.pos < end) {
|
|
844
|
+
const tag = reader.uint32();
|
|
845
|
+
switch (tag >>> 3) {
|
|
846
|
+
case 1: {
|
|
847
|
+
if (tag !== 10)
|
|
848
|
+
break;
|
|
849
|
+
message.id = reader.string();
|
|
850
|
+
continue;
|
|
851
|
+
}
|
|
852
|
+
case 2: {
|
|
853
|
+
if (tag !== 16)
|
|
854
|
+
break;
|
|
855
|
+
message.resourceVersion = index_1.Long.fromValue(reader.int64());
|
|
856
|
+
continue;
|
|
857
|
+
}
|
|
858
|
+
default:
|
|
859
|
+
break;
|
|
860
|
+
}
|
|
861
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
862
|
+
break;
|
|
863
|
+
}
|
|
864
|
+
{
|
|
865
|
+
if (!writer)
|
|
866
|
+
writer = new index_1.BinaryWriter();
|
|
867
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
868
|
+
writer.uint32(tag).raw(skipped);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
if (writer) {
|
|
872
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
873
|
+
}
|
|
874
|
+
return message;
|
|
875
|
+
},
|
|
876
|
+
fromJSON(object) {
|
|
877
|
+
return applyDeleteTransferRequestCustom({
|
|
878
|
+
$type: "nebius.storage.v1alpha1.DeleteTransferRequest",
|
|
879
|
+
id: (0, index_1.isSet)(object.id ?? object.id)
|
|
880
|
+
? String(object.id ?? object.id)
|
|
881
|
+
: "",
|
|
882
|
+
resourceVersion: (0, index_1.isSet)(object.resourceVersion ?? object.resource_version)
|
|
883
|
+
? index_1.Long.fromValue(object.resourceVersion ?? object.resource_version)
|
|
884
|
+
: index_1.Long.ZERO,
|
|
885
|
+
});
|
|
886
|
+
},
|
|
887
|
+
toJSON(message, use = "json") {
|
|
888
|
+
const obj = {};
|
|
889
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
890
|
+
if (message.id !== "") {
|
|
891
|
+
obj[pick("id", "id")] = message.id;
|
|
892
|
+
}
|
|
893
|
+
if (!message.resourceVersion?.isZero?.()) {
|
|
894
|
+
obj[pick("resourceVersion", "resource_version")] = (message.resourceVersion || index_1.Long.ZERO).toString();
|
|
895
|
+
}
|
|
896
|
+
return obj;
|
|
897
|
+
},
|
|
898
|
+
create(base) {
|
|
899
|
+
return exports.DeleteTransferRequest.fromPartial(base ?? {});
|
|
900
|
+
},
|
|
901
|
+
fromPartial(object) {
|
|
902
|
+
const message = createBaseDeleteTransferRequest();
|
|
903
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
904
|
+
? object.id
|
|
905
|
+
: "";
|
|
906
|
+
message.resourceVersion = (object.resourceVersion !== undefined && object.resourceVersion !== null)
|
|
907
|
+
? index_1.Long.fromValue(object.resourceVersion)
|
|
908
|
+
: index_1.Long.ZERO;
|
|
909
|
+
return message;
|
|
910
|
+
},
|
|
911
|
+
};
|
|
912
|
+
protobuf_1.protoRegistry.registerMessage(exports.DeleteTransferRequest);
|
|
913
|
+
function DeleteTransferRequestCustomInspect() {
|
|
914
|
+
const parts = [];
|
|
915
|
+
if (this.id !== "")
|
|
916
|
+
parts.push("id" + "=" + (0, util_1.inspect)(this.id));
|
|
917
|
+
if (!this.resourceVersion?.isZero?.())
|
|
918
|
+
parts.push("resourceVersion" + "=" + (0, util_1.inspect)(this.resourceVersion));
|
|
919
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
920
|
+
}
|
|
921
|
+
function DeleteTransferRequestCustomJson() {
|
|
922
|
+
const obj = {
|
|
923
|
+
type: this.$type,
|
|
924
|
+
};
|
|
925
|
+
if (this.id !== "")
|
|
926
|
+
obj.id = (0, logging_1.inspectJson)(this.id);
|
|
927
|
+
if (!this.resourceVersion?.isZero?.())
|
|
928
|
+
obj.resourceVersion = (0, logging_1.inspectJson)(this.resourceVersion);
|
|
929
|
+
return obj;
|
|
930
|
+
}
|
|
931
|
+
function applyDeleteTransferRequestCustom(message) {
|
|
932
|
+
message[logging_1.custom] = DeleteTransferRequestCustomInspect;
|
|
933
|
+
message[logging_1.customJson] = DeleteTransferRequestCustomJson;
|
|
934
|
+
return message;
|
|
935
|
+
}
|
|
936
|
+
function createBaseDeleteTransferRequest() {
|
|
937
|
+
const message = {
|
|
938
|
+
$type: "nebius.storage.v1alpha1.DeleteTransferRequest",
|
|
939
|
+
id: "",
|
|
940
|
+
resourceVersion: index_1.Long.ZERO,
|
|
941
|
+
};
|
|
942
|
+
return applyDeleteTransferRequestCustom(message);
|
|
943
|
+
}
|
|
944
|
+
exports.GetIterationHistoryRequest = {
|
|
945
|
+
$type: "nebius.storage.v1alpha1.GetIterationHistoryRequest",
|
|
946
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
947
|
+
if (message.transferId !== "") {
|
|
948
|
+
writer.uint32(10).string(message.transferId);
|
|
949
|
+
}
|
|
950
|
+
if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
|
|
951
|
+
writer.uint32(16).int64(message.pageSize.toString());
|
|
952
|
+
}
|
|
953
|
+
if (message.pageToken !== "") {
|
|
954
|
+
writer.uint32(26).string(message.pageToken);
|
|
955
|
+
}
|
|
956
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
957
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
958
|
+
}
|
|
959
|
+
return writer;
|
|
960
|
+
},
|
|
961
|
+
decode(input, length) {
|
|
962
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
963
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
964
|
+
const message = createBaseGetIterationHistoryRequest();
|
|
965
|
+
let writer = undefined;
|
|
966
|
+
while (reader.pos < end) {
|
|
967
|
+
const tag = reader.uint32();
|
|
968
|
+
switch (tag >>> 3) {
|
|
969
|
+
case 1: {
|
|
970
|
+
if (tag !== 10)
|
|
971
|
+
break;
|
|
972
|
+
message.transferId = reader.string();
|
|
973
|
+
continue;
|
|
974
|
+
}
|
|
975
|
+
case 2: {
|
|
976
|
+
if (tag !== 16)
|
|
977
|
+
break;
|
|
978
|
+
message.pageSize = index_1.Long.fromValue(reader.int64());
|
|
979
|
+
continue;
|
|
980
|
+
}
|
|
981
|
+
case 3: {
|
|
982
|
+
if (tag !== 26)
|
|
983
|
+
break;
|
|
984
|
+
message.pageToken = reader.string();
|
|
985
|
+
continue;
|
|
986
|
+
}
|
|
987
|
+
default:
|
|
988
|
+
break;
|
|
989
|
+
}
|
|
990
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
991
|
+
break;
|
|
992
|
+
}
|
|
993
|
+
{
|
|
994
|
+
if (!writer)
|
|
995
|
+
writer = new index_1.BinaryWriter();
|
|
996
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
997
|
+
writer.uint32(tag).raw(skipped);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
if (writer) {
|
|
1001
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1002
|
+
}
|
|
1003
|
+
return message;
|
|
1004
|
+
},
|
|
1005
|
+
fromJSON(object) {
|
|
1006
|
+
return applyGetIterationHistoryRequestCustom({
|
|
1007
|
+
$type: "nebius.storage.v1alpha1.GetIterationHistoryRequest",
|
|
1008
|
+
transferId: (0, index_1.isSet)(object.transferId ?? object.transfer_id)
|
|
1009
|
+
? String(object.transferId ?? object.transfer_id)
|
|
1010
|
+
: "",
|
|
1011
|
+
pageSize: (0, index_1.isSet)(object.pageSize ?? object.page_size)
|
|
1012
|
+
? index_1.Long.fromValue(object.pageSize ?? object.page_size)
|
|
1013
|
+
: index_1.Long.ZERO,
|
|
1014
|
+
pageToken: (0, index_1.isSet)(object.pageToken ?? object.page_token)
|
|
1015
|
+
? String(object.pageToken ?? object.page_token)
|
|
1016
|
+
: "",
|
|
1017
|
+
});
|
|
1018
|
+
},
|
|
1019
|
+
toJSON(message, use = "json") {
|
|
1020
|
+
const obj = {};
|
|
1021
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
1022
|
+
if (message.transferId !== "") {
|
|
1023
|
+
obj[pick("transferId", "transfer_id")] = message.transferId;
|
|
1024
|
+
}
|
|
1025
|
+
if (!message.pageSize?.isZero?.()) {
|
|
1026
|
+
obj[pick("pageSize", "page_size")] = (message.pageSize || index_1.Long.ZERO).toString();
|
|
1027
|
+
}
|
|
1028
|
+
if (message.pageToken !== "") {
|
|
1029
|
+
obj[pick("pageToken", "page_token")] = message.pageToken;
|
|
1030
|
+
}
|
|
1031
|
+
return obj;
|
|
1032
|
+
},
|
|
1033
|
+
create(base) {
|
|
1034
|
+
return exports.GetIterationHistoryRequest.fromPartial(base ?? {});
|
|
1035
|
+
},
|
|
1036
|
+
fromPartial(object) {
|
|
1037
|
+
const message = createBaseGetIterationHistoryRequest();
|
|
1038
|
+
message.transferId = (object.transferId !== undefined && object.transferId !== null)
|
|
1039
|
+
? object.transferId
|
|
1040
|
+
: "";
|
|
1041
|
+
message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
|
|
1042
|
+
? index_1.Long.fromValue(object.pageSize)
|
|
1043
|
+
: index_1.Long.ZERO;
|
|
1044
|
+
message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
|
|
1045
|
+
? object.pageToken
|
|
1046
|
+
: "";
|
|
1047
|
+
return message;
|
|
1048
|
+
},
|
|
1049
|
+
};
|
|
1050
|
+
protobuf_1.protoRegistry.registerMessage(exports.GetIterationHistoryRequest);
|
|
1051
|
+
function GetIterationHistoryRequestCustomInspect() {
|
|
1052
|
+
const parts = [];
|
|
1053
|
+
if (this.transferId !== "")
|
|
1054
|
+
parts.push("transferId" + "=" + (0, util_1.inspect)(this.transferId));
|
|
1055
|
+
if (!this.pageSize?.isZero?.())
|
|
1056
|
+
parts.push("pageSize" + "=" + (0, util_1.inspect)(this.pageSize));
|
|
1057
|
+
if (this.pageToken !== "")
|
|
1058
|
+
parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
|
|
1059
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
1060
|
+
}
|
|
1061
|
+
function GetIterationHistoryRequestCustomJson() {
|
|
1062
|
+
const obj = {
|
|
1063
|
+
type: this.$type,
|
|
1064
|
+
};
|
|
1065
|
+
if (this.transferId !== "")
|
|
1066
|
+
obj.transferId = (0, logging_1.inspectJson)(this.transferId);
|
|
1067
|
+
if (!this.pageSize?.isZero?.())
|
|
1068
|
+
obj.pageSize = (0, logging_1.inspectJson)(this.pageSize);
|
|
1069
|
+
if (this.pageToken !== "")
|
|
1070
|
+
obj.pageToken = (0, logging_1.inspectJson)(this.pageToken);
|
|
1071
|
+
return obj;
|
|
1072
|
+
}
|
|
1073
|
+
function applyGetIterationHistoryRequestCustom(message) {
|
|
1074
|
+
message[logging_1.custom] = GetIterationHistoryRequestCustomInspect;
|
|
1075
|
+
message[logging_1.customJson] = GetIterationHistoryRequestCustomJson;
|
|
1076
|
+
return message;
|
|
1077
|
+
}
|
|
1078
|
+
function createBaseGetIterationHistoryRequest() {
|
|
1079
|
+
const message = {
|
|
1080
|
+
$type: "nebius.storage.v1alpha1.GetIterationHistoryRequest",
|
|
1081
|
+
transferId: "",
|
|
1082
|
+
pageSize: index_1.Long.ZERO,
|
|
1083
|
+
pageToken: "",
|
|
1084
|
+
};
|
|
1085
|
+
return applyGetIterationHistoryRequestCustom(message);
|
|
1086
|
+
}
|
|
1087
|
+
exports.GetIterationHistoryResponse = {
|
|
1088
|
+
$type: "nebius.storage.v1alpha1.GetIterationHistoryResponse",
|
|
1089
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
1090
|
+
for (const v of (message.iterations ?? [])) {
|
|
1091
|
+
const w = writer.uint32(10).fork();
|
|
1092
|
+
exports.TransferIteration.encode(v, w);
|
|
1093
|
+
w.join();
|
|
1094
|
+
}
|
|
1095
|
+
if (message.nextPageToken !== "") {
|
|
1096
|
+
writer.uint32(18).string(message.nextPageToken);
|
|
1097
|
+
}
|
|
1098
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
1099
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1100
|
+
}
|
|
1101
|
+
return writer;
|
|
1102
|
+
},
|
|
1103
|
+
decode(input, length) {
|
|
1104
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
1105
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1106
|
+
const message = createBaseGetIterationHistoryResponse();
|
|
1107
|
+
let writer = undefined;
|
|
1108
|
+
while (reader.pos < end) {
|
|
1109
|
+
const tag = reader.uint32();
|
|
1110
|
+
switch (tag >>> 3) {
|
|
1111
|
+
case 1: {
|
|
1112
|
+
if (tag !== 10)
|
|
1113
|
+
break;
|
|
1114
|
+
message.iterations.push(exports.TransferIteration.decode(reader, reader.uint32()));
|
|
1115
|
+
continue;
|
|
1116
|
+
}
|
|
1117
|
+
case 2: {
|
|
1118
|
+
if (tag !== 18)
|
|
1119
|
+
break;
|
|
1120
|
+
message.nextPageToken = reader.string();
|
|
1121
|
+
continue;
|
|
1122
|
+
}
|
|
1123
|
+
default:
|
|
1124
|
+
break;
|
|
1125
|
+
}
|
|
1126
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1127
|
+
break;
|
|
1128
|
+
}
|
|
1129
|
+
{
|
|
1130
|
+
if (!writer)
|
|
1131
|
+
writer = new index_1.BinaryWriter();
|
|
1132
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
1133
|
+
writer.uint32(tag).raw(skipped);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
if (writer) {
|
|
1137
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1138
|
+
}
|
|
1139
|
+
return message;
|
|
1140
|
+
},
|
|
1141
|
+
fromJSON(object) {
|
|
1142
|
+
return applyGetIterationHistoryResponseCustom({
|
|
1143
|
+
$type: "nebius.storage.v1alpha1.GetIterationHistoryResponse",
|
|
1144
|
+
iterations: globalThis.Array.isArray(object?.iterations ?? object?.iterations)
|
|
1145
|
+
? (object.iterations ?? object.iterations).map((e) => exports.TransferIteration.fromJSON(e))
|
|
1146
|
+
: [],
|
|
1147
|
+
nextPageToken: (0, index_1.isSet)(object.nextPageToken ?? object.next_page_token)
|
|
1148
|
+
? String(object.nextPageToken ?? object.next_page_token)
|
|
1149
|
+
: "",
|
|
1150
|
+
});
|
|
1151
|
+
},
|
|
1152
|
+
toJSON(message, use = "json") {
|
|
1153
|
+
const obj = {};
|
|
1154
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
1155
|
+
if (message.iterations?.length) {
|
|
1156
|
+
obj[pick("iterations", "iterations")] = message.iterations.map((e) => e ? exports.TransferIteration.toJSON(e, use) : undefined);
|
|
1157
|
+
}
|
|
1158
|
+
if (message.nextPageToken !== "") {
|
|
1159
|
+
obj[pick("nextPageToken", "next_page_token")] = message.nextPageToken;
|
|
1160
|
+
}
|
|
1161
|
+
return obj;
|
|
1162
|
+
},
|
|
1163
|
+
create(base) {
|
|
1164
|
+
return exports.GetIterationHistoryResponse.fromPartial(base ?? {});
|
|
1165
|
+
},
|
|
1166
|
+
fromPartial(object) {
|
|
1167
|
+
const message = createBaseGetIterationHistoryResponse();
|
|
1168
|
+
message.iterations = object.iterations?.map((e) => exports.TransferIteration.fromPartial(e)) || [];
|
|
1169
|
+
message.nextPageToken = (object.nextPageToken !== undefined && object.nextPageToken !== null)
|
|
1170
|
+
? object.nextPageToken
|
|
1171
|
+
: "";
|
|
1172
|
+
return message;
|
|
1173
|
+
},
|
|
1174
|
+
};
|
|
1175
|
+
protobuf_1.protoRegistry.registerMessage(exports.GetIterationHistoryResponse);
|
|
1176
|
+
function GetIterationHistoryResponseCustomInspect() {
|
|
1177
|
+
const parts = [];
|
|
1178
|
+
if ((this.iterations?.length ?? 0) !== 0)
|
|
1179
|
+
parts.push("iterations" + "=" + (0, util_1.inspect)(this.iterations));
|
|
1180
|
+
if (this.nextPageToken !== "")
|
|
1181
|
+
parts.push("nextPageToken" + "=" + (0, util_1.inspect)(this.nextPageToken));
|
|
1182
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
1183
|
+
}
|
|
1184
|
+
function GetIterationHistoryResponseCustomJson() {
|
|
1185
|
+
const obj = {
|
|
1186
|
+
type: this.$type,
|
|
1187
|
+
};
|
|
1188
|
+
if ((this.iterations?.length ?? 0) !== 0)
|
|
1189
|
+
obj.iterations = (0, logging_1.inspectJson)(this.iterations);
|
|
1190
|
+
if (this.nextPageToken !== "")
|
|
1191
|
+
obj.nextPageToken = (0, logging_1.inspectJson)(this.nextPageToken);
|
|
1192
|
+
return obj;
|
|
1193
|
+
}
|
|
1194
|
+
function applyGetIterationHistoryResponseCustom(message) {
|
|
1195
|
+
message[logging_1.custom] = GetIterationHistoryResponseCustomInspect;
|
|
1196
|
+
message[logging_1.customJson] = GetIterationHistoryResponseCustomJson;
|
|
1197
|
+
return message;
|
|
1198
|
+
}
|
|
1199
|
+
function createBaseGetIterationHistoryResponse() {
|
|
1200
|
+
const message = {
|
|
1201
|
+
$type: "nebius.storage.v1alpha1.GetIterationHistoryResponse",
|
|
1202
|
+
iterations: [],
|
|
1203
|
+
nextPageToken: "",
|
|
1204
|
+
};
|
|
1205
|
+
return applyGetIterationHistoryResponseCustom(message);
|
|
1206
|
+
}
|
|
1207
|
+
exports.TransferServiceServiceDescription = {
|
|
1208
|
+
get: {
|
|
1209
|
+
path: "/nebius.storage.v1alpha1.TransferService/Get",
|
|
1210
|
+
requestStream: false,
|
|
1211
|
+
responseStream: false,
|
|
1212
|
+
requestSerialize: (value) => Buffer.from(exports.GetTransferRequest.encode(value).finish()),
|
|
1213
|
+
requestDeserialize: (value) => exports.GetTransferRequest.decode(value),
|
|
1214
|
+
responseSerialize: (value) => Buffer.from(exports.Transfer.encode(value).finish()),
|
|
1215
|
+
responseDeserialize: (value) => exports.Transfer.decode(value),
|
|
1216
|
+
},
|
|
1217
|
+
getByName: {
|
|
1218
|
+
path: "/nebius.storage.v1alpha1.TransferService/GetByName",
|
|
1219
|
+
requestStream: false,
|
|
1220
|
+
responseStream: false,
|
|
1221
|
+
requestSerialize: (value) => Buffer.from(v1_1.GetByNameRequest.encode(value).finish()),
|
|
1222
|
+
requestDeserialize: (value) => v1_1.GetByNameRequest.decode(value),
|
|
1223
|
+
responseSerialize: (value) => Buffer.from(exports.Transfer.encode(value).finish()),
|
|
1224
|
+
responseDeserialize: (value) => exports.Transfer.decode(value),
|
|
1225
|
+
},
|
|
1226
|
+
list: {
|
|
1227
|
+
path: "/nebius.storage.v1alpha1.TransferService/List",
|
|
1228
|
+
requestStream: false,
|
|
1229
|
+
responseStream: false,
|
|
1230
|
+
requestSerialize: (value) => Buffer.from(exports.ListTransfersRequest.encode(value).finish()),
|
|
1231
|
+
requestDeserialize: (value) => exports.ListTransfersRequest.decode(value),
|
|
1232
|
+
responseSerialize: (value) => Buffer.from(exports.ListTransfersResponse.encode(value).finish()),
|
|
1233
|
+
responseDeserialize: (value) => exports.ListTransfersResponse.decode(value),
|
|
1234
|
+
},
|
|
1235
|
+
create: {
|
|
1236
|
+
path: "/nebius.storage.v1alpha1.TransferService/Create",
|
|
1237
|
+
requestStream: false,
|
|
1238
|
+
responseStream: false,
|
|
1239
|
+
requestSerialize: (value) => Buffer.from(exports.CreateTransferRequest.encode(value).finish()),
|
|
1240
|
+
requestDeserialize: (value) => exports.CreateTransferRequest.decode(value),
|
|
1241
|
+
responseSerialize: (value) => Buffer.from(v1_1.Operation.encode(value).finish()),
|
|
1242
|
+
responseDeserialize: (value) => v1_1.Operation.decode(value),
|
|
1243
|
+
},
|
|
1244
|
+
update: {
|
|
1245
|
+
path: "/nebius.storage.v1alpha1.TransferService/Update",
|
|
1246
|
+
requestStream: false,
|
|
1247
|
+
responseStream: false,
|
|
1248
|
+
requestSerialize: (value) => Buffer.from(exports.UpdateTransferRequest.encode(value).finish()),
|
|
1249
|
+
requestDeserialize: (value) => exports.UpdateTransferRequest.decode(value),
|
|
1250
|
+
responseSerialize: (value) => Buffer.from(v1_1.Operation.encode(value).finish()),
|
|
1251
|
+
responseDeserialize: (value) => v1_1.Operation.decode(value),
|
|
1252
|
+
},
|
|
1253
|
+
stop: {
|
|
1254
|
+
path: "/nebius.storage.v1alpha1.TransferService/Stop",
|
|
1255
|
+
requestStream: false,
|
|
1256
|
+
responseStream: false,
|
|
1257
|
+
requestSerialize: (value) => Buffer.from(exports.StopTransferRequest.encode(value).finish()),
|
|
1258
|
+
requestDeserialize: (value) => exports.StopTransferRequest.decode(value),
|
|
1259
|
+
responseSerialize: (value) => Buffer.from(v1_1.Operation.encode(value).finish()),
|
|
1260
|
+
responseDeserialize: (value) => v1_1.Operation.decode(value),
|
|
1261
|
+
},
|
|
1262
|
+
resume: {
|
|
1263
|
+
path: "/nebius.storage.v1alpha1.TransferService/Resume",
|
|
1264
|
+
requestStream: false,
|
|
1265
|
+
responseStream: false,
|
|
1266
|
+
requestSerialize: (value) => Buffer.from(exports.ResumeTransferRequest.encode(value).finish()),
|
|
1267
|
+
requestDeserialize: (value) => exports.ResumeTransferRequest.decode(value),
|
|
1268
|
+
responseSerialize: (value) => Buffer.from(v1_1.Operation.encode(value).finish()),
|
|
1269
|
+
responseDeserialize: (value) => v1_1.Operation.decode(value),
|
|
1270
|
+
},
|
|
1271
|
+
delete: {
|
|
1272
|
+
path: "/nebius.storage.v1alpha1.TransferService/Delete",
|
|
1273
|
+
requestStream: false,
|
|
1274
|
+
responseStream: false,
|
|
1275
|
+
requestSerialize: (value) => Buffer.from(exports.DeleteTransferRequest.encode(value).finish()),
|
|
1276
|
+
requestDeserialize: (value) => exports.DeleteTransferRequest.decode(value),
|
|
1277
|
+
responseSerialize: (value) => Buffer.from(v1_1.Operation.encode(value).finish()),
|
|
1278
|
+
responseDeserialize: (value) => v1_1.Operation.decode(value),
|
|
1279
|
+
},
|
|
1280
|
+
getIterationHistory: {
|
|
1281
|
+
path: "/nebius.storage.v1alpha1.TransferService/GetIterationHistory",
|
|
1282
|
+
requestStream: false,
|
|
1283
|
+
responseStream: false,
|
|
1284
|
+
requestSerialize: (value) => Buffer.from(exports.GetIterationHistoryRequest.encode(value).finish()),
|
|
1285
|
+
requestDeserialize: (value) => exports.GetIterationHistoryRequest.decode(value),
|
|
1286
|
+
responseSerialize: (value) => Buffer.from(exports.GetIterationHistoryResponse.encode(value).finish()),
|
|
1287
|
+
responseDeserialize: (value) => exports.GetIterationHistoryResponse.decode(value),
|
|
1288
|
+
},
|
|
1289
|
+
};
|
|
1290
|
+
exports.TransferServiceBaseClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.TransferServiceServiceDescription, "nebius.storage.v1alpha1.TransferService");
|
|
1291
|
+
class TransferService {
|
|
1292
|
+
sdk;
|
|
1293
|
+
$type = "nebius.storage.v1alpha1.TransferService";
|
|
1294
|
+
addr;
|
|
1295
|
+
spec;
|
|
1296
|
+
apiServiceName = "transfer.storage";
|
|
1297
|
+
constructor(sdk) {
|
|
1298
|
+
this.sdk = sdk;
|
|
1299
|
+
const addr = sdk.getAddressFromServiceName(this.$type, this.apiServiceName);
|
|
1300
|
+
this.addr = addr;
|
|
1301
|
+
this.spec = exports.TransferServiceServiceDescription;
|
|
1302
|
+
}
|
|
1303
|
+
getOperationService() {
|
|
1304
|
+
return new v1_1.OperationService(this.sdk, this.addr);
|
|
1305
|
+
}
|
|
1306
|
+
get(...args) {
|
|
1307
|
+
const spec = this.spec.get;
|
|
1308
|
+
const request = args[0];
|
|
1309
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
1310
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
1311
|
+
const deserialize = spec.responseDeserialize;
|
|
1312
|
+
return new request_1.Request(this.sdk, this.$type, "Get", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
1313
|
+
}
|
|
1314
|
+
getByName(...args) {
|
|
1315
|
+
const spec = this.spec.getByName;
|
|
1316
|
+
const request = args[0];
|
|
1317
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
1318
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
1319
|
+
const deserialize = spec.responseDeserialize;
|
|
1320
|
+
return new request_1.Request(this.sdk, this.$type, "GetByName", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
1321
|
+
}
|
|
1322
|
+
list(...args) {
|
|
1323
|
+
const spec = this.spec.list;
|
|
1324
|
+
const request = args[0];
|
|
1325
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
1326
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
1327
|
+
const deserialize = spec.responseDeserialize;
|
|
1328
|
+
return new request_1.Request(this.sdk, this.$type, "List", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
1329
|
+
}
|
|
1330
|
+
create(...args) {
|
|
1331
|
+
const spec = this.spec.create;
|
|
1332
|
+
const request = args[0];
|
|
1333
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
1334
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
1335
|
+
const deserialize = (value) => {
|
|
1336
|
+
const resp = spec.responseDeserialize(value);
|
|
1337
|
+
return new operation_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
|
|
1338
|
+
};
|
|
1339
|
+
return new request_1.Request(this.sdk, this.$type, "Create", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
1340
|
+
}
|
|
1341
|
+
update(...args) {
|
|
1342
|
+
const spec = this.spec.update;
|
|
1343
|
+
const request = args[0];
|
|
1344
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
1345
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
1346
|
+
const deserialize = (value) => {
|
|
1347
|
+
const resp = spec.responseDeserialize(value);
|
|
1348
|
+
return new operation_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
|
|
1349
|
+
};
|
|
1350
|
+
return new request_1.Request(this.sdk, this.$type, "Update", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
1351
|
+
}
|
|
1352
|
+
stop(...args) {
|
|
1353
|
+
const spec = this.spec.stop;
|
|
1354
|
+
const request = args[0];
|
|
1355
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
1356
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
1357
|
+
const deserialize = (value) => {
|
|
1358
|
+
const resp = spec.responseDeserialize(value);
|
|
1359
|
+
return new operation_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
|
|
1360
|
+
};
|
|
1361
|
+
return new request_1.Request(this.sdk, this.$type, "Stop", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
1362
|
+
}
|
|
1363
|
+
resume(...args) {
|
|
1364
|
+
const spec = this.spec.resume;
|
|
1365
|
+
const request = args[0];
|
|
1366
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
1367
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
1368
|
+
const deserialize = (value) => {
|
|
1369
|
+
const resp = spec.responseDeserialize(value);
|
|
1370
|
+
return new operation_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
|
|
1371
|
+
};
|
|
1372
|
+
return new request_1.Request(this.sdk, this.$type, "Resume", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
1373
|
+
}
|
|
1374
|
+
delete(...args) {
|
|
1375
|
+
const spec = this.spec.delete;
|
|
1376
|
+
const request = args[0];
|
|
1377
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
1378
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
1379
|
+
const deserialize = (value) => {
|
|
1380
|
+
const resp = spec.responseDeserialize(value);
|
|
1381
|
+
return new operation_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
|
|
1382
|
+
};
|
|
1383
|
+
return new request_1.Request(this.sdk, this.$type, "Delete", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
1384
|
+
}
|
|
1385
|
+
getIterationHistory(...args) {
|
|
1386
|
+
const spec = this.spec.getIterationHistory;
|
|
1387
|
+
const request = args[0];
|
|
1388
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
1389
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
1390
|
+
const deserialize = spec.responseDeserialize;
|
|
1391
|
+
return new request_1.Request(this.sdk, this.$type, "GetIterationHistory", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
exports.TransferService = TransferService;
|
|
1395
|
+
const TransferSpec_OverwriteStrategy_VALUE_COMMENTS = {
|
|
1396
|
+
NEVER: " Never overwrite objects that exist in the destination.\n If object exists in destination bucket, skip it.\n Safest option to prevent data loss.\n",
|
|
1397
|
+
IF_NEWER: " Overwrite only if source object is newer than destination.\n Comparison based on Last-Modified timestamp.\n Recommended for incremental sync scenarios.\n",
|
|
1398
|
+
ALWAYS: " Always overwrite destination objects unconditionally.\n Use with caution - may cause data loss in destination.\n Suitable for full bucket synchronization.\n",
|
|
1399
|
+
};
|
|
1400
|
+
exports.TransferSpec_OverwriteStrategy = (0, index_1.createEnum)("nebius.storage.v1alpha1.TransferSpec.OverwriteStrategy", {
|
|
1401
|
+
OVERWRITE_STRATEGY_UNSPECIFIED: 0,
|
|
1402
|
+
/**
|
|
1403
|
+
* Never overwrite objects that exist in the destination.
|
|
1404
|
+
* If object exists in destination bucket, skip it.
|
|
1405
|
+
* Safest option to prevent data loss.
|
|
1406
|
+
*
|
|
1407
|
+
*/
|
|
1408
|
+
NEVER: 1,
|
|
1409
|
+
/**
|
|
1410
|
+
* Overwrite only if source object is newer than destination.
|
|
1411
|
+
* Comparison based on Last-Modified timestamp.
|
|
1412
|
+
* Recommended for incremental sync scenarios.
|
|
1413
|
+
*
|
|
1414
|
+
*/
|
|
1415
|
+
IF_NEWER: 2,
|
|
1416
|
+
/**
|
|
1417
|
+
* Always overwrite destination objects unconditionally.
|
|
1418
|
+
* Use with caution - may cause data loss in destination.
|
|
1419
|
+
* Suitable for full bucket synchronization.
|
|
1420
|
+
*
|
|
1421
|
+
*/
|
|
1422
|
+
ALWAYS: 3,
|
|
1423
|
+
}, TransferSpec_OverwriteStrategy_VALUE_COMMENTS);
|
|
1424
|
+
protobuf_1.protoRegistry.registerEnum(exports.TransferSpec_OverwriteStrategy);
|
|
1425
|
+
exports.TransferStatus_State = (0, index_1.createEnum)("nebius.storage.v1alpha1.TransferStatus.State", {
|
|
1426
|
+
STATE_UNSPECIFIED: 0,
|
|
1427
|
+
ACTIVE: 1,
|
|
1428
|
+
STOPPING: 2,
|
|
1429
|
+
STOPPED: 3,
|
|
1430
|
+
FAILING: 4,
|
|
1431
|
+
FAILED: 5,
|
|
1432
|
+
});
|
|
1433
|
+
protobuf_1.protoRegistry.registerEnum(exports.TransferStatus_State);
|
|
1434
|
+
exports.TransferStatus_SuspensionState = (0, index_1.createEnum)("nebius.storage.v1alpha1.TransferStatus.SuspensionState", {
|
|
1435
|
+
SUSPENSION_STATE_UNSPECIFIED: 0,
|
|
1436
|
+
NOT_SUSPENDED: 1,
|
|
1437
|
+
SUSPENDED: 2,
|
|
1438
|
+
});
|
|
1439
|
+
protobuf_1.protoRegistry.registerEnum(exports.TransferStatus_SuspensionState);
|
|
1440
|
+
exports.TransferIteration_State = (0, index_1.createEnum)("nebius.storage.v1alpha1.TransferIteration.State", {
|
|
1441
|
+
STATE_UNSPECIFIED: 0,
|
|
1442
|
+
IN_PROGRESS: 1,
|
|
1443
|
+
COMPLETED: 2,
|
|
1444
|
+
STOPPED: 3,
|
|
1445
|
+
FAILED: 4,
|
|
1446
|
+
});
|
|
1447
|
+
protobuf_1.protoRegistry.registerEnum(exports.TransferIteration_State);
|
|
1448
|
+
exports.Transfer = {
|
|
1449
|
+
$type: "nebius.storage.v1alpha1.Transfer",
|
|
1450
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
1451
|
+
if (message.metadata !== undefined) {
|
|
1452
|
+
const w = writer.uint32(10).fork();
|
|
1453
|
+
v1_1.ResourceMetadata.encode(message.metadata, w);
|
|
1454
|
+
w.join();
|
|
1455
|
+
}
|
|
1456
|
+
if (message.spec !== undefined) {
|
|
1457
|
+
const w = writer.uint32(18).fork();
|
|
1458
|
+
exports.TransferSpec.encode(message.spec, w);
|
|
1459
|
+
w.join();
|
|
1460
|
+
}
|
|
1461
|
+
if (message.status !== undefined) {
|
|
1462
|
+
const w = writer.uint32(26).fork();
|
|
1463
|
+
exports.TransferStatus.encode(message.status, w);
|
|
1464
|
+
w.join();
|
|
1465
|
+
}
|
|
1466
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
1467
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1468
|
+
}
|
|
1469
|
+
return writer;
|
|
1470
|
+
},
|
|
1471
|
+
decode(input, length) {
|
|
1472
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
1473
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1474
|
+
const message = createBaseTransfer();
|
|
1475
|
+
let writer = undefined;
|
|
1476
|
+
while (reader.pos < end) {
|
|
1477
|
+
const tag = reader.uint32();
|
|
1478
|
+
switch (tag >>> 3) {
|
|
1479
|
+
case 1: {
|
|
1480
|
+
if (tag !== 10)
|
|
1481
|
+
break;
|
|
1482
|
+
message.metadata = v1_1.ResourceMetadata.decode(reader, reader.uint32());
|
|
1483
|
+
continue;
|
|
1484
|
+
}
|
|
1485
|
+
case 2: {
|
|
1486
|
+
if (tag !== 18)
|
|
1487
|
+
break;
|
|
1488
|
+
message.spec = exports.TransferSpec.decode(reader, reader.uint32());
|
|
1489
|
+
continue;
|
|
1490
|
+
}
|
|
1491
|
+
case 3: {
|
|
1492
|
+
if (tag !== 26)
|
|
1493
|
+
break;
|
|
1494
|
+
message.status = exports.TransferStatus.decode(reader, reader.uint32());
|
|
1495
|
+
continue;
|
|
1496
|
+
}
|
|
1497
|
+
default:
|
|
1498
|
+
break;
|
|
1499
|
+
}
|
|
1500
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1501
|
+
break;
|
|
1502
|
+
}
|
|
1503
|
+
{
|
|
1504
|
+
if (!writer)
|
|
1505
|
+
writer = new index_1.BinaryWriter();
|
|
1506
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
1507
|
+
writer.uint32(tag).raw(skipped);
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
if (writer) {
|
|
1511
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1512
|
+
}
|
|
1513
|
+
return message;
|
|
1514
|
+
},
|
|
1515
|
+
fromJSON(object) {
|
|
1516
|
+
return applyTransferCustom({
|
|
1517
|
+
$type: "nebius.storage.v1alpha1.Transfer",
|
|
1518
|
+
metadata: (0, index_1.isSet)(object.metadata ?? object.metadata)
|
|
1519
|
+
? v1_1.ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
|
|
1520
|
+
: undefined,
|
|
1521
|
+
spec: (0, index_1.isSet)(object.spec ?? object.spec)
|
|
1522
|
+
? exports.TransferSpec.fromJSON(object.spec ?? object.spec)
|
|
1523
|
+
: undefined,
|
|
1524
|
+
status: (0, index_1.isSet)(object.status ?? object.status)
|
|
1525
|
+
? exports.TransferStatus.fromJSON(object.status ?? object.status)
|
|
1526
|
+
: undefined,
|
|
1527
|
+
});
|
|
1528
|
+
},
|
|
1529
|
+
toJSON(message, use = "json") {
|
|
1530
|
+
const obj = {};
|
|
1531
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
1532
|
+
if (message.metadata !== undefined) {
|
|
1533
|
+
obj[pick("metadata", "metadata")] = message.metadata
|
|
1534
|
+
? v1_1.ResourceMetadata.toJSON(message.metadata, use)
|
|
1535
|
+
: undefined;
|
|
1536
|
+
}
|
|
1537
|
+
if (message.spec !== undefined) {
|
|
1538
|
+
obj[pick("spec", "spec")] = message.spec
|
|
1539
|
+
? exports.TransferSpec.toJSON(message.spec, use)
|
|
1540
|
+
: undefined;
|
|
1541
|
+
}
|
|
1542
|
+
if (message.status !== undefined) {
|
|
1543
|
+
obj[pick("status", "status")] = message.status
|
|
1544
|
+
? exports.TransferStatus.toJSON(message.status, use)
|
|
1545
|
+
: undefined;
|
|
1546
|
+
}
|
|
1547
|
+
return obj;
|
|
1548
|
+
},
|
|
1549
|
+
create(base) {
|
|
1550
|
+
return exports.Transfer.fromPartial(base ?? {});
|
|
1551
|
+
},
|
|
1552
|
+
fromPartial(object) {
|
|
1553
|
+
const message = createBaseTransfer();
|
|
1554
|
+
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
|
1555
|
+
? v1_1.ResourceMetadata.fromPartial(object.metadata)
|
|
1556
|
+
: undefined;
|
|
1557
|
+
message.spec = (object.spec !== undefined && object.spec !== null)
|
|
1558
|
+
? exports.TransferSpec.fromPartial(object.spec)
|
|
1559
|
+
: undefined;
|
|
1560
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
1561
|
+
? exports.TransferStatus.fromPartial(object.status)
|
|
1562
|
+
: undefined;
|
|
1563
|
+
return message;
|
|
1564
|
+
},
|
|
1565
|
+
};
|
|
1566
|
+
protobuf_1.protoRegistry.registerMessage(exports.Transfer);
|
|
1567
|
+
function TransferCustomInspect() {
|
|
1568
|
+
const parts = [];
|
|
1569
|
+
if (this.metadata !== undefined)
|
|
1570
|
+
parts.push("metadata" + "=" + (0, util_1.inspect)(this.metadata));
|
|
1571
|
+
if (this.spec !== undefined)
|
|
1572
|
+
parts.push("spec" + "=" + (0, util_1.inspect)(this.spec));
|
|
1573
|
+
if (this.status !== undefined)
|
|
1574
|
+
parts.push("status" + "=" + (0, util_1.inspect)(this.status));
|
|
1575
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
1576
|
+
}
|
|
1577
|
+
function TransferCustomJson() {
|
|
1578
|
+
const obj = {
|
|
1579
|
+
type: this.$type,
|
|
1580
|
+
};
|
|
1581
|
+
if (this.metadata !== undefined)
|
|
1582
|
+
obj.metadata = (0, logging_1.inspectJson)(this.metadata);
|
|
1583
|
+
if (this.spec !== undefined)
|
|
1584
|
+
obj.spec = (0, logging_1.inspectJson)(this.spec);
|
|
1585
|
+
if (this.status !== undefined)
|
|
1586
|
+
obj.status = (0, logging_1.inspectJson)(this.status);
|
|
1587
|
+
return obj;
|
|
1588
|
+
}
|
|
1589
|
+
function applyTransferCustom(message) {
|
|
1590
|
+
message[logging_1.custom] = TransferCustomInspect;
|
|
1591
|
+
message[logging_1.customJson] = TransferCustomJson;
|
|
1592
|
+
return message;
|
|
1593
|
+
}
|
|
1594
|
+
function createBaseTransfer() {
|
|
1595
|
+
const message = {
|
|
1596
|
+
$type: "nebius.storage.v1alpha1.Transfer",
|
|
1597
|
+
metadata: undefined,
|
|
1598
|
+
spec: undefined,
|
|
1599
|
+
status: undefined,
|
|
1600
|
+
};
|
|
1601
|
+
return applyTransferCustom(message);
|
|
1602
|
+
}
|
|
1603
|
+
exports.TransferSpec = {
|
|
1604
|
+
$type: "nebius.storage.v1alpha1.TransferSpec",
|
|
1605
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
1606
|
+
if (message.source !== undefined) {
|
|
1607
|
+
const w = writer.uint32(10).fork();
|
|
1608
|
+
exports.TransferSpec_SourceBucket.encode(message.source, w);
|
|
1609
|
+
w.join();
|
|
1610
|
+
}
|
|
1611
|
+
if (message.destination !== undefined) {
|
|
1612
|
+
const w = writer.uint32(18).fork();
|
|
1613
|
+
exports.TransferSpec_DestinationBucket.encode(message.destination, w);
|
|
1614
|
+
w.join();
|
|
1615
|
+
}
|
|
1616
|
+
if (message.interIterationInterval !== undefined) {
|
|
1617
|
+
const w = writer.uint32(50).fork();
|
|
1618
|
+
index_1.wkt[".google.protobuf.Duration"].writeMessage(w, message.interIterationInterval);
|
|
1619
|
+
w.join();
|
|
1620
|
+
}
|
|
1621
|
+
if ((message.overwriteStrategy ?? exports.TransferSpec_OverwriteStrategy.OVERWRITE_STRATEGY_UNSPECIFIED) !== exports.TransferSpec_OverwriteStrategy.OVERWRITE_STRATEGY_UNSPECIFIED) {
|
|
1622
|
+
exports.TransferSpec_OverwriteStrategy.encodeField(writer, 7, message.overwriteStrategy);
|
|
1623
|
+
}
|
|
1624
|
+
if (message.stopCondition?.$case === undefined) { /* noop */ }
|
|
1625
|
+
else if (message.stopCondition?.$case === "afterOneIteration") {
|
|
1626
|
+
const w = writer.uint32(26).fork();
|
|
1627
|
+
exports.TransferSpec_StopConditionAfterOneIteration.encode(message.stopCondition.afterOneIteration, w);
|
|
1628
|
+
w.join();
|
|
1629
|
+
}
|
|
1630
|
+
else if (message.stopCondition?.$case === "afterNEmptyIterations") {
|
|
1631
|
+
const w = writer.uint32(34).fork();
|
|
1632
|
+
exports.TransferSpec_StopConditionAfterNEmptyIterations.encode(message.stopCondition.afterNEmptyIterations, w);
|
|
1633
|
+
w.join();
|
|
1634
|
+
}
|
|
1635
|
+
else if (message.stopCondition?.$case === "infinite") {
|
|
1636
|
+
const w = writer.uint32(42).fork();
|
|
1637
|
+
exports.TransferSpec_StopConditionInfinite.encode(message.stopCondition.infinite, w);
|
|
1638
|
+
w.join();
|
|
1639
|
+
}
|
|
1640
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
1641
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1642
|
+
}
|
|
1643
|
+
return writer;
|
|
1644
|
+
},
|
|
1645
|
+
decode(input, length) {
|
|
1646
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
1647
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1648
|
+
const message = createBaseTransferSpec();
|
|
1649
|
+
let writer = undefined;
|
|
1650
|
+
while (reader.pos < end) {
|
|
1651
|
+
const tag = reader.uint32();
|
|
1652
|
+
switch (tag >>> 3) {
|
|
1653
|
+
case 1: {
|
|
1654
|
+
if (tag !== 10)
|
|
1655
|
+
break;
|
|
1656
|
+
message.source = exports.TransferSpec_SourceBucket.decode(reader, reader.uint32());
|
|
1657
|
+
continue;
|
|
1658
|
+
}
|
|
1659
|
+
case 2: {
|
|
1660
|
+
if (tag !== 18)
|
|
1661
|
+
break;
|
|
1662
|
+
message.destination = exports.TransferSpec_DestinationBucket.decode(reader, reader.uint32());
|
|
1663
|
+
continue;
|
|
1664
|
+
}
|
|
1665
|
+
case 6: {
|
|
1666
|
+
if (tag !== 50)
|
|
1667
|
+
break;
|
|
1668
|
+
const len = reader.uint32();
|
|
1669
|
+
message.interIterationInterval = index_1.wkt[".google.protobuf.Duration"].readMessage(reader, len);
|
|
1670
|
+
continue;
|
|
1671
|
+
}
|
|
1672
|
+
case 7: {
|
|
1673
|
+
if (tag !== 56)
|
|
1674
|
+
break;
|
|
1675
|
+
message.overwriteStrategy = exports.TransferSpec_OverwriteStrategy.fromNumber(reader.int32());
|
|
1676
|
+
continue;
|
|
1677
|
+
}
|
|
1678
|
+
case 3: {
|
|
1679
|
+
if (tag !== 26)
|
|
1680
|
+
break;
|
|
1681
|
+
message.stopCondition = {
|
|
1682
|
+
$case: "afterOneIteration",
|
|
1683
|
+
afterOneIteration: exports.TransferSpec_StopConditionAfterOneIteration.decode(reader, reader.uint32())
|
|
1684
|
+
};
|
|
1685
|
+
continue;
|
|
1686
|
+
}
|
|
1687
|
+
case 4: {
|
|
1688
|
+
if (tag !== 34)
|
|
1689
|
+
break;
|
|
1690
|
+
message.stopCondition = {
|
|
1691
|
+
$case: "afterNEmptyIterations",
|
|
1692
|
+
afterNEmptyIterations: exports.TransferSpec_StopConditionAfterNEmptyIterations.decode(reader, reader.uint32())
|
|
1693
|
+
};
|
|
1694
|
+
continue;
|
|
1695
|
+
}
|
|
1696
|
+
case 5: {
|
|
1697
|
+
if (tag !== 42)
|
|
1698
|
+
break;
|
|
1699
|
+
message.stopCondition = {
|
|
1700
|
+
$case: "infinite",
|
|
1701
|
+
infinite: exports.TransferSpec_StopConditionInfinite.decode(reader, reader.uint32())
|
|
1702
|
+
};
|
|
1703
|
+
continue;
|
|
1704
|
+
}
|
|
1705
|
+
default:
|
|
1706
|
+
break;
|
|
1707
|
+
}
|
|
1708
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1709
|
+
break;
|
|
1710
|
+
}
|
|
1711
|
+
{
|
|
1712
|
+
if (!writer)
|
|
1713
|
+
writer = new index_1.BinaryWriter();
|
|
1714
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
1715
|
+
writer.uint32(tag).raw(skipped);
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
if (writer) {
|
|
1719
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1720
|
+
}
|
|
1721
|
+
return message;
|
|
1722
|
+
},
|
|
1723
|
+
fromJSON(object) {
|
|
1724
|
+
return applyTransferSpecCustom({
|
|
1725
|
+
$type: "nebius.storage.v1alpha1.TransferSpec",
|
|
1726
|
+
source: (0, index_1.isSet)(object.source ?? object.source)
|
|
1727
|
+
? exports.TransferSpec_SourceBucket.fromJSON(object.source ?? object.source)
|
|
1728
|
+
: undefined,
|
|
1729
|
+
destination: (0, index_1.isSet)(object.destination ?? object.destination)
|
|
1730
|
+
? exports.TransferSpec_DestinationBucket.fromJSON(object.destination ?? object.destination)
|
|
1731
|
+
: undefined,
|
|
1732
|
+
interIterationInterval: (0, index_1.isSet)(object.interIterationInterval ?? object.inter_iteration_interval)
|
|
1733
|
+
? index_1.wkt[".google.protobuf.Duration"].fromJSON(object.interIterationInterval ?? object.inter_iteration_interval)
|
|
1734
|
+
: undefined,
|
|
1735
|
+
overwriteStrategy: (0, index_1.isSet)(object.overwriteStrategy ?? object.overwrite_strategy)
|
|
1736
|
+
? exports.TransferSpec_OverwriteStrategy.fromJSON(object.overwriteStrategy ?? object.overwrite_strategy)
|
|
1737
|
+
: exports.TransferSpec_OverwriteStrategy.OVERWRITE_STRATEGY_UNSPECIFIED,
|
|
1738
|
+
stopCondition: (() => {
|
|
1739
|
+
if ((0, index_1.isSet)(object.afterOneIteration) || (0, index_1.isSet)(object.after_one_iteration)) {
|
|
1740
|
+
return {
|
|
1741
|
+
$case: "afterOneIteration",
|
|
1742
|
+
afterOneIteration: exports.TransferSpec_StopConditionAfterOneIteration.fromJSON(object.afterOneIteration ?? object.after_one_iteration)
|
|
1743
|
+
};
|
|
1744
|
+
}
|
|
1745
|
+
if ((0, index_1.isSet)(object.afterNEmptyIterations) || (0, index_1.isSet)(object.after_n_empty_iterations)) {
|
|
1746
|
+
return {
|
|
1747
|
+
$case: "afterNEmptyIterations",
|
|
1748
|
+
afterNEmptyIterations: exports.TransferSpec_StopConditionAfterNEmptyIterations.fromJSON(object.afterNEmptyIterations ?? object.after_n_empty_iterations)
|
|
1749
|
+
};
|
|
1750
|
+
}
|
|
1751
|
+
if ((0, index_1.isSet)(object.infinite) || (0, index_1.isSet)(object.infinite)) {
|
|
1752
|
+
return {
|
|
1753
|
+
$case: "infinite",
|
|
1754
|
+
infinite: exports.TransferSpec_StopConditionInfinite.fromJSON(object.infinite ?? object.infinite)
|
|
1755
|
+
};
|
|
1756
|
+
}
|
|
1757
|
+
return undefined;
|
|
1758
|
+
})(),
|
|
1759
|
+
});
|
|
1760
|
+
},
|
|
1761
|
+
toJSON(message, use = "json") {
|
|
1762
|
+
const obj = {};
|
|
1763
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
1764
|
+
if (message.source !== undefined) {
|
|
1765
|
+
obj[pick("source", "source")] = message.source
|
|
1766
|
+
? exports.TransferSpec_SourceBucket.toJSON(message.source, use)
|
|
1767
|
+
: undefined;
|
|
1768
|
+
}
|
|
1769
|
+
if (message.destination !== undefined) {
|
|
1770
|
+
obj[pick("destination", "destination")] = message.destination
|
|
1771
|
+
? exports.TransferSpec_DestinationBucket.toJSON(message.destination, use)
|
|
1772
|
+
: undefined;
|
|
1773
|
+
}
|
|
1774
|
+
if (message.interIterationInterval !== undefined) {
|
|
1775
|
+
obj[pick("interIterationInterval", "inter_iteration_interval")] = index_1.wkt[".google.protobuf.Duration"].toJSON(message.interIterationInterval, use);
|
|
1776
|
+
}
|
|
1777
|
+
if ((message.overwriteStrategy ?? exports.TransferSpec_OverwriteStrategy.OVERWRITE_STRATEGY_UNSPECIFIED) !== exports.TransferSpec_OverwriteStrategy.OVERWRITE_STRATEGY_UNSPECIFIED) {
|
|
1778
|
+
obj[pick("overwriteStrategy", "overwrite_strategy")] = exports.TransferSpec_OverwriteStrategy.toJSON(message.overwriteStrategy);
|
|
1779
|
+
}
|
|
1780
|
+
switch (message.stopCondition?.$case) {
|
|
1781
|
+
case "afterOneIteration": {
|
|
1782
|
+
obj[pick("afterOneIteration", "after_one_iteration")] = exports.TransferSpec_StopConditionAfterOneIteration.toJSON(message.stopCondition.afterOneIteration, use);
|
|
1783
|
+
break;
|
|
1784
|
+
}
|
|
1785
|
+
case "afterNEmptyIterations": {
|
|
1786
|
+
obj[pick("afterNEmptyIterations", "after_n_empty_iterations")] = exports.TransferSpec_StopConditionAfterNEmptyIterations.toJSON(message.stopCondition.afterNEmptyIterations, use);
|
|
1787
|
+
break;
|
|
1788
|
+
}
|
|
1789
|
+
case "infinite": {
|
|
1790
|
+
obj[pick("infinite", "infinite")] = exports.TransferSpec_StopConditionInfinite.toJSON(message.stopCondition.infinite, use);
|
|
1791
|
+
break;
|
|
1792
|
+
}
|
|
1793
|
+
default: break;
|
|
1794
|
+
}
|
|
1795
|
+
return obj;
|
|
1796
|
+
},
|
|
1797
|
+
create(base) {
|
|
1798
|
+
return exports.TransferSpec.fromPartial(base ?? {});
|
|
1799
|
+
},
|
|
1800
|
+
fromPartial(object) {
|
|
1801
|
+
const message = createBaseTransferSpec();
|
|
1802
|
+
message.source = (object.source !== undefined && object.source !== null)
|
|
1803
|
+
? exports.TransferSpec_SourceBucket.fromPartial(object.source)
|
|
1804
|
+
: undefined;
|
|
1805
|
+
message.destination = (object.destination !== undefined && object.destination !== null)
|
|
1806
|
+
? exports.TransferSpec_DestinationBucket.fromPartial(object.destination)
|
|
1807
|
+
: undefined;
|
|
1808
|
+
message.interIterationInterval = (object.interIterationInterval !== undefined && object.interIterationInterval !== null)
|
|
1809
|
+
? index_1.wkt[".google.protobuf.Duration"].fromPartial(object.interIterationInterval)
|
|
1810
|
+
: undefined;
|
|
1811
|
+
message.overwriteStrategy = (object.overwriteStrategy !== undefined && object.overwriteStrategy !== null)
|
|
1812
|
+
? exports.TransferSpec_OverwriteStrategy.fromJSON(object.overwriteStrategy.name)
|
|
1813
|
+
: exports.TransferSpec_OverwriteStrategy.OVERWRITE_STRATEGY_UNSPECIFIED;
|
|
1814
|
+
switch (object.stopCondition?.$case) {
|
|
1815
|
+
case "afterOneIteration": {
|
|
1816
|
+
if (object.stopCondition.afterOneIteration !== undefined && object.stopCondition.afterOneIteration !== null) {
|
|
1817
|
+
message.stopCondition = {
|
|
1818
|
+
$case: "afterOneIteration",
|
|
1819
|
+
afterOneIteration: exports.TransferSpec_StopConditionAfterOneIteration.fromPartial(object.stopCondition.afterOneIteration),
|
|
1820
|
+
};
|
|
1821
|
+
}
|
|
1822
|
+
break;
|
|
1823
|
+
}
|
|
1824
|
+
case "afterNEmptyIterations": {
|
|
1825
|
+
if (object.stopCondition.afterNEmptyIterations !== undefined && object.stopCondition.afterNEmptyIterations !== null) {
|
|
1826
|
+
message.stopCondition = {
|
|
1827
|
+
$case: "afterNEmptyIterations",
|
|
1828
|
+
afterNEmptyIterations: exports.TransferSpec_StopConditionAfterNEmptyIterations.fromPartial(object.stopCondition.afterNEmptyIterations),
|
|
1829
|
+
};
|
|
1830
|
+
}
|
|
1831
|
+
break;
|
|
1832
|
+
}
|
|
1833
|
+
case "infinite": {
|
|
1834
|
+
if (object.stopCondition.infinite !== undefined && object.stopCondition.infinite !== null) {
|
|
1835
|
+
message.stopCondition = {
|
|
1836
|
+
$case: "infinite",
|
|
1837
|
+
infinite: exports.TransferSpec_StopConditionInfinite.fromPartial(object.stopCondition.infinite),
|
|
1838
|
+
};
|
|
1839
|
+
}
|
|
1840
|
+
break;
|
|
1841
|
+
}
|
|
1842
|
+
default: break;
|
|
1843
|
+
}
|
|
1844
|
+
return message;
|
|
1845
|
+
},
|
|
1846
|
+
};
|
|
1847
|
+
protobuf_1.protoRegistry.registerMessage(exports.TransferSpec);
|
|
1848
|
+
function TransferSpecCustomInspect() {
|
|
1849
|
+
const parts = [];
|
|
1850
|
+
if (this.source !== undefined)
|
|
1851
|
+
parts.push("source" + "=" + (0, util_1.inspect)(this.source));
|
|
1852
|
+
if (this.destination !== undefined)
|
|
1853
|
+
parts.push("destination" + "=" + (0, util_1.inspect)(this.destination));
|
|
1854
|
+
if (this.interIterationInterval !== undefined)
|
|
1855
|
+
parts.push("interIterationInterval" + "=" + (0, util_1.inspect)(this.interIterationInterval));
|
|
1856
|
+
if (this.overwriteStrategy !== undefined)
|
|
1857
|
+
parts.push("overwriteStrategy" + "=" + (0, util_1.inspect)(this.overwriteStrategy));
|
|
1858
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
1859
|
+
}
|
|
1860
|
+
function TransferSpecCustomJson() {
|
|
1861
|
+
const obj = {
|
|
1862
|
+
type: this.$type,
|
|
1863
|
+
};
|
|
1864
|
+
if (this.source !== undefined)
|
|
1865
|
+
obj.source = (0, logging_1.inspectJson)(this.source);
|
|
1866
|
+
if (this.destination !== undefined)
|
|
1867
|
+
obj.destination = (0, logging_1.inspectJson)(this.destination);
|
|
1868
|
+
if (this.interIterationInterval !== undefined)
|
|
1869
|
+
obj.interIterationInterval = (0, logging_1.inspectJson)(this.interIterationInterval);
|
|
1870
|
+
if (this.overwriteStrategy !== undefined)
|
|
1871
|
+
obj.overwriteStrategy = (0, logging_1.inspectJson)(this.overwriteStrategy);
|
|
1872
|
+
return obj;
|
|
1873
|
+
}
|
|
1874
|
+
function applyTransferSpecCustom(message) {
|
|
1875
|
+
message[logging_1.custom] = TransferSpecCustomInspect;
|
|
1876
|
+
message[logging_1.customJson] = TransferSpecCustomJson;
|
|
1877
|
+
return message;
|
|
1878
|
+
}
|
|
1879
|
+
function createBaseTransferSpec() {
|
|
1880
|
+
const message = {
|
|
1881
|
+
$type: "nebius.storage.v1alpha1.TransferSpec",
|
|
1882
|
+
source: undefined,
|
|
1883
|
+
destination: undefined,
|
|
1884
|
+
interIterationInterval: undefined,
|
|
1885
|
+
overwriteStrategy: exports.TransferSpec_OverwriteStrategy.OVERWRITE_STRATEGY_UNSPECIFIED,
|
|
1886
|
+
stopCondition: undefined,
|
|
1887
|
+
};
|
|
1888
|
+
return applyTransferSpecCustom(message);
|
|
1889
|
+
}
|
|
1890
|
+
exports.TransferSpec_SourceBucket = {
|
|
1891
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.SourceBucket",
|
|
1892
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
1893
|
+
if (message.endpoint !== "") {
|
|
1894
|
+
writer.uint32(10).string(message.endpoint);
|
|
1895
|
+
}
|
|
1896
|
+
if (message.bucketName !== "") {
|
|
1897
|
+
writer.uint32(18).string(message.bucketName);
|
|
1898
|
+
}
|
|
1899
|
+
if (message.region !== "") {
|
|
1900
|
+
writer.uint32(26).string(message.region);
|
|
1901
|
+
}
|
|
1902
|
+
if (message.credentials !== undefined) {
|
|
1903
|
+
const w = writer.uint32(34).fork();
|
|
1904
|
+
exports.TransferSpec_BucketCredentials.encode(message.credentials, w);
|
|
1905
|
+
w.join();
|
|
1906
|
+
}
|
|
1907
|
+
if (message.limiters !== undefined) {
|
|
1908
|
+
const w = writer.uint32(42).fork();
|
|
1909
|
+
exports.TransferSpec_Limiters.encode(message.limiters, w);
|
|
1910
|
+
w.join();
|
|
1911
|
+
}
|
|
1912
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
1913
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1914
|
+
}
|
|
1915
|
+
return writer;
|
|
1916
|
+
},
|
|
1917
|
+
decode(input, length) {
|
|
1918
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
1919
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1920
|
+
const message = createBaseTransferSpec_SourceBucket();
|
|
1921
|
+
let writer = undefined;
|
|
1922
|
+
while (reader.pos < end) {
|
|
1923
|
+
const tag = reader.uint32();
|
|
1924
|
+
switch (tag >>> 3) {
|
|
1925
|
+
case 1: {
|
|
1926
|
+
if (tag !== 10)
|
|
1927
|
+
break;
|
|
1928
|
+
message.endpoint = reader.string();
|
|
1929
|
+
continue;
|
|
1930
|
+
}
|
|
1931
|
+
case 2: {
|
|
1932
|
+
if (tag !== 18)
|
|
1933
|
+
break;
|
|
1934
|
+
message.bucketName = reader.string();
|
|
1935
|
+
continue;
|
|
1936
|
+
}
|
|
1937
|
+
case 3: {
|
|
1938
|
+
if (tag !== 26)
|
|
1939
|
+
break;
|
|
1940
|
+
message.region = reader.string();
|
|
1941
|
+
continue;
|
|
1942
|
+
}
|
|
1943
|
+
case 4: {
|
|
1944
|
+
if (tag !== 34)
|
|
1945
|
+
break;
|
|
1946
|
+
message.credentials = exports.TransferSpec_BucketCredentials.decode(reader, reader.uint32());
|
|
1947
|
+
continue;
|
|
1948
|
+
}
|
|
1949
|
+
case 5: {
|
|
1950
|
+
if (tag !== 42)
|
|
1951
|
+
break;
|
|
1952
|
+
message.limiters = exports.TransferSpec_Limiters.decode(reader, reader.uint32());
|
|
1953
|
+
continue;
|
|
1954
|
+
}
|
|
1955
|
+
default:
|
|
1956
|
+
break;
|
|
1957
|
+
}
|
|
1958
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1959
|
+
break;
|
|
1960
|
+
}
|
|
1961
|
+
{
|
|
1962
|
+
if (!writer)
|
|
1963
|
+
writer = new index_1.BinaryWriter();
|
|
1964
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
1965
|
+
writer.uint32(tag).raw(skipped);
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
if (writer) {
|
|
1969
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
1970
|
+
}
|
|
1971
|
+
return message;
|
|
1972
|
+
},
|
|
1973
|
+
fromJSON(object) {
|
|
1974
|
+
return applyTransferSpec_SourceBucketCustom({
|
|
1975
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.SourceBucket",
|
|
1976
|
+
endpoint: (0, index_1.isSet)(object.endpoint ?? object.endpoint)
|
|
1977
|
+
? String(object.endpoint ?? object.endpoint)
|
|
1978
|
+
: "",
|
|
1979
|
+
bucketName: (0, index_1.isSet)(object.bucketName ?? object.bucket_name)
|
|
1980
|
+
? String(object.bucketName ?? object.bucket_name)
|
|
1981
|
+
: "",
|
|
1982
|
+
region: (0, index_1.isSet)(object.region ?? object.region)
|
|
1983
|
+
? String(object.region ?? object.region)
|
|
1984
|
+
: "",
|
|
1985
|
+
credentials: (0, index_1.isSet)(object.credentials ?? object.credentials)
|
|
1986
|
+
? exports.TransferSpec_BucketCredentials.fromJSON(object.credentials ?? object.credentials)
|
|
1987
|
+
: undefined,
|
|
1988
|
+
limiters: (0, index_1.isSet)(object.limiters ?? object.limiters)
|
|
1989
|
+
? exports.TransferSpec_Limiters.fromJSON(object.limiters ?? object.limiters)
|
|
1990
|
+
: undefined,
|
|
1991
|
+
});
|
|
1992
|
+
},
|
|
1993
|
+
toJSON(message, use = "json") {
|
|
1994
|
+
const obj = {};
|
|
1995
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
1996
|
+
if (message.endpoint !== "") {
|
|
1997
|
+
obj[pick("endpoint", "endpoint")] = message.endpoint;
|
|
1998
|
+
}
|
|
1999
|
+
if (message.bucketName !== "") {
|
|
2000
|
+
obj[pick("bucketName", "bucket_name")] = message.bucketName;
|
|
2001
|
+
}
|
|
2002
|
+
if (message.region !== "") {
|
|
2003
|
+
obj[pick("region", "region")] = message.region;
|
|
2004
|
+
}
|
|
2005
|
+
if (message.credentials !== undefined) {
|
|
2006
|
+
obj[pick("credentials", "credentials")] = message.credentials
|
|
2007
|
+
? exports.TransferSpec_BucketCredentials.toJSON(message.credentials, use)
|
|
2008
|
+
: undefined;
|
|
2009
|
+
}
|
|
2010
|
+
if (message.limiters !== undefined) {
|
|
2011
|
+
obj[pick("limiters", "limiters")] = message.limiters
|
|
2012
|
+
? exports.TransferSpec_Limiters.toJSON(message.limiters, use)
|
|
2013
|
+
: undefined;
|
|
2014
|
+
}
|
|
2015
|
+
return obj;
|
|
2016
|
+
},
|
|
2017
|
+
create(base) {
|
|
2018
|
+
return exports.TransferSpec_SourceBucket.fromPartial(base ?? {});
|
|
2019
|
+
},
|
|
2020
|
+
fromPartial(object) {
|
|
2021
|
+
const message = createBaseTransferSpec_SourceBucket();
|
|
2022
|
+
message.endpoint = (object.endpoint !== undefined && object.endpoint !== null)
|
|
2023
|
+
? object.endpoint
|
|
2024
|
+
: "";
|
|
2025
|
+
message.bucketName = (object.bucketName !== undefined && object.bucketName !== null)
|
|
2026
|
+
? object.bucketName
|
|
2027
|
+
: "";
|
|
2028
|
+
message.region = (object.region !== undefined && object.region !== null)
|
|
2029
|
+
? object.region
|
|
2030
|
+
: "";
|
|
2031
|
+
message.credentials = (object.credentials !== undefined && object.credentials !== null)
|
|
2032
|
+
? exports.TransferSpec_BucketCredentials.fromPartial(object.credentials)
|
|
2033
|
+
: undefined;
|
|
2034
|
+
message.limiters = (object.limiters !== undefined && object.limiters !== null)
|
|
2035
|
+
? exports.TransferSpec_Limiters.fromPartial(object.limiters)
|
|
2036
|
+
: undefined;
|
|
2037
|
+
return message;
|
|
2038
|
+
},
|
|
2039
|
+
};
|
|
2040
|
+
protobuf_1.protoRegistry.registerMessage(exports.TransferSpec_SourceBucket);
|
|
2041
|
+
function TransferSpec_SourceBucketCustomInspect() {
|
|
2042
|
+
const parts = [];
|
|
2043
|
+
if (this.endpoint !== "")
|
|
2044
|
+
parts.push("endpoint" + "=" + (0, util_1.inspect)(this.endpoint));
|
|
2045
|
+
if (this.bucketName !== "")
|
|
2046
|
+
parts.push("bucketName" + "=" + (0, util_1.inspect)(this.bucketName));
|
|
2047
|
+
if (this.region !== "")
|
|
2048
|
+
parts.push("region" + "=" + (0, util_1.inspect)(this.region));
|
|
2049
|
+
if (this.credentials !== undefined)
|
|
2050
|
+
parts.push("credentials" + "=" + (0, util_1.inspect)(this.credentials));
|
|
2051
|
+
if (this.limiters !== undefined)
|
|
2052
|
+
parts.push("limiters" + "=" + (0, util_1.inspect)(this.limiters));
|
|
2053
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2054
|
+
}
|
|
2055
|
+
function TransferSpec_SourceBucketCustomJson() {
|
|
2056
|
+
const obj = {
|
|
2057
|
+
type: this.$type,
|
|
2058
|
+
};
|
|
2059
|
+
if (this.endpoint !== "")
|
|
2060
|
+
obj.endpoint = (0, logging_1.inspectJson)(this.endpoint);
|
|
2061
|
+
if (this.bucketName !== "")
|
|
2062
|
+
obj.bucketName = (0, logging_1.inspectJson)(this.bucketName);
|
|
2063
|
+
if (this.region !== "")
|
|
2064
|
+
obj.region = (0, logging_1.inspectJson)(this.region);
|
|
2065
|
+
if (this.credentials !== undefined)
|
|
2066
|
+
obj.credentials = (0, logging_1.inspectJson)(this.credentials);
|
|
2067
|
+
if (this.limiters !== undefined)
|
|
2068
|
+
obj.limiters = (0, logging_1.inspectJson)(this.limiters);
|
|
2069
|
+
return obj;
|
|
2070
|
+
}
|
|
2071
|
+
function applyTransferSpec_SourceBucketCustom(message) {
|
|
2072
|
+
message[logging_1.custom] = TransferSpec_SourceBucketCustomInspect;
|
|
2073
|
+
message[logging_1.customJson] = TransferSpec_SourceBucketCustomJson;
|
|
2074
|
+
return message;
|
|
2075
|
+
}
|
|
2076
|
+
function createBaseTransferSpec_SourceBucket() {
|
|
2077
|
+
const message = {
|
|
2078
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.SourceBucket",
|
|
2079
|
+
endpoint: "",
|
|
2080
|
+
bucketName: "",
|
|
2081
|
+
region: "",
|
|
2082
|
+
credentials: undefined,
|
|
2083
|
+
limiters: undefined,
|
|
2084
|
+
};
|
|
2085
|
+
return applyTransferSpec_SourceBucketCustom(message);
|
|
2086
|
+
}
|
|
2087
|
+
exports.TransferSpec_DestinationBucket = {
|
|
2088
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.DestinationBucket",
|
|
2089
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2090
|
+
if (message.bucketName !== "") {
|
|
2091
|
+
writer.uint32(10).string(message.bucketName);
|
|
2092
|
+
}
|
|
2093
|
+
if (message.credentials !== undefined) {
|
|
2094
|
+
const w = writer.uint32(18).fork();
|
|
2095
|
+
exports.TransferSpec_BucketCredentials.encode(message.credentials, w);
|
|
2096
|
+
w.join();
|
|
2097
|
+
}
|
|
2098
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2099
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2100
|
+
}
|
|
2101
|
+
return writer;
|
|
2102
|
+
},
|
|
2103
|
+
decode(input, length) {
|
|
2104
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2105
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2106
|
+
const message = createBaseTransferSpec_DestinationBucket();
|
|
2107
|
+
let writer = undefined;
|
|
2108
|
+
while (reader.pos < end) {
|
|
2109
|
+
const tag = reader.uint32();
|
|
2110
|
+
switch (tag >>> 3) {
|
|
2111
|
+
case 1: {
|
|
2112
|
+
if (tag !== 10)
|
|
2113
|
+
break;
|
|
2114
|
+
message.bucketName = reader.string();
|
|
2115
|
+
continue;
|
|
2116
|
+
}
|
|
2117
|
+
case 2: {
|
|
2118
|
+
if (tag !== 18)
|
|
2119
|
+
break;
|
|
2120
|
+
message.credentials = exports.TransferSpec_BucketCredentials.decode(reader, reader.uint32());
|
|
2121
|
+
continue;
|
|
2122
|
+
}
|
|
2123
|
+
default:
|
|
2124
|
+
break;
|
|
2125
|
+
}
|
|
2126
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2127
|
+
break;
|
|
2128
|
+
}
|
|
2129
|
+
{
|
|
2130
|
+
if (!writer)
|
|
2131
|
+
writer = new index_1.BinaryWriter();
|
|
2132
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2133
|
+
writer.uint32(tag).raw(skipped);
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
if (writer) {
|
|
2137
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2138
|
+
}
|
|
2139
|
+
return message;
|
|
2140
|
+
},
|
|
2141
|
+
fromJSON(object) {
|
|
2142
|
+
return applyTransferSpec_DestinationBucketCustom({
|
|
2143
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.DestinationBucket",
|
|
2144
|
+
bucketName: (0, index_1.isSet)(object.bucketName ?? object.bucket_name)
|
|
2145
|
+
? String(object.bucketName ?? object.bucket_name)
|
|
2146
|
+
: "",
|
|
2147
|
+
credentials: (0, index_1.isSet)(object.credentials ?? object.credentials)
|
|
2148
|
+
? exports.TransferSpec_BucketCredentials.fromJSON(object.credentials ?? object.credentials)
|
|
2149
|
+
: undefined,
|
|
2150
|
+
});
|
|
2151
|
+
},
|
|
2152
|
+
toJSON(message, use = "json") {
|
|
2153
|
+
const obj = {};
|
|
2154
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2155
|
+
if (message.bucketName !== "") {
|
|
2156
|
+
obj[pick("bucketName", "bucket_name")] = message.bucketName;
|
|
2157
|
+
}
|
|
2158
|
+
if (message.credentials !== undefined) {
|
|
2159
|
+
obj[pick("credentials", "credentials")] = message.credentials
|
|
2160
|
+
? exports.TransferSpec_BucketCredentials.toJSON(message.credentials, use)
|
|
2161
|
+
: undefined;
|
|
2162
|
+
}
|
|
2163
|
+
return obj;
|
|
2164
|
+
},
|
|
2165
|
+
create(base) {
|
|
2166
|
+
return exports.TransferSpec_DestinationBucket.fromPartial(base ?? {});
|
|
2167
|
+
},
|
|
2168
|
+
fromPartial(object) {
|
|
2169
|
+
const message = createBaseTransferSpec_DestinationBucket();
|
|
2170
|
+
message.bucketName = (object.bucketName !== undefined && object.bucketName !== null)
|
|
2171
|
+
? object.bucketName
|
|
2172
|
+
: "";
|
|
2173
|
+
message.credentials = (object.credentials !== undefined && object.credentials !== null)
|
|
2174
|
+
? exports.TransferSpec_BucketCredentials.fromPartial(object.credentials)
|
|
2175
|
+
: undefined;
|
|
2176
|
+
return message;
|
|
2177
|
+
},
|
|
2178
|
+
};
|
|
2179
|
+
protobuf_1.protoRegistry.registerMessage(exports.TransferSpec_DestinationBucket);
|
|
2180
|
+
function TransferSpec_DestinationBucketCustomInspect() {
|
|
2181
|
+
const parts = [];
|
|
2182
|
+
if (this.bucketName !== "")
|
|
2183
|
+
parts.push("bucketName" + "=" + (0, util_1.inspect)(this.bucketName));
|
|
2184
|
+
if (this.credentials !== undefined)
|
|
2185
|
+
parts.push("credentials" + "=" + (0, util_1.inspect)(this.credentials));
|
|
2186
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2187
|
+
}
|
|
2188
|
+
function TransferSpec_DestinationBucketCustomJson() {
|
|
2189
|
+
const obj = {
|
|
2190
|
+
type: this.$type,
|
|
2191
|
+
};
|
|
2192
|
+
if (this.bucketName !== "")
|
|
2193
|
+
obj.bucketName = (0, logging_1.inspectJson)(this.bucketName);
|
|
2194
|
+
if (this.credentials !== undefined)
|
|
2195
|
+
obj.credentials = (0, logging_1.inspectJson)(this.credentials);
|
|
2196
|
+
return obj;
|
|
2197
|
+
}
|
|
2198
|
+
function applyTransferSpec_DestinationBucketCustom(message) {
|
|
2199
|
+
message[logging_1.custom] = TransferSpec_DestinationBucketCustomInspect;
|
|
2200
|
+
message[logging_1.customJson] = TransferSpec_DestinationBucketCustomJson;
|
|
2201
|
+
return message;
|
|
2202
|
+
}
|
|
2203
|
+
function createBaseTransferSpec_DestinationBucket() {
|
|
2204
|
+
const message = {
|
|
2205
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.DestinationBucket",
|
|
2206
|
+
bucketName: "",
|
|
2207
|
+
credentials: undefined,
|
|
2208
|
+
};
|
|
2209
|
+
return applyTransferSpec_DestinationBucketCustom(message);
|
|
2210
|
+
}
|
|
2211
|
+
exports.TransferSpec_BucketCredentials = {
|
|
2212
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.BucketCredentials",
|
|
2213
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2214
|
+
if (message.credentials?.$case === undefined) { /* noop */ }
|
|
2215
|
+
else if (message.credentials?.$case === "anonymous") {
|
|
2216
|
+
const w = writer.uint32(10).fork();
|
|
2217
|
+
exports.TransferSpec_BucketCredentials_CredentialsAnonymous.encode(message.credentials.anonymous, w);
|
|
2218
|
+
w.join();
|
|
2219
|
+
}
|
|
2220
|
+
else if (message.credentials?.$case === "accessKey") {
|
|
2221
|
+
const w = writer.uint32(18).fork();
|
|
2222
|
+
exports.TransferSpec_BucketCredentials_CredentialsAccessKey.encode(message.credentials.accessKey, w);
|
|
2223
|
+
w.join();
|
|
2224
|
+
}
|
|
2225
|
+
else if (message.credentials?.$case === "azureAccessKey") {
|
|
2226
|
+
const w = writer.uint32(26).fork();
|
|
2227
|
+
exports.TransferSpec_BucketCredentials_AzureAccessKey.encode(message.credentials.azureAccessKey, w);
|
|
2228
|
+
w.join();
|
|
2229
|
+
}
|
|
2230
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2231
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2232
|
+
}
|
|
2233
|
+
return writer;
|
|
2234
|
+
},
|
|
2235
|
+
decode(input, length) {
|
|
2236
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2237
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2238
|
+
const message = createBaseTransferSpec_BucketCredentials();
|
|
2239
|
+
let writer = undefined;
|
|
2240
|
+
while (reader.pos < end) {
|
|
2241
|
+
const tag = reader.uint32();
|
|
2242
|
+
switch (tag >>> 3) {
|
|
2243
|
+
case 1: {
|
|
2244
|
+
if (tag !== 10)
|
|
2245
|
+
break;
|
|
2246
|
+
message.credentials = {
|
|
2247
|
+
$case: "anonymous",
|
|
2248
|
+
anonymous: exports.TransferSpec_BucketCredentials_CredentialsAnonymous.decode(reader, reader.uint32())
|
|
2249
|
+
};
|
|
2250
|
+
continue;
|
|
2251
|
+
}
|
|
2252
|
+
case 2: {
|
|
2253
|
+
if (tag !== 18)
|
|
2254
|
+
break;
|
|
2255
|
+
message.credentials = {
|
|
2256
|
+
$case: "accessKey",
|
|
2257
|
+
accessKey: exports.TransferSpec_BucketCredentials_CredentialsAccessKey.decode(reader, reader.uint32())
|
|
2258
|
+
};
|
|
2259
|
+
continue;
|
|
2260
|
+
}
|
|
2261
|
+
case 3: {
|
|
2262
|
+
if (tag !== 26)
|
|
2263
|
+
break;
|
|
2264
|
+
message.credentials = {
|
|
2265
|
+
$case: "azureAccessKey",
|
|
2266
|
+
azureAccessKey: exports.TransferSpec_BucketCredentials_AzureAccessKey.decode(reader, reader.uint32())
|
|
2267
|
+
};
|
|
2268
|
+
continue;
|
|
2269
|
+
}
|
|
2270
|
+
default:
|
|
2271
|
+
break;
|
|
2272
|
+
}
|
|
2273
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2274
|
+
break;
|
|
2275
|
+
}
|
|
2276
|
+
{
|
|
2277
|
+
if (!writer)
|
|
2278
|
+
writer = new index_1.BinaryWriter();
|
|
2279
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2280
|
+
writer.uint32(tag).raw(skipped);
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
if (writer) {
|
|
2284
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2285
|
+
}
|
|
2286
|
+
return message;
|
|
2287
|
+
},
|
|
2288
|
+
fromJSON(object) {
|
|
2289
|
+
return applyTransferSpec_BucketCredentialsCustom({
|
|
2290
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.BucketCredentials",
|
|
2291
|
+
credentials: (() => {
|
|
2292
|
+
if ((0, index_1.isSet)(object.anonymous) || (0, index_1.isSet)(object.anonymous)) {
|
|
2293
|
+
return {
|
|
2294
|
+
$case: "anonymous",
|
|
2295
|
+
anonymous: exports.TransferSpec_BucketCredentials_CredentialsAnonymous.fromJSON(object.anonymous ?? object.anonymous)
|
|
2296
|
+
};
|
|
2297
|
+
}
|
|
2298
|
+
if ((0, index_1.isSet)(object.accessKey) || (0, index_1.isSet)(object.access_key)) {
|
|
2299
|
+
return {
|
|
2300
|
+
$case: "accessKey",
|
|
2301
|
+
accessKey: exports.TransferSpec_BucketCredentials_CredentialsAccessKey.fromJSON(object.accessKey ?? object.access_key)
|
|
2302
|
+
};
|
|
2303
|
+
}
|
|
2304
|
+
if ((0, index_1.isSet)(object.azureAccessKey) || (0, index_1.isSet)(object.azure_access_key)) {
|
|
2305
|
+
return {
|
|
2306
|
+
$case: "azureAccessKey",
|
|
2307
|
+
azureAccessKey: exports.TransferSpec_BucketCredentials_AzureAccessKey.fromJSON(object.azureAccessKey ?? object.azure_access_key)
|
|
2308
|
+
};
|
|
2309
|
+
}
|
|
2310
|
+
return undefined;
|
|
2311
|
+
})(),
|
|
2312
|
+
});
|
|
2313
|
+
},
|
|
2314
|
+
toJSON(message, use = "json") {
|
|
2315
|
+
const obj = {};
|
|
2316
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2317
|
+
switch (message.credentials?.$case) {
|
|
2318
|
+
case "anonymous": {
|
|
2319
|
+
obj[pick("anonymous", "anonymous")] = exports.TransferSpec_BucketCredentials_CredentialsAnonymous.toJSON(message.credentials.anonymous, use);
|
|
2320
|
+
break;
|
|
2321
|
+
}
|
|
2322
|
+
case "accessKey": {
|
|
2323
|
+
obj[pick("accessKey", "access_key")] = exports.TransferSpec_BucketCredentials_CredentialsAccessKey.toJSON(message.credentials.accessKey, use);
|
|
2324
|
+
break;
|
|
2325
|
+
}
|
|
2326
|
+
case "azureAccessKey": {
|
|
2327
|
+
obj[pick("azureAccessKey", "azure_access_key")] = exports.TransferSpec_BucketCredentials_AzureAccessKey.toJSON(message.credentials.azureAccessKey, use);
|
|
2328
|
+
break;
|
|
2329
|
+
}
|
|
2330
|
+
default: break;
|
|
2331
|
+
}
|
|
2332
|
+
return obj;
|
|
2333
|
+
},
|
|
2334
|
+
create(base) {
|
|
2335
|
+
return exports.TransferSpec_BucketCredentials.fromPartial(base ?? {});
|
|
2336
|
+
},
|
|
2337
|
+
fromPartial(object) {
|
|
2338
|
+
const message = createBaseTransferSpec_BucketCredentials();
|
|
2339
|
+
switch (object.credentials?.$case) {
|
|
2340
|
+
case "anonymous": {
|
|
2341
|
+
if (object.credentials.anonymous !== undefined && object.credentials.anonymous !== null) {
|
|
2342
|
+
message.credentials = {
|
|
2343
|
+
$case: "anonymous",
|
|
2344
|
+
anonymous: exports.TransferSpec_BucketCredentials_CredentialsAnonymous.fromPartial(object.credentials.anonymous),
|
|
2345
|
+
};
|
|
2346
|
+
}
|
|
2347
|
+
break;
|
|
2348
|
+
}
|
|
2349
|
+
case "accessKey": {
|
|
2350
|
+
if (object.credentials.accessKey !== undefined && object.credentials.accessKey !== null) {
|
|
2351
|
+
message.credentials = {
|
|
2352
|
+
$case: "accessKey",
|
|
2353
|
+
accessKey: exports.TransferSpec_BucketCredentials_CredentialsAccessKey.fromPartial(object.credentials.accessKey),
|
|
2354
|
+
};
|
|
2355
|
+
}
|
|
2356
|
+
break;
|
|
2357
|
+
}
|
|
2358
|
+
case "azureAccessKey": {
|
|
2359
|
+
if (object.credentials.azureAccessKey !== undefined && object.credentials.azureAccessKey !== null) {
|
|
2360
|
+
message.credentials = {
|
|
2361
|
+
$case: "azureAccessKey",
|
|
2362
|
+
azureAccessKey: exports.TransferSpec_BucketCredentials_AzureAccessKey.fromPartial(object.credentials.azureAccessKey),
|
|
2363
|
+
};
|
|
2364
|
+
}
|
|
2365
|
+
break;
|
|
2366
|
+
}
|
|
2367
|
+
default: break;
|
|
2368
|
+
}
|
|
2369
|
+
return message;
|
|
2370
|
+
},
|
|
2371
|
+
};
|
|
2372
|
+
protobuf_1.protoRegistry.registerMessage(exports.TransferSpec_BucketCredentials);
|
|
2373
|
+
function TransferSpec_BucketCredentialsCustomInspect() {
|
|
2374
|
+
const parts = [];
|
|
2375
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2376
|
+
}
|
|
2377
|
+
function TransferSpec_BucketCredentialsCustomJson() {
|
|
2378
|
+
const obj = {
|
|
2379
|
+
type: this.$type,
|
|
2380
|
+
};
|
|
2381
|
+
return obj;
|
|
2382
|
+
}
|
|
2383
|
+
function applyTransferSpec_BucketCredentialsCustom(message) {
|
|
2384
|
+
message[logging_1.custom] = TransferSpec_BucketCredentialsCustomInspect;
|
|
2385
|
+
message[logging_1.customJson] = TransferSpec_BucketCredentialsCustomJson;
|
|
2386
|
+
return message;
|
|
2387
|
+
}
|
|
2388
|
+
function createBaseTransferSpec_BucketCredentials() {
|
|
2389
|
+
const message = {
|
|
2390
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.BucketCredentials",
|
|
2391
|
+
credentials: undefined,
|
|
2392
|
+
};
|
|
2393
|
+
return applyTransferSpec_BucketCredentialsCustom(message);
|
|
2394
|
+
}
|
|
2395
|
+
exports.TransferSpec_BucketCredentials_CredentialsAnonymous = {
|
|
2396
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.BucketCredentials.CredentialsAnonymous",
|
|
2397
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2398
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2399
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2400
|
+
}
|
|
2401
|
+
return writer;
|
|
2402
|
+
},
|
|
2403
|
+
decode(input, length) {
|
|
2404
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2405
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2406
|
+
const message = createBaseTransferSpec_BucketCredentials_CredentialsAnonymous();
|
|
2407
|
+
let writer = undefined;
|
|
2408
|
+
while (reader.pos < end) {
|
|
2409
|
+
const tag = reader.uint32();
|
|
2410
|
+
switch (tag >>> 3) {
|
|
2411
|
+
default:
|
|
2412
|
+
break;
|
|
2413
|
+
}
|
|
2414
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2415
|
+
break;
|
|
2416
|
+
}
|
|
2417
|
+
{
|
|
2418
|
+
if (!writer)
|
|
2419
|
+
writer = new index_1.BinaryWriter();
|
|
2420
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2421
|
+
writer.uint32(tag).raw(skipped);
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
2424
|
+
if (writer) {
|
|
2425
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2426
|
+
}
|
|
2427
|
+
return message;
|
|
2428
|
+
},
|
|
2429
|
+
fromJSON(object) {
|
|
2430
|
+
return applyTransferSpec_BucketCredentials_CredentialsAnonymousCustom({
|
|
2431
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.BucketCredentials.CredentialsAnonymous",
|
|
2432
|
+
});
|
|
2433
|
+
},
|
|
2434
|
+
toJSON(message, use = "json") {
|
|
2435
|
+
const obj = {};
|
|
2436
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2437
|
+
return obj;
|
|
2438
|
+
},
|
|
2439
|
+
create(base) {
|
|
2440
|
+
return exports.TransferSpec_BucketCredentials_CredentialsAnonymous.fromPartial(base ?? {});
|
|
2441
|
+
},
|
|
2442
|
+
fromPartial(object) {
|
|
2443
|
+
const message = createBaseTransferSpec_BucketCredentials_CredentialsAnonymous();
|
|
2444
|
+
return message;
|
|
2445
|
+
},
|
|
2446
|
+
};
|
|
2447
|
+
protobuf_1.protoRegistry.registerMessage(exports.TransferSpec_BucketCredentials_CredentialsAnonymous);
|
|
2448
|
+
function TransferSpec_BucketCredentials_CredentialsAnonymousCustomInspect() {
|
|
2449
|
+
const parts = [];
|
|
2450
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2451
|
+
}
|
|
2452
|
+
function TransferSpec_BucketCredentials_CredentialsAnonymousCustomJson() {
|
|
2453
|
+
const obj = {
|
|
2454
|
+
type: this.$type,
|
|
2455
|
+
};
|
|
2456
|
+
return obj;
|
|
2457
|
+
}
|
|
2458
|
+
function applyTransferSpec_BucketCredentials_CredentialsAnonymousCustom(message) {
|
|
2459
|
+
message[logging_1.custom] = TransferSpec_BucketCredentials_CredentialsAnonymousCustomInspect;
|
|
2460
|
+
message[logging_1.customJson] = TransferSpec_BucketCredentials_CredentialsAnonymousCustomJson;
|
|
2461
|
+
return message;
|
|
2462
|
+
}
|
|
2463
|
+
function createBaseTransferSpec_BucketCredentials_CredentialsAnonymous() {
|
|
2464
|
+
const message = {
|
|
2465
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.BucketCredentials.CredentialsAnonymous",
|
|
2466
|
+
};
|
|
2467
|
+
return applyTransferSpec_BucketCredentials_CredentialsAnonymousCustom(message);
|
|
2468
|
+
}
|
|
2469
|
+
exports.TransferSpec_BucketCredentials_CredentialsAccessKey = {
|
|
2470
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.BucketCredentials.CredentialsAccessKey",
|
|
2471
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2472
|
+
if (message.accessKeyId !== "") {
|
|
2473
|
+
writer.uint32(10).string(message.accessKeyId);
|
|
2474
|
+
}
|
|
2475
|
+
if (message.secretAccessKey !== "") {
|
|
2476
|
+
writer.uint32(18).string(message.secretAccessKey);
|
|
2477
|
+
}
|
|
2478
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2479
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2480
|
+
}
|
|
2481
|
+
return writer;
|
|
2482
|
+
},
|
|
2483
|
+
decode(input, length) {
|
|
2484
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2485
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2486
|
+
const message = createBaseTransferSpec_BucketCredentials_CredentialsAccessKey();
|
|
2487
|
+
let writer = undefined;
|
|
2488
|
+
while (reader.pos < end) {
|
|
2489
|
+
const tag = reader.uint32();
|
|
2490
|
+
switch (tag >>> 3) {
|
|
2491
|
+
case 1: {
|
|
2492
|
+
if (tag !== 10)
|
|
2493
|
+
break;
|
|
2494
|
+
message.accessKeyId = reader.string();
|
|
2495
|
+
continue;
|
|
2496
|
+
}
|
|
2497
|
+
case 2: {
|
|
2498
|
+
if (tag !== 18)
|
|
2499
|
+
break;
|
|
2500
|
+
message.secretAccessKey = reader.string();
|
|
2501
|
+
continue;
|
|
2502
|
+
}
|
|
2503
|
+
default:
|
|
2504
|
+
break;
|
|
2505
|
+
}
|
|
2506
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2507
|
+
break;
|
|
2508
|
+
}
|
|
2509
|
+
{
|
|
2510
|
+
if (!writer)
|
|
2511
|
+
writer = new index_1.BinaryWriter();
|
|
2512
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2513
|
+
writer.uint32(tag).raw(skipped);
|
|
2514
|
+
}
|
|
2515
|
+
}
|
|
2516
|
+
if (writer) {
|
|
2517
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2518
|
+
}
|
|
2519
|
+
return message;
|
|
2520
|
+
},
|
|
2521
|
+
fromJSON(object) {
|
|
2522
|
+
return applyTransferSpec_BucketCredentials_CredentialsAccessKeyCustom({
|
|
2523
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.BucketCredentials.CredentialsAccessKey",
|
|
2524
|
+
accessKeyId: (0, index_1.isSet)(object.accessKeyId ?? object.access_key_id)
|
|
2525
|
+
? String(object.accessKeyId ?? object.access_key_id)
|
|
2526
|
+
: "",
|
|
2527
|
+
secretAccessKey: (0, index_1.isSet)(object.secretAccessKey ?? object.secret_access_key)
|
|
2528
|
+
? String(object.secretAccessKey ?? object.secret_access_key)
|
|
2529
|
+
: "",
|
|
2530
|
+
});
|
|
2531
|
+
},
|
|
2532
|
+
toJSON(message, use = "json") {
|
|
2533
|
+
const obj = {};
|
|
2534
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2535
|
+
if (message.accessKeyId !== "") {
|
|
2536
|
+
obj[pick("accessKeyId", "access_key_id")] = message.accessKeyId;
|
|
2537
|
+
}
|
|
2538
|
+
if (message.secretAccessKey !== "") {
|
|
2539
|
+
obj[pick("secretAccessKey", "secret_access_key")] = message.secretAccessKey;
|
|
2540
|
+
}
|
|
2541
|
+
return obj;
|
|
2542
|
+
},
|
|
2543
|
+
create(base) {
|
|
2544
|
+
return exports.TransferSpec_BucketCredentials_CredentialsAccessKey.fromPartial(base ?? {});
|
|
2545
|
+
},
|
|
2546
|
+
fromPartial(object) {
|
|
2547
|
+
const message = createBaseTransferSpec_BucketCredentials_CredentialsAccessKey();
|
|
2548
|
+
message.accessKeyId = (object.accessKeyId !== undefined && object.accessKeyId !== null)
|
|
2549
|
+
? object.accessKeyId
|
|
2550
|
+
: "";
|
|
2551
|
+
message.secretAccessKey = (object.secretAccessKey !== undefined && object.secretAccessKey !== null)
|
|
2552
|
+
? object.secretAccessKey
|
|
2553
|
+
: "";
|
|
2554
|
+
return message;
|
|
2555
|
+
},
|
|
2556
|
+
};
|
|
2557
|
+
protobuf_1.protoRegistry.registerMessage(exports.TransferSpec_BucketCredentials_CredentialsAccessKey);
|
|
2558
|
+
function TransferSpec_BucketCredentials_CredentialsAccessKeyCustomInspect() {
|
|
2559
|
+
const parts = [];
|
|
2560
|
+
if (this.accessKeyId !== "")
|
|
2561
|
+
parts.push("accessKeyId" + "=***");
|
|
2562
|
+
if (this.secretAccessKey !== "")
|
|
2563
|
+
parts.push("secretAccessKey" + "=***");
|
|
2564
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2565
|
+
}
|
|
2566
|
+
function TransferSpec_BucketCredentials_CredentialsAccessKeyCustomJson() {
|
|
2567
|
+
const obj = {
|
|
2568
|
+
type: this.$type,
|
|
2569
|
+
};
|
|
2570
|
+
if (this.accessKeyId !== "")
|
|
2571
|
+
obj.accessKeyId = "***";
|
|
2572
|
+
if (this.secretAccessKey !== "")
|
|
2573
|
+
obj.secretAccessKey = "***";
|
|
2574
|
+
return obj;
|
|
2575
|
+
}
|
|
2576
|
+
function applyTransferSpec_BucketCredentials_CredentialsAccessKeyCustom(message) {
|
|
2577
|
+
message[logging_1.custom] = TransferSpec_BucketCredentials_CredentialsAccessKeyCustomInspect;
|
|
2578
|
+
message[logging_1.customJson] = TransferSpec_BucketCredentials_CredentialsAccessKeyCustomJson;
|
|
2579
|
+
return message;
|
|
2580
|
+
}
|
|
2581
|
+
function createBaseTransferSpec_BucketCredentials_CredentialsAccessKey() {
|
|
2582
|
+
const message = {
|
|
2583
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.BucketCredentials.CredentialsAccessKey",
|
|
2584
|
+
accessKeyId: "",
|
|
2585
|
+
secretAccessKey: "",
|
|
2586
|
+
};
|
|
2587
|
+
return applyTransferSpec_BucketCredentials_CredentialsAccessKeyCustom(message);
|
|
2588
|
+
}
|
|
2589
|
+
exports.TransferSpec_BucketCredentials_AzureAccessKey = {
|
|
2590
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.BucketCredentials.AzureAccessKey",
|
|
2591
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2592
|
+
if (message.accountName !== "") {
|
|
2593
|
+
writer.uint32(18).string(message.accountName);
|
|
2594
|
+
}
|
|
2595
|
+
if (message.accessKey !== "") {
|
|
2596
|
+
writer.uint32(10).string(message.accessKey);
|
|
2597
|
+
}
|
|
2598
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2599
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2600
|
+
}
|
|
2601
|
+
return writer;
|
|
2602
|
+
},
|
|
2603
|
+
decode(input, length) {
|
|
2604
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2605
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2606
|
+
const message = createBaseTransferSpec_BucketCredentials_AzureAccessKey();
|
|
2607
|
+
let writer = undefined;
|
|
2608
|
+
while (reader.pos < end) {
|
|
2609
|
+
const tag = reader.uint32();
|
|
2610
|
+
switch (tag >>> 3) {
|
|
2611
|
+
case 2: {
|
|
2612
|
+
if (tag !== 18)
|
|
2613
|
+
break;
|
|
2614
|
+
message.accountName = reader.string();
|
|
2615
|
+
continue;
|
|
2616
|
+
}
|
|
2617
|
+
case 1: {
|
|
2618
|
+
if (tag !== 10)
|
|
2619
|
+
break;
|
|
2620
|
+
message.accessKey = reader.string();
|
|
2621
|
+
continue;
|
|
2622
|
+
}
|
|
2623
|
+
default:
|
|
2624
|
+
break;
|
|
2625
|
+
}
|
|
2626
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2627
|
+
break;
|
|
2628
|
+
}
|
|
2629
|
+
{
|
|
2630
|
+
if (!writer)
|
|
2631
|
+
writer = new index_1.BinaryWriter();
|
|
2632
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2633
|
+
writer.uint32(tag).raw(skipped);
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2636
|
+
if (writer) {
|
|
2637
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2638
|
+
}
|
|
2639
|
+
return message;
|
|
2640
|
+
},
|
|
2641
|
+
fromJSON(object) {
|
|
2642
|
+
return applyTransferSpec_BucketCredentials_AzureAccessKeyCustom({
|
|
2643
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.BucketCredentials.AzureAccessKey",
|
|
2644
|
+
accountName: (0, index_1.isSet)(object.accountName ?? object.account_name)
|
|
2645
|
+
? String(object.accountName ?? object.account_name)
|
|
2646
|
+
: "",
|
|
2647
|
+
accessKey: (0, index_1.isSet)(object.accessKey ?? object.access_key)
|
|
2648
|
+
? String(object.accessKey ?? object.access_key)
|
|
2649
|
+
: "",
|
|
2650
|
+
});
|
|
2651
|
+
},
|
|
2652
|
+
toJSON(message, use = "json") {
|
|
2653
|
+
const obj = {};
|
|
2654
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2655
|
+
if (message.accountName !== "") {
|
|
2656
|
+
obj[pick("accountName", "account_name")] = message.accountName;
|
|
2657
|
+
}
|
|
2658
|
+
if (message.accessKey !== "") {
|
|
2659
|
+
obj[pick("accessKey", "access_key")] = message.accessKey;
|
|
2660
|
+
}
|
|
2661
|
+
return obj;
|
|
2662
|
+
},
|
|
2663
|
+
create(base) {
|
|
2664
|
+
return exports.TransferSpec_BucketCredentials_AzureAccessKey.fromPartial(base ?? {});
|
|
2665
|
+
},
|
|
2666
|
+
fromPartial(object) {
|
|
2667
|
+
const message = createBaseTransferSpec_BucketCredentials_AzureAccessKey();
|
|
2668
|
+
message.accountName = (object.accountName !== undefined && object.accountName !== null)
|
|
2669
|
+
? object.accountName
|
|
2670
|
+
: "";
|
|
2671
|
+
message.accessKey = (object.accessKey !== undefined && object.accessKey !== null)
|
|
2672
|
+
? object.accessKey
|
|
2673
|
+
: "";
|
|
2674
|
+
return message;
|
|
2675
|
+
},
|
|
2676
|
+
};
|
|
2677
|
+
protobuf_1.protoRegistry.registerMessage(exports.TransferSpec_BucketCredentials_AzureAccessKey);
|
|
2678
|
+
function TransferSpec_BucketCredentials_AzureAccessKeyCustomInspect() {
|
|
2679
|
+
const parts = [];
|
|
2680
|
+
if (this.accountName !== "")
|
|
2681
|
+
parts.push("accountName" + "=***");
|
|
2682
|
+
if (this.accessKey !== "")
|
|
2683
|
+
parts.push("accessKey" + "=***");
|
|
2684
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2685
|
+
}
|
|
2686
|
+
function TransferSpec_BucketCredentials_AzureAccessKeyCustomJson() {
|
|
2687
|
+
const obj = {
|
|
2688
|
+
type: this.$type,
|
|
2689
|
+
};
|
|
2690
|
+
if (this.accountName !== "")
|
|
2691
|
+
obj.accountName = "***";
|
|
2692
|
+
if (this.accessKey !== "")
|
|
2693
|
+
obj.accessKey = "***";
|
|
2694
|
+
return obj;
|
|
2695
|
+
}
|
|
2696
|
+
function applyTransferSpec_BucketCredentials_AzureAccessKeyCustom(message) {
|
|
2697
|
+
message[logging_1.custom] = TransferSpec_BucketCredentials_AzureAccessKeyCustomInspect;
|
|
2698
|
+
message[logging_1.customJson] = TransferSpec_BucketCredentials_AzureAccessKeyCustomJson;
|
|
2699
|
+
return message;
|
|
2700
|
+
}
|
|
2701
|
+
function createBaseTransferSpec_BucketCredentials_AzureAccessKey() {
|
|
2702
|
+
const message = {
|
|
2703
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.BucketCredentials.AzureAccessKey",
|
|
2704
|
+
accountName: "",
|
|
2705
|
+
accessKey: "",
|
|
2706
|
+
};
|
|
2707
|
+
return applyTransferSpec_BucketCredentials_AzureAccessKeyCustom(message);
|
|
2708
|
+
}
|
|
2709
|
+
exports.TransferSpec_Limiters = {
|
|
2710
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.Limiters",
|
|
2711
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2712
|
+
if (message.bandwidthBytesPerSecond !== undefined && !message.bandwidthBytesPerSecond.isZero?.()) {
|
|
2713
|
+
writer.uint32(8).uint64(message.bandwidthBytesPerSecond.toString());
|
|
2714
|
+
}
|
|
2715
|
+
if (message.requestsPerSecond !== undefined && !message.requestsPerSecond.isZero?.()) {
|
|
2716
|
+
writer.uint32(16).uint64(message.requestsPerSecond.toString());
|
|
2717
|
+
}
|
|
2718
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2719
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2720
|
+
}
|
|
2721
|
+
return writer;
|
|
2722
|
+
},
|
|
2723
|
+
decode(input, length) {
|
|
2724
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2725
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2726
|
+
const message = createBaseTransferSpec_Limiters();
|
|
2727
|
+
let writer = undefined;
|
|
2728
|
+
while (reader.pos < end) {
|
|
2729
|
+
const tag = reader.uint32();
|
|
2730
|
+
switch (tag >>> 3) {
|
|
2731
|
+
case 1: {
|
|
2732
|
+
if (tag !== 8)
|
|
2733
|
+
break;
|
|
2734
|
+
message.bandwidthBytesPerSecond = index_1.Long.fromValue(reader.uint64());
|
|
2735
|
+
continue;
|
|
2736
|
+
}
|
|
2737
|
+
case 2: {
|
|
2738
|
+
if (tag !== 16)
|
|
2739
|
+
break;
|
|
2740
|
+
message.requestsPerSecond = index_1.Long.fromValue(reader.uint64());
|
|
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 applyTransferSpec_LimitersCustom({
|
|
2763
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.Limiters",
|
|
2764
|
+
bandwidthBytesPerSecond: (0, index_1.isSet)(object.bandwidthBytesPerSecond ?? object.bandwidth_bytes_per_second)
|
|
2765
|
+
? index_1.Long.fromValue(object.bandwidthBytesPerSecond ?? object.bandwidth_bytes_per_second)
|
|
2766
|
+
: index_1.Long.ZERO,
|
|
2767
|
+
requestsPerSecond: (0, index_1.isSet)(object.requestsPerSecond ?? object.requests_per_second)
|
|
2768
|
+
? index_1.Long.fromValue(object.requestsPerSecond ?? object.requests_per_second)
|
|
2769
|
+
: index_1.Long.ZERO,
|
|
2770
|
+
});
|
|
2771
|
+
},
|
|
2772
|
+
toJSON(message, use = "json") {
|
|
2773
|
+
const obj = {};
|
|
2774
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2775
|
+
if (!message.bandwidthBytesPerSecond?.isZero?.()) {
|
|
2776
|
+
obj[pick("bandwidthBytesPerSecond", "bandwidth_bytes_per_second")] = (message.bandwidthBytesPerSecond || index_1.Long.ZERO).toString();
|
|
2777
|
+
}
|
|
2778
|
+
if (!message.requestsPerSecond?.isZero?.()) {
|
|
2779
|
+
obj[pick("requestsPerSecond", "requests_per_second")] = (message.requestsPerSecond || index_1.Long.ZERO).toString();
|
|
2780
|
+
}
|
|
2781
|
+
return obj;
|
|
2782
|
+
},
|
|
2783
|
+
create(base) {
|
|
2784
|
+
return exports.TransferSpec_Limiters.fromPartial(base ?? {});
|
|
2785
|
+
},
|
|
2786
|
+
fromPartial(object) {
|
|
2787
|
+
const message = createBaseTransferSpec_Limiters();
|
|
2788
|
+
message.bandwidthBytesPerSecond = (object.bandwidthBytesPerSecond !== undefined && object.bandwidthBytesPerSecond !== null)
|
|
2789
|
+
? index_1.Long.fromValue(object.bandwidthBytesPerSecond)
|
|
2790
|
+
: index_1.Long.ZERO;
|
|
2791
|
+
message.requestsPerSecond = (object.requestsPerSecond !== undefined && object.requestsPerSecond !== null)
|
|
2792
|
+
? index_1.Long.fromValue(object.requestsPerSecond)
|
|
2793
|
+
: index_1.Long.ZERO;
|
|
2794
|
+
return message;
|
|
2795
|
+
},
|
|
2796
|
+
};
|
|
2797
|
+
protobuf_1.protoRegistry.registerMessage(exports.TransferSpec_Limiters);
|
|
2798
|
+
function TransferSpec_LimitersCustomInspect() {
|
|
2799
|
+
const parts = [];
|
|
2800
|
+
if (!this.bandwidthBytesPerSecond?.isZero?.())
|
|
2801
|
+
parts.push("bandwidthBytesPerSecond" + "=" + (0, util_1.inspect)(this.bandwidthBytesPerSecond));
|
|
2802
|
+
if (!this.requestsPerSecond?.isZero?.())
|
|
2803
|
+
parts.push("requestsPerSecond" + "=" + (0, util_1.inspect)(this.requestsPerSecond));
|
|
2804
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2805
|
+
}
|
|
2806
|
+
function TransferSpec_LimitersCustomJson() {
|
|
2807
|
+
const obj = {
|
|
2808
|
+
type: this.$type,
|
|
2809
|
+
};
|
|
2810
|
+
if (!this.bandwidthBytesPerSecond?.isZero?.())
|
|
2811
|
+
obj.bandwidthBytesPerSecond = (0, logging_1.inspectJson)(this.bandwidthBytesPerSecond);
|
|
2812
|
+
if (!this.requestsPerSecond?.isZero?.())
|
|
2813
|
+
obj.requestsPerSecond = (0, logging_1.inspectJson)(this.requestsPerSecond);
|
|
2814
|
+
return obj;
|
|
2815
|
+
}
|
|
2816
|
+
function applyTransferSpec_LimitersCustom(message) {
|
|
2817
|
+
message[logging_1.custom] = TransferSpec_LimitersCustomInspect;
|
|
2818
|
+
message[logging_1.customJson] = TransferSpec_LimitersCustomJson;
|
|
2819
|
+
return message;
|
|
2820
|
+
}
|
|
2821
|
+
function createBaseTransferSpec_Limiters() {
|
|
2822
|
+
const message = {
|
|
2823
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.Limiters",
|
|
2824
|
+
bandwidthBytesPerSecond: index_1.Long.ZERO,
|
|
2825
|
+
requestsPerSecond: index_1.Long.ZERO,
|
|
2826
|
+
};
|
|
2827
|
+
return applyTransferSpec_LimitersCustom(message);
|
|
2828
|
+
}
|
|
2829
|
+
exports.TransferSpec_StopConditionAfterOneIteration = {
|
|
2830
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.StopConditionAfterOneIteration",
|
|
2831
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2832
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2833
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2834
|
+
}
|
|
2835
|
+
return writer;
|
|
2836
|
+
},
|
|
2837
|
+
decode(input, length) {
|
|
2838
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2839
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2840
|
+
const message = createBaseTransferSpec_StopConditionAfterOneIteration();
|
|
2841
|
+
let writer = undefined;
|
|
2842
|
+
while (reader.pos < end) {
|
|
2843
|
+
const tag = reader.uint32();
|
|
2844
|
+
switch (tag >>> 3) {
|
|
2845
|
+
default:
|
|
2846
|
+
break;
|
|
2847
|
+
}
|
|
2848
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2849
|
+
break;
|
|
2850
|
+
}
|
|
2851
|
+
{
|
|
2852
|
+
if (!writer)
|
|
2853
|
+
writer = new index_1.BinaryWriter();
|
|
2854
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2855
|
+
writer.uint32(tag).raw(skipped);
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2858
|
+
if (writer) {
|
|
2859
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2860
|
+
}
|
|
2861
|
+
return message;
|
|
2862
|
+
},
|
|
2863
|
+
fromJSON(object) {
|
|
2864
|
+
return applyTransferSpec_StopConditionAfterOneIterationCustom({
|
|
2865
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.StopConditionAfterOneIteration",
|
|
2866
|
+
});
|
|
2867
|
+
},
|
|
2868
|
+
toJSON(message, use = "json") {
|
|
2869
|
+
const obj = {};
|
|
2870
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2871
|
+
return obj;
|
|
2872
|
+
},
|
|
2873
|
+
create(base) {
|
|
2874
|
+
return exports.TransferSpec_StopConditionAfterOneIteration.fromPartial(base ?? {});
|
|
2875
|
+
},
|
|
2876
|
+
fromPartial(object) {
|
|
2877
|
+
const message = createBaseTransferSpec_StopConditionAfterOneIteration();
|
|
2878
|
+
return message;
|
|
2879
|
+
},
|
|
2880
|
+
};
|
|
2881
|
+
protobuf_1.protoRegistry.registerMessage(exports.TransferSpec_StopConditionAfterOneIteration);
|
|
2882
|
+
function TransferSpec_StopConditionAfterOneIterationCustomInspect() {
|
|
2883
|
+
const parts = [];
|
|
2884
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2885
|
+
}
|
|
2886
|
+
function TransferSpec_StopConditionAfterOneIterationCustomJson() {
|
|
2887
|
+
const obj = {
|
|
2888
|
+
type: this.$type,
|
|
2889
|
+
};
|
|
2890
|
+
return obj;
|
|
2891
|
+
}
|
|
2892
|
+
function applyTransferSpec_StopConditionAfterOneIterationCustom(message) {
|
|
2893
|
+
message[logging_1.custom] = TransferSpec_StopConditionAfterOneIterationCustomInspect;
|
|
2894
|
+
message[logging_1.customJson] = TransferSpec_StopConditionAfterOneIterationCustomJson;
|
|
2895
|
+
return message;
|
|
2896
|
+
}
|
|
2897
|
+
function createBaseTransferSpec_StopConditionAfterOneIteration() {
|
|
2898
|
+
const message = {
|
|
2899
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.StopConditionAfterOneIteration",
|
|
2900
|
+
};
|
|
2901
|
+
return applyTransferSpec_StopConditionAfterOneIterationCustom(message);
|
|
2902
|
+
}
|
|
2903
|
+
exports.TransferSpec_StopConditionAfterNEmptyIterations = {
|
|
2904
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.StopConditionAfterNEmptyIterations",
|
|
2905
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2906
|
+
if ((message.emptyIterationsThreshold ?? 0) !== 0) {
|
|
2907
|
+
writer.uint32(8).uint32(message.emptyIterationsThreshold);
|
|
2908
|
+
}
|
|
2909
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2910
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2911
|
+
}
|
|
2912
|
+
return writer;
|
|
2913
|
+
},
|
|
2914
|
+
decode(input, length) {
|
|
2915
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2916
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2917
|
+
const message = createBaseTransferSpec_StopConditionAfterNEmptyIterations();
|
|
2918
|
+
let writer = undefined;
|
|
2919
|
+
while (reader.pos < end) {
|
|
2920
|
+
const tag = reader.uint32();
|
|
2921
|
+
switch (tag >>> 3) {
|
|
2922
|
+
case 1: {
|
|
2923
|
+
if (tag !== 8)
|
|
2924
|
+
break;
|
|
2925
|
+
message.emptyIterationsThreshold = reader.uint32();
|
|
2926
|
+
continue;
|
|
2927
|
+
}
|
|
2928
|
+
default:
|
|
2929
|
+
break;
|
|
2930
|
+
}
|
|
2931
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2932
|
+
break;
|
|
2933
|
+
}
|
|
2934
|
+
{
|
|
2935
|
+
if (!writer)
|
|
2936
|
+
writer = new index_1.BinaryWriter();
|
|
2937
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2938
|
+
writer.uint32(tag).raw(skipped);
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
if (writer) {
|
|
2942
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2943
|
+
}
|
|
2944
|
+
return message;
|
|
2945
|
+
},
|
|
2946
|
+
fromJSON(object) {
|
|
2947
|
+
return applyTransferSpec_StopConditionAfterNEmptyIterationsCustom({
|
|
2948
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.StopConditionAfterNEmptyIterations",
|
|
2949
|
+
emptyIterationsThreshold: (0, index_1.isSet)(object.emptyIterationsThreshold ?? object.empty_iterations_threshold)
|
|
2950
|
+
? Number(object.emptyIterationsThreshold ?? object.empty_iterations_threshold)
|
|
2951
|
+
: 0,
|
|
2952
|
+
});
|
|
2953
|
+
},
|
|
2954
|
+
toJSON(message, use = "json") {
|
|
2955
|
+
const obj = {};
|
|
2956
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2957
|
+
if ((message.emptyIterationsThreshold ?? 0) !== 0) {
|
|
2958
|
+
obj[pick("emptyIterationsThreshold", "empty_iterations_threshold")] = message.emptyIterationsThreshold;
|
|
2959
|
+
}
|
|
2960
|
+
return obj;
|
|
2961
|
+
},
|
|
2962
|
+
create(base) {
|
|
2963
|
+
return exports.TransferSpec_StopConditionAfterNEmptyIterations.fromPartial(base ?? {});
|
|
2964
|
+
},
|
|
2965
|
+
fromPartial(object) {
|
|
2966
|
+
const message = createBaseTransferSpec_StopConditionAfterNEmptyIterations();
|
|
2967
|
+
message.emptyIterationsThreshold = (object.emptyIterationsThreshold !== undefined && object.emptyIterationsThreshold !== null)
|
|
2968
|
+
? object.emptyIterationsThreshold
|
|
2969
|
+
: 0;
|
|
2970
|
+
return message;
|
|
2971
|
+
},
|
|
2972
|
+
};
|
|
2973
|
+
protobuf_1.protoRegistry.registerMessage(exports.TransferSpec_StopConditionAfterNEmptyIterations);
|
|
2974
|
+
function TransferSpec_StopConditionAfterNEmptyIterationsCustomInspect() {
|
|
2975
|
+
const parts = [];
|
|
2976
|
+
if ((this.emptyIterationsThreshold ?? 0) !== 0)
|
|
2977
|
+
parts.push("emptyIterationsThreshold" + "=" + (0, util_1.inspect)(this.emptyIterationsThreshold));
|
|
2978
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2979
|
+
}
|
|
2980
|
+
function TransferSpec_StopConditionAfterNEmptyIterationsCustomJson() {
|
|
2981
|
+
const obj = {
|
|
2982
|
+
type: this.$type,
|
|
2983
|
+
};
|
|
2984
|
+
if ((this.emptyIterationsThreshold ?? 0) !== 0)
|
|
2985
|
+
obj.emptyIterationsThreshold = (0, logging_1.inspectJson)(this.emptyIterationsThreshold);
|
|
2986
|
+
return obj;
|
|
2987
|
+
}
|
|
2988
|
+
function applyTransferSpec_StopConditionAfterNEmptyIterationsCustom(message) {
|
|
2989
|
+
message[logging_1.custom] = TransferSpec_StopConditionAfterNEmptyIterationsCustomInspect;
|
|
2990
|
+
message[logging_1.customJson] = TransferSpec_StopConditionAfterNEmptyIterationsCustomJson;
|
|
2991
|
+
return message;
|
|
2992
|
+
}
|
|
2993
|
+
function createBaseTransferSpec_StopConditionAfterNEmptyIterations() {
|
|
2994
|
+
const message = {
|
|
2995
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.StopConditionAfterNEmptyIterations",
|
|
2996
|
+
emptyIterationsThreshold: 0,
|
|
2997
|
+
};
|
|
2998
|
+
return applyTransferSpec_StopConditionAfterNEmptyIterationsCustom(message);
|
|
2999
|
+
}
|
|
3000
|
+
exports.TransferSpec_StopConditionInfinite = {
|
|
3001
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.StopConditionInfinite",
|
|
3002
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
3003
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
3004
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
3005
|
+
}
|
|
3006
|
+
return writer;
|
|
3007
|
+
},
|
|
3008
|
+
decode(input, length) {
|
|
3009
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
3010
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3011
|
+
const message = createBaseTransferSpec_StopConditionInfinite();
|
|
3012
|
+
let writer = undefined;
|
|
3013
|
+
while (reader.pos < end) {
|
|
3014
|
+
const tag = reader.uint32();
|
|
3015
|
+
switch (tag >>> 3) {
|
|
3016
|
+
default:
|
|
3017
|
+
break;
|
|
3018
|
+
}
|
|
3019
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3020
|
+
break;
|
|
3021
|
+
}
|
|
3022
|
+
{
|
|
3023
|
+
if (!writer)
|
|
3024
|
+
writer = new index_1.BinaryWriter();
|
|
3025
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
3026
|
+
writer.uint32(tag).raw(skipped);
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
if (writer) {
|
|
3030
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
3031
|
+
}
|
|
3032
|
+
return message;
|
|
3033
|
+
},
|
|
3034
|
+
fromJSON(object) {
|
|
3035
|
+
return applyTransferSpec_StopConditionInfiniteCustom({
|
|
3036
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.StopConditionInfinite",
|
|
3037
|
+
});
|
|
3038
|
+
},
|
|
3039
|
+
toJSON(message, use = "json") {
|
|
3040
|
+
const obj = {};
|
|
3041
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
3042
|
+
return obj;
|
|
3043
|
+
},
|
|
3044
|
+
create(base) {
|
|
3045
|
+
return exports.TransferSpec_StopConditionInfinite.fromPartial(base ?? {});
|
|
3046
|
+
},
|
|
3047
|
+
fromPartial(object) {
|
|
3048
|
+
const message = createBaseTransferSpec_StopConditionInfinite();
|
|
3049
|
+
return message;
|
|
3050
|
+
},
|
|
3051
|
+
};
|
|
3052
|
+
protobuf_1.protoRegistry.registerMessage(exports.TransferSpec_StopConditionInfinite);
|
|
3053
|
+
function TransferSpec_StopConditionInfiniteCustomInspect() {
|
|
3054
|
+
const parts = [];
|
|
3055
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
3056
|
+
}
|
|
3057
|
+
function TransferSpec_StopConditionInfiniteCustomJson() {
|
|
3058
|
+
const obj = {
|
|
3059
|
+
type: this.$type,
|
|
3060
|
+
};
|
|
3061
|
+
return obj;
|
|
3062
|
+
}
|
|
3063
|
+
function applyTransferSpec_StopConditionInfiniteCustom(message) {
|
|
3064
|
+
message[logging_1.custom] = TransferSpec_StopConditionInfiniteCustomInspect;
|
|
3065
|
+
message[logging_1.customJson] = TransferSpec_StopConditionInfiniteCustomJson;
|
|
3066
|
+
return message;
|
|
3067
|
+
}
|
|
3068
|
+
function createBaseTransferSpec_StopConditionInfinite() {
|
|
3069
|
+
const message = {
|
|
3070
|
+
$type: "nebius.storage.v1alpha1.TransferSpec.StopConditionInfinite",
|
|
3071
|
+
};
|
|
3072
|
+
return applyTransferSpec_StopConditionInfiniteCustom(message);
|
|
3073
|
+
}
|
|
3074
|
+
exports.TransferStatus = {
|
|
3075
|
+
$type: "nebius.storage.v1alpha1.TransferStatus",
|
|
3076
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
3077
|
+
if ((message.state ?? exports.TransferStatus_State.STATE_UNSPECIFIED) !== exports.TransferStatus_State.STATE_UNSPECIFIED) {
|
|
3078
|
+
exports.TransferStatus_State.encodeField(writer, 1, message.state);
|
|
3079
|
+
}
|
|
3080
|
+
if (message.error !== "") {
|
|
3081
|
+
writer.uint32(18).string(message.error);
|
|
3082
|
+
}
|
|
3083
|
+
if ((message.suspensionState ?? exports.TransferStatus_SuspensionState.SUSPENSION_STATE_UNSPECIFIED) !== exports.TransferStatus_SuspensionState.SUSPENSION_STATE_UNSPECIFIED) {
|
|
3084
|
+
exports.TransferStatus_SuspensionState.encodeField(writer, 3, message.suspensionState);
|
|
3085
|
+
}
|
|
3086
|
+
if (message.lastIteration !== undefined) {
|
|
3087
|
+
const w = writer.uint32(34).fork();
|
|
3088
|
+
exports.TransferIteration.encode(message.lastIteration, w);
|
|
3089
|
+
w.join();
|
|
3090
|
+
}
|
|
3091
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
3092
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
3093
|
+
}
|
|
3094
|
+
return writer;
|
|
3095
|
+
},
|
|
3096
|
+
decode(input, length) {
|
|
3097
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
3098
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3099
|
+
const message = createBaseTransferStatus();
|
|
3100
|
+
let writer = undefined;
|
|
3101
|
+
while (reader.pos < end) {
|
|
3102
|
+
const tag = reader.uint32();
|
|
3103
|
+
switch (tag >>> 3) {
|
|
3104
|
+
case 1: {
|
|
3105
|
+
if (tag !== 8)
|
|
3106
|
+
break;
|
|
3107
|
+
message.state = exports.TransferStatus_State.fromNumber(reader.int32());
|
|
3108
|
+
continue;
|
|
3109
|
+
}
|
|
3110
|
+
case 2: {
|
|
3111
|
+
if (tag !== 18)
|
|
3112
|
+
break;
|
|
3113
|
+
message.error = reader.string();
|
|
3114
|
+
continue;
|
|
3115
|
+
}
|
|
3116
|
+
case 3: {
|
|
3117
|
+
if (tag !== 24)
|
|
3118
|
+
break;
|
|
3119
|
+
message.suspensionState = exports.TransferStatus_SuspensionState.fromNumber(reader.int32());
|
|
3120
|
+
continue;
|
|
3121
|
+
}
|
|
3122
|
+
case 4: {
|
|
3123
|
+
if (tag !== 34)
|
|
3124
|
+
break;
|
|
3125
|
+
message.lastIteration = exports.TransferIteration.decode(reader, reader.uint32());
|
|
3126
|
+
continue;
|
|
3127
|
+
}
|
|
3128
|
+
default:
|
|
3129
|
+
break;
|
|
3130
|
+
}
|
|
3131
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3132
|
+
break;
|
|
3133
|
+
}
|
|
3134
|
+
{
|
|
3135
|
+
if (!writer)
|
|
3136
|
+
writer = new index_1.BinaryWriter();
|
|
3137
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
3138
|
+
writer.uint32(tag).raw(skipped);
|
|
3139
|
+
}
|
|
3140
|
+
}
|
|
3141
|
+
if (writer) {
|
|
3142
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
3143
|
+
}
|
|
3144
|
+
return message;
|
|
3145
|
+
},
|
|
3146
|
+
fromJSON(object) {
|
|
3147
|
+
return applyTransferStatusCustom({
|
|
3148
|
+
$type: "nebius.storage.v1alpha1.TransferStatus",
|
|
3149
|
+
state: (0, index_1.isSet)(object.state ?? object.state)
|
|
3150
|
+
? exports.TransferStatus_State.fromJSON(object.state ?? object.state)
|
|
3151
|
+
: exports.TransferStatus_State.STATE_UNSPECIFIED,
|
|
3152
|
+
error: (0, index_1.isSet)(object.error ?? object.error)
|
|
3153
|
+
? String(object.error ?? object.error)
|
|
3154
|
+
: "",
|
|
3155
|
+
suspensionState: (0, index_1.isSet)(object.suspensionState ?? object.suspension_state)
|
|
3156
|
+
? exports.TransferStatus_SuspensionState.fromJSON(object.suspensionState ?? object.suspension_state)
|
|
3157
|
+
: exports.TransferStatus_SuspensionState.SUSPENSION_STATE_UNSPECIFIED,
|
|
3158
|
+
lastIteration: (0, index_1.isSet)(object.lastIteration ?? object.last_iteration)
|
|
3159
|
+
? exports.TransferIteration.fromJSON(object.lastIteration ?? object.last_iteration)
|
|
3160
|
+
: undefined,
|
|
3161
|
+
});
|
|
3162
|
+
},
|
|
3163
|
+
toJSON(message, use = "json") {
|
|
3164
|
+
const obj = {};
|
|
3165
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
3166
|
+
if ((message.state ?? exports.TransferStatus_State.STATE_UNSPECIFIED) !== exports.TransferStatus_State.STATE_UNSPECIFIED) {
|
|
3167
|
+
obj[pick("state", "state")] = exports.TransferStatus_State.toJSON(message.state);
|
|
3168
|
+
}
|
|
3169
|
+
if (message.error !== "") {
|
|
3170
|
+
obj[pick("error", "error")] = message.error;
|
|
3171
|
+
}
|
|
3172
|
+
if ((message.suspensionState ?? exports.TransferStatus_SuspensionState.SUSPENSION_STATE_UNSPECIFIED) !== exports.TransferStatus_SuspensionState.SUSPENSION_STATE_UNSPECIFIED) {
|
|
3173
|
+
obj[pick("suspensionState", "suspension_state")] = exports.TransferStatus_SuspensionState.toJSON(message.suspensionState);
|
|
3174
|
+
}
|
|
3175
|
+
if (message.lastIteration !== undefined) {
|
|
3176
|
+
obj[pick("lastIteration", "last_iteration")] = message.lastIteration
|
|
3177
|
+
? exports.TransferIteration.toJSON(message.lastIteration, use)
|
|
3178
|
+
: undefined;
|
|
3179
|
+
}
|
|
3180
|
+
return obj;
|
|
3181
|
+
},
|
|
3182
|
+
create(base) {
|
|
3183
|
+
return exports.TransferStatus.fromPartial(base ?? {});
|
|
3184
|
+
},
|
|
3185
|
+
fromPartial(object) {
|
|
3186
|
+
const message = createBaseTransferStatus();
|
|
3187
|
+
message.state = (object.state !== undefined && object.state !== null)
|
|
3188
|
+
? exports.TransferStatus_State.fromJSON(object.state.name)
|
|
3189
|
+
: exports.TransferStatus_State.STATE_UNSPECIFIED;
|
|
3190
|
+
message.error = (object.error !== undefined && object.error !== null)
|
|
3191
|
+
? object.error
|
|
3192
|
+
: "";
|
|
3193
|
+
message.suspensionState = (object.suspensionState !== undefined && object.suspensionState !== null)
|
|
3194
|
+
? exports.TransferStatus_SuspensionState.fromJSON(object.suspensionState.name)
|
|
3195
|
+
: exports.TransferStatus_SuspensionState.SUSPENSION_STATE_UNSPECIFIED;
|
|
3196
|
+
message.lastIteration = (object.lastIteration !== undefined && object.lastIteration !== null)
|
|
3197
|
+
? exports.TransferIteration.fromPartial(object.lastIteration)
|
|
3198
|
+
: undefined;
|
|
3199
|
+
return message;
|
|
3200
|
+
},
|
|
3201
|
+
};
|
|
3202
|
+
protobuf_1.protoRegistry.registerMessage(exports.TransferStatus);
|
|
3203
|
+
function TransferStatusCustomInspect() {
|
|
3204
|
+
const parts = [];
|
|
3205
|
+
if (this.state !== undefined)
|
|
3206
|
+
parts.push("state" + "=" + (0, util_1.inspect)(this.state));
|
|
3207
|
+
if (this.error !== "")
|
|
3208
|
+
parts.push("error" + "=" + (0, util_1.inspect)(this.error));
|
|
3209
|
+
if (this.suspensionState !== undefined)
|
|
3210
|
+
parts.push("suspensionState" + "=" + (0, util_1.inspect)(this.suspensionState));
|
|
3211
|
+
if (this.lastIteration !== undefined)
|
|
3212
|
+
parts.push("lastIteration" + "=" + (0, util_1.inspect)(this.lastIteration));
|
|
3213
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
3214
|
+
}
|
|
3215
|
+
function TransferStatusCustomJson() {
|
|
3216
|
+
const obj = {
|
|
3217
|
+
type: this.$type,
|
|
3218
|
+
};
|
|
3219
|
+
if (this.state !== undefined)
|
|
3220
|
+
obj.state = (0, logging_1.inspectJson)(this.state);
|
|
3221
|
+
if (this.error !== "")
|
|
3222
|
+
obj.error = (0, logging_1.inspectJson)(this.error);
|
|
3223
|
+
if (this.suspensionState !== undefined)
|
|
3224
|
+
obj.suspensionState = (0, logging_1.inspectJson)(this.suspensionState);
|
|
3225
|
+
if (this.lastIteration !== undefined)
|
|
3226
|
+
obj.lastIteration = (0, logging_1.inspectJson)(this.lastIteration);
|
|
3227
|
+
return obj;
|
|
3228
|
+
}
|
|
3229
|
+
function applyTransferStatusCustom(message) {
|
|
3230
|
+
message[logging_1.custom] = TransferStatusCustomInspect;
|
|
3231
|
+
message[logging_1.customJson] = TransferStatusCustomJson;
|
|
3232
|
+
return message;
|
|
3233
|
+
}
|
|
3234
|
+
function createBaseTransferStatus() {
|
|
3235
|
+
const message = {
|
|
3236
|
+
$type: "nebius.storage.v1alpha1.TransferStatus",
|
|
3237
|
+
state: exports.TransferStatus_State.STATE_UNSPECIFIED,
|
|
3238
|
+
error: "",
|
|
3239
|
+
suspensionState: exports.TransferStatus_SuspensionState.SUSPENSION_STATE_UNSPECIFIED,
|
|
3240
|
+
lastIteration: undefined,
|
|
3241
|
+
};
|
|
3242
|
+
return applyTransferStatusCustom(message);
|
|
3243
|
+
}
|
|
3244
|
+
exports.TransferIteration = {
|
|
3245
|
+
$type: "nebius.storage.v1alpha1.TransferIteration",
|
|
3246
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
3247
|
+
if (message.sequenceNumber !== undefined && !message.sequenceNumber.isZero?.()) {
|
|
3248
|
+
writer.uint32(8).int64(message.sequenceNumber.toString());
|
|
3249
|
+
}
|
|
3250
|
+
if ((message.state ?? exports.TransferIteration_State.STATE_UNSPECIFIED) !== exports.TransferIteration_State.STATE_UNSPECIFIED) {
|
|
3251
|
+
exports.TransferIteration_State.encodeField(writer, 2, message.state);
|
|
3252
|
+
}
|
|
3253
|
+
if (message.error !== "") {
|
|
3254
|
+
writer.uint32(26).string(message.error);
|
|
3255
|
+
}
|
|
3256
|
+
if (message.startTime !== undefined) {
|
|
3257
|
+
const w = writer.uint32(34).fork();
|
|
3258
|
+
index_1.wkt[".google.protobuf.Timestamp"].writeMessage(w, message.startTime);
|
|
3259
|
+
w.join();
|
|
3260
|
+
}
|
|
3261
|
+
if (message.endTime !== undefined) {
|
|
3262
|
+
const w = writer.uint32(42).fork();
|
|
3263
|
+
index_1.wkt[".google.protobuf.Timestamp"].writeMessage(w, message.endTime);
|
|
3264
|
+
w.join();
|
|
3265
|
+
}
|
|
3266
|
+
if (message.objectsDiscoveredCount !== undefined && !message.objectsDiscoveredCount.isZero?.()) {
|
|
3267
|
+
writer.uint32(48).int64(message.objectsDiscoveredCount.toString());
|
|
3268
|
+
}
|
|
3269
|
+
if (message.objectsMigratedCount !== undefined && !message.objectsMigratedCount.isZero?.()) {
|
|
3270
|
+
writer.uint32(56).int64(message.objectsMigratedCount.toString());
|
|
3271
|
+
}
|
|
3272
|
+
if (message.objectsSkippedCount !== undefined && !message.objectsSkippedCount.isZero?.()) {
|
|
3273
|
+
writer.uint32(64).int64(message.objectsSkippedCount.toString());
|
|
3274
|
+
}
|
|
3275
|
+
if (message.objectsMigratedSize !== undefined && !message.objectsMigratedSize.isZero?.()) {
|
|
3276
|
+
writer.uint32(72).int64(message.objectsMigratedSize.toString());
|
|
3277
|
+
}
|
|
3278
|
+
if (message.averageThroughputBytes !== undefined && !message.averageThroughputBytes.isZero?.()) {
|
|
3279
|
+
writer.uint32(80).int64(message.averageThroughputBytes.toString());
|
|
3280
|
+
}
|
|
3281
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
3282
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
3283
|
+
}
|
|
3284
|
+
return writer;
|
|
3285
|
+
},
|
|
3286
|
+
decode(input, length) {
|
|
3287
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
3288
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3289
|
+
const message = createBaseTransferIteration();
|
|
3290
|
+
let writer = undefined;
|
|
3291
|
+
while (reader.pos < end) {
|
|
3292
|
+
const tag = reader.uint32();
|
|
3293
|
+
switch (tag >>> 3) {
|
|
3294
|
+
case 1: {
|
|
3295
|
+
if (tag !== 8)
|
|
3296
|
+
break;
|
|
3297
|
+
message.sequenceNumber = index_1.Long.fromValue(reader.int64());
|
|
3298
|
+
continue;
|
|
3299
|
+
}
|
|
3300
|
+
case 2: {
|
|
3301
|
+
if (tag !== 16)
|
|
3302
|
+
break;
|
|
3303
|
+
message.state = exports.TransferIteration_State.fromNumber(reader.int32());
|
|
3304
|
+
continue;
|
|
3305
|
+
}
|
|
3306
|
+
case 3: {
|
|
3307
|
+
if (tag !== 26)
|
|
3308
|
+
break;
|
|
3309
|
+
message.error = reader.string();
|
|
3310
|
+
continue;
|
|
3311
|
+
}
|
|
3312
|
+
case 4: {
|
|
3313
|
+
if (tag !== 34)
|
|
3314
|
+
break;
|
|
3315
|
+
const len = reader.uint32();
|
|
3316
|
+
message.startTime = index_1.wkt[".google.protobuf.Timestamp"].readMessage(reader, len);
|
|
3317
|
+
continue;
|
|
3318
|
+
}
|
|
3319
|
+
case 5: {
|
|
3320
|
+
if (tag !== 42)
|
|
3321
|
+
break;
|
|
3322
|
+
const len = reader.uint32();
|
|
3323
|
+
message.endTime = index_1.wkt[".google.protobuf.Timestamp"].readMessage(reader, len);
|
|
3324
|
+
continue;
|
|
3325
|
+
}
|
|
3326
|
+
case 6: {
|
|
3327
|
+
if (tag !== 48)
|
|
3328
|
+
break;
|
|
3329
|
+
message.objectsDiscoveredCount = index_1.Long.fromValue(reader.int64());
|
|
3330
|
+
continue;
|
|
3331
|
+
}
|
|
3332
|
+
case 7: {
|
|
3333
|
+
if (tag !== 56)
|
|
3334
|
+
break;
|
|
3335
|
+
message.objectsMigratedCount = index_1.Long.fromValue(reader.int64());
|
|
3336
|
+
continue;
|
|
3337
|
+
}
|
|
3338
|
+
case 8: {
|
|
3339
|
+
if (tag !== 64)
|
|
3340
|
+
break;
|
|
3341
|
+
message.objectsSkippedCount = index_1.Long.fromValue(reader.int64());
|
|
3342
|
+
continue;
|
|
3343
|
+
}
|
|
3344
|
+
case 9: {
|
|
3345
|
+
if (tag !== 72)
|
|
3346
|
+
break;
|
|
3347
|
+
message.objectsMigratedSize = index_1.Long.fromValue(reader.int64());
|
|
3348
|
+
continue;
|
|
3349
|
+
}
|
|
3350
|
+
case 10: {
|
|
3351
|
+
if (tag !== 80)
|
|
3352
|
+
break;
|
|
3353
|
+
message.averageThroughputBytes = index_1.Long.fromValue(reader.int64());
|
|
3354
|
+
continue;
|
|
3355
|
+
}
|
|
3356
|
+
default:
|
|
3357
|
+
break;
|
|
3358
|
+
}
|
|
3359
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3360
|
+
break;
|
|
3361
|
+
}
|
|
3362
|
+
{
|
|
3363
|
+
if (!writer)
|
|
3364
|
+
writer = new index_1.BinaryWriter();
|
|
3365
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
3366
|
+
writer.uint32(tag).raw(skipped);
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
if (writer) {
|
|
3370
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
3371
|
+
}
|
|
3372
|
+
return message;
|
|
3373
|
+
},
|
|
3374
|
+
fromJSON(object) {
|
|
3375
|
+
return applyTransferIterationCustom({
|
|
3376
|
+
$type: "nebius.storage.v1alpha1.TransferIteration",
|
|
3377
|
+
sequenceNumber: (0, index_1.isSet)(object.sequenceNumber ?? object.sequence_number)
|
|
3378
|
+
? index_1.Long.fromValue(object.sequenceNumber ?? object.sequence_number)
|
|
3379
|
+
: index_1.Long.ZERO,
|
|
3380
|
+
state: (0, index_1.isSet)(object.state ?? object.state)
|
|
3381
|
+
? exports.TransferIteration_State.fromJSON(object.state ?? object.state)
|
|
3382
|
+
: exports.TransferIteration_State.STATE_UNSPECIFIED,
|
|
3383
|
+
error: (0, index_1.isSet)(object.error ?? object.error)
|
|
3384
|
+
? String(object.error ?? object.error)
|
|
3385
|
+
: "",
|
|
3386
|
+
startTime: (0, index_1.isSet)(object.startTime ?? object.start_time)
|
|
3387
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromJSON(object.startTime ?? object.start_time)
|
|
3388
|
+
: undefined,
|
|
3389
|
+
endTime: (0, index_1.isSet)(object.endTime ?? object.end_time)
|
|
3390
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromJSON(object.endTime ?? object.end_time)
|
|
3391
|
+
: undefined,
|
|
3392
|
+
objectsDiscoveredCount: (0, index_1.isSet)(object.objectsDiscoveredCount ?? object.objects_discovered_count)
|
|
3393
|
+
? index_1.Long.fromValue(object.objectsDiscoveredCount ?? object.objects_discovered_count)
|
|
3394
|
+
: index_1.Long.ZERO,
|
|
3395
|
+
objectsMigratedCount: (0, index_1.isSet)(object.objectsMigratedCount ?? object.objects_migrated_count)
|
|
3396
|
+
? index_1.Long.fromValue(object.objectsMigratedCount ?? object.objects_migrated_count)
|
|
3397
|
+
: index_1.Long.ZERO,
|
|
3398
|
+
objectsSkippedCount: (0, index_1.isSet)(object.objectsSkippedCount ?? object.objects_skipped_count)
|
|
3399
|
+
? index_1.Long.fromValue(object.objectsSkippedCount ?? object.objects_skipped_count)
|
|
3400
|
+
: index_1.Long.ZERO,
|
|
3401
|
+
objectsMigratedSize: (0, index_1.isSet)(object.objectsMigratedSize ?? object.objects_migrated_size)
|
|
3402
|
+
? index_1.Long.fromValue(object.objectsMigratedSize ?? object.objects_migrated_size)
|
|
3403
|
+
: index_1.Long.ZERO,
|
|
3404
|
+
averageThroughputBytes: (0, index_1.isSet)(object.averageThroughputBytes ?? object.average_throughput_bytes)
|
|
3405
|
+
? index_1.Long.fromValue(object.averageThroughputBytes ?? object.average_throughput_bytes)
|
|
3406
|
+
: index_1.Long.ZERO,
|
|
3407
|
+
});
|
|
3408
|
+
},
|
|
3409
|
+
toJSON(message, use = "json") {
|
|
3410
|
+
const obj = {};
|
|
3411
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
3412
|
+
if (!message.sequenceNumber?.isZero?.()) {
|
|
3413
|
+
obj[pick("sequenceNumber", "sequence_number")] = (message.sequenceNumber || index_1.Long.ZERO).toString();
|
|
3414
|
+
}
|
|
3415
|
+
if ((message.state ?? exports.TransferIteration_State.STATE_UNSPECIFIED) !== exports.TransferIteration_State.STATE_UNSPECIFIED) {
|
|
3416
|
+
obj[pick("state", "state")] = exports.TransferIteration_State.toJSON(message.state);
|
|
3417
|
+
}
|
|
3418
|
+
if (message.error !== "") {
|
|
3419
|
+
obj[pick("error", "error")] = message.error;
|
|
3420
|
+
}
|
|
3421
|
+
if (message.startTime !== undefined) {
|
|
3422
|
+
obj[pick("startTime", "start_time")] = index_1.wkt[".google.protobuf.Timestamp"].toJSON(message.startTime, use);
|
|
3423
|
+
}
|
|
3424
|
+
if (message.endTime !== undefined) {
|
|
3425
|
+
obj[pick("endTime", "end_time")] = index_1.wkt[".google.protobuf.Timestamp"].toJSON(message.endTime, use);
|
|
3426
|
+
}
|
|
3427
|
+
if (!message.objectsDiscoveredCount?.isZero?.()) {
|
|
3428
|
+
obj[pick("objectsDiscoveredCount", "objects_discovered_count")] = (message.objectsDiscoveredCount || index_1.Long.ZERO).toString();
|
|
3429
|
+
}
|
|
3430
|
+
if (!message.objectsMigratedCount?.isZero?.()) {
|
|
3431
|
+
obj[pick("objectsMigratedCount", "objects_migrated_count")] = (message.objectsMigratedCount || index_1.Long.ZERO).toString();
|
|
3432
|
+
}
|
|
3433
|
+
if (!message.objectsSkippedCount?.isZero?.()) {
|
|
3434
|
+
obj[pick("objectsSkippedCount", "objects_skipped_count")] = (message.objectsSkippedCount || index_1.Long.ZERO).toString();
|
|
3435
|
+
}
|
|
3436
|
+
if (!message.objectsMigratedSize?.isZero?.()) {
|
|
3437
|
+
obj[pick("objectsMigratedSize", "objects_migrated_size")] = (message.objectsMigratedSize || index_1.Long.ZERO).toString();
|
|
3438
|
+
}
|
|
3439
|
+
if (!message.averageThroughputBytes?.isZero?.()) {
|
|
3440
|
+
obj[pick("averageThroughputBytes", "average_throughput_bytes")] = (message.averageThroughputBytes || index_1.Long.ZERO).toString();
|
|
3441
|
+
}
|
|
3442
|
+
return obj;
|
|
3443
|
+
},
|
|
3444
|
+
create(base) {
|
|
3445
|
+
return exports.TransferIteration.fromPartial(base ?? {});
|
|
3446
|
+
},
|
|
3447
|
+
fromPartial(object) {
|
|
3448
|
+
const message = createBaseTransferIteration();
|
|
3449
|
+
message.sequenceNumber = (object.sequenceNumber !== undefined && object.sequenceNumber !== null)
|
|
3450
|
+
? index_1.Long.fromValue(object.sequenceNumber)
|
|
3451
|
+
: index_1.Long.ZERO;
|
|
3452
|
+
message.state = (object.state !== undefined && object.state !== null)
|
|
3453
|
+
? exports.TransferIteration_State.fromJSON(object.state.name)
|
|
3454
|
+
: exports.TransferIteration_State.STATE_UNSPECIFIED;
|
|
3455
|
+
message.error = (object.error !== undefined && object.error !== null)
|
|
3456
|
+
? object.error
|
|
3457
|
+
: "";
|
|
3458
|
+
message.startTime = (object.startTime !== undefined && object.startTime !== null)
|
|
3459
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromPartial(object.startTime)
|
|
3460
|
+
: undefined;
|
|
3461
|
+
message.endTime = (object.endTime !== undefined && object.endTime !== null)
|
|
3462
|
+
? index_1.wkt[".google.protobuf.Timestamp"].fromPartial(object.endTime)
|
|
3463
|
+
: undefined;
|
|
3464
|
+
message.objectsDiscoveredCount = (object.objectsDiscoveredCount !== undefined && object.objectsDiscoveredCount !== null)
|
|
3465
|
+
? index_1.Long.fromValue(object.objectsDiscoveredCount)
|
|
3466
|
+
: index_1.Long.ZERO;
|
|
3467
|
+
message.objectsMigratedCount = (object.objectsMigratedCount !== undefined && object.objectsMigratedCount !== null)
|
|
3468
|
+
? index_1.Long.fromValue(object.objectsMigratedCount)
|
|
3469
|
+
: index_1.Long.ZERO;
|
|
3470
|
+
message.objectsSkippedCount = (object.objectsSkippedCount !== undefined && object.objectsSkippedCount !== null)
|
|
3471
|
+
? index_1.Long.fromValue(object.objectsSkippedCount)
|
|
3472
|
+
: index_1.Long.ZERO;
|
|
3473
|
+
message.objectsMigratedSize = (object.objectsMigratedSize !== undefined && object.objectsMigratedSize !== null)
|
|
3474
|
+
? index_1.Long.fromValue(object.objectsMigratedSize)
|
|
3475
|
+
: index_1.Long.ZERO;
|
|
3476
|
+
message.averageThroughputBytes = (object.averageThroughputBytes !== undefined && object.averageThroughputBytes !== null)
|
|
3477
|
+
? index_1.Long.fromValue(object.averageThroughputBytes)
|
|
3478
|
+
: index_1.Long.ZERO;
|
|
3479
|
+
return message;
|
|
3480
|
+
},
|
|
3481
|
+
};
|
|
3482
|
+
protobuf_1.protoRegistry.registerMessage(exports.TransferIteration);
|
|
3483
|
+
function TransferIterationCustomInspect() {
|
|
3484
|
+
const parts = [];
|
|
3485
|
+
if (!this.sequenceNumber?.isZero?.())
|
|
3486
|
+
parts.push("sequenceNumber" + "=" + (0, util_1.inspect)(this.sequenceNumber));
|
|
3487
|
+
if (this.state !== undefined)
|
|
3488
|
+
parts.push("state" + "=" + (0, util_1.inspect)(this.state));
|
|
3489
|
+
if (this.error !== "")
|
|
3490
|
+
parts.push("error" + "=" + (0, util_1.inspect)(this.error));
|
|
3491
|
+
if (this.startTime !== undefined)
|
|
3492
|
+
parts.push("startTime" + "=" + (0, util_1.inspect)(this.startTime));
|
|
3493
|
+
if (this.endTime !== undefined)
|
|
3494
|
+
parts.push("endTime" + "=" + (0, util_1.inspect)(this.endTime));
|
|
3495
|
+
if (!this.objectsDiscoveredCount?.isZero?.())
|
|
3496
|
+
parts.push("objectsDiscoveredCount" + "=" + (0, util_1.inspect)(this.objectsDiscoveredCount));
|
|
3497
|
+
if (!this.objectsMigratedCount?.isZero?.())
|
|
3498
|
+
parts.push("objectsMigratedCount" + "=" + (0, util_1.inspect)(this.objectsMigratedCount));
|
|
3499
|
+
if (!this.objectsSkippedCount?.isZero?.())
|
|
3500
|
+
parts.push("objectsSkippedCount" + "=" + (0, util_1.inspect)(this.objectsSkippedCount));
|
|
3501
|
+
if (!this.objectsMigratedSize?.isZero?.())
|
|
3502
|
+
parts.push("objectsMigratedSize" + "=" + (0, util_1.inspect)(this.objectsMigratedSize));
|
|
3503
|
+
if (!this.averageThroughputBytes?.isZero?.())
|
|
3504
|
+
parts.push("averageThroughputBytes" + "=" + (0, util_1.inspect)(this.averageThroughputBytes));
|
|
3505
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
3506
|
+
}
|
|
3507
|
+
function TransferIterationCustomJson() {
|
|
3508
|
+
const obj = {
|
|
3509
|
+
type: this.$type,
|
|
3510
|
+
};
|
|
3511
|
+
if (!this.sequenceNumber?.isZero?.())
|
|
3512
|
+
obj.sequenceNumber = (0, logging_1.inspectJson)(this.sequenceNumber);
|
|
3513
|
+
if (this.state !== undefined)
|
|
3514
|
+
obj.state = (0, logging_1.inspectJson)(this.state);
|
|
3515
|
+
if (this.error !== "")
|
|
3516
|
+
obj.error = (0, logging_1.inspectJson)(this.error);
|
|
3517
|
+
if (this.startTime !== undefined)
|
|
3518
|
+
obj.startTime = (0, logging_1.inspectJson)(this.startTime);
|
|
3519
|
+
if (this.endTime !== undefined)
|
|
3520
|
+
obj.endTime = (0, logging_1.inspectJson)(this.endTime);
|
|
3521
|
+
if (!this.objectsDiscoveredCount?.isZero?.())
|
|
3522
|
+
obj.objectsDiscoveredCount = (0, logging_1.inspectJson)(this.objectsDiscoveredCount);
|
|
3523
|
+
if (!this.objectsMigratedCount?.isZero?.())
|
|
3524
|
+
obj.objectsMigratedCount = (0, logging_1.inspectJson)(this.objectsMigratedCount);
|
|
3525
|
+
if (!this.objectsSkippedCount?.isZero?.())
|
|
3526
|
+
obj.objectsSkippedCount = (0, logging_1.inspectJson)(this.objectsSkippedCount);
|
|
3527
|
+
if (!this.objectsMigratedSize?.isZero?.())
|
|
3528
|
+
obj.objectsMigratedSize = (0, logging_1.inspectJson)(this.objectsMigratedSize);
|
|
3529
|
+
if (!this.averageThroughputBytes?.isZero?.())
|
|
3530
|
+
obj.averageThroughputBytes = (0, logging_1.inspectJson)(this.averageThroughputBytes);
|
|
3531
|
+
return obj;
|
|
3532
|
+
}
|
|
3533
|
+
function applyTransferIterationCustom(message) {
|
|
3534
|
+
message[logging_1.custom] = TransferIterationCustomInspect;
|
|
3535
|
+
message[logging_1.customJson] = TransferIterationCustomJson;
|
|
3536
|
+
return message;
|
|
3537
|
+
}
|
|
3538
|
+
function createBaseTransferIteration() {
|
|
3539
|
+
const message = {
|
|
3540
|
+
$type: "nebius.storage.v1alpha1.TransferIteration",
|
|
3541
|
+
sequenceNumber: index_1.Long.ZERO,
|
|
3542
|
+
state: exports.TransferIteration_State.STATE_UNSPECIFIED,
|
|
3543
|
+
error: "",
|
|
3544
|
+
startTime: undefined,
|
|
3545
|
+
endTime: undefined,
|
|
3546
|
+
objectsDiscoveredCount: index_1.Long.ZERO,
|
|
3547
|
+
objectsMigratedCount: index_1.Long.ZERO,
|
|
3548
|
+
objectsSkippedCount: index_1.Long.ZERO,
|
|
3549
|
+
objectsMigratedSize: index_1.Long.ZERO,
|
|
3550
|
+
averageThroughputBytes: index_1.Long.ZERO,
|
|
3551
|
+
};
|
|
3552
|
+
return applyTransferIterationCustom(message);
|
|
3553
|
+
}
|
|
3554
|
+
//# sourceMappingURL=index.js.map
|