Class: Google::Apis::GkehubV1beta::RbacRoleBinding

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/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.



5430
5431
5432
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5430

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)


5376
5377
5378
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5376

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


5381
5382
5383
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5381

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)


5386
5387
5388
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5386

def group
  @group
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


5391
5392
5393
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5391

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


5399
5400
5401
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5399

def name
  @name
end

#roleGoogle::Apis::GkehubV1beta::Role

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



5404
5405
5406
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5404

def role
  @role
end

#stateGoogle::Apis::GkehubV1beta::RbacRoleBindingLifecycleState

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



5410
5411
5412
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5410

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)


5417
5418
5419
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5417

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


5422
5423
5424
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5422

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)


5428
5429
5430
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5428

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5435

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