Class: Google::Apis::OsloginV1::LoginProfile
- Inherits:
-
Object
- Object
- Google::Apis::OsloginV1::LoginProfile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/oslogin_v1/classes.rb,
lib/google/apis/oslogin_v1/representations.rb,
lib/google/apis/oslogin_v1/representations.rb
Overview
The user profile information used for logging in to a virtual machine on Google Compute Engine.
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
-
#posix_accounts ⇒ Array<Google::Apis::OsloginV1::PosixAccount>
The list of POSIX accounts associated with the user.
-
#ssh_public_keys ⇒ Hash<String,Google::Apis::OsloginV1::SshPublicKey>
A map from SSH public key fingerprint to the associated key object.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LoginProfile
constructor
A new instance of LoginProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LoginProfile
Returns a new instance of LoginProfile.
87 88 89 |
# File 'lib/google/apis/oslogin_v1/classes.rb', line 87 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. A unique user ID.
Corresponds to the JSON property name
75 76 77 |
# File 'lib/google/apis/oslogin_v1/classes.rb', line 75 def name @name end |
#posix_accounts ⇒ Array<Google::Apis::OsloginV1::PosixAccount>
The list of POSIX accounts associated with the user.
Corresponds to the JSON property posixAccounts
80 81 82 |
# File 'lib/google/apis/oslogin_v1/classes.rb', line 80 def posix_accounts @posix_accounts end |
#ssh_public_keys ⇒ Hash<String,Google::Apis::OsloginV1::SshPublicKey>
A map from SSH public key fingerprint to the associated key object.
Corresponds to the JSON property sshPublicKeys
85 86 87 |
# File 'lib/google/apis/oslogin_v1/classes.rb', line 85 def ssh_public_keys @ssh_public_keys end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
92 93 94 95 96 |
# File 'lib/google/apis/oslogin_v1/classes.rb', line 92 def update!(**args) @name = args[:name] if args.key?(:name) @posix_accounts = args[:posix_accounts] if args.key?(:posix_accounts) @ssh_public_keys = args[:ssh_public_keys] if args.key?(:ssh_public_keys) end |