File: //snap/google-cloud-cli/394/lib/surface/metastore/services/databases/tables/set_iam_policy.yaml
release_tracks: [ALPHA, BETA]
help_text:
brief: Set the IAM policy for a table.
description: |
Sets the IAM policy for the given table as defined in a JSON or YAML file.
See https://cloud.google.com/iam/docs/managing-policies for details of
the policy file format and contents.
examples: |
The following command will read an IAM policy defined in a JSON file
'policy.json' and set it for the table 'my-table':
$ {command} my-table policy.json
request:
collection: metastore.projects.locations.services.databases.tables
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
iam:
enable_condition: false
policy_version: 0
get_iam_policy_version_path: options.requestedPolicyVersion
arguments:
resource:
help_text: Table for which to display the IAM policy.
spec: !REF googlecloudsdk.command_lib.metastore.resources:table