Class: Google::Apis::ClouduseraccountsBeta::LinuxUserView

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


332
333
334
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 332

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)

305
306
307
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 305

def gecos
  @gecos
end

#gidFixnum

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

Returns:

  • (Fixnum)

310
311
312
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 310

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)

315
316
317
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 315

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)

320
321
322
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 320

def shell
  @shell
end

#uidFixnum

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

Returns:

  • (Fixnum)

325
326
327
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 325

def uid
  @uid
end

#usernameString

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

Returns:

  • (String)

330
331
332
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 330

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


337
338
339
340
341
342
343
344
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 337

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