Class: Google::Apis::GkehubV1::RbacRoleBinding

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1/classes.rb,
lib/google/apis/gkehub_v1/representations.rb,
lib/google/apis/gkehub_v1/representations.rb

Overview

RBACRoleBinding represents a rbacrolebinding across the Fleet

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RbacRoleBinding

Returns a new instance of RbacRoleBinding.



4120
4121
4122
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4120

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. When the rbacrolebinding was created. Corresponds to the JSON property createTime

Returns:

  • (String)


4066
4067
4068
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4066

def create_time
  @create_time
end

#delete_timeString

Output only. When the rbacrolebinding was deleted. Corresponds to the JSON property deleteTime

Returns:

  • (String)


4071
4072
4073
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4071

def delete_time
  @delete_time
end

#groupString

group is the group, as seen by the kubernetes cluster. Corresponds to the JSON property group

Returns:

  • (String)


4076
4077
4078
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4076

def group
  @group
end

#labelsHash<String,String>

Optional. Labels for this RBACRolebinding. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


4081
4082
4083
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4081

def labels
  @labels
end

#nameString

The resource name for the rbacrolebinding projects/project/locations/ location/namespaces/namespace/rbacrolebindings/rbacrolebindingor ` projects/`project`/locations/`location`/memberships/`membership`/ rbacrolebindings/`rbacrolebinding Corresponds to the JSON property name

Returns:

  • (String)


4089
4090
4091
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4089

def name
  @name
end

#roleGoogle::Apis::GkehubV1::Role

Role is the type for Kubernetes roles Corresponds to the JSON property role



4094
4095
4096
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4094

def role
  @role
end

#stateGoogle::Apis::GkehubV1::RbacRoleBindingLifecycleState

RBACRoleBindingLifecycleState describes the state of a RbacRoleBinding resource. Corresponds to the JSON property state



4100
4101
4102
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4100

def state
  @state
end

#uidString

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. Corresponds to the JSON property uid

Returns:

  • (String)


4107
4108
4109
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4107

def uid
  @uid
end

#update_timeString

Output only. When the rbacrolebinding was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


4112
4113
4114
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4112

def update_time
  @update_time
end

#userString

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

Returns:

  • (String)


4118
4119
4120
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4118

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4125

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @group = args[:group] if args.key?(:group)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @role = args[:role] if args.key?(:role)
  @state = args[:state] if args.key?(:state)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
  @user = args[:user] if args.key?(:user)
end