Class: Google::Apis::GkeonpremV1::ClusterUser
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::ClusterUser
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkeonprem_v1/classes.rb,
lib/google/apis/gkeonprem_v1/representations.rb,
lib/google/apis/gkeonprem_v1/representations.rb
Overview
ClusterUser configures user principals for an RBAC policy.
Instance Attribute Summary collapse
-
#username ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterUser
constructor
A new instance of ClusterUser.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterUser
Returns a new instance of ClusterUser.
2437 2438 2439 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2437 def initialize(**args) update!(**args) end |
Instance Attribute Details
#username ⇒ String
Required. The name of the user, e.g. [email protected].
Corresponds to the JSON property username
2435 2436 2437 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2435 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2442 2443 2444 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2442 def update!(**args) @username = args[:username] if args.key?(:username) end |