Class: Google::Apis::CloudsearchV1::PersonCore

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

Overview

Information for rendering a person. NEXT ID: 37

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PersonCore

Returns a new instance of PersonCore.



5496
5497
5498
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5496

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

Instance Attribute Details

#address_me_asString

Instructions for how to address this person (e.g. custom pronouns). For google. com this is a set of pronouns from a defined list of options. Corresponds to the JSON property addressMeAs

Returns:

  • (String)


5288
5289
5290
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5288

def address_me_as
  @address_me_as
end

#admin_toArray<Google::Apis::CloudsearchV1::PersonCore>

People the profile owner is an admin to. Note that not all fields of these PersonCores will be set, in particular, relationships will be empty. Corresponds to the JSON property adminTo



5294
5295
5296
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5294

def admin_to
  @admin_to
end

#adminsArray<Google::Apis::CloudsearchV1::PersonCore>

The profile owner's admins in no particular order. Note that not all fields of these PersonCores will be set, in particular, relationships will be empty. Corresponds to the JSON property admins



5300
5301
5302
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5300

def admins
  @admins
end

#availability_statusString

Corresponds to the JSON property availabilityStatus

Returns:

  • (String)


5305
5306
5307
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5305

def availability_status
  @availability_status
end

#birthdayGoogle::Apis::CloudsearchV1::Date

Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. The date must be a valid calendar date between the year 1 and 9999. Corresponds to the JSON property birthday



5314
5315
5316
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5314

def birthday
  @birthday
end

#calendar_urlGoogle::Apis::CloudsearchV1::SafeUrlProto

Message containing a string that is safe to use in URL contexts in DOM APIs and HTML documents, where the URL context does not refer to a resource that loads code. Corresponds to the JSON property calendarUrl



5321
5322
5323
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5321

def calendar_url
  @calendar_url
end

#chat_urlGoogle::Apis::CloudsearchV1::SafeUrlProto

Message containing a string that is safe to use in URL contexts in DOM APIs and HTML documents, where the URL context does not refer to a resource that loads code. Corresponds to the JSON property chatUrl



5328
5329
5330
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5328

def chat_url
  @chat_url
end

#cost_centerString

Person's cost center as a string, e.g. "926: Googler Apps". Corresponds to the JSON property costCenter

Returns:

  • (String)


5333
5334
5335
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5333

def cost_center
  @cost_center
end

#departmentString

The person's Organization department, e.g. "People Operations". For google.com this is usually called "area". Corresponds to the JSON property department

Returns:

  • (String)


5339
5340
5341
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5339

def department
  @department
end

#direct_reportsArray<Google::Apis::CloudsearchV1::PersonCore>

A subset of the profile owner's direct reports. The number of entities here may be less than total_direct_reports_count, because typically ProfileResponse does not include all the person's reports, if there are too many to retrieve efficiently. Note that not all fields of these PersonCores will be set, in particular, relationships will be empty. Corresponds to the JSON property directReports



5348
5349
5350
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5348

def direct_reports
  @direct_reports
end

#dotted_line_managersArray<Google::Apis::CloudsearchV1::PersonCore>

The profile owner's direct dotted line managers in no particular order. Note that not all fields of these PersonCores will be set, in particular, relationships will be empty. Corresponds to the JSON property dottedLineManagers



5355
5356
5357
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5355

def dotted_line_managers
  @dotted_line_managers
end

#dotted_line_reportsArray<Google::Apis::CloudsearchV1::PersonCore>

A subset of the profile owner's dotted-line reports. The number of entities here may be less than total_dlr_count. Note that not all fields of these PersonCores will be set, in particular, relationships will be empty. Corresponds to the JSON property dottedLineReports



5362
5363
5364
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5362

def dotted_line_reports
  @dotted_line_reports
end

#emailsArray<String>

E-mail addresses of the person. The primary or preferred email should be first. Corresponds to the JSON property emails

Returns:

  • (Array<String>)


5367
5368
5369
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5367

def emails
  @emails
end

#employee_idString

Person's employee number (external ID of type "organization") For google.com this is the badge number (e.g. 2 for Larry Page). Corresponds to the JSON property employeeId

Returns:

  • (String)


5373
5374
5375
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5373

def employee_id
  @employee_id
end

#fingerprintString

A fingerprint used by PAPI to reliably determine if a resource has changed Externally it is used as part of the etag. Corresponds to the JSON property fingerprint

Returns:

  • (String)


5379
5380
5381
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5379

def fingerprint
  @fingerprint
end

#fte_permilleFixnum

Full-time equivalent (in ‰) (e.g. 800 for a person who's working 80%). Corresponds to the JSON property ftePermille

Returns:

  • (Fixnum)


5384
5385
5386
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5384

def fte_permille
  @fte_permille
end

#geo_locationGoogle::Apis::CloudsearchV1::MapInfo

Geo information used for rendering a map that shows the user's work location. Corresponds to the JSON property geoLocation



5389
5390
5391
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5389

def geo_location
  @geo_location
end

#gmail_urlString

Corresponds to the JSON property gmailUrl

Returns:

  • (String)


5394
5395
5396
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5394

def gmail_url
  @gmail_url
end

#job_titleString

Profile owner's job title (e.g. "Software Engineer"). For google.com this is the Workday preferred job title. Corresponds to the JSON property jobTitle

Returns:

  • (String)


5400
5401
5402
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5400

def job_title
  @job_title
end

#keyword_typesArray<String>

List of keys to use from the map 'keywords'. Corresponds to the JSON property keywordTypes

Returns:

  • (Array<String>)


5405
5406
5407
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5405

def keyword_types
  @keyword_types
end

#keywordsHash<String,String>

Custom keywords the domain admin has added. Corresponds to the JSON property keywords

Returns:

  • (Hash<String,String>)


5410
5411
5412
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5410

def keywords
  @keywords
end

Custom links the profile owner has added. Corresponds to the JSON property links



5415
5416
5417
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5415

def links
  @links
end

#locationString

Detailed desk location within the company. For google.com this is the desk location code (e.g. "DE-MUC-ARP-6T2-6T2C0C") if the person has a desk. Corresponds to the JSON property location

Returns:

  • (String)


5421
5422
5423
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5421

def location
  @location
end

#managersArray<Google::Apis::CloudsearchV1::PersonCore>

The profile owner's management chain from top to bottom, where managers[0] is the CEO, manager[N-2] is the person's manager's manager and managers[N-1] is the person's direct manager. Note that not all fields of these PersonCores will be set, in particular, relationships will be empty. Corresponds to the JSON property managers



5429
5430
5431
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5429

def managers
  @managers
end

#missionString

Custom mission statement the profile owner has added. Corresponds to the JSON property mission

Returns:

  • (String)


5434
5435
5436
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5434

def mission
  @mission
end

#nameString

Human-readable Unicode display name. Corresponds to the JSON property name

Returns:

  • (String)


5439
5440
5441
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5439

def name
  @name
end

#office_locationString

Office/building identifier within the company. For google.com this is the office code (e.g. "DE-MUC-ARP"). Corresponds to the JSON property officeLocation

Returns:

  • (String)


5445
5446
5447
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5445

def office_location
  @office_location
end

#person_idString

The person's obfuscated Gaia ID. Corresponds to the JSON property personId

Returns:

  • (String)


5450
5451
5452
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5450

def person_id
  @person_id
end

#phone_numbersArray<Google::Apis::CloudsearchV1::EnterpriseTopazFrontendTeamsPersonCorePhoneNumber>

Corresponds to the JSON property phoneNumbers



5455
5456
5457
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5455

def phone_numbers
  @phone_numbers
end

#photo_urlGoogle::Apis::CloudsearchV1::SafeUrlProto

Message containing a string that is safe to use in URL contexts in DOM APIs and HTML documents, where the URL context does not refer to a resource that loads code. Corresponds to the JSON property photoUrl



5462
5463
5464
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5462

def photo_url
  @photo_url
end

#postal_addressString

Postal address of office/building. Corresponds to the JSON property postalAddress

Returns:

  • (String)


5467
5468
5469
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5467

def postal_address
  @postal_address
end

#total_direct_reports_countFixnum

Total count of the profile owner's direct reports. Corresponds to the JSON property totalDirectReportsCount

Returns:

  • (Fixnum)


5472
5473
5474
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5472

def total_direct_reports_count
  @total_direct_reports_count
end

#total_dlr_countFixnum

Total count of the profile owner's dotted-line reports. Corresponds to the JSON property totalDlrCount

Returns:

  • (Fixnum)


5477
5478
5479
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5477

def total_dlr_count
  @total_dlr_count
end

#total_fte_countFixnum

The sum of all profile owner's reports and their own full-time-equivalents in ‰ (e.g. 1800 if one report is working 80% and profile owner 100%). Corresponds to the JSON property totalFteCount

Returns:

  • (Fixnum)


5483
5484
5485
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5483

def total_fte_count
  @total_fte_count
end

#usernameString

External ID of type "login_id" for the profile. For google.com this is the username/LDAP. Corresponds to the JSON property username

Returns:

  • (String)


5489
5490
5491
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5489

def username
  @username
end

#waldo_come_back_timeString

Corresponds to the JSON property waldoComeBackTime

Returns:

  • (String)


5494
5495
5496
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5494

def waldo_come_back_time
  @waldo_come_back_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5501

def update!(**args)
  @address_me_as = args[:address_me_as] if args.key?(:address_me_as)
  @admin_to = args[:admin_to] if args.key?(:admin_to)
  @admins = args[:admins] if args.key?(:admins)
  @availability_status = args[:availability_status] if args.key?(:availability_status)
  @birthday = args[:birthday] if args.key?(:birthday)
  @calendar_url = args[:calendar_url] if args.key?(:calendar_url)
  @chat_url = args[:chat_url] if args.key?(:chat_url)
  @cost_center = args[:cost_center] if args.key?(:cost_center)
  @department = args[:department] if args.key?(:department)
  @direct_reports = args[:direct_reports] if args.key?(:direct_reports)
  @dotted_line_managers = args[:dotted_line_managers] if args.key?(:dotted_line_managers)
  @dotted_line_reports = args[:dotted_line_reports] if args.key?(:dotted_line_reports)
  @emails = args[:emails] if args.key?(:emails)
  @employee_id = args[:employee_id] if args.key?(:employee_id)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @fte_permille = args[:fte_permille] if args.key?(:fte_permille)
  @geo_location = args[:geo_location] if args.key?(:geo_location)
  @gmail_url = args[:gmail_url] if args.key?(:gmail_url)
  @job_title = args[:job_title] if args.key?(:job_title)
  @keyword_types = args[:keyword_types] if args.key?(:keyword_types)
  @keywords = args[:keywords] if args.key?(:keywords)
  @links = args[:links] if args.key?(:links)
  @location = args[:location] if args.key?(:location)
  @managers = args[:managers] if args.key?(:managers)
  @mission = args[:mission] if args.key?(:mission)
  @name = args[:name] if args.key?(:name)
  @office_location = args[:office_location] if args.key?(:office_location)
  @person_id = args[:person_id] if args.key?(:person_id)
  @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers)
  @photo_url = args[:photo_url] if args.key?(:photo_url)
  @postal_address = args[:postal_address] if args.key?(:postal_address)
  @total_direct_reports_count = args[:total_direct_reports_count] if args.key?(:total_direct_reports_count)
  @total_dlr_count = args[:total_dlr_count] if args.key?(:total_dlr_count)
  @total_fte_count = args[:total_fte_count] if args.key?(:total_fte_count)
  @username = args[:username] if args.key?(:username)
  @waldo_come_back_time = args[:waldo_come_back_time] if args.key?(:waldo_come_back_time)
end