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.



3750
3751
3752
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3750

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)


3696
3697
3698
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3696

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


3701
3702
3703
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3701

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)


3706
3707
3708
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3706

def group
  @group
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


3711
3712
3713
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3711

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)


3719
3720
3721
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3719

def name
  @name
end

#roleGoogle::Apis::GkehubV1beta::Role

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



3724
3725
3726
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3724

def role
  @role
end

#stateGoogle::Apis::GkehubV1beta::RbacRoleBindingLifecycleState

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



3730
3731
3732
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3730

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)


3737
3738
3739
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3737

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


3742
3743
3744
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3742

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)


3748
3749
3750
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3748

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3755

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