# GKE Hub V1 API - Class Google::Cloud::GkeHub::V1::RBACRoleBinding (v2.6.0)

2.6.0 (latest) 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.10.0 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the GKE Hub V1 API class Google::Cloud::GkeHub::V1::RBACRoleBinding.

RBACRoleBinding represents a rbacrolebinding across the Fleet

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Protobuf-Timestamp)) --- Output only. When the rbacrolebinding was created.

### #delete_time

    def delete_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Protobuf-Timestamp)) --- Output only. When the rbacrolebinding was deleted.

### #group

    def group() -> ::String

**Returns**

- (::String) --- group is the group, as seen by the kubernetes cluster.

  Note: The following fields are mutually exclusive: `group`, `user`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #group=

    def group=(value) -> ::String

**Parameter**

- **value** (::String) --- group is the group, as seen by the kubernetes cluster.


  Note: The following fields are mutually exclusive: `group`, `user`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- group is the group, as seen by the kubernetes cluster.

  Note: The following fields are mutually exclusive: `group`, `user`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels for this RBACRolebinding.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels for this RBACRolebinding.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels for this RBACRolebinding.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The resource name for the rbacrolebinding `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}` or `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource name for the rbacrolebinding `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}` or `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
**Returns**

- (::String) --- The resource name for the rbacrolebinding `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}` or `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`

### #role

    def role() -> ::Google::Cloud::GkeHub::V1::RBACRoleBinding::Role

**Returns**

- ([::Google::Cloud::GkeHub::V1::RBACRoleBinding::Role](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-V1-RBACRoleBinding-Role)) --- Required. Role to bind to the principal

### #role=

    def role=(value) -> ::Google::Cloud::GkeHub::V1::RBACRoleBinding::Role

**Parameter**

- **value** ([::Google::Cloud::GkeHub::V1::RBACRoleBinding::Role](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-V1-RBACRoleBinding-Role)) --- Required. Role to bind to the principal
**Returns**

- ([::Google::Cloud::GkeHub::V1::RBACRoleBinding::Role](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-V1-RBACRoleBinding-Role)) --- Required. Role to bind to the principal

### #state

    def state() -> ::Google::Cloud::GkeHub::V1::RBACRoleBindingLifecycleState

**Returns**

- ([::Google::Cloud::GkeHub::V1::RBACRoleBindingLifecycleState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-V1-RBACRoleBindingLifecycleState)) --- Output only. State of the rbacrolebinding resource.

### #uid

    def uid() -> ::String

**Returns**

- (::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.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Protobuf-Timestamp)) --- Output only. When the rbacrolebinding was last updated.

### #user

    def user() -> ::String

**Returns**

- (::String) --- user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"

  Note: The following fields are mutually exclusive: `user`, `group`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #user=

    def user=(value) -> ::String

**Parameter**

- **value** (::String) --- user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"


  Note: The following fields are mutually exclusive: `user`, `group`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"

  Note: The following fields are mutually exclusive: `user`, `group`. If a field in that set is populated, all other fields in the set will automatically be cleared.