Class: Google::Apis::GkeonpremV1::Authorization

Inherits:
Object
  • Object
show all
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
more...

Overview

Authorization defines the On-Prem cluster authorization configuration to bootstrap onto the admin cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Authorization

Returns a new instance of Authorization.

[View source]

38
39
40
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 38

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

Instance Attribute Details

#admin_usersArray<Google::Apis::GkeonpremV1::ClusterUser>

For VMware and bare metal user clusters, users will be granted the cluster- admin role on the cluster, which provides full administrative access to the cluster. For bare metal admin clusters, users will be granted the cluster-view role, which limits users to read-only access. Corresponds to the JSON property adminUsers


36
37
38
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 36

def admin_users
  @admin_users
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

43
44
45
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 43

def update!(**args)
  @admin_users = args[:admin_users] if args.key?(:admin_users)
end