Class: Google::Apis::AdminDirectoryV1::User

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 User object in Directory API.

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

Returns a new instance of User.



2490
2491
2492
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2490

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

Instance Attribute Details

#addressesObject

Corresponds to the JSON property addresses

Returns:

  • (Object)


2310
2311
2312
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2310

def addresses
  @addresses
end

#agreed_to_termsBoolean Also known as: agreed_to_terms?

Indicates if user has agreed to terms (Read-only) Corresponds to the JSON property agreedToTerms

Returns:

  • (Boolean)


2315
2316
2317
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2315

def agreed_to_terms
  @agreed_to_terms
end

#aliasesArray<String>

List of aliases (Read-only) Corresponds to the JSON property aliases

Returns:

  • (Array<String>)


2321
2322
2323
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2321

def aliases
  @aliases
end

#change_password_at_next_loginBoolean Also known as: change_password_at_next_login?

Boolean indicating if the user should change password in next login Corresponds to the JSON property changePasswordAtNextLogin

Returns:

  • (Boolean)


2326
2327
2328
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2326

def 
  @change_password_at_next_login
end

#creation_timeDateTime

User's Google account creation time. (Read-only) Corresponds to the JSON property creationTime

Returns:

  • (DateTime)


2332
2333
2334
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2332

def creation_time
  @creation_time
end

#custom_schemasHash<String,Hash<String,Object>>

Custom fields of the user. Corresponds to the JSON property customSchemas

Returns:

  • (Hash<String,Hash<String,Object>>)


2337
2338
2339
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2337

def custom_schemas
  @custom_schemas
end

#customer_idString

CustomerId of User (Read-only) Corresponds to the JSON property customerId

Returns:

  • (String)


2342
2343
2344
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2342

def customer_id
  @customer_id
end

#deletion_timeDateTime

Corresponds to the JSON property deletionTime

Returns:

  • (DateTime)


2347
2348
2349
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2347

def deletion_time
  @deletion_time
end

#emailsObject

Corresponds to the JSON property emails

Returns:

  • (Object)


2352
2353
2354
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2352

def emails
  @emails
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


2357
2358
2359
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2357

def etag
  @etag
end

#external_idsObject

Corresponds to the JSON property externalIds

Returns:

  • (Object)


2362
2363
2364
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2362

def external_ids
  @external_ids
end

#hash_functionString

Hash function name for password. Supported are MD5, SHA-1 and crypt Corresponds to the JSON property hashFunction

Returns:

  • (String)


2367
2368
2369
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2367

def hash_function
  @hash_function
end

#idString

Unique identifier of User (Read-only) Corresponds to the JSON property id

Returns:

  • (String)


2372
2373
2374
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2372

def id
  @id
end

#imsObject

Corresponds to the JSON property ims

Returns:

  • (Object)


2377
2378
2379
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2377

def ims
  @ims
end

#include_in_global_address_listBoolean Also known as: include_in_global_address_list?

Boolean indicating if user is included in Global Address List Corresponds to the JSON property includeInGlobalAddressList

Returns:

  • (Boolean)


2382
2383
2384
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2382

def include_in_global_address_list
  @include_in_global_address_list
end

#ip_whitelistedBoolean Also known as: ip_whitelisted?

Boolean indicating if ip is whitelisted Corresponds to the JSON property ipWhitelisted

Returns:

  • (Boolean)


2388
2389
2390
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2388

def ip_whitelisted
  @ip_whitelisted
end

#is_adminBoolean Also known as: is_admin?

Boolean indicating if the user is admin (Read-only) Corresponds to the JSON property isAdmin

Returns:

  • (Boolean)


2394
2395
2396
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2394

def is_admin
  @is_admin
end

#is_delegated_adminBoolean Also known as: is_delegated_admin?

Boolean indicating if the user is delegated admin (Read-only) Corresponds to the JSON property isDelegatedAdmin

Returns:

  • (Boolean)


2400
2401
2402
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2400

def is_delegated_admin
  @is_delegated_admin
end

#is_mailbox_setupBoolean Also known as: is_mailbox_setup?

Is mailbox setup (Read-only) Corresponds to the JSON property isMailboxSetup

Returns:

  • (Boolean)


2406
2407
2408
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2406

def is_mailbox_setup
  @is_mailbox_setup
end

#kindString

Kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


2412
2413
2414
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2412

def kind
  @kind
end

#last_login_timeDateTime

User's last login time. (Read-only) Corresponds to the JSON property lastLoginTime

Returns:

  • (DateTime)


2417
2418
2419
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2417

def 
  @last_login_time
end

#nameGoogle::Apis::AdminDirectoryV1::UserName

JSON template for name of a user in Directory API. Corresponds to the JSON property name



2422
2423
2424
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2422

def name
  @name
end

#non_editable_aliasesArray<String>

List of non editable aliases (Read-only) Corresponds to the JSON property nonEditableAliases

Returns:

  • (Array<String>)


2427
2428
2429
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2427

def non_editable_aliases
  @non_editable_aliases
end

#notesObject

Corresponds to the JSON property notes

Returns:

  • (Object)


2432
2433
2434
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2432

def notes
  @notes
end

#org_unit_pathString

OrgUnit of User Corresponds to the JSON property orgUnitPath

Returns:

  • (String)


2437
2438
2439
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2437

def org_unit_path
  @org_unit_path
end

#organizationsObject

Corresponds to the JSON property organizations

Returns:

  • (Object)


2442
2443
2444
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2442

def organizations
  @organizations
end

#passwordString

User's password Corresponds to the JSON property password

Returns:

  • (String)


2447
2448
2449
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2447

def password
  @password
end

#phonesObject

Corresponds to the JSON property phones

Returns:

  • (Object)


2452
2453
2454
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2452

def phones
  @phones
end

#primary_emailString

username of User Corresponds to the JSON property primaryEmail

Returns:

  • (String)


2457
2458
2459
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2457

def primary_email
  @primary_email
end

#relationsObject

Corresponds to the JSON property relations

Returns:

  • (Object)


2462
2463
2464
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2462

def relations
  @relations
end

#suspendedBoolean Also known as: suspended?

Indicates if user is suspended Corresponds to the JSON property suspended

Returns:

  • (Boolean)


2467
2468
2469
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2467

def suspended
  @suspended
end

#suspension_reasonString

Suspension reason if user is suspended (Read-only) Corresponds to the JSON property suspensionReason

Returns:

  • (String)


2473
2474
2475
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2473

def suspension_reason
  @suspension_reason
end

#thumbnail_photo_etagString

ETag of the user's photo (Read-only) Corresponds to the JSON property thumbnailPhotoEtag

Returns:

  • (String)


2478
2479
2480
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2478

def thumbnail_photo_etag
  @thumbnail_photo_etag
end

#thumbnail_photo_urlString

Photo Url of the user (Read-only) Corresponds to the JSON property thumbnailPhotoUrl

Returns:

  • (String)


2483
2484
2485
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2483

def thumbnail_photo_url
  @thumbnail_photo_url
end

#websitesObject

Corresponds to the JSON property websites

Returns:

  • (Object)


2488
2489
2490
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2488

def websites
  @websites
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2495

def update!(**args)
  @addresses = args[:addresses] if args.key?(:addresses)
  @agreed_to_terms = args[:agreed_to_terms] if args.key?(:agreed_to_terms)
  @aliases = args[:aliases] if args.key?(:aliases)
  @change_password_at_next_login = args[:change_password_at_next_login] if args.key?(:change_password_at_next_login)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @custom_schemas = args[:custom_schemas] if args.key?(:custom_schemas)
  @customer_id = args[:customer_id] if args.key?(:customer_id)
  @deletion_time = args[:deletion_time] if args.key?(:deletion_time)
  @emails = args[:emails] if args.key?(:emails)
  @etag = args[:etag] if args.key?(:etag)
  @external_ids = args[:external_ids] if args.key?(:external_ids)
  @hash_function = args[:hash_function] if args.key?(:hash_function)
  @id = args[:id] if args.key?(:id)
  @ims = args[:ims] if args.key?(:ims)
  @include_in_global_address_list = args[:include_in_global_address_list] if args.key?(:include_in_global_address_list)
  @ip_whitelisted = args[:ip_whitelisted] if args.key?(:ip_whitelisted)
  @is_admin = args[:is_admin] if args.key?(:is_admin)
  @is_delegated_admin = args[:is_delegated_admin] if args.key?(:is_delegated_admin)
  @is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup)
  @kind = args[:kind] if args.key?(:kind)
  @last_login_time = args[:last_login_time] if args.key?(:last_login_time)
  @name = args[:name] if args.key?(:name)
  @non_editable_aliases = args[:non_editable_aliases] if args.key?(:non_editable_aliases)
  @notes = args[:notes] if args.key?(:notes)
  @org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path)
  @organizations = args[:organizations] if args.key?(:organizations)
  @password = args[:password] if args.key?(:password)
  @phones = args[:phones] if args.key?(:phones)
  @primary_email = args[:primary_email] if args.key?(:primary_email)
  @relations = args[:relations] if args.key?(:relations)
  @suspended = args[:suspended] if args.key?(:suspended)
  @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
  @thumbnail_photo_etag = args[:thumbnail_photo_etag] if args.key?(:thumbnail_photo_etag)
  @thumbnail_photo_url = args[:thumbnail_photo_url] if args.key?(:thumbnail_photo_url)
  @websites = args[:websites] if args.key?(:websites)
end