Class: Google::Apis::AdminDirectoryV1::UserPosixAccount

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

Overview

JSON template for a POSIX account entry. Description of the field family: go/ fbs-posix.

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) ⇒ UserPosixAccount

Returns a new instance of UserPosixAccount



3850
3851
3852
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3850

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

Instance Attribute Details

#account_idString

A POSIX account field identifier. (Read-only) Corresponds to the JSON property accountId

Returns:

  • (String)


3807
3808
3809
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3807

def 
  @account_id
end

#gecosString

The GECOS (user information) for this account. Corresponds to the JSON property gecos

Returns:

  • (String)


3812
3813
3814
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3812

def gecos
  @gecos
end

#gidFixnum

The default group ID. Corresponds to the JSON property gid

Returns:

  • (Fixnum)


3817
3818
3819
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3817

def gid
  @gid
end

#home_directoryString

The path to the home directory for this account. Corresponds to the JSON property homeDirectory

Returns:

  • (String)


3822
3823
3824
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3822

def home_directory
  @home_directory
end

#primaryBoolean Also known as: primary?

If this is user's primary account within the SystemId. Corresponds to the JSON property primary

Returns:

  • (Boolean)


3827
3828
3829
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3827

def primary
  @primary
end

#shellString

The path to the login shell for this account. Corresponds to the JSON property shell

Returns:

  • (String)


3833
3834
3835
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3833

def shell
  @shell
end

#system_idString

System identifier for which account Username or Uid apply to. Corresponds to the JSON property systemId

Returns:

  • (String)


3838
3839
3840
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3838

def system_id
  @system_id
end

#uidFixnum

The POSIX compliant user ID. Corresponds to the JSON property uid

Returns:

  • (Fixnum)


3843
3844
3845
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3843

def uid
  @uid
end

#usernameString

The username of the account. Corresponds to the JSON property username

Returns:

  • (String)


3848
3849
3850
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3848

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3855

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