Class: Google::Apis::ClouduseraccountsVmAlpha::AuthorizedKeysView

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



70
71
72
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 70

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>)


61
62
63
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 61

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)


67
68
69
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 67

def sudoer
  @sudoer
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



75
76
77
78
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 75

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