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

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LoginProfile

Returns a new instance of LoginProfile



91
92
93
# File 'generated/google/apis/oslogin_v1beta/classes.rb', line 91

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

Instance Attribute Details

#nameString

The primary email address that uniquely identifies the user. Corresponds to the JSON property name

Returns:

  • (String)


72
73
74
# File 'generated/google/apis/oslogin_v1beta/classes.rb', line 72

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



77
78
79
# File 'generated/google/apis/oslogin_v1beta/classes.rb', line 77

def posix_accounts
  @posix_accounts
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



82
83
84
# File 'generated/google/apis/oslogin_v1beta/classes.rb', line 82

def ssh_public_keys
  @ssh_public_keys
end

#suspendedBoolean Also known as: suspended?

Indicates if the user is suspended. A suspended user cannot log in but their profile information is retained. Corresponds to the JSON property suspended

Returns:

  • (Boolean)


88
89
90
# File 'generated/google/apis/oslogin_v1beta/classes.rb', line 88

def suspended
  @suspended
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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)
  @suspended = args[:suspended] if args.key?(:suspended)
end