Class: Google::Apis::ClouduseraccountsBeta::AuthorizedKeysView

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/clouduseraccounts_beta/classes.rb,
generated/google/apis/clouduseraccounts_beta/representations.rb,
generated/google/apis/clouduseraccounts_beta/representations.rb

Overview

A list of authorized public keys for a user account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AuthorizedKeysView

Returns a new instance of AuthorizedKeysView.



41
42
43
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 41

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

Instance Attribute Details

#keysArray<String>

[Output Only] The list of authorized public keys in SSH format. Corresponds to the JSON property keys

Returns:

  • (Array<String>)


32
33
34
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 32

def keys
  @keys
end

#sudoerBoolean Also known as: sudoer?

[Output Only] Whether the user has the ability to elevate on the instance that requested the authorized keys. Corresponds to the JSON property sudoer

Returns:

  • (Boolean)


38
39
40
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 38

def sudoer
  @sudoer
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46
47
48
49
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 46

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