class Google::Apis::AdminDirectoryV1::User

JSON template for User object in Directory API.

Attributes

addresses[RW]

Corresponds to the JSON property `addresses` @return [Object]

agreed_to_terms[RW]

Indicates if user has agreed to terms (Read-only) Corresponds to the JSON property `agreedToTerms` @return [Boolean]

agreed_to_terms?[RW]

Indicates if user has agreed to terms (Read-only) Corresponds to the JSON property `agreedToTerms` @return [Boolean]

aliases[RW]

List of aliases (Read-only) Corresponds to the JSON property `aliases` @return [Array<String>]

change_password_at_next_login[RW]

Boolean indicating if the user should change password in next login Corresponds to the JSON property `changePasswordAtNextLogin` @return [Boolean]

change_password_at_next_login?[RW]

Boolean indicating if the user should change password in next login Corresponds to the JSON property `changePasswordAtNextLogin` @return [Boolean]

creation_time[RW]

User's Google account creation time. (Read-only) Corresponds to the JSON property `creationTime` @return [DateTime]

custom_schemas[RW]

Custom fields of the user. Corresponds to the JSON property `customSchemas` @return [Hash<String,Hash<String,Object>>]

customer_id[RW]

CustomerId of User (Read-only) Corresponds to the JSON property `customerId` @return [String]

deletion_time[RW]

Corresponds to the JSON property `deletionTime` @return [DateTime]

emails[RW]

Corresponds to the JSON property `emails` @return [Object]

etag[RW]

ETag of the resource. Corresponds to the JSON property `etag` @return [String]

external_ids[RW]

Corresponds to the JSON property `externalIds` @return [Object]

hash_function[RW]

Hash function name for password. Supported are MD5, SHA-1 and crypt Corresponds to the JSON property `hashFunction` @return [String]

id[RW]

Unique identifier of User (Read-only) Corresponds to the JSON property `id` @return [String]

ims[RW]

Corresponds to the JSON property `ims` @return [Object]

include_in_global_address_list[RW]

Boolean indicating if user is included in Global Address List Corresponds to the JSON property `includeInGlobalAddressList` @return [Boolean]

include_in_global_address_list?[RW]

Boolean indicating if user is included in Global Address List Corresponds to the JSON property `includeInGlobalAddressList` @return [Boolean]

ip_whitelisted[RW]

Boolean indicating if ip is whitelisted Corresponds to the JSON property `ipWhitelisted` @return [Boolean]

ip_whitelisted?[RW]

Boolean indicating if ip is whitelisted Corresponds to the JSON property `ipWhitelisted` @return [Boolean]

is_admin[RW]

Boolean indicating if the user is admin (Read-only) Corresponds to the JSON property `isAdmin` @return [Boolean]

is_admin?[RW]

Boolean indicating if the user is admin (Read-only) Corresponds to the JSON property `isAdmin` @return [Boolean]

is_delegated_admin[RW]

Boolean indicating if the user is delegated admin (Read-only) Corresponds to the JSON property `isDelegatedAdmin` @return [Boolean]

is_delegated_admin?[RW]

Boolean indicating if the user is delegated admin (Read-only) Corresponds to the JSON property `isDelegatedAdmin` @return [Boolean]

is_mailbox_setup[RW]

Is mailbox setup (Read-only) Corresponds to the JSON property `isMailboxSetup` @return [Boolean]

is_mailbox_setup?[RW]

Is mailbox setup (Read-only) Corresponds to the JSON property `isMailboxSetup` @return [Boolean]

kind[RW]

Kind of resource this is. Corresponds to the JSON property `kind` @return [String]

last_login_time[RW]

User's last login time. (Read-only) Corresponds to the JSON property `lastLoginTime` @return [DateTime]

name[RW]

JSON template for name of a user in Directory API. Corresponds to the JSON property `name` @return [Google::Apis::AdminDirectoryV1::UserName]

non_editable_aliases[RW]

List of non editable aliases (Read-only) Corresponds to the JSON property `nonEditableAliases` @return [Array<String>]

notes[RW]

Corresponds to the JSON property `notes` @return [Object]

org_unit_path[RW]

OrgUnit of User Corresponds to the JSON property `orgUnitPath` @return [String]

organizations[RW]

Corresponds to the JSON property `organizations` @return [Object]

password[RW]

User's password Corresponds to the JSON property `password` @return [String]

phones[RW]

Corresponds to the JSON property `phones` @return [Object]

primary_email[RW]

username of User Corresponds to the JSON property `primaryEmail` @return [String]

relations[RW]

Corresponds to the JSON property `relations` @return [Object]

suspended[RW]

Indicates if user is suspended Corresponds to the JSON property `suspended` @return [Boolean]

suspended?[RW]

Indicates if user is suspended Corresponds to the JSON property `suspended` @return [Boolean]

suspension_reason[RW]

Suspension reason if user is suspended (Read-only) Corresponds to the JSON property `suspensionReason` @return [String]

thumbnail_photo_etag[RW]

ETag of the user's photo (Read-only) Corresponds to the JSON property `thumbnailPhotoEtag` @return [String]

thumbnail_photo_url[RW]

Photo Url of the user (Read-only) Corresponds to the JSON property `thumbnailPhotoUrl` @return [String]

websites[RW]

Corresponds to the JSON property `websites` @return [Object]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/admin_directory_v1/classes.rb, line 2404
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/admin_directory_v1/classes.rb, line 2409
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