Class: Google::Apis::OsloginV1beta::LoginProfile

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/oslogin_v1beta/classes.rb,
lib/google/apis/oslogin_v1beta/representations.rb,
lib/google/apis/oslogin_v1beta/representations.rb

Overview

The user profile information used for logging in to a virtual machine on Google Compute Engine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LoginProfile

Returns a new instance of LoginProfile.



92
93
94
# File 'lib/google/apis/oslogin_v1beta/classes.rb', line 92

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

Instance Attribute Details

#nameString

Required. A unique user ID. Corresponds to the JSON property name

Returns:

  • (String)


75
76
77
# File 'lib/google/apis/oslogin_v1beta/classes.rb', line 75

def name
  @name
end

#posix_accountsArray<Google::Apis::OsloginV1beta::PosixAccount>

The list of POSIX accounts associated with the user. Corresponds to the JSON property posixAccounts



80
81
82
# File 'lib/google/apis/oslogin_v1beta/classes.rb', line 80

def posix_accounts
  @posix_accounts
end

#security_keysArray<Google::Apis::OsloginV1beta::SecurityKey>

The registered security key credentials for a user. Corresponds to the JSON property securityKeys



85
86
87
# File 'lib/google/apis/oslogin_v1beta/classes.rb', line 85

def security_keys
  @security_keys
end

#ssh_public_keysHash<String,Google::Apis::OsloginV1beta::SshPublicKey>

A map from SSH public key fingerprint to the associated key object. Corresponds to the JSON property sshPublicKeys



90
91
92
# File 'lib/google/apis/oslogin_v1beta/classes.rb', line 90

def ssh_public_keys
  @ssh_public_keys
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



97
98
99
100
101
102
# File 'lib/google/apis/oslogin_v1beta/classes.rb', line 97

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @posix_accounts = args[:posix_accounts] if args.key?(:posix_accounts)
  @security_keys = args[:security_keys] if args.key?(:security_keys)
  @ssh_public_keys = args[:ssh_public_keys] if args.key?(:ssh_public_keys)
end