File: //snap/google-cloud-cli/394/lib/surface/compute/storage_pools/set_iam_policy.yaml
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: "Set the IAM policy of the given storage pool."
description: "Set the IAM policy of the given storage pool."
examples: |
The following command sets the IAM configuration of the specified
storage pool with the specified policy file.
$ {command} my-storage-pool policy.json
request:
ALPHA:
api_version: alpha
BETA:
api_version: beta
GA:
api_version: v1
collection: compute.storagePools
use_relative_name: false
modify_request_hooks:
- googlecloudsdk.command_lib.iam.hooks:UseMaxRequestedPolicyVersion:api_field=zoneSetPolicyRequest.policy.version
method: setIamPolicy
arguments:
resource:
help_text: Storage pool you want to get the IAM permissions of.
spec: !REF googlecloudsdk.command_lib.compute.resources:storage_pool
iam:
set_iam_policy_request_path: zoneSetPolicyRequest
message_type_overrides:
policy: Policy
set_iam_policy_request: ComputeStoragePoolsSetIamPolicyRequest