Class: Google::Apis::ClouduseraccountsVmAlpha::LinuxUserView

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 detailed view of a Linux 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) ⇒ LinuxUserView

Returns a new instance of LinuxUserView



450
451
452
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 450

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

Instance Attribute Details

#gecosString

[Output Only] The GECOS (user information) entry for this account. Corresponds to the JSON property gecos

Returns:

  • (String)


423
424
425
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 423

def gecos
  @gecos
end

#gidFixnum

[Output Only] User's default group ID. Corresponds to the JSON property gid

Returns:

  • (Fixnum)


428
429
430
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 428

def gid
  @gid
end

#home_directoryString

[Output Only] The path to the home directory for this account. Corresponds to the JSON property homeDirectory

Returns:

  • (String)


433
434
435
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 433

def home_directory
  @home_directory
end

#shellString

[Output Only] The path to the login shell for this account. Corresponds to the JSON property shell

Returns:

  • (String)


438
439
440
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 438

def shell
  @shell
end

#uidFixnum

[Output Only] User ID. Corresponds to the JSON property uid

Returns:

  • (Fixnum)


443
444
445
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 443

def uid
  @uid
end

#usernameString

[Output Only] The username of the account. Corresponds to the JSON property username

Returns:

  • (String)


448
449
450
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 448

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



455
456
457
458
459
460
461
462
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 455

def update!(**args)
  @gecos = args[:gecos] if args.key?(:gecos)
  @gid = args[:gid] if args.key?(:gid)
  @home_directory = args[:home_directory] if args.key?(:home_directory)
  @shell = args[:shell] if args.key?(:shell)
  @uid = args[:uid] if args.key?(:uid)
  @username = args[:username] if args.key?(:username)
end