Class: Google::Apis::OsloginV1alpha::PosixAccount

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

Overview

The POSIX account information associated with a Directory API User.

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

Returns a new instance of PosixAccount



149
150
151
# File 'generated/google/apis/oslogin_v1alpha/classes.rb', line 149

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

Instance Attribute Details

#gecosString

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

Returns:

  • (String)


110
111
112
# File 'generated/google/apis/oslogin_v1alpha/classes.rb', line 110

def gecos
  @gecos
end

#gidFixnum

The default group ID. Corresponds to the JSON property gid

Returns:

  • (Fixnum)


115
116
117
# File 'generated/google/apis/oslogin_v1alpha/classes.rb', line 115

def gid
  @gid
end

#home_directoryString

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

Returns:

  • (String)


120
121
122
# File 'generated/google/apis/oslogin_v1alpha/classes.rb', line 120

def home_directory
  @home_directory
end

#primaryBoolean Also known as: primary?

Only one POSIX account can be marked as primary. Corresponds to the JSON property primary

Returns:

  • (Boolean)


125
126
127
# File 'generated/google/apis/oslogin_v1alpha/classes.rb', line 125

def primary
  @primary
end

#shellString

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

Returns:

  • (String)


131
132
133
# File 'generated/google/apis/oslogin_v1alpha/classes.rb', line 131

def shell
  @shell
end

#system_idString

System identifier for which account the username or uid applies to. By default, the empty value is used. Corresponds to the JSON property systemId

Returns:

  • (String)


137
138
139
# File 'generated/google/apis/oslogin_v1alpha/classes.rb', line 137

def system_id
  @system_id
end

#uidFixnum

The user ID. Corresponds to the JSON property uid

Returns:

  • (Fixnum)


142
143
144
# File 'generated/google/apis/oslogin_v1alpha/classes.rb', line 142

def uid
  @uid
end

#usernameString

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

Returns:

  • (String)


147
148
149
# File 'generated/google/apis/oslogin_v1alpha/classes.rb', line 147

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



154
155
156
157
158
159
160
161
162
163
# File 'generated/google/apis/oslogin_v1alpha/classes.rb', line 154

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)
  @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