from google.cloud import gkehub_v1beta1


async def sample_create_membership():
    # Create a client
    client = gkehub_v1beta1.GkeHubMembershipServiceAsyncClient()

    # Initialize request argument(s)
    request = gkehub_v1beta1.CreateMembershipRequest(
        parent="parent_value",
        membership_id="membership_id_value",
    )

    # Make the request
    operation = client.create_membership(request=request)

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

    response = await operation.result()

    # Handle the response
    print(response)

# [END gkehub_v1beta1_generated_GkeHubMembershipService_CreateMembership_async]
