Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class DeleteMembershipRequest.
Request message forGkeHub.DeleteMembershipmethod.
Generated from protobuf messagegoogle.cloud.gkehub.v1.DeleteMembershipRequest
Namespace
Google \ Cloud \ GkeHub \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The Membership resource name in the formatprojects/*/locations/*/memberships/*.
↳ request_id
string
Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
↳ force
bool
Optional. If set to true, any subresource from this Membership will also be deleted. Otherwise, the request will only work if the Membership has no subresource.
getName
Required. The Membership resource name in the formatprojects/*/locations/*/memberships/*.
Returns
Type
Description
string
setName
Required. The Membership resource name in the formatprojects/*/locations/*/memberships/*.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRequestId
Optional. A request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and
the request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
Returns
Type
Description
string
setRequestId
Optional. A request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and
the request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getForce
Optional. If set to true, any subresource from this Membership will also be
deleted. Otherwise, the request will only work if the Membership has no
subresource.
Returns
Type
Description
bool
setForce
Optional. If set to true, any subresource from this Membership will also be
deleted. Otherwise, the request will only work if the Membership has no
subresource.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. The Membership resource name in the formatprojects/*/locations/*/memberships/*. Please seeGkeHubClient::membershipName()for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Gke Hub V1 Client - Class DeleteMembershipRequest (1.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.6 (latest)](/php/docs/reference/cloud-gke-hub/latest/V1.DeleteMembershipRequest)\n- [1.0.5](/php/docs/reference/cloud-gke-hub/1.0.5/V1.DeleteMembershipRequest)\n- [0.10.0](/php/docs/reference/cloud-gke-hub/0.10.0/V1.DeleteMembershipRequest)\n- [0.9.5](/php/docs/reference/cloud-gke-hub/0.9.5/V1.DeleteMembershipRequest)\n- [0.8.2](/php/docs/reference/cloud-gke-hub/0.8.2/V1.DeleteMembershipRequest)\n- [0.7.1](/php/docs/reference/cloud-gke-hub/0.7.1/V1.DeleteMembershipRequest)\n- [0.6.3](/php/docs/reference/cloud-gke-hub/0.6.3/V1.DeleteMembershipRequest)\n- [0.5.6](/php/docs/reference/cloud-gke-hub/0.5.6/V1.DeleteMembershipRequest) \nReference documentation and code samples for the Google Cloud Gke Hub V1 Client class DeleteMembershipRequest.\n\nRequest message for `GkeHub.DeleteMembership` method.\n\nGenerated from protobuf message `google.cloud.gkehub.v1.DeleteMembershipRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GkeHub \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The Membership resource name in the format\n`projects/*/locations/*/memberships/*`.\n\n### setName\n\nRequired. The Membership resource name in the format\n`projects/*/locations/*/memberships/*`.\n\n### getRequestId\n\nOptional. A request ID to identify requests. Specify a unique request ID\nso that if you must retry your request, the server will know to ignore\nthe request if it has already been completed. The server will guarantee\nthat for at least 60 minutes after the first request.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same request\nID, the server can check if original operation with the same request ID\nwas received, and if so, will ignore the second request. This prevents\nclients from accidentally creating duplicate commitments.\nThe request ID must be a valid UUID with the exception that zero UUID is\nnot supported (00000000-0000-0000-0000-000000000000).\n\n### setRequestId\n\nOptional. A request ID to identify requests. Specify a unique request ID\nso that if you must retry your request, the server will know to ignore\nthe request if it has already been completed. The server will guarantee\nthat for at least 60 minutes after the first request.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same request\nID, the server can check if original operation with the same request ID\nwas received, and if so, will ignore the second request. This prevents\nclients from accidentally creating duplicate commitments.\nThe request ID must be a valid UUID with the exception that zero UUID is\nnot supported (00000000-0000-0000-0000-000000000000).\n\n### getForce\n\nOptional. If set to true, any subresource from this Membership will also be\ndeleted. Otherwise, the request will only work if the Membership has no\nsubresource.\n\n### setForce\n\nOptional. If set to true, any subresource from this Membership will also be\ndeleted. Otherwise, the request will only work if the Membership has no\nsubresource.\n\n### static::build"]]