Class: Google::Apis::GkehubV1alpha::RbacRoleBinding

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



4992
4993
4994
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4992

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)


4938
4939
4940
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4938

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


4943
4944
4945
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4943

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)


4948
4949
4950
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4948

def group
  @group
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


4953
4954
4955
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4953

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)


4961
4962
4963
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4961

def name
  @name
end

#roleGoogle::Apis::GkehubV1alpha::Role

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



4966
4967
4968
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4966

def role
  @role
end

#stateGoogle::Apis::GkehubV1alpha::RbacRoleBindingLifecycleState

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



4972
4973
4974
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4972

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)


4979
4980
4981
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4979

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


4984
4985
4986
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4984

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)


4990
4991
4992
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4990

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4997

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