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

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

Overview

The POSIX account information associated with a Google account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PosixAccount

Returns a new instance of PosixAccount.



166
167
168
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 166

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

Instance Attribute Details

#account_idString

Output only. A POSIX account identifier. Corresponds to the JSON property accountId

Returns:

  • (String)


112
113
114
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 112

def 
  @account_id
end

#gecosString

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

Returns:

  • (String)


117
118
119
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 117

def gecos
  @gecos
end

#gidFixnum

The default group ID. Corresponds to the JSON property gid

Returns:

  • (Fixnum)


122
123
124
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 122

def gid
  @gid
end

#home_directoryString

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

Returns:

  • (String)


127
128
129
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 127

def home_directory
  @home_directory
end

#nameString

Output only. The canonical resource name. Corresponds to the JSON property name

Returns:

  • (String)


132
133
134
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 132

def name
  @name
end

#operating_system_typeString

The operating system type where this account applies. Corresponds to the JSON property operatingSystemType

Returns:

  • (String)


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

def operating_system_type
  @operating_system_type
end

#primaryBoolean Also known as: primary?

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

Returns:

  • (Boolean)


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

def primary
  @primary
end

#shellString

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

Returns:

  • (String)


148
149
150
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 148

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)


154
155
156
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 154

def system_id
  @system_id
end

#uidFixnum

The user ID. Corresponds to the JSON property uid

Returns:

  • (Fixnum)


159
160
161
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 159

def uid
  @uid
end

#usernameString

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

Returns:

  • (String)


164
165
166
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 164

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



171
172
173
174
175
176
177
178
179
180
181
182
183
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 171

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)
  @name = args[:name] if args.key?(:name)
  @operating_system_type = args[:operating_system_type] if args.key?(:operating_system_type)
  @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