Google Cloud Gke Hub V1 Client - Class MembershipBinding (1.3.0)

Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class MembershipBinding.

MembershipBinding is a subresource of a Membership, representing what Fleet Scopes (or other, future Fleet resources) a Membership is bound to.

Generated from protobuf message google.cloud.gkehub.v1.MembershipBinding

Namespace

Google \ Cloud \ GkeHub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ scope string

A Scope resource name in the format projects/*/locations/*/scopes/*.

↳ name string

The resource name for the membershipbinding itself projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}

↳ uid string

Output only. Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.

↳ create_time Google\Protobuf\Timestamp

Output only. When the membership binding was created.

↳ update_time Google\Protobuf\Timestamp

Output only. When the membership binding was last updated.

↳ delete_time Google\Protobuf\Timestamp

Output only. When the membership binding was deleted.

↳ state MembershipBindingLifecycleState

Output only. State of the membership binding resource.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. Labels for this MembershipBinding.

getScope

A Scope resource name in the format projects/*/locations/*/scopes/*.

Returns
Type Description
string

hasScope

setScope

A Scope resource name in the format projects/*/locations/*/scopes/*.

Parameter
Name Description
var string
Returns
Type Description
$this

getName

The resource name for the membershipbinding itself projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}

Returns
Type Description
string

setName

The resource name for the membershipbinding itself projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}

Parameter
Name Description
var string
Returns
Type Description
$this

getUid

Output only. Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.

Returns
Type Description
string

setUid

Output only. Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. When the membership binding was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. When the membership binding was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. When the membership binding was last updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. When the membership binding was last updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getDeleteTime

Output only. When the membership binding was deleted.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasDeleteTime

clearDeleteTime

setDeleteTime

Output only. When the membership binding was deleted.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getState

Output only. State of the membership binding resource.

Returns
Type Description
MembershipBindingLifecycleState|null

hasState

clearState

setState

Output only. State of the membership binding resource.

Parameter
Name Description
var MembershipBindingLifecycleState
Returns
Type Description
$this

getLabels

Optional. Labels for this MembershipBinding.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

Optional. Labels for this MembershipBinding.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getTarget

Returns
Type Description
string