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

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

RBACRoleBinding represents a rbacrolebinding across the Fleet

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

Namespace

Google \ Cloud \ GkeHub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ user string

user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"

↳ group string

group is the group, as seen by the kubernetes cluster.

↳ name string

The resource name for the rbacrolebinding projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding} or projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}

↳ uid string

Output only. Google-generated UUID for this resource. This is unique across all rbacrolebinding resources. If a rbacrolebinding 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 rbacrolebinding was created.

↳ update_time Google\Protobuf\Timestamp

Output only. When the rbacrolebinding was last updated.

↳ delete_time Google\Protobuf\Timestamp

Output only. When the rbacrolebinding was deleted.

↳ state RBACRoleBindingLifecycleState

Output only. State of the rbacrolebinding resource.

↳ role RBACRoleBinding\Role

Required. Role to bind to the principal

↳ labels array|Google\Protobuf\Internal\MapField

Optional. Labels for this RBACRolebinding.

getUser

user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"

Returns
Type Description
string

hasUser

setUser

user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"

Parameter
Name Description
var string
Returns
Type Description
$this

getGroup

group is the group, as seen by the kubernetes cluster.

Returns
Type Description
string

hasGroup

setGroup

group is the group, as seen by the kubernetes cluster.

Parameter
Name Description
var string
Returns
Type Description
$this

getName

The resource name for the rbacrolebinding projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding} or projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}

Returns
Type Description
string

setName

The resource name for the rbacrolebinding projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding} or projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}

Parameter
Name Description
var string
Returns
Type Description
$this

getUid

Output only. Google-generated UUID for this resource. This is unique across all rbacrolebinding resources. If a rbacrolebinding 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 rbacrolebinding resources. If a rbacrolebinding 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 rbacrolebinding was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. When the rbacrolebinding was created.

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

getUpdateTime

Output only. When the rbacrolebinding was last updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. When the rbacrolebinding was last updated.

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

getDeleteTime

Output only. When the rbacrolebinding was deleted.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasDeleteTime

clearDeleteTime

setDeleteTime

Output only. When the rbacrolebinding was deleted.

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

getState

Output only. State of the rbacrolebinding resource.

Returns
Type Description
RBACRoleBindingLifecycleState|null

hasState

clearState

setState

Output only. State of the rbacrolebinding resource.

Parameter
Name Description
var RBACRoleBindingLifecycleState
Returns
Type Description
$this

getRole

Required. Role to bind to the principal

Returns
Type Description
RBACRoleBinding\Role|null

hasRole

clearRole

setRole

Required. Role to bind to the principal

Parameter
Name Description
var RBACRoleBinding\Role
Returns
Type Description
$this

getLabels

Optional. Labels for this RBACRolebinding.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

Optional. Labels for this RBACRolebinding.

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

getPrincipal

Returns
Type Description
string