File: //snap/google-cloud-cli/current/lib/surface/bigtable/schema_bundles/update.yaml
- release_tracks: [GA, BETA, ALPHA]
hidden: true # TODO(b/420436006): unhide the CLI for GA.
help_text:
brief: Update an existing Bigtable schema bundle.
description: Update an existing Bigtable schema bundle.
examples: |
To update a schema bundle `my-schema-bundle` in instance `my-instance` and table
`my-table`, using the descriptor file `my-descriptor-file.pb`:
$ {command} my-schema-bundle --instance=my-instance --table=my-table --proto-descriptors-file=my-descriptor-file.pb
request:
collection: bigtableadmin.projects.instances.tables.schemaBundles
method: patch
modify_request_hooks:
- googlecloudsdk.api_lib.bigtable.schema_bundles:ModifyUpdateSchemaBundleRequest
arguments:
resource:
help_text: Bigtable schema bundle to update.
spec: !REF googlecloudsdk.command_lib.bigtable.resources:schema_bundle
params:
- arg_name: proto-descriptors-file
api_field: schemaBundle.protoSchema.protoDescriptors
required: true
help_text: |
Path of a file that contains a protobuf-serialized `google.protobuf.FileDescriptorSet` message. If specified, the schema bundle contains the protobuf schema.
To generate the file, install and run `protoc` with the following command:
protoc --proto_path=IMPORT_PATH --include_imports --descriptor_set_out=DESCRIPTOR_OUTPUT_LOCATION path/to/file.proto
where the --proto_path option specificies where to look for .proto files when resolving import directives (the current directory is used if you do not provide a value),
and the --descriptor_set_out option specifies where you want the generated FileDescriptorSet to be written.
- arg_name: ignore-warnings
type: bool
default: false
help_text: |
If true, backwards incompatible changes will be allowed.
async:
collection: bigtableadmin.operations