Class: Google::Apis::ClouduseraccountsAlpha::LinuxUserView
- Inherits:
-
Object
- Object
- Google::Apis::ClouduseraccountsAlpha::LinuxUserView
- Defined in:
- generated/google/apis/clouduseraccounts_alpha/classes.rb,
generated/google/apis/clouduseraccounts_alpha/representations.rb,
generated/google/apis/clouduseraccounts_alpha/representations.rb
Overview
A detailed view of a Linux user account.
Instance Attribute Summary collapse
-
#gecos ⇒ String
[Output Only] The GECOS (user information) entry for this account.
-
#gid ⇒ Fixnum
[Output Only] User's default group ID.
-
#home_directory ⇒ String
[Output Only] The path to the home directory for this account.
-
#shell ⇒ String
[Output Only] The path to the login shell for this account.
-
#uid ⇒ Fixnum
[Output Only] User ID.
-
#username ⇒ String
[Output Only] The username of the account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LinuxUserView
constructor
A new instance of LinuxUserView.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ LinuxUserView
Returns a new instance of LinuxUserView
450 451 452 |
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 450 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gecos ⇒ String
[Output Only] The GECOS (user information) entry for this account.
Corresponds to the JSON property gecos
423 424 425 |
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 423 def gecos @gecos end |
#gid ⇒ Fixnum
[Output Only] User's default group ID.
Corresponds to the JSON property gid
428 429 430 |
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 428 def gid @gid end |
#home_directory ⇒ String
[Output Only] The path to the home directory for this account.
Corresponds to the JSON property homeDirectory
433 434 435 |
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 433 def home_directory @home_directory end |
#shell ⇒ String
[Output Only] The path to the login shell for this account.
Corresponds to the JSON property shell
438 439 440 |
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 438 def shell @shell end |
#uid ⇒ Fixnum
[Output Only] User ID.
Corresponds to the JSON property uid
443 444 445 |
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 443 def uid @uid end |
#username ⇒ String
[Output Only] The username of the account.
Corresponds to the JSON property username
448 449 450 |
# File 'generated/google/apis/clouduseraccounts_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_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 |