# Class GkeHubClient (1.25.0)

1.25.0 (latest) 1.24.0 1.23.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.3 1.16.0 1.15.1 1.14.2 1.13.1 1.12.1 1.11.0 1.10.2 1.9.0 1.8.1 1.7.1 1.6.0 1.5.3 1.4.3 1.3.0 1.2.0 1.1.0 1.0.0 0.2.2 0.1.2

    GkeHubClient(
        *,
        credentials: typing.Optional[google.auth.credentials.Credentials] = None,
        transport: typing.Optional[
            typing.Union[
                str,
                google.cloud.gkehub_v1.services.gke_hub.transports.base.GkeHubTransport,
                typing.Callable[
                    [...],
                    google.cloud.gkehub_v1.services.gke_hub.transports.base.GkeHubTransport,
                ],
            ]
        ] = None,
        client_options: typing.Optional[
            typing.Union[google.api_core.client_options.ClientOptions, dict]
        ] = None,
        client_info: google.api_core.gapic_v1.client_info.ClientInfo = google.api_core.gapic_v1.client_info.ClientInfo
    )

The GKE Hub service handles the registration of many Kubernetes
clusters to Google Cloud, and the management of multi-cluster
features over those clusters.

The GKE Hub service operates on the following resources:

- Membership
- Feature

GKE Hub is currently available in the global region and all regions
in <https://cloud.google.com/compute/docs/regions-zones>. Feature is
only available in global region while membership is global region
and all the regions.

**Membership management may be non-trivial:** it is recommended to
use one of the Google-provided client libraries or tools where
possible when working with Membership resources.

## Properties

### api_endpoint

Return the API endpoint used by the client instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `str` | The API endpoint used by the client instance. |

### transport

Returns the transport used by the client instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GkeHubTransport` | The transport used by the client instance. |

### universe_domain

Return the universe domain used by the client instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `str` | The universe domain used by the client instance. |

## Methods

### GkeHubClient

    GkeHubClient(
        *,
        credentials: typing.Optional[google.auth.credentials.Credentials] = None,
        transport: typing.Optional[
            typing.Union[
                str,
                google.cloud.gkehub_v1.services.gke_hub.transports.base.GkeHubTransport,
                typing.Callable[
                    [...],
                    google.cloud.gkehub_v1.services.gke_hub.transports.base.GkeHubTransport,
                ],
            ]
        ] = None,
        client_options: typing.Optional[
            typing.Union[google.api_core.client_options.ClientOptions, dict]
        ] = None,
        client_info: google.api_core.gapic_v1.client_info.ClientInfo = google.api_core.gapic_v1.client_info.ClientInfo
    )

Instantiates the gke hub client.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `credentials` | `Optional[google.auth.credentials.Credentials]` The authorization credentials to attach to requests. These credentials identify the application to the service; if none are specified, the client will attempt to ascertain the credentials from the environment. |
| `transport` | `Optional[Union[str,GkeHubTransport,Callable[..., GkeHubTransport]]]` The transport to use, or a Callable that constructs and returns a new transport. If a Callable is given, it will be called with the same set of initialization arguments as used in the GkeHubTransport constructor. If set to None, a transport is chosen automatically. |
| `client_options` | `Optional[Union[google.api_core.client_options.ClientOptions, dict]]` Custom options for the client. 1. The `api_endpoint` property can be used to override the default endpoint provided by the client when `transport` is not explicitly provided. Only if this property is not set and `transport` was not explicitly provided, the endpoint is determined by the GOOGLE_API_USE_MTLS_ENDPOINT environment variable, which have one of the following values: "always" (always use the default mTLS endpoint), "never" (always use the default regular endpoint) and "auto" (auto-switch to the default mTLS endpoint if client certificate is present; this is the default value). 2. If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is "true", then the `client_cert_source` property can be used to provide a client certificate for mTLS transport. If not provided, the default SSL client certificate will be used if present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is "false" or not set, no client certificate will be used. 3. The `universe_domain` property can be used to override the default "googleapis.com" universe. Note that the `api_endpoint` property still takes precedence; and `universe_domain` is currently not supported for mTLS. |
| `client_info` | `google.api_core.gapic_v1.client_info.ClientInfo` The client info used to send a user-agent string along with API requests. If `None`, then default info will be used. Generally, you only need to set this if you're developing your own client library. |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `google.auth.exceptions.MutualTLSChannelError` | If mutual TLS transport creation failed for any reason. |

### __exit__

    __exit__(type, value, traceback)

Releases underlying transport's resources.

> [!WARNING]
> **Warning:** ONLY use as a context manager if the transport is NOT shared with other clients! Exiting the with block will CLOSE the transport and may cause errors in other clients!

### common_billing_account_path

    common_billing_account_path(billing_account: str) -> str

Returns a fully-qualified billing_account string.

### common_folder_path

    common_folder_path(folder: str) -> str

Returns a fully-qualified folder string.

### common_location_path

    common_location_path(project: str, location: str) -> str

Returns a fully-qualified location string.

### common_organization_path

    common_organization_path(organization: str) -> str

Returns a fully-qualified organization string.

### common_project_path

    common_project_path(project: str) -> str

Returns a fully-qualified project string.

### create_feature

    create_feature(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.CreateFeatureRequest, dict]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        resource: typing.Optional[google.cloud.gkehub_v1.types.feature.Feature] = None,
        feature_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Adds a new Feature.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_create_feature():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateFeatureRequest.html(
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_create_feature(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateFeatureRequest, dict]` The request object. Request message for the `GkeHub.CreateFeature` method. |
| `parent` | `str` Required. The parent (project and location) where the Feature will be created. Specified in the format `projects//locations/`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `resource` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Feature` The Feature resource to create. This corresponds to the `resource` field on the `request` instance; if `request` is provided, this should not be set. |
| `feature_id` | `str` The ID of the feature to create. This corresponds to the `feature_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Feature](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Feature) Feature represents the settings and status of any Fleet Feature. |

### create_fleet

    create_fleet(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.CreateFleetRequest, dict]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        fleet: typing.Optional[google.cloud.gkehub_v1.types.fleet.Fleet] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a fleet.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_create_fleet():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateFleetRequest.html(
            parent="parent_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_create_fleet(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateFleetRequest, dict]` The request object. Request message for the `GkeHub.CreateFleet` method. |
| `parent` | `str` Required. The parent (project and location) where the Fleet will be created. Specified in the format `projects//locations/`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `fleet` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Fleet` Required. The fleet to create. This corresponds to the `fleet` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Fleet](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Fleet) Fleet contains the Fleet-wide metadata and configuration. |

### create_membership

    create_membership(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.CreateMembershipRequest, dict]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        resource: typing.Optional[
            google.cloud.gkehub_v1.types.membership.Membership
        ] = None,
        membership_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a new Membership.

**This is currently only supported for GKE clusters on Google
Cloud** . To register other clusters, follow the instructions at
<https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster>.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_create_membership():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateMembershipRequest.html(
            parent="parent_value",
            membership_id="membership_id_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_create_membership(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateMembershipRequest, dict]` The request object. Request message for the `GkeHub.CreateMembership` method. |
| `parent` | `str` Required. The parent (project and location) where the Memberships will be created. Specified in the format `projects//locations/`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `resource` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Membership` Required. The membership to create. This corresponds to the `resource` field on the `request` instance; if `request` is provided, this should not be set. |
| `membership_id` | `str` Required. Client chosen ID for the membership. `membership_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/[-a-z0-9]*[a-z0-9]?`, with a maximum length of 63 characters. This corresponds to the `membership_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Membership](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Membership) Membership contains information about a member cluster. |

### create_membership_binding

    create_membership_binding(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.CreateMembershipBindingRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        membership_binding: typing.Optional[
            google.cloud.gkehub_v1.types.fleet.MembershipBinding
        ] = None,
        membership_binding_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a MembershipBinding.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_create_membership_binding():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        membership_binding = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.MembershipBinding.html()
        membership_binding.scope = "scope_value"

        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateMembershipBindingRequest.html(
            parent="parent_value",
            membership_binding=membership_binding,
            membership_binding_id="membership_binding_id_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_create_membership_binding(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateMembershipBindingRequest, dict]` The request object. Request to create a MembershipBinding. |
| `parent` | `str` Required. The parent (project and location) where the MembershipBinding will be created. Specified in the format `projects//locations//memberships/*`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `membership_binding` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.MembershipBinding` Required. The MembershipBinding to create. This corresponds to the `membership_binding` field on the `request` instance; if `request` is provided, this should not be set. |
| `membership_binding_id` | `str` Required. The ID to use for the MembershipBinding. This corresponds to the `membership_binding_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [MembershipBinding](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.MembershipBinding) MembershipBinding is a subresource of a Membership, representing what Fleet Scopes (or other, future Fleet resources) a Membership is bound to. |

### create_membership_rbac_role_binding

    create_membership_rbac_role_binding(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.CreateMembershipRBACRoleBindingRequest,
                dict,
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        rbacrolebinding: typing.Optional[
            google.cloud.gkehub_v1.types.fleet.RBACRoleBinding
        ] = None,
        rbacrolebinding_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a Membership RBACRoleBinding.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_create_membership_rbac_role_binding():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        rbacrolebinding = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding.html()
        rbacrolebinding.user = "user_value"

        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateMembershipRBACRoleBindingRequest.html(
            parent="parent_value",
            rbacrolebinding_id="rbacrolebinding_id_value",
            rbacrolebinding=rbacrolebinding,
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_create_membership_rbac_role_binding(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateMembershipRBACRoleBindingRequest, dict]` The request object. Request to create a rbacrolebindings. |
| `parent` | `str` Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects//locations//memberships/*`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `rbacrolebinding` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding` Required. The rbacrolebindings to create. This corresponds to the `rbacrolebinding` field on the `request` instance; if `request` is provided, this should not be set. |
| `rbacrolebinding_id` | `str` Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/[-a-z0-9]*[a-z0-9]?`, with a maximum length of 63 characters. This corresponds to the `rbacrolebinding_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [RBACRoleBinding](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding) RBACRoleBinding represents a rbacrolebinding across the Fleet |

### create_scope

    create_scope(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.CreateScopeRequest, dict]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        scope: typing.Optional[google.cloud.gkehub_v1.types.fleet.Scope] = None,
        scope_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a Scope.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_create_scope():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateScopeRequest.html(
            parent="parent_value",
            scope_id="scope_id_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_create_scope(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateScopeRequest, dict]` The request object. Request to create a Scope. |
| `parent` | `str` Required. The parent (project and location) where the Scope will be created. Specified in the format `projects//locations/`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `scope` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Scope` Required. The Scope to create. This corresponds to the `scope` field on the `request` instance; if `request` is provided, this should not be set. |
| `scope_id` | `str` Required. Client chosen ID for the Scope. `scope_id` must be a ???? This corresponds to the `scope_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Scope](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Scope) Scope represents a Scope in a Fleet. |

### create_scope_namespace

    create_scope_namespace(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.CreateScopeNamespaceRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        scope_namespace: typing.Optional[
            google.cloud.gkehub_v1.types.fleet.Namespace
        ] = None,
        scope_namespace_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a fleet namespace.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_create_scope_namespace():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        scope_namespace = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Namespace.html()
        scope_namespace.scope = "scope_value"

        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateScopeNamespaceRequest.html(
            parent="parent_value",
            scope_namespace_id="scope_namespace_id_value",
            scope_namespace=scope_namespace,
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_create_scope_namespace(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateScopeNamespaceRequest, dict]` The request object. Request to create a fleet namespace. |
| `parent` | `str` Required. The parent (project and location) where the Namespace will be created. Specified in the format `projects//locations//scopes/*`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `scope_namespace` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Namespace` Required. The fleet namespace to create. This corresponds to the `scope_namespace` field on the `request` instance; if `request` is provided, this should not be set. |
| `scope_namespace_id` | `str` Required. Client chosen ID for the Namespace. `namespace_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/[-a-z0-9]*[a-z0-9]?`, with a maximum length of 63 characters. This corresponds to the `scope_namespace_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Namespace](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Namespace) Namespace represents a namespace across the Fleet |

### create_scope_rbac_role_binding

    create_scope_rbac_role_binding(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.CreateScopeRBACRoleBindingRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        rbacrolebinding: typing.Optional[
            google.cloud.gkehub_v1.types.fleet.RBACRoleBinding
        ] = None,
        rbacrolebinding_id: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Creates a Scope RBACRoleBinding.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_create_scope_rbac_role_binding():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        rbacrolebinding = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding.html()
        rbacrolebinding.user = "user_value"

        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateScopeRBACRoleBindingRequest.html(
            parent="parent_value",
            rbacrolebinding_id="rbacrolebinding_id_value",
            rbacrolebinding=rbacrolebinding,
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_create_scope_rbac_role_binding(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CreateScopeRBACRoleBindingRequest, dict]` The request object. Request to create a rbacrolebindings. |
| `parent` | `str` Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects//locations//scopes/*`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `rbacrolebinding` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding` Required. The rbacrolebindings to create. This corresponds to the `rbacrolebinding` field on the `request` instance; if `request` is provided, this should not be set. |
| `rbacrolebinding_id` | `str` Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/[-a-z0-9]*[a-z0-9]?`, with a maximum length of 63 characters. This corresponds to the `rbacrolebinding_id` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [RBACRoleBinding](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding) RBACRoleBinding represents a rbacrolebinding across the Fleet |

### delete_feature

    delete_feature(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.DeleteFeatureRequest, dict]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Removes a Feature.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_delete_feature():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteFeatureRequest.html(
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_delete_feature(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteFeatureRequest, dict]` The request object. Request message for `GkeHub.DeleteFeature` method. |
| `name` | `str` Required. The Feature resource name in the format `projects//locations//features/*`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_fleet

    delete_fleet(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.DeleteFleetRequest, dict]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Removes a Fleet. There must be no memberships
remaining in the Fleet.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_delete_fleet():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteFleetRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_delete_fleet(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteFleetRequest, dict]` The request object. Request message for `GkeHub.DeleteFleet` method. |
| `name` | `str` Required. The Fleet resource name in the format `projects//locations//fleets/*`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_membership

    delete_membership(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.DeleteMembershipRequest, dict]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Removes a Membership.

**This is currently only supported for GKE clusters on Google
Cloud** . To unregister other clusters, follow the instructions
at
<https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster>.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_delete_membership():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteMembershipRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_delete_membership(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteMembershipRequest, dict]` The request object. Request message for `GkeHub.DeleteMembership` method. |
| `name` | `str` Required. The Membership resource name in the format `projects//locations//memberships/*`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_membership_binding

    delete_membership_binding(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.DeleteMembershipBindingRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Deletes a MembershipBinding.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_delete_membership_binding():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteMembershipBindingRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_delete_membership_binding(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteMembershipBindingRequest, dict]` The request object. Request to delete a Binding. |
| `name` | `str` Required. The MembershipBinding resource name in the format `projects//locations//memberships//bindings/`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_membership_rbac_role_binding

    delete_membership_rbac_role_binding(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.DeleteMembershipRBACRoleBindingRequest,
                dict,
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Deletes a Membership RBACRoleBinding.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_delete_membership_rbac_role_binding():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteMembershipRBACRoleBindingRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_delete_membership_rbac_role_binding(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteMembershipRBACRoleBindingRequest, dict]` The request object. Request to delete a Membership RBACRoleBinding. |
| `name` | `str` Required. The RBACRoleBinding resource name in the format `projects//locations//memberships//rbacrolebindings/`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_scope

    delete_scope(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.DeleteScopeRequest, dict]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Deletes a Scope.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_delete_scope():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteScopeRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_delete_scope(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteScopeRequest, dict]` The request object. Request to delete a Scope. |
| `name` | `str` Required. The Scope resource name in the format `projects//locations//scopes/*`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_scope_namespace

    delete_scope_namespace(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.DeleteScopeNamespaceRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Deletes a fleet namespace.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_delete_scope_namespace():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteScopeNamespaceRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_delete_scope_namespace(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteScopeNamespaceRequest, dict]` The request object. Request to delete a fleet namespace. |
| `name` | `str` Required. The Namespace resource name in the format `projects//locations//scopes//namespaces/`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### delete_scope_rbac_role_binding

    delete_scope_rbac_role_binding(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.DeleteScopeRBACRoleBindingRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Deletes a Scope RBACRoleBinding.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_delete_scope_rbac_role_binding():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteScopeRBACRoleBindingRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_delete_scope_rbac_role_binding(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.DeleteScopeRBACRoleBindingRequest, dict]` The request object. Request to delete a Scope RBACRoleBinding. |
| `name` | `str` Required. The RBACRoleBinding resource name in the format `projects//locations//scopes//rbacrolebindings/`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be `google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |

### feature_path

    feature_path(project: str, location: str, feature: str) -> str

Returns a fully-qualified feature string.

### fleet_path

    fleet_path(project: str, location: str, fleet: str) -> str

Returns a fully-qualified fleet string.

### from_service_account_file

    from_service_account_file(filename: str, *args, **kwargs)

Creates an instance of this client using the provided credentials
file.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `filename` | `str` The path to the service account private key json file. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GkeHubClient` | The constructed client. |

### from_service_account_info

    from_service_account_info(info: dict, *args, **kwargs)

Creates an instance of this client using the provided credentials
info.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `info` | `dict` The service account private key info. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GkeHubClient` | The constructed client. |

### from_service_account_json

    from_service_account_json(filename: str, *args, **kwargs)

Creates an instance of this client using the provided credentials
file.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `filename` | `str` The path to the service account private key json file. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GkeHubClient` | The constructed client. |

### generate_connect_manifest

    generate_connect_manifest(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.GenerateConnectManifestRequest, dict
            ]
        ] = None,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.types.service.GenerateConnectManifestResponse

Generates the manifest for deployment of the GKE connect agent.

**This method is used internally by Google-provided libraries.**
Most clients should not need to call this method directly.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_generate_connect_manifest():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GenerateConnectManifestRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_generate_connect_manifest(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GenerateConnectManifestRequest, dict]` The request object. Request message for `GkeHub.GenerateConnectManifest` method. . |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GenerateConnectManifestResponse` | GenerateConnectManifestResponse contains manifest information for installing/upgrading a Connect agent. |

### generate_membership_rbac_role_binding_yaml

    generate_membership_rbac_role_binding_yaml(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.GenerateMembershipRBACRoleBindingYAMLRequest,
                dict,
            ]
        ] = None,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.types.service.GenerateMembershipRBACRoleBindingYAMLResponse

Generates a YAML of the RBAC policies for the
specified RoleBinding and its associated impersonation
resources.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_generate_membership_rbac_role_binding_yaml():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        rbacrolebinding = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding.html()
        rbacrolebinding.user = "user_value"

        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GenerateMembershipRBACRoleBindingYAMLRequest.html(
            parent="parent_value",
            rbacrolebinding_id="rbacrolebinding_id_value",
            rbacrolebinding=rbacrolebinding,
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_generate_membership_rbac_role_binding_yaml(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GenerateMembershipRBACRoleBindingYAMLRequest, dict]` The request object. Request to generate a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GenerateMembershipRBACRoleBindingYAMLResponse` | Response for GenerateRBACRoleBindingYAML. |

### get_feature

    get_feature(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.GetFeatureRequest, dict]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.types.feature.Feature

Gets details of a single Feature.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_get_feature():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetFeatureRequest.html(
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_get_feature(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetFeatureRequest, dict]` The request object. Request message for `GkeHub.GetFeature` method. |
| `name` | `str` Required. The Feature resource name in the format `projects//locations//features/*` This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Feature` | Feature represents the settings and status of any Fleet Feature. |

### get_fleet

    get_fleet(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.GetFleetRequest, dict]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.types.fleet.Fleet

Returns the details of a fleet.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_get_fleet():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetFleetRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_get_fleet(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetFleetRequest, dict]` The request object. Request message for the `GkeHub.GetFleet` method. |
| `name` | `str` Required. The Fleet resource name in the format `projects//locations//fleets/*`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Fleet` | Fleet contains the Fleet-wide metadata and configuration. |

### get_membership

    get_membership(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.GetMembershipRequest, dict]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.types.membership.Membership

Gets the details of a Membership.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_get_membership():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetMembershipRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_get_membership(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetMembershipRequest, dict]` The request object. Request message for `GkeHub.GetMembership` method. |
| `name` | `str` Required. The Membership resource name in the format `projects//locations//memberships/*`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Membership` | Membership contains information about a member cluster. |

### get_membership_binding

    get_membership_binding(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.GetMembershipBindingRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.types.fleet.MembershipBinding

Returns the details of a MembershipBinding.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_get_membership_binding():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetMembershipBindingRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_get_membership_binding(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetMembershipBindingRequest, dict]` The request object. Request message for the `GkeHub.GetMembershipBinding` method. |
| `name` | `str` Required. The MembershipBinding resource name in the format `projects//locations//memberships//bindings/`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.MembershipBinding` | MembershipBinding is a subresource of a Membership, representing what Fleet Scopes (or other, future Fleet resources) a Membership is bound to. |

### get_membership_rbac_role_binding

    get_membership_rbac_role_binding(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.GetMembershipRBACRoleBindingRequest,
                dict,
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.types.fleet.RBACRoleBinding

Returns the details of a Membership RBACRoleBinding.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_get_membership_rbac_role_binding():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetMembershipRBACRoleBindingRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_get_membership_rbac_role_binding(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetMembershipRBACRoleBindingRequest, dict]` The request object. Request message for the `GkeHub.GetMembershipRBACRoleBinding` method. |
| `name` | `str` Required. The RBACRoleBinding resource name in the format `projects//locations//memberships//rbacrolebindings/`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding` | RBACRoleBinding represents a rbacrolebinding across the Fleet |

### get_mtls_endpoint_and_cert_source

    get_mtls_endpoint_and_cert_source(
        client_options: typing.Optional[
            google.api_core.client_options.ClientOptions
        ] = None,
    )

Deprecated. Return the API endpoint and client cert source for mutual TLS.

The client cert source is determined in the following order:
(1) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is not "true", the
client cert source is None.
(2) if `client_options.client_cert_source` is provided, use the provided one; if the
default client cert source exists, use the default one; otherwise the client cert
source is None.

The API endpoint is determined in the following order:
(1) if `client_options.api_endpoint` if provided, use the provided one.
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
default mTLS endpoint; if the environment variable is "never", use the default API
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
use the default API endpoint.

More details can be found at <https://google.aip.dev/auth/4114>.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `client_options` | `google.api_core.client_options.ClientOptions` Custom options for the client. Only the `api_endpoint` and `client_cert_source` properties may be used in this method. |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `google.auth.exceptions.MutualTLSChannelError` | If any errors happen. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Tuple[str, Callable[[], Tuple[bytes, bytes]]]` | returns the API endpoint and the client cert source to use. |

### get_scope

    get_scope(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.GetScopeRequest, dict]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.types.fleet.Scope

Returns the details of a Scope.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_get_scope():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetScopeRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_get_scope(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetScopeRequest, dict]` The request object. Request message for the `GkeHub.GetScope` method. |
| `name` | `str` Required. The Scope resource name in the format `projects//locations//scopes/*`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Scope` | Scope represents a Scope in a Fleet. |

### get_scope_namespace

    get_scope_namespace(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.GetScopeNamespaceRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.types.fleet.Namespace

Returns the details of a fleet namespace.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_get_scope_namespace():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetScopeNamespaceRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_get_scope_namespace(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetScopeNamespaceRequest, dict]` The request object. Request message for the `GkeHub.GetNamespace` method. |
| `name` | `str` Required. The Namespace resource name in the format `projects//locations//scopes//namespaces/`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Namespace` | Namespace represents a namespace across the Fleet |

### get_scope_rbac_role_binding

    get_scope_rbac_role_binding(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.GetScopeRBACRoleBindingRequest, dict
            ]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.types.fleet.RBACRoleBinding

Returns the details of a Scope RBACRoleBinding.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_get_scope_rbac_role_binding():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetScopeRBACRoleBindingRequest.html(
            name="name_value",
        )

        # Make the request
        response = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_get_scope_rbac_role_binding(request=request)

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.GetScopeRBACRoleBindingRequest, dict]` The request object. Request message for the `GkeHub.GetScopeRBACRoleBinding` method. |
| `name` | `str` Required. The RBACRoleBinding resource name in the format `projects//locations//scopes//rbacrolebindings/`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding` | RBACRoleBinding represents a rbacrolebinding across the Fleet |

### list_bound_memberships

    list_bound_memberships(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.ListBoundMembershipsRequest, dict
            ]
        ] = None,
        *,
        scope_name: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.services.gke_hub.pagers.ListBoundMembershipsPager

Lists Memberships bound to a Scope. The response
includes relevant Memberships from all regions.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_list_bound_memberships():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListBoundMembershipsRequest.html(
            scope_name="scope_name_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_list_bound_memberships(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListBoundMembershipsRequest, dict]` The request object. Request to list Memberships bound to a Scope. |
| `scope_name` | `str` Required. Name of the Scope, in the format `projects//locations/global/scopes/`, to which the Memberships are bound. This corresponds to the `scope_name` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.pagers.ListBoundMembershipsPager` | List of Memberships bound to a Scope. Iterating over this object will yield results and resolve additional pages automatically. |

### list_features

    list_features(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.ListFeaturesRequest, dict]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.services.gke_hub.pagers.ListFeaturesPager

Lists Features in a given project and location.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_list_features():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListFeaturesRequest.html(
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_list_features(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListFeaturesRequest, dict]` The request object. Request message for `GkeHub.ListFeatures` method. |
| `parent` | `str` Required. The parent (project and location) where the Features will be listed. Specified in the format `projects//locations/`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.pagers.ListFeaturesPager` | Response message for the GkeHub.ListFeatures method. Iterating over this object will yield results and resolve additional pages automatically. |

### list_fleets

    list_fleets(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.ListFleetsRequest, dict]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.services.gke_hub.pagers.ListFleetsPager

Returns all fleets within an organization or a
project that the caller has access to.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_list_fleets():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListFleetsRequest.html(
            parent="parent_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_list_fleets(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListFleetsRequest, dict]` The request object. Request message for the `GkeHub.ListFleets` method. |
| `parent` | `str` Required. The organization or project to list for Fleets under, in the format `organizations//locations/` or `projects//locations/`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.pagers.ListFleetsPager` | Response message for the GkeHub.ListFleetsResponse method. Iterating over this object will yield results and resolve additional pages automatically. |

### list_membership_bindings

    list_membership_bindings(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.ListMembershipBindingsRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.services.gke_hub.pagers.ListMembershipBindingsPager

Lists MembershipBindings.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_list_membership_bindings():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListMembershipBindingsRequest.html(
            parent="parent_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_list_membership_bindings(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListMembershipBindingsRequest, dict]` The request object. Request to list MembershipBinding. |
| `parent` | `str` Required. The parent Membership for which the MembershipBindings will be listed. Specified in the format `projects//locations//memberships/*`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.pagers.ListMembershipBindingsPager` | List of MembershipBindings. Iterating over this object will yield results and resolve additional pages automatically. |

### list_membership_rbac_role_bindings

    list_membership_rbac_role_bindings(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.ListMembershipRBACRoleBindingsRequest,
                dict,
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.services.gke_hub.pagers.ListMembershipRBACRoleBindingsPager

Lists all Membership RBACRoleBindings.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_list_membership_rbac_role_bindings():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListMembershipRBACRoleBindingsRequest.html(
            parent="parent_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_list_membership_rbac_role_bindings(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListMembershipRBACRoleBindingsRequest, dict]` The request object. Request to list Membership RBACRoleBindings. |
| `parent` | `str` Required. The parent (project and location) where the Features will be listed. Specified in the format `projects//locations//memberships/*`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.pagers.ListMembershipRBACRoleBindingsPager` | List of Membership RBACRoleBindings. Iterating over this object will yield results and resolve additional pages automatically. |

### list_memberships

    list_memberships(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.ListMembershipsRequest, dict]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.services.gke_hub.pagers.ListMembershipsPager

Lists Memberships in a given project and location.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_list_memberships():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListMembershipsRequest.html(
            parent="parent_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_list_memberships(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListMembershipsRequest, dict]` The request object. Request message for `GkeHub.ListMemberships` method. |
| `parent` | `str` Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects//locations/`. `projects/*/locations/-` list memberships in all the regions. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.pagers.ListMembershipsPager` | Response message for the GkeHub.ListMemberships method. Iterating over this object will yield results and resolve additional pages automatically. |

### list_permitted_scopes

    list_permitted_scopes(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.ListPermittedScopesRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.services.gke_hub.pagers.ListPermittedScopesPager

Lists permitted Scopes.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_list_permitted_scopes():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListPermittedScopesRequest.html(
            parent="parent_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_list_permitted_scopes(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListPermittedScopesRequest, dict]` The request object. Request to list permitted Scopes. |
| `parent` | `str` Required. The parent (project and location) where the Scope will be listed. Specified in the format `projects//locations/`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.pagers.ListPermittedScopesPager` | List of permitted Scopes. Iterating over this object will yield results and resolve additional pages automatically. |

### list_scope_namespaces

    list_scope_namespaces(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.ListScopeNamespacesRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.services.gke_hub.pagers.ListScopeNamespacesPager

Lists fleet namespaces.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_list_scope_namespaces():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListScopeNamespacesRequest.html(
            parent="parent_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_list_scope_namespaces(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListScopeNamespacesRequest, dict]` The request object. Request to list fleet namespaces. |
| `parent` | `str` Required. The parent (project and location) where the Features will be listed. Specified in the format `projects//locations//scopes/*`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.pagers.ListScopeNamespacesPager` | List of fleet namespaces. Iterating over this object will yield results and resolve additional pages automatically. |

### list_scope_rbac_role_bindings

    list_scope_rbac_role_bindings(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.ListScopeRBACRoleBindingsRequest, dict
            ]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.services.gke_hub.pagers.ListScopeRBACRoleBindingsPager

Lists all Scope RBACRoleBindings.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_list_scope_rbac_role_bindings():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListScopeRBACRoleBindingsRequest.html(
            parent="parent_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_list_scope_rbac_role_bindings(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListScopeRBACRoleBindingsRequest, dict]` The request object. Request to list Scope RBACRoleBindings. |
| `parent` | `str` Required. The parent (project and location) where the Features will be listed. Specified in the format `projects//locations//scopes/*`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.pagers.ListScopeRBACRoleBindingsPager` | List of Scope RBACRoleBindings. Iterating over this object will yield results and resolve additional pages automatically. |

### list_scopes

    list_scopes(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.ListScopesRequest, dict]
        ] = None,
        *,
        parent: typing.Optional[str] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.cloud.gkehub_v1.services.gke_hub.pagers.ListScopesPager

Lists Scopes.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_list_scopes():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListScopesRequest.html(
            parent="parent_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_list_scopes(request=request)

        # Handle the response
        for response in page_result:
            print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ListScopesRequest, dict]` The request object. Request to list Scopes. |
| `parent` | `str` Required. The parent (project and location) where the Scope will be listed. Specified in the format `projects//locations/`. This corresponds to the `parent` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.pagers.ListScopesPager` | List of Scopes. Iterating over this object will yield results and resolve additional pages automatically. |

### membership_binding_path

    membership_binding_path(
        project: str, location: str, membership: str, membershipbinding: str
    ) -> str

Returns a fully-qualified membership_binding string.

### membership_path

    membership_path(project: str, location: str, membership: str) -> str

Returns a fully-qualified membership string.

### namespace_path

    namespace_path(project: str, location: str, scope: str, namespace: str) -> str

Returns a fully-qualified namespace string.

### parse_common_billing_account_path

    parse_common_billing_account_path(path: str) -> typing.Dict[str, str]

Parse a billing_account path into its component segments.

### parse_common_folder_path

    parse_common_folder_path(path: str) -> typing.Dict[str, str]

Parse a folder path into its component segments.

### parse_common_location_path

    parse_common_location_path(path: str) -> typing.Dict[str, str]

Parse a location path into its component segments.

### parse_common_organization_path

    parse_common_organization_path(path: str) -> typing.Dict[str, str]

Parse a organization path into its component segments.

### parse_common_project_path

    parse_common_project_path(path: str) -> typing.Dict[str, str]

Parse a project path into its component segments.

### parse_feature_path

    parse_feature_path(path: str) -> typing.Dict[str, str]

Parses a feature path into its component segments.

### parse_fleet_path

    parse_fleet_path(path: str) -> typing.Dict[str, str]

Parses a fleet path into its component segments.

### parse_membership_binding_path

    parse_membership_binding_path(path: str) -> typing.Dict[str, str]

Parses a membership_binding path into its component segments.

### parse_membership_path

    parse_membership_path(path: str) -> typing.Dict[str, str]

Parses a membership path into its component segments.

### parse_namespace_path

    parse_namespace_path(path: str) -> typing.Dict[str, str]

Parses a namespace path into its component segments.

### parse_rbac_role_binding_path

    parse_rbac_role_binding_path(path: str) -> typing.Dict[str, str]

Parses a rbac_role_binding path into its component segments.

### parse_scope_path

    parse_scope_path(path: str) -> typing.Dict[str, str]

Parses a scope path into its component segments.

### rbac_role_binding_path

    rbac_role_binding_path(
        project: str, location: str, scope: str, rbacrolebinding: str
    ) -> str

Returns a fully-qualified rbac_role_binding string.

### scope_path

    scope_path(project: str, location: str, scope: str) -> str

Returns a fully-qualified scope string.

### update_feature

    update_feature(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.UpdateFeatureRequest, dict]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        resource: typing.Optional[google.cloud.gkehub_v1.types.feature.Feature] = None,
        update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Updates an existing Feature.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_update_feature():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateFeatureRequest.html(
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_update_feature(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateFeatureRequest, dict]` The request object. Request message for `GkeHub.UpdateFeature` method. |
| `name` | `str` Required. The Feature resource name in the format `projects//locations//features/*`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `resource` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Feature` Only fields specified in update_mask are updated. If you specify a field in the update_mask but don't specify its value here that field will be deleted. If you are updating a map field, set the value of a key to null or empty string to delete the key from the map. It's not possible to update a key's value to the empty string. If you specify the update_mask to be a special path "\*", fully replaces all user-modifiable fields to match `resource`. This corresponds to the `resource` field on the `request` instance; if `request` is provided, this should not be set. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` Mask of fields to update. This corresponds to the `update_mask` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Feature](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Feature) Feature represents the settings and status of any Fleet Feature. |

### update_fleet

    update_fleet(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.UpdateFleetRequest, dict]
        ] = None,
        *,
        fleet: typing.Optional[google.cloud.gkehub_v1.types.fleet.Fleet] = None,
        update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Updates a fleet.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_update_fleet():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateFleetRequest.html(
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_update_fleet(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateFleetRequest, dict]` The request object. Request message for the `GkeHub.UpdateFleet` method. |
| `fleet` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Fleet` Required. The Fleet to update. The `name` field of the Fleet object identifies which fleet will be updated. This corresponds to the `fleet` field on the `request` instance; if `request` is provided, this should not be set. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` Required. The fields to be updated; This corresponds to the `update_mask` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Fleet](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Fleet) Fleet contains the Fleet-wide metadata and configuration. |

### update_membership

    update_membership(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.UpdateMembershipRequest, dict]
        ] = None,
        *,
        name: typing.Optional[str] = None,
        resource: typing.Optional[
            google.cloud.gkehub_v1.types.membership.Membership
        ] = None,
        update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Updates an existing Membership.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_update_membership():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateMembershipRequest.html(
            name="name_value",
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_update_membership(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateMembershipRequest, dict]` The request object. Request message for `GkeHub.UpdateMembership` method. |
| `name` | `str` Required. The Membership resource name in the format `projects//locations//memberships/*`. This corresponds to the `name` field on the `request` instance; if `request` is provided, this should not be set. |
| `resource` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Membership` Required. Only fields specified in update_mask are updated. If you specify a field in the update_mask but don't specify its value here that field will be deleted. If you are updating a map field, set the value of a key to null or empty string to delete the key from the map. It's not possible to update a key's value to the empty string. If you specify the update_mask to be a special path "\*", fully replaces all user-modifiable fields to match `resource`. This corresponds to the `resource` field on the `request` instance; if `request` is provided, this should not be set. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` Required. Mask of fields to update. This corresponds to the `update_mask` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Membership](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Membership) Membership contains information about a member cluster. |

### update_membership_binding

    update_membership_binding(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.UpdateMembershipBindingRequest, dict
            ]
        ] = None,
        *,
        membership_binding: typing.Optional[
            google.cloud.gkehub_v1.types.fleet.MembershipBinding
        ] = None,
        update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Updates a MembershipBinding.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_update_membership_binding():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        membership_binding = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.MembershipBinding.html()
        membership_binding.scope = "scope_value"

        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateMembershipBindingRequest.html(
            membership_binding=membership_binding,
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_update_membership_binding(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateMembershipBindingRequest, dict]` The request object. Request to update a MembershipBinding. |
| `membership_binding` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.MembershipBinding` Required. The MembershipBinding object with fields updated. This corresponds to the `membership_binding` field on the `request` instance; if `request` is provided, this should not be set. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` Required. The fields to be updated. This corresponds to the `update_mask` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [MembershipBinding](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.MembershipBinding) MembershipBinding is a subresource of a Membership, representing what Fleet Scopes (or other, future Fleet resources) a Membership is bound to. |

### update_membership_rbac_role_binding

    update_membership_rbac_role_binding(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.UpdateMembershipRBACRoleBindingRequest,
                dict,
            ]
        ] = None,
        *,
        rbacrolebinding: typing.Optional[
            google.cloud.gkehub_v1.types.fleet.RBACRoleBinding
        ] = None,
        update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Updates a Membership RBACRoleBinding.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_update_membership_rbac_role_binding():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        rbacrolebinding = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding.html()
        rbacrolebinding.user = "user_value"

        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateMembershipRBACRoleBindingRequest.html(
            rbacrolebinding=rbacrolebinding,
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_update_membership_rbac_role_binding(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateMembershipRBACRoleBindingRequest, dict]` The request object. Request to update a membership rbacrolebinding. |
| `rbacrolebinding` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding` Required. A rbacrolebinding with fields updated. The 'name' field in this rbacrolebinding is used to identify the resource to update. This corresponds to the `rbacrolebinding` field on the `request` instance; if `request` is provided, this should not be set. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` Required. The fields to be updated. This corresponds to the `update_mask` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [RBACRoleBinding](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding) RBACRoleBinding represents a rbacrolebinding across the Fleet |

### update_scope

    update_scope(
        request: typing.Optional[
            typing.Union[google.cloud.gkehub_v1.types.service.UpdateScopeRequest, dict]
        ] = None,
        *,
        scope: typing.Optional[google.cloud.gkehub_v1.types.fleet.Scope] = None,
        update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Updates a scopes.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_update_scope():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateScopeRequest.html(
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_update_scope(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateScopeRequest, dict]` The request object. Request to update a Scope. |
| `scope` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Scope` Required. A Scope with fields updated. The 'name' field in this namespace is used to identify the resource to update. This corresponds to the `scope` field on the `request` instance; if `request` is provided, this should not be set. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` Required. The fields to be updated. This corresponds to the `update_mask` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Scope](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Scope) Scope represents a Scope in a Fleet. |

### update_scope_namespace

    update_scope_namespace(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.UpdateScopeNamespaceRequest, dict
            ]
        ] = None,
        *,
        scope_namespace: typing.Optional[
            google.cloud.gkehub_v1.types.fleet.Namespace
        ] = None,
        update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Updates a fleet namespace.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_update_scope_namespace():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        scope_namespace = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Namespace.html()
        scope_namespace.scope = "scope_value"

        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateScopeNamespaceRequest.html(
            scope_namespace=scope_namespace,
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_update_scope_namespace(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateScopeNamespaceRequest, dict]` The request object. Request to update a fleet namespace. |
| `scope_namespace` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Namespace` Required. A namespace with fields updated. The 'name' field in this namespace is used to identify the resource to update. Given 'updated' prefix to follow go/proto-best-practices-checkers#keyword_conflict This corresponds to the `scope_namespace` field on the `request` instance; if `request` is provided, this should not be set. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` Required. The fields to be updated. This corresponds to the `update_mask` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [Namespace](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.Namespace) Namespace represents a namespace across the Fleet |

### update_scope_rbac_role_binding

    update_scope_rbac_role_binding(
        request: typing.Optional[
            typing.Union[
                google.cloud.gkehub_v1.types.service.UpdateScopeRBACRoleBindingRequest, dict
            ]
        ] = None,
        *,
        rbacrolebinding: typing.Optional[
            google.cloud.gkehub_v1.types.fleet.RBACRoleBinding
        ] = None,
        update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    ) -> google.api_core.operation.Operation

Updates a Scope RBACRoleBinding.

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/gkehub/latest

    def sample_update_scope_rbac_role_binding():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html()

        # Initialize request argument(s)
        rbacrolebinding = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding.html()
        rbacrolebinding.user = "user_value"

        request = https://docs.cloud.google.com/python/docs/reference/gkehub/latest.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateScopeRBACRoleBindingRequest.html(
            rbacrolebinding=rbacrolebinding,
        )

        # Make the request
        operation = client.https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.services.gke_hub.GkeHubClient.html#google_cloud_gkehub_v1_services_gke_hub_GkeHubClient_update_scope_rbac_role_binding(request=request)

        print("Waiting for operation to complete...")

        response = operation.result()

        # Handle the response
        print(response)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Union[https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.UpdateScopeRBACRoleBindingRequest, dict]` The request object. Request to update a scope rbacrolebinding. |
| `rbacrolebinding` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding` Required. A rbacrolebinding with fields updated. The 'name' field in this rbacrolebinding is used to identify the resource to update. This corresponds to the `rbacrolebinding` field on the `request` instance; if `request` is provided, this should not be set. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` Required. The fields to be updated. This corresponds to the `update_mask` field on the `request` instance; if `request` is provided, this should not be set. |
| `retry` | `google.api_core.retry.Retry` Designation of what errors, if any, should be retried. |
| `timeout` | `float` The timeout for this request. |
| `metadata` | `Sequence[Tuple[str, Union[str, bytes]]]` Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `google.api_core.operation.Operation` | An object representing a long-running operation. The result type for the operation will be [RBACRoleBinding](https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.RBACRoleBinding) RBACRoleBinding represents a rbacrolebinding across the Fleet |