release_tracks: [BETA]
help_text:
  brief: Set the IAM policy for a BeyondCorp client connector service (Deprecated).
  description: Sets the IAM policy for the given BeyondCorp client connector service.
  examples: |
    The following command will read an IAM policy defined in a JSON file
    'policy.json' and set it for the client connector service with ID ``my-service-resource'':

      $ {command} my-service-resource policy.json

request:
  collection: beyondcorp.projects.locations.clientConnectorServices
  BETA:
    api_version: v1

iam:
  set_iam_policy_request_path: googleIamV1SetIamPolicyRequest
  message_type_overrides:
    policy: GoogleIamV1Policy
    set_iam_policy_request: BeyondcorpProjectsLocationsClientConnectorServicesSetIamPolicyRequest

arguments:
  resource:
    help_text: The BeyondCorp client connector service for which to set the IAM policy.
    spec: !REF googlecloudsdk.command_lib.beyondcorp.client_connector.resources:client_connector_service
