HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/surface/network_connectivity/hubs/remove_iam_policy_binding.yaml
- release_tracks: [BETA]

  help_text:
    brief: Remove an IAM policy binding from the IAM policy of a hub resource.
    description: |
      Remove an IAM policy binding from the IAM policy of a hub resource.
    examples: |
      To remove the ``roles/networkconnectivity.groupUser'' role from a user of the hub ``my-hub'',
      run:

      $ {command} my-hub --member="user:username@gmail.com" --role="roles/networkconnectivity.groupUser"

  request:
    collection: networkconnectivity.projects.locations.global.hubs
    api_version: v1beta

  arguments:
    resource:
      help_text: The hub that you want to update.
      spec: !REF googlecloudsdk.command_lib.network_connectivity.resources:hub

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

- release_tracks: [GA]

  help_text:
    brief: Remove an IAM policy binding from the IAM policy of a hub resource.
    description: |
      Remove an IAM policy binding from the IAM policy of a hub resource.
    examples: |
      To remove the ``roles/networkconnectivity.groupUser'' role from a user of the hub ``my-hub'',
      run:

      $ {command} my-hub --member="user:username@gmail.com" --role="roles/networkconnectivity.groupUser"

  request:
    collection: networkconnectivity.projects.locations.global.hubs
    api_version: v1

  arguments:
    resource:
      help_text: The hub that you want to update.
      spec: !REF googlecloudsdk.command_lib.network_connectivity.resources:hub