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



2707
2708
2709
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2707

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

Instance Attribute Details

#addressesObject

Corresponds to the JSON property addresses

Returns:

  • (Object)


2485
2486
2487
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2485

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)


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

def agreed_to_terms
  @agreed_to_terms
end

#aliasesArray<String>

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

Returns:

  • (Array<String>)


2496
2497
2498
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2496

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)


2501
2502
2503
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2501

def 
  @change_password_at_next_login
end

#creation_timeDateTime

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

Returns:

  • (DateTime)


2507
2508
2509
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2507

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


2512
2513
2514
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2512

def custom_schemas
  @custom_schemas
end

#customer_idString

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

Returns:

  • (String)


2517
2518
2519
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2517

def customer_id
  @customer_id
end

#deletion_timeDateTime

Corresponds to the JSON property deletionTime

Returns:

  • (DateTime)


2522
2523
2524
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2522

def deletion_time
  @deletion_time
end

#emailsObject

Corresponds to the JSON property emails

Returns:

  • (Object)


2527
2528
2529
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2527

def emails
  @emails
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


2532
2533
2534
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2532

def etag
  @etag
end

#external_idsObject

Corresponds to the JSON property externalIds

Returns:

  • (Object)


2537
2538
2539
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2537

def external_ids
  @external_ids
end

#genderObject

Corresponds to the JSON property gender

Returns:

  • (Object)


2542
2543
2544
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2542

def gender
  @gender
end

#hash_functionString

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

Returns:

  • (String)


2547
2548
2549
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2547

def hash_function
  @hash_function
end

#idString

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

Returns:

  • (String)


2552
2553
2554
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2552

def id
  @id
end

#imsObject

Corresponds to the JSON property ims

Returns:

  • (Object)


2557
2558
2559
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2557

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)


2562
2563
2564
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2562

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)


2568
2569
2570
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2568

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)


2574
2575
2576
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2574

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)


2580
2581
2582
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2580

def is_delegated_admin
  @is_delegated_admin
end

#is_enforced_in2_svBoolean Also known as: is_enforced_in2_sv?

Is 2-step verification enforced (Read-only) Corresponds to the JSON property isEnforcedIn2Sv

Returns:

  • (Boolean)


2586
2587
2588
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2586

def is_enforced_in2_sv
  @is_enforced_in2_sv
end

#is_enrolled_in2_svBoolean Also known as: is_enrolled_in2_sv?

Is enrolled in 2-step verification (Read-only) Corresponds to the JSON property isEnrolledIn2Sv

Returns:

  • (Boolean)


2592
2593
2594
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2592

def is_enrolled_in2_sv
  @is_enrolled_in2_sv
end

#is_mailbox_setupBoolean Also known as: is_mailbox_setup?

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

Returns:

  • (Boolean)


2598
2599
2600
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2598

def is_mailbox_setup
  @is_mailbox_setup
end

#keywordsObject

Corresponds to the JSON property keywords

Returns:

  • (Object)


2604
2605
2606
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2604

def keywords
  @keywords
end

#kindString

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

Returns:

  • (String)


2609
2610
2611
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2609

def kind
  @kind
end

#languagesObject

Corresponds to the JSON property languages

Returns:

  • (Object)


2614
2615
2616
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2614

def languages
  @languages
end

#last_login_timeDateTime

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

Returns:

  • (DateTime)


2619
2620
2621
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2619

def 
  @last_login_time
end

#locationsObject

Corresponds to the JSON property locations

Returns:

  • (Object)


2624
2625
2626
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2624

def locations
  @locations
end

#nameGoogle::Apis::AdminDirectoryV1::UserName

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



2629
2630
2631
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2629

def name
  @name
end

#non_editable_aliasesArray<String>

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

Returns:

  • (Array<String>)


2634
2635
2636
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2634

def non_editable_aliases
  @non_editable_aliases
end

#notesObject

Corresponds to the JSON property notes

Returns:

  • (Object)


2639
2640
2641
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2639

def notes
  @notes
end

#org_unit_pathString

OrgUnit of User Corresponds to the JSON property orgUnitPath

Returns:

  • (String)


2644
2645
2646
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2644

def org_unit_path
  @org_unit_path
end

#organizationsObject

Corresponds to the JSON property organizations

Returns:

  • (Object)


2649
2650
2651
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2649

def organizations
  @organizations
end

#passwordString

User's password Corresponds to the JSON property password

Returns:

  • (String)


2654
2655
2656
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2654

def password
  @password
end

#phonesObject

Corresponds to the JSON property phones

Returns:

  • (Object)


2659
2660
2661
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2659

def phones
  @phones
end

#posix_accountsObject

Corresponds to the JSON property posixAccounts

Returns:

  • (Object)


2664
2665
2666
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2664

def posix_accounts
  @posix_accounts
end

#primary_emailString

username of User Corresponds to the JSON property primaryEmail

Returns:

  • (String)


2669
2670
2671
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2669

def primary_email
  @primary_email
end

#relationsObject

Corresponds to the JSON property relations

Returns:

  • (Object)


2674
2675
2676
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2674

def relations
  @relations
end

#ssh_public_keysObject

Corresponds to the JSON property sshPublicKeys

Returns:

  • (Object)


2679
2680
2681
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2679

def ssh_public_keys
  @ssh_public_keys
end

#suspendedBoolean Also known as: suspended?

Indicates if user is suspended Corresponds to the JSON property suspended

Returns:

  • (Boolean)


2684
2685
2686
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2684

def suspended
  @suspended
end

#suspension_reasonString

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

Returns:

  • (String)


2690
2691
2692
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2690

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)


2695
2696
2697
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2695

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)


2700
2701
2702
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2700

def thumbnail_photo_url
  @thumbnail_photo_url
end

#websitesObject

Corresponds to the JSON property websites

Returns:

  • (Object)


2705
2706
2707
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2705

def websites
  @websites
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2712

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)
  @gender = args[:gender] if args.key?(:gender)
  @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_enforced_in2_sv = args[:is_enforced_in2_sv] if args.key?(:is_enforced_in2_sv)
  @is_enrolled_in2_sv = args[:is_enrolled_in2_sv] if args.key?(:is_enrolled_in2_sv)
  @is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup)
  @keywords = args[:keywords] if args.key?(:keywords)
  @kind = args[:kind] if args.key?(:kind)
  @languages = args[:languages] if args.key?(:languages)
  @last_login_time = args[:last_login_time] if args.key?(:last_login_time)
  @locations = args[:locations] if args.key?(:locations)
  @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)
  @posix_accounts = args[:posix_accounts] if args.key?(:posix_accounts)
  @primary_email = args[:primary_email] if args.key?(:primary_email)
  @relations = args[:relations] if args.key?(:relations)
  @ssh_public_keys = args[:ssh_public_keys] if args.key?(:ssh_public_keys)
  @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