release_tracks: [GA, BETA]

help_text:
  brief: Remove an IAM policy binding from a Compute Engine backend bucket.
  description: |
    Remove an IAM policy binding from a Compute Engine backend bucket.

  examples: |
    To remove an IAM policy binding for the role of 'roles/compute.loadBalancerServiceUser'
    for the user 'test-user@gmail.com' with backend bucket 'my-backend-bucket' run:

      $ {command} my-backend-bucket --member='user:test-user@gmail.com' --role='roles/compute.loadBalancerServiceUser'

    See https://cloud.google.com/iam/docs/managing-policies for details of
    policy role and member types.

request:
  collection: compute.backendBuckets
  use_relative_name: false
  api_version: v1
  BETA:
    api_version: beta
  ALPHA:
    api_version: alpha

iam:
  set_iam_policy_request_path: globalSetPolicyRequest
  message_type_overrides:
    policy: Policy
    set_iam_policy_request: ComputeBackendBucketsSetIamPolicyRequest

arguments:
  resource:
    help_text: The backend bucket for which to remove the IAM policy from.
    spec: !REF googlecloudsdk.command_lib.compute.resources:backend_bucket
    override_resource_collection: true
