google-api-client 0.9.28 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -4
  3. data/CHANGELOG.md +10 -0
  4. data/api_names.yaml +36512 -36326
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/analyticsreporting_v4.rb +3 -3
  12. data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
  13. data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
  14. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
  16. data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/calendar_v3.rb +1 -1
  19. data/generated/google/apis/classroom_v1.rb +22 -25
  20. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  21. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  22. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
  26. data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
  27. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  28. data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
  29. data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
  30. data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
  31. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
  33. data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
  34. data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
  35. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
  37. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
  38. data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
  41. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  42. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
  43. data/generated/google/apis/cloudtrace_v1.rb +8 -8
  44. data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
  45. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  46. data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
  47. data/generated/google/apis/compute_beta.rb +1 -1
  48. data/generated/google/apis/compute_beta/classes.rb +406 -31
  49. data/generated/google/apis/compute_beta/representations.rb +154 -0
  50. data/generated/google/apis/compute_beta/service.rb +262 -9
  51. data/generated/google/apis/compute_v1.rb +1 -1
  52. data/generated/google/apis/compute_v1/classes.rb +17 -20
  53. data/generated/google/apis/content_v2.rb +1 -1
  54. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  55. data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
  56. data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
  57. data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
  58. data/generated/google/apis/dataproc_v1.rb +2 -2
  59. data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
  60. data/generated/google/apis/dataproc_v1/representations.rb +262 -244
  61. data/generated/google/apis/dataproc_v1/service.rb +298 -243
  62. data/generated/google/apis/datastore_v1.rb +4 -4
  63. data/generated/google/apis/datastore_v1/classes.rb +728 -728
  64. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  65. data/generated/google/apis/datastore_v1/service.rb +68 -68
  66. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v3.rb +1 -1
  69. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  70. data/generated/google/apis/games_management_v1management.rb +1 -1
  71. data/generated/google/apis/games_v1.rb +1 -1
  72. data/generated/google/apis/genomics_v1.rb +7 -7
  73. data/generated/google/apis/genomics_v1/classes.rb +932 -932
  74. data/generated/google/apis/genomics_v1/representations.rb +205 -205
  75. data/generated/google/apis/genomics_v1/service.rb +1228 -1228
  76. data/generated/google/apis/gmail_v1.rb +1 -1
  77. data/generated/google/apis/iam_v1/classes.rb +440 -440
  78. data/generated/google/apis/iam_v1/representations.rb +94 -94
  79. data/generated/google/apis/iam_v1/service.rb +60 -60
  80. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  81. data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
  82. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  83. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  84. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  85. data/generated/google/apis/kgsearch_v1/service.rb +21 -21
  86. data/generated/google/apis/language_v1beta1.rb +1 -1
  87. data/generated/google/apis/language_v1beta1/classes.rb +232 -232
  88. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  89. data/generated/google/apis/logging_v2beta1.rb +1 -1
  90. data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
  91. data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
  92. data/generated/google/apis/logging_v2beta1/service.rb +331 -306
  93. data/generated/google/apis/monitoring_v3.rb +1 -1
  94. data/generated/google/apis/monitoring_v3/classes.rb +253 -253
  95. data/generated/google/apis/monitoring_v3/representations.rb +58 -58
  96. data/generated/google/apis/monitoring_v3/service.rb +135 -135
  97. data/generated/google/apis/people_v1.rb +15 -16
  98. data/generated/google/apis/people_v1/classes.rb +985 -855
  99. data/generated/google/apis/people_v1/representations.rb +227 -220
  100. data/generated/google/apis/people_v1/service.rb +58 -52
  101. data/generated/google/apis/plus_domains_v1.rb +1 -1
  102. data/generated/google/apis/plus_v1.rb +1 -1
  103. data/generated/google/apis/pubsub_v1.rb +1 -1
  104. data/generated/google/apis/pubsub_v1/classes.rb +257 -257
  105. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  106. data/generated/google/apis/pubsub_v1/service.rb +390 -390
  107. data/generated/google/apis/script_v1.rb +17 -17
  108. data/generated/google/apis/script_v1/classes.rb +149 -141
  109. data/generated/google/apis/script_v1/representations.rb +26 -27
  110. data/generated/google/apis/script_v1/service.rb +9 -8
  111. data/generated/google/apis/sheets_v4.rb +1 -1
  112. data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
  113. data/generated/google/apis/sheets_v4/representations.rb +850 -834
  114. data/generated/google/apis/sheets_v4/service.rb +192 -192
  115. data/generated/google/apis/slides_v1.rb +1 -1
  116. data/generated/google/apis/slides_v1/classes.rb +927 -800
  117. data/generated/google/apis/slides_v1/representations.rb +253 -211
  118. data/generated/google/apis/speech_v1beta1.rb +1 -1
  119. data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
  120. data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
  121. data/generated/google/apis/speech_v1beta1/service.rb +51 -54
  122. data/generated/google/apis/storage_v1.rb +1 -1
  123. data/generated/google/apis/vision_v1.rb +1 -1
  124. data/generated/google/apis/vision_v1/classes.rb +888 -885
  125. data/generated/google/apis/vision_v1/representations.rb +139 -139
  126. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  127. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
  128. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  129. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  130. data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
  131. data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
  132. data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
  133. data/google-api-client.gemspec +2 -2
  134. data/lib/google/apis/core/api_command.rb +1 -1
  135. data/lib/google/apis/core/json_representation.rb +2 -2
  136. data/lib/google/apis/version.rb +1 -1
  137. data/samples/cli/lib/samples/you_tube.rb +4 -1
  138. metadata +36 -30
@@ -20,40 +20,39 @@ module Google
20
20
  module Apis
21
21
  # Google People API
22
22
  #
23
- # The Google People API service gives access to information about profiles and
24
- # contacts.
23
+ # Provides access to information about profiles and contacts.
25
24
  #
26
25
  # @see https://developers.google.com/people/
27
26
  module PeopleV1
28
27
  VERSION = 'V1'
29
- REVISION = '20160210'
28
+ REVISION = '20170213'
30
29
 
31
- # Manage your contacts
32
- AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
33
-
34
- # View your contacts
35
- AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
36
-
37
- # Know your basic profile info and list of people in your circles.
30
+ # Know the list of people in your circles, your age range, and language
38
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
39
32
 
33
+ # View your basic profile info
34
+ AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile'
35
+
40
36
  # View your street addresses
41
37
  AUTH_USER_ADDRESSES_READ = 'https://www.googleapis.com/auth/user.addresses.read'
42
38
 
43
- # View your complete date of birth
44
- AUTH_USER_BIRTHDAY_READ = 'https://www.googleapis.com/auth/user.birthday.read'
39
+ # Manage your contacts
40
+ AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
45
41
 
46
42
  # View your email addresses
47
43
  AUTH_USER_EMAILS_READ = 'https://www.googleapis.com/auth/user.emails.read'
48
44
 
45
+ # View your email address
46
+ AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
47
+
49
48
  # View your phone numbers
50
49
  AUTH_USER_PHONENUMBERS_READ = 'https://www.googleapis.com/auth/user.phonenumbers.read'
51
50
 
52
- # View your email address
53
- AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
51
+ # View your contacts
52
+ AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
54
53
 
55
- # View your basic profile info
56
- AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile'
54
+ # View your complete date of birth
55
+ AUTH_USER_BIRTHDAY_READ = 'https://www.googleapis.com/auth/user.birthday.read'
57
56
  end
58
57
  end
59
58
  end
@@ -22,160 +22,230 @@ module Google
22
22
  module Apis
23
23
  module PeopleV1
24
24
 
25
- # Information about a person merged from various data sources such as the
26
- # authenticated user's contacts and profile data. Fields other than IDs,
27
- # metadata, and group memberships are user-edited. Most fields can have multiple
28
- # items. The items in a field have no guaranteed order, but each non-empty field
29
- # is guaranteed to have exactly one field with `metadata.primary` set to true.
30
- class Person
25
+ # A person's birthday. At least one of the `date` and `text` fields are
26
+ # specified. The `date` and `text` fields typically represent the same
27
+ # date, but are not guaranteed to.
28
+ class Birthday
31
29
  include Google::Apis::Core::Hashable
32
30
 
33
- # The resource name for the person, assigned by the server. An ASCII string with
34
- # a max length of 27 characters. Always starts with `people/`.
35
- # Corresponds to the JSON property `resourceName`
31
+ # Metadata about a field.
32
+ # Corresponds to the JSON property `metadata`
33
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
34
+ attr_accessor :metadata
35
+
36
+ # A free-form string representing the user's birthday.
37
+ # Corresponds to the JSON property `text`
36
38
  # @return [String]
37
- attr_accessor :resource_name
39
+ attr_accessor :text
38
40
 
39
- # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource.
40
- # Used for web cache validation.
41
- # Corresponds to the JSON property `etag`
41
+ # Represents a whole calendar date, for example a date of birth. The time
42
+ # of day and time zone are either specified elsewhere or are not
43
+ # significant. The date is relative to the
44
+ # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
45
+ # Proleptic_Gregorian_calendar).
46
+ # The day may be 0 to represent a year and month where the day is not
47
+ # significant. The year may be 0 to represent a month and day independent
48
+ # of year; for example, anniversary date.
49
+ # Corresponds to the JSON property `date`
50
+ # @return [Google::Apis::PeopleV1::Date]
51
+ attr_accessor :date
52
+
53
+ def initialize(**args)
54
+ update!(**args)
55
+ end
56
+
57
+ # Update properties of this object
58
+ def update!(**args)
59
+ @metadata = args[:metadata] if args.key?(:metadata)
60
+ @text = args[:text] if args.key?(:text)
61
+ @date = args[:date] if args.key?(:date)
62
+ end
63
+ end
64
+
65
+ # A person's physical address. May be a P.O. box or street address. All fields
66
+ # are optional.
67
+ class Address
68
+ include Google::Apis::Core::Hashable
69
+
70
+ # The extended address of the address; for example, the apartment number.
71
+ # Corresponds to the JSON property `extendedAddress`
42
72
  # @return [String]
43
- attr_accessor :etag
73
+ attr_accessor :extended_address
44
74
 
45
- # Metadata about a person.
46
- # Corresponds to the JSON property `metadata`
47
- # @return [Google::Apis::PeopleV1::PersonMetadata]
48
- attr_accessor :metadata
75
+ # The P.O. box of the address.
76
+ # Corresponds to the JSON property `poBox`
77
+ # @return [String]
78
+ attr_accessor :po_box
49
79
 
50
- # The person's locale preferences.
51
- # Corresponds to the JSON property `locales`
52
- # @return [Array<Google::Apis::PeopleV1::Locale>]
53
- attr_accessor :locales
80
+ # The postal code of the address.
81
+ # Corresponds to the JSON property `postalCode`
82
+ # @return [String]
83
+ attr_accessor :postal_code
54
84
 
55
- # The person's names.
56
- # Corresponds to the JSON property `names`
57
- # @return [Array<Google::Apis::PeopleV1::Name>]
58
- attr_accessor :names
85
+ # The region of the address; for example, the state or province.
86
+ # Corresponds to the JSON property `region`
87
+ # @return [String]
88
+ attr_accessor :region
59
89
 
60
- # The person's nicknames.
61
- # Corresponds to the JSON property `nicknames`
62
- # @return [Array<Google::Apis::PeopleV1::Nickname>]
63
- attr_accessor :nicknames
90
+ # The street address.
91
+ # Corresponds to the JSON property `streetAddress`
92
+ # @return [String]
93
+ attr_accessor :street_address
64
94
 
65
- # The person's cover photos.
66
- # Corresponds to the JSON property `coverPhotos`
67
- # @return [Array<Google::Apis::PeopleV1::CoverPhoto>]
68
- attr_accessor :cover_photos
95
+ # Metadata about a field.
96
+ # Corresponds to the JSON property `metadata`
97
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
98
+ attr_accessor :metadata
69
99
 
70
- # The person's photos.
71
- # Corresponds to the JSON property `photos`
72
- # @return [Array<Google::Apis::PeopleV1::Photo>]
73
- attr_accessor :photos
100
+ # The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country
101
+ # code of the address.
102
+ # Corresponds to the JSON property `countryCode`
103
+ # @return [String]
104
+ attr_accessor :country_code
74
105
 
75
- # The person's genders.
76
- # Corresponds to the JSON property `genders`
77
- # @return [Array<Google::Apis::PeopleV1::Gender>]
78
- attr_accessor :genders
106
+ # The read-only type of the address translated and formatted in the viewer's
107
+ # account locale or the `Accept-Language` HTTP header locale.
108
+ # Corresponds to the JSON property `formattedType`
109
+ # @return [String]
110
+ attr_accessor :formatted_type
79
111
 
80
- # The person's age range.
81
- # Corresponds to the JSON property `ageRange`
112
+ # The city of the address.
113
+ # Corresponds to the JSON property `city`
82
114
  # @return [String]
83
- attr_accessor :age_range
115
+ attr_accessor :city
84
116
 
85
- # The person's birthdays.
86
- # Corresponds to the JSON property `birthdays`
87
- # @return [Array<Google::Apis::PeopleV1::Birthday>]
88
- attr_accessor :birthdays
117
+ # The unstructured value of the address. If this is not set by the user it
118
+ # will be automatically constructed from structured values.
119
+ # Corresponds to the JSON property `formattedValue`
120
+ # @return [String]
121
+ attr_accessor :formatted_value
89
122
 
90
- # The person's events.
91
- # Corresponds to the JSON property `events`
92
- # @return [Array<Google::Apis::PeopleV1::Event>]
93
- attr_accessor :events
123
+ # The country of the address.
124
+ # Corresponds to the JSON property `country`
125
+ # @return [String]
126
+ attr_accessor :country
94
127
 
95
- # The person's street addresses.
96
- # Corresponds to the JSON property `addresses`
97
- # @return [Array<Google::Apis::PeopleV1::Address>]
98
- attr_accessor :addresses
128
+ # The type of the address. The type can be custom or predefined.
129
+ # Possible values include, but are not limited to, the following:
130
+ # * `home`
131
+ # * `work`
132
+ # * `other`
133
+ # Corresponds to the JSON property `type`
134
+ # @return [String]
135
+ attr_accessor :type
99
136
 
100
- # The person's residences.
101
- # Corresponds to the JSON property `residences`
102
- # @return [Array<Google::Apis::PeopleV1::Residence>]
103
- attr_accessor :residences
137
+ def initialize(**args)
138
+ update!(**args)
139
+ end
104
140
 
105
- # The person's email addresses.
106
- # Corresponds to the JSON property `emailAddresses`
107
- # @return [Array<Google::Apis::PeopleV1::EmailAddress>]
108
- attr_accessor :email_addresses
141
+ # Update properties of this object
142
+ def update!(**args)
143
+ @extended_address = args[:extended_address] if args.key?(:extended_address)
144
+ @po_box = args[:po_box] if args.key?(:po_box)
145
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
146
+ @region = args[:region] if args.key?(:region)
147
+ @street_address = args[:street_address] if args.key?(:street_address)
148
+ @metadata = args[:metadata] if args.key?(:metadata)
149
+ @country_code = args[:country_code] if args.key?(:country_code)
150
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
151
+ @city = args[:city] if args.key?(:city)
152
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
153
+ @country = args[:country] if args.key?(:country)
154
+ @type = args[:type] if args.key?(:type)
155
+ end
156
+ end
109
157
 
110
- # The person's phone numbers.
111
- # Corresponds to the JSON property `phoneNumbers`
112
- # @return [Array<Google::Apis::PeopleV1::PhoneNumber>]
113
- attr_accessor :phone_numbers
158
+ # A person's past or current residence.
159
+ class Residence
160
+ include Google::Apis::Core::Hashable
114
161
 
115
- # The person's instant messaging clients.
116
- # Corresponds to the JSON property `imClients`
117
- # @return [Array<Google::Apis::PeopleV1::ImClient>]
118
- attr_accessor :im_clients
162
+ # Metadata about a field.
163
+ # Corresponds to the JSON property `metadata`
164
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
165
+ attr_accessor :metadata
119
166
 
120
- # The person's taglines.
121
- # Corresponds to the JSON property `taglines`
122
- # @return [Array<Google::Apis::PeopleV1::Tagline>]
123
- attr_accessor :taglines
167
+ # True if the residence is the person's current residence;
168
+ # false if the residence is a past residence.
169
+ # Corresponds to the JSON property `current`
170
+ # @return [Boolean]
171
+ attr_accessor :current
172
+ alias_method :current?, :current
124
173
 
125
- # The person's biographies.
126
- # Corresponds to the JSON property `biographies`
127
- # @return [Array<Google::Apis::PeopleV1::Biography>]
128
- attr_accessor :biographies
174
+ # The address of the residence.
175
+ # Corresponds to the JSON property `value`
176
+ # @return [String]
177
+ attr_accessor :value
129
178
 
130
- # The person's associated URLs.
131
- # Corresponds to the JSON property `urls`
132
- # @return [Array<Google::Apis::PeopleV1::Url>]
133
- attr_accessor :urls
179
+ def initialize(**args)
180
+ update!(**args)
181
+ end
134
182
 
135
- # The person's past or current organizations.
136
- # Corresponds to the JSON property `organizations`
137
- # @return [Array<Google::Apis::PeopleV1::Organization>]
138
- attr_accessor :organizations
183
+ # Update properties of this object
184
+ def update!(**args)
185
+ @metadata = args[:metadata] if args.key?(:metadata)
186
+ @current = args[:current] if args.key?(:current)
187
+ @value = args[:value] if args.key?(:value)
188
+ end
189
+ end
139
190
 
140
- # The person's occupations.
141
- # Corresponds to the JSON property `occupations`
142
- # @return [Array<Google::Apis::PeopleV1::Occupation>]
143
- attr_accessor :occupations
191
+ # A Google contact group membership.
192
+ class ContactGroupMembership
193
+ include Google::Apis::Core::Hashable
144
194
 
145
- # The person's interests.
146
- # Corresponds to the JSON property `interests`
147
- # @return [Array<Google::Apis::PeopleV1::Interest>]
148
- attr_accessor :interests
195
+ # The contact group ID for the contact group membership. The contact group
196
+ # ID can be custom or predefined. Possible values include, but are not
197
+ # limited to, the following:
198
+ # * `myContacts`
199
+ # * `starred`
200
+ # * A numerical ID for user-created groups.
201
+ # Corresponds to the JSON property `contactGroupId`
202
+ # @return [String]
203
+ attr_accessor :contact_group_id
149
204
 
150
- # The person's skills.
151
- # Corresponds to the JSON property `skills`
152
- # @return [Array<Google::Apis::PeopleV1::Skill>]
153
- attr_accessor :skills
205
+ def initialize(**args)
206
+ update!(**args)
207
+ end
154
208
 
155
- # The person's bragging rights.
156
- # Corresponds to the JSON property `braggingRights`
157
- # @return [Array<Google::Apis::PeopleV1::BraggingRights>]
158
- attr_accessor :bragging_rights
209
+ # Update properties of this object
210
+ def update!(**args)
211
+ @contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id)
212
+ end
213
+ end
159
214
 
160
- # The person's relations.
161
- # Corresponds to the JSON property `relations`
162
- # @return [Array<Google::Apis::PeopleV1::Relation>]
163
- attr_accessor :relations
215
+ # An event related to the person.
216
+ class Event
217
+ include Google::Apis::Core::Hashable
164
218
 
165
- # The kind of relationship the person is looking for.
166
- # Corresponds to the JSON property `relationshipInterests`
167
- # @return [Array<Google::Apis::PeopleV1::RelationshipInterest>]
168
- attr_accessor :relationship_interests
219
+ # Metadata about a field.
220
+ # Corresponds to the JSON property `metadata`
221
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
222
+ attr_accessor :metadata
169
223
 
170
- # The person's relationship statuses.
171
- # Corresponds to the JSON property `relationshipStatuses`
172
- # @return [Array<Google::Apis::PeopleV1::RelationshipStatus>]
173
- attr_accessor :relationship_statuses
224
+ # The type of the event. The type can be custom or predefined.
225
+ # Possible values include, but are not limited to, the following:
226
+ # * `anniversary`
227
+ # * `other`
228
+ # Corresponds to the JSON property `type`
229
+ # @return [String]
230
+ attr_accessor :type
174
231
 
175
- # The person's group memberships.
176
- # Corresponds to the JSON property `memberships`
177
- # @return [Array<Google::Apis::PeopleV1::Membership>]
178
- attr_accessor :memberships
232
+ # Represents a whole calendar date, for example a date of birth. The time
233
+ # of day and time zone are either specified elsewhere or are not
234
+ # significant. The date is relative to the
235
+ # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
236
+ # Proleptic_Gregorian_calendar).
237
+ # The day may be 0 to represent a year and month where the day is not
238
+ # significant. The year may be 0 to represent a month and day independent
239
+ # of year; for example, anniversary date.
240
+ # Corresponds to the JSON property `date`
241
+ # @return [Google::Apis::PeopleV1::Date]
242
+ attr_accessor :date
243
+
244
+ # The read-only type of the event translated and formatted in the
245
+ # viewer's account locale or the `Accept-Language` HTTP header locale.
246
+ # Corresponds to the JSON property `formattedType`
247
+ # @return [String]
248
+ attr_accessor :formatted_type
179
249
 
180
250
  def initialize(**args)
181
251
  update!(**args)
@@ -183,39 +253,14 @@ module Google
183
253
 
184
254
  # Update properties of this object
185
255
  def update!(**args)
186
- @resource_name = args[:resource_name] if args.key?(:resource_name)
187
- @etag = args[:etag] if args.key?(:etag)
188
256
  @metadata = args[:metadata] if args.key?(:metadata)
189
- @locales = args[:locales] if args.key?(:locales)
190
- @names = args[:names] if args.key?(:names)
191
- @nicknames = args[:nicknames] if args.key?(:nicknames)
192
- @cover_photos = args[:cover_photos] if args.key?(:cover_photos)
193
- @photos = args[:photos] if args.key?(:photos)
194
- @genders = args[:genders] if args.key?(:genders)
195
- @age_range = args[:age_range] if args.key?(:age_range)
196
- @birthdays = args[:birthdays] if args.key?(:birthdays)
197
- @events = args[:events] if args.key?(:events)
198
- @addresses = args[:addresses] if args.key?(:addresses)
199
- @residences = args[:residences] if args.key?(:residences)
200
- @email_addresses = args[:email_addresses] if args.key?(:email_addresses)
201
- @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers)
202
- @im_clients = args[:im_clients] if args.key?(:im_clients)
203
- @taglines = args[:taglines] if args.key?(:taglines)
204
- @biographies = args[:biographies] if args.key?(:biographies)
205
- @urls = args[:urls] if args.key?(:urls)
206
- @organizations = args[:organizations] if args.key?(:organizations)
207
- @occupations = args[:occupations] if args.key?(:occupations)
208
- @interests = args[:interests] if args.key?(:interests)
209
- @skills = args[:skills] if args.key?(:skills)
210
- @bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights)
211
- @relations = args[:relations] if args.key?(:relations)
212
- @relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests)
213
- @relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses)
214
- @memberships = args[:memberships] if args.key?(:memberships)
257
+ @type = args[:type] if args.key?(:type)
258
+ @date = args[:date] if args.key?(:date)
259
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
215
260
  end
216
261
  end
217
262
 
218
- # Metadata about a person.
263
+ # The read-only metadata about a person.
219
264
  class PersonMetadata
220
265
  include Google::Apis::Core::Hashable
221
266
 
@@ -224,18 +269,19 @@ module Google
224
269
  # @return [Array<Google::Apis::PeopleV1::Source>]
225
270
  attr_accessor :sources
226
271
 
227
- # Any former resource names this person has had. Populated only for [`
228
- # connections.list`](/people/api/rest/v1/people.connections/list) requests that
229
- # include a sync token. The resource name may change when adding or removing
230
- # fields that link a contact and profile such as a verified email, verified
231
- # phone number, or profile URL.
272
+ # Any former resource names this person has had. Populated only for
273
+ # [`connections.list`](/people/api/rest/v1/people.connections/list) requests
274
+ # that include a sync token.
275
+ # The resource name may change when adding or removing fields that link a
276
+ # contact and profile such as a verified email, verified phone number, or
277
+ # profile URL.
232
278
  # Corresponds to the JSON property `previousResourceNames`
233
279
  # @return [Array<String>]
234
280
  attr_accessor :previous_resource_names
235
281
 
236
- # True if the person resource has been deleted. Populated only for [`connections.
237
- # list`](/people/api/rest/v1/people.connections/list) requests that include a
238
- # sync token.
282
+ # True if the person resource has been deleted. Populated only for
283
+ # [`connections.list`](/people/api/rest/v1/people.connections/list) requests
284
+ # that include a sync token.
239
285
  # Corresponds to the JSON property `deleted`
240
286
  # @return [Boolean]
241
287
  attr_accessor :deleted
@@ -246,6 +292,11 @@ module Google
246
292
  # @return [String]
247
293
  attr_accessor :object_type
248
294
 
295
+ # Resource names of people linked to this resource.
296
+ # Corresponds to the JSON property `linkedPeopleResourceNames`
297
+ # @return [Array<String>]
298
+ attr_accessor :linked_people_resource_names
299
+
249
300
  def initialize(**args)
250
301
  update!(**args)
251
302
  end
@@ -256,22 +307,35 @@ module Google
256
307
  @previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names)
257
308
  @deleted = args[:deleted] if args.key?(:deleted)
258
309
  @object_type = args[:object_type] if args.key?(:object_type)
310
+ @linked_people_resource_names = args[:linked_people_resource_names] if args.key?(:linked_people_resource_names)
259
311
  end
260
312
  end
261
313
 
262
- # The source of a field.
263
- class Source
314
+ # A person's gender.
315
+ class Gender
264
316
  include Google::Apis::Core::Hashable
265
317
 
266
- # The source type.
267
- # Corresponds to the JSON property `type`
318
+ # Metadata about a field.
319
+ # Corresponds to the JSON property `metadata`
320
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
321
+ attr_accessor :metadata
322
+
323
+ # The gender for the person. The gender can be custom or predefined.
324
+ # Possible values include, but are not limited to, the
325
+ # following:
326
+ # * `male`
327
+ # * `female`
328
+ # * `other`
329
+ # * `unknown`
330
+ # Corresponds to the JSON property `value`
268
331
  # @return [String]
269
- attr_accessor :type
332
+ attr_accessor :value
270
333
 
271
- # A unique identifier within the source type generated by the server.
272
- # Corresponds to the JSON property `id`
334
+ # The read-only value of the gender translated and formatted in the viewer's
335
+ # account locale or the `Accept-Language` HTTP header locale.
336
+ # Corresponds to the JSON property `formattedValue`
273
337
  # @return [String]
274
- attr_accessor :id
338
+ attr_accessor :formatted_value
275
339
 
276
340
  def initialize(**args)
277
341
  update!(**args)
@@ -279,13 +343,14 @@ module Google
279
343
 
280
344
  # Update properties of this object
281
345
  def update!(**args)
282
- @type = args[:type] if args.key?(:type)
283
- @id = args[:id] if args.key?(:id)
346
+ @metadata = args[:metadata] if args.key?(:metadata)
347
+ @value = args[:value] if args.key?(:value)
348
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
284
349
  end
285
350
  end
286
351
 
287
- # A person's locale preference.
288
- class Locale
352
+ # A person's associated URLs.
353
+ class Url
289
354
  include Google::Apis::Core::Hashable
290
355
 
291
356
  # Metadata about a field.
@@ -293,12 +358,32 @@ module Google
293
358
  # @return [Google::Apis::PeopleV1::FieldMetadata]
294
359
  attr_accessor :metadata
295
360
 
296
- # The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47) language tag
297
- # representing the locale.
361
+ # The type of the URL. The type can be custom or predefined.
362
+ # Possible values include, but are not limited to, the following:
363
+ # * `home`
364
+ # * `work`
365
+ # * `blog`
366
+ # * `profile`
367
+ # * `homePage`
368
+ # * `ftp`
369
+ # * `reservations`
370
+ # * `appInstallPage`: website for a Google+ application.
371
+ # * `other`
372
+ # Corresponds to the JSON property `type`
373
+ # @return [String]
374
+ attr_accessor :type
375
+
376
+ # The URL.
298
377
  # Corresponds to the JSON property `value`
299
378
  # @return [String]
300
379
  attr_accessor :value
301
380
 
381
+ # The read-only type of the URL translated and formatted in the viewer's
382
+ # account locale or the `Accept-Language` HTTP header locale.
383
+ # Corresponds to the JSON property `formattedType`
384
+ # @return [String]
385
+ attr_accessor :formatted_type
386
+
302
387
  def initialize(**args)
303
388
  update!(**args)
304
389
  end
@@ -306,33 +391,33 @@ module Google
306
391
  # Update properties of this object
307
392
  def update!(**args)
308
393
  @metadata = args[:metadata] if args.key?(:metadata)
394
+ @type = args[:type] if args.key?(:type)
309
395
  @value = args[:value] if args.key?(:value)
396
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
310
397
  end
311
398
  end
312
399
 
313
- # Metadata about a field.
314
- class FieldMetadata
400
+ # A person's read-only cover photo. A large image shown on the person's
401
+ # profile page that represents who they are or what they care about.
402
+ class CoverPhoto
315
403
  include Google::Apis::Core::Hashable
316
404
 
317
- # True if the field is the primary field; false if the field is a secondary
318
- # field.
319
- # Corresponds to the JSON property `primary`
320
- # @return [Boolean]
321
- attr_accessor :primary
322
- alias_method :primary?, :primary
405
+ # Metadata about a field.
406
+ # Corresponds to the JSON property `metadata`
407
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
408
+ attr_accessor :metadata
323
409
 
324
- # True if the field is verified; false if the field is unverified. A verified
325
- # field is typically a name, email address, phone number, or website that has
326
- # been confirmed to be owned by the person.
327
- # Corresponds to the JSON property `verified`
410
+ # True if the cover photo is the default cover photo;
411
+ # false if the cover photo is a user-provided cover photo.
412
+ # Corresponds to the JSON property `default`
328
413
  # @return [Boolean]
329
- attr_accessor :verified
330
- alias_method :verified?, :verified
414
+ attr_accessor :default
415
+ alias_method :default?, :default
331
416
 
332
- # The source of a field.
333
- # Corresponds to the JSON property `source`
334
- # @return [Google::Apis::PeopleV1::Source]
335
- attr_accessor :source
417
+ # The URL of the cover photo.
418
+ # Corresponds to the JSON property `url`
419
+ # @return [String]
420
+ attr_accessor :url
336
421
 
337
422
  def initialize(**args)
338
423
  update!(**args)
@@ -340,76 +425,90 @@ module Google
340
425
 
341
426
  # Update properties of this object
342
427
  def update!(**args)
343
- @primary = args[:primary] if args.key?(:primary)
344
- @verified = args[:verified] if args.key?(:verified)
345
- @source = args[:source] if args.key?(:source)
428
+ @metadata = args[:metadata] if args.key?(:metadata)
429
+ @default = args[:default] if args.key?(:default)
430
+ @url = args[:url] if args.key?(:url)
346
431
  end
347
432
  end
348
433
 
349
- # A person's name. If the name is a mononym, the family name is empty.
350
- class Name
434
+ # A person's instant messaging client.
435
+ class ImClient
351
436
  include Google::Apis::Core::Hashable
352
437
 
353
- # Metadata about a field.
354
- # Corresponds to the JSON property `metadata`
355
- # @return [Google::Apis::PeopleV1::FieldMetadata]
356
- attr_accessor :metadata
357
-
358
- # The display name formatted according to the locale specified by the viewer's
359
- # account or the Accept-Language HTTP header.
360
- # Corresponds to the JSON property `displayName`
438
+ # The read-only protocol of the IM client formatted in the viewer's account
439
+ # locale or the `Accept-Language` HTTP header locale.
440
+ # Corresponds to the JSON property `formattedProtocol`
361
441
  # @return [String]
362
- attr_accessor :display_name
442
+ attr_accessor :formatted_protocol
363
443
 
364
- # The family name.
365
- # Corresponds to the JSON property `familyName`
444
+ # The read-only type of the IM client translated and formatted in the
445
+ # viewer's account locale or the `Accept-Language` HTTP header locale.
446
+ # Corresponds to the JSON property `formattedType`
366
447
  # @return [String]
367
- attr_accessor :family_name
448
+ attr_accessor :formatted_type
368
449
 
369
- # The given name.
370
- # Corresponds to the JSON property `givenName`
371
- # @return [String]
372
- attr_accessor :given_name
450
+ # Metadata about a field.
451
+ # Corresponds to the JSON property `metadata`
452
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
453
+ attr_accessor :metadata
373
454
 
374
- # The middle name(s).
375
- # Corresponds to the JSON property `middleName`
455
+ # The type of the IM client. The type can be custom or predefined.
456
+ # Possible values include, but are not limited to, the following:
457
+ # * `home`
458
+ # * `work`
459
+ # * `other`
460
+ # Corresponds to the JSON property `type`
376
461
  # @return [String]
377
- attr_accessor :middle_name
462
+ attr_accessor :type
378
463
 
379
- # The honorific prefixes, such as `Mrs.` or `Dr.`
380
- # Corresponds to the JSON property `honorificPrefix`
464
+ # The protocol of the IM client. The protocol can be custom or predefined.
465
+ # Possible values include, but are not limited to, the following:
466
+ # * `aim`
467
+ # * `msn`
468
+ # * `yahoo`
469
+ # * `skype`
470
+ # * `qq`
471
+ # * `googleTalk`
472
+ # * `icq`
473
+ # * `jabber`
474
+ # * `netMeeting`
475
+ # Corresponds to the JSON property `protocol`
381
476
  # @return [String]
382
- attr_accessor :honorific_prefix
477
+ attr_accessor :protocol
383
478
 
384
- # The honorific suffixes, such as `Jr.`
385
- # Corresponds to the JSON property `honorificSuffix`
479
+ # The user name used in the IM client.
480
+ # Corresponds to the JSON property `username`
386
481
  # @return [String]
387
- attr_accessor :honorific_suffix
482
+ attr_accessor :username
388
483
 
389
- # The family name spelled as it sounds.
390
- # Corresponds to the JSON property `phoneticFamilyName`
391
- # @return [String]
392
- attr_accessor :phonetic_family_name
484
+ def initialize(**args)
485
+ update!(**args)
486
+ end
393
487
 
394
- # The given name spelled as it sounds.
395
- # Corresponds to the JSON property `phoneticGivenName`
396
- # @return [String]
397
- attr_accessor :phonetic_given_name
488
+ # Update properties of this object
489
+ def update!(**args)
490
+ @formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol)
491
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
492
+ @metadata = args[:metadata] if args.key?(:metadata)
493
+ @type = args[:type] if args.key?(:type)
494
+ @protocol = args[:protocol] if args.key?(:protocol)
495
+ @username = args[:username] if args.key?(:username)
496
+ end
497
+ end
398
498
 
399
- # The middle name(s) spelled as they sound.
400
- # Corresponds to the JSON property `phoneticMiddleName`
401
- # @return [String]
402
- attr_accessor :phonetic_middle_name
499
+ # One of the person's interests.
500
+ class Interest
501
+ include Google::Apis::Core::Hashable
403
502
 
404
- # The honorific prefixes spelled as they sound.
405
- # Corresponds to the JSON property `phoneticHonorificPrefix`
406
- # @return [String]
407
- attr_accessor :phonetic_honorific_prefix
503
+ # Metadata about a field.
504
+ # Corresponds to the JSON property `metadata`
505
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
506
+ attr_accessor :metadata
408
507
 
409
- # The honorific suffixes spelled as they sound.
410
- # Corresponds to the JSON property `phoneticHonorificSuffix`
508
+ # The interest; for example, `stargazing`.
509
+ # Corresponds to the JSON property `value`
411
510
  # @return [String]
412
- attr_accessor :phonetic_honorific_suffix
511
+ attr_accessor :value
413
512
 
414
513
  def initialize(**args)
415
514
  update!(**args)
@@ -418,17 +517,7 @@ module Google
418
517
  # Update properties of this object
419
518
  def update!(**args)
420
519
  @metadata = args[:metadata] if args.key?(:metadata)
421
- @display_name = args[:display_name] if args.key?(:display_name)
422
- @family_name = args[:family_name] if args.key?(:family_name)
423
- @given_name = args[:given_name] if args.key?(:given_name)
424
- @middle_name = args[:middle_name] if args.key?(:middle_name)
425
- @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix)
426
- @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix)
427
- @phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name)
428
- @phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name)
429
- @phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name)
430
- @phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix)
431
- @phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
520
+ @value = args[:value] if args.key?(:value)
432
521
  end
433
522
  end
434
523
 
@@ -441,16 +530,16 @@ module Google
441
530
  # @return [Google::Apis::PeopleV1::FieldMetadata]
442
531
  attr_accessor :metadata
443
532
 
444
- # The nickname.
445
- # Corresponds to the JSON property `value`
446
- # @return [String]
447
- attr_accessor :value
448
-
449
533
  # The type of the nickname.
450
534
  # Corresponds to the JSON property `type`
451
535
  # @return [String]
452
536
  attr_accessor :type
453
537
 
538
+ # The nickname.
539
+ # Corresponds to the JSON property `value`
540
+ # @return [String]
541
+ attr_accessor :value
542
+
454
543
  def initialize(**args)
455
544
  update!(**args)
456
545
  end
@@ -458,32 +547,44 @@ module Google
458
547
  # Update properties of this object
459
548
  def update!(**args)
460
549
  @metadata = args[:metadata] if args.key?(:metadata)
461
- @value = args[:value] if args.key?(:value)
462
550
  @type = args[:type] if args.key?(:type)
551
+ @value = args[:value] if args.key?(:value)
463
552
  end
464
553
  end
465
554
 
466
- # A person's cover photo. A large image shown on the person's profile page that
467
- # represents who they are or what they care about.
468
- class CoverPhoto
555
+ # A person's email address.
556
+ class EmailAddress
469
557
  include Google::Apis::Core::Hashable
470
558
 
559
+ # The display name of the email.
560
+ # Corresponds to the JSON property `displayName`
561
+ # @return [String]
562
+ attr_accessor :display_name
563
+
471
564
  # Metadata about a field.
472
565
  # Corresponds to the JSON property `metadata`
473
566
  # @return [Google::Apis::PeopleV1::FieldMetadata]
474
567
  attr_accessor :metadata
475
568
 
476
- # The URL of the cover photo.
477
- # Corresponds to the JSON property `url`
569
+ # The type of the email address. The type can be custom or predefined.
570
+ # Possible values include, but are not limited to, the following:
571
+ # * `home`
572
+ # * `work`
573
+ # * `other`
574
+ # Corresponds to the JSON property `type`
478
575
  # @return [String]
479
- attr_accessor :url
576
+ attr_accessor :type
480
577
 
481
- # True if the cover photo is the default cover photo; false if the cover photo
482
- # is a user-provided cover photo.
483
- # Corresponds to the JSON property `default`
484
- # @return [Boolean]
485
- attr_accessor :default
486
- alias_method :default?, :default
578
+ # The email address.
579
+ # Corresponds to the JSON property `value`
580
+ # @return [String]
581
+ attr_accessor :value
582
+
583
+ # The read-only type of the email address translated and formatted in the
584
+ # viewer's account locale or the `Accept-Language` HTTP header locale.
585
+ # Corresponds to the JSON property `formattedType`
586
+ # @return [String]
587
+ attr_accessor :formatted_type
487
588
 
488
589
  def initialize(**args)
489
590
  update!(**args)
@@ -491,15 +592,16 @@ module Google
491
592
 
492
593
  # Update properties of this object
493
594
  def update!(**args)
595
+ @display_name = args[:display_name] if args.key?(:display_name)
494
596
  @metadata = args[:metadata] if args.key?(:metadata)
495
- @url = args[:url] if args.key?(:url)
496
- @default = args[:default] if args.key?(:default)
597
+ @type = args[:type] if args.key?(:type)
598
+ @value = args[:value] if args.key?(:value)
599
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
497
600
  end
498
601
  end
499
602
 
500
- # A person's photo. A picture shown next to the person's name to help others
501
- # recognize the person.
502
- class Photo
603
+ # A skill that the person has.
604
+ class Skill
503
605
  include Google::Apis::Core::Hashable
504
606
 
505
607
  # Metadata about a field.
@@ -507,10 +609,10 @@ module Google
507
609
  # @return [Google::Apis::PeopleV1::FieldMetadata]
508
610
  attr_accessor :metadata
509
611
 
510
- # The URL of the photo.
511
- # Corresponds to the JSON property `url`
612
+ # The skill; for example, `underwater basket weaving`.
613
+ # Corresponds to the JSON property `value`
512
614
  # @return [String]
513
- attr_accessor :url
615
+ attr_accessor :value
514
616
 
515
617
  def initialize(**args)
516
618
  update!(**args)
@@ -519,12 +621,32 @@ module Google
519
621
  # Update properties of this object
520
622
  def update!(**args)
521
623
  @metadata = args[:metadata] if args.key?(:metadata)
522
- @url = args[:url] if args.key?(:url)
624
+ @value = args[:value] if args.key?(:value)
523
625
  end
524
626
  end
525
627
 
526
- # A person's gender.
527
- class Gender
628
+ # A Google Apps Domain membership.
629
+ class DomainMembership
630
+ include Google::Apis::Core::Hashable
631
+
632
+ # True if the person is in the viewer's Google Apps domain.
633
+ # Corresponds to the JSON property `inViewerDomain`
634
+ # @return [Boolean]
635
+ attr_accessor :in_viewer_domain
636
+ alias_method :in_viewer_domain?, :in_viewer_domain
637
+
638
+ def initialize(**args)
639
+ update!(**args)
640
+ end
641
+
642
+ # Update properties of this object
643
+ def update!(**args)
644
+ @in_viewer_domain = args[:in_viewer_domain] if args.key?(:in_viewer_domain)
645
+ end
646
+ end
647
+
648
+ # A person's read-only membership in a group.
649
+ class Membership
528
650
  include Google::Apis::Core::Hashable
529
651
 
530
652
  # Metadata about a field.
@@ -532,18 +654,15 @@ module Google
532
654
  # @return [Google::Apis::PeopleV1::FieldMetadata]
533
655
  attr_accessor :metadata
534
656
 
535
- # The gender for the person. The gender can be custom or predefined. Possible
536
- # values include, but are not limited to, the following: * `male` * `female` * `
537
- # other` * `unknown`
538
- # Corresponds to the JSON property `value`
539
- # @return [String]
540
- attr_accessor :value
657
+ # A Google contact group membership.
658
+ # Corresponds to the JSON property `contactGroupMembership`
659
+ # @return [Google::Apis::PeopleV1::ContactGroupMembership]
660
+ attr_accessor :contact_group_membership
541
661
 
542
- # The read-only value of the gender translated and formatted in the viewer's
543
- # account locale or the `Accept-Language` HTTP header locale.
544
- # Corresponds to the JSON property `formattedValue`
545
- # @return [String]
546
- attr_accessor :formatted_value
662
+ # A Google Apps Domain membership.
663
+ # Corresponds to the JSON property `domainMembership`
664
+ # @return [Google::Apis::PeopleV1::DomainMembership]
665
+ attr_accessor :domain_membership
547
666
 
548
667
  def initialize(**args)
549
668
  update!(**args)
@@ -552,36 +671,40 @@ module Google
552
671
  # Update properties of this object
553
672
  def update!(**args)
554
673
  @metadata = args[:metadata] if args.key?(:metadata)
555
- @value = args[:value] if args.key?(:value)
556
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
674
+ @contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership)
675
+ @domain_membership = args[:domain_membership] if args.key?(:domain_membership)
557
676
  end
558
677
  end
559
678
 
560
- # A person's birthday. At least one of the `date` and `text` fields are
561
- # specified. The `date` and `text` fields typically represent the same date, but
562
- # are not guaranteed to.
563
- class Birthday
679
+ # A person's read-only relationship status.
680
+ class RelationshipStatus
564
681
  include Google::Apis::Core::Hashable
565
682
 
683
+ # The read-only value of the relationship status translated and formatted in
684
+ # the viewer's account locale or the `Accept-Language` HTTP header locale.
685
+ # Corresponds to the JSON property `formattedValue`
686
+ # @return [String]
687
+ attr_accessor :formatted_value
688
+
566
689
  # Metadata about a field.
567
690
  # Corresponds to the JSON property `metadata`
568
691
  # @return [Google::Apis::PeopleV1::FieldMetadata]
569
692
  attr_accessor :metadata
570
693
 
571
- # Represents a whole calendar date, for example a date of birth. The time of day
572
- # and time zone are either specified elsewhere or are not significant. The date
573
- # is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
574
- # wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
575
- # month where the day is not significant. The year may be 0 to represent a month
576
- # and day independent of year; for example, anniversary date.
577
- # Corresponds to the JSON property `date`
578
- # @return [Google::Apis::PeopleV1::Date]
579
- attr_accessor :date
580
-
581
- # A free-form string representing the user's birthday.
582
- # Corresponds to the JSON property `text`
694
+ # The relationship status. The value can be custom or predefined.
695
+ # Possible values include, but are not limited to, the following:
696
+ # * `single`
697
+ # * `inARelationship`
698
+ # * `engaged`
699
+ # * `married`
700
+ # * `itsComplicated`
701
+ # * `openRelationship`
702
+ # * `widowed`
703
+ # * `inDomesticPartnership`
704
+ # * `inCivilUnion`
705
+ # Corresponds to the JSON property `value`
583
706
  # @return [String]
584
- attr_accessor :text
707
+ attr_accessor :value
585
708
 
586
709
  def initialize(**args)
587
710
  update!(**args)
@@ -589,33 +712,36 @@ module Google
589
712
 
590
713
  # Update properties of this object
591
714
  def update!(**args)
715
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
592
716
  @metadata = args[:metadata] if args.key?(:metadata)
593
- @date = args[:date] if args.key?(:date)
594
- @text = args[:text] if args.key?(:text)
717
+ @value = args[:value] if args.key?(:value)
595
718
  end
596
719
  end
597
720
 
598
- # Represents a whole calendar date, for example a date of birth. The time of day
599
- # and time zone are either specified elsewhere or are not significant. The date
600
- # is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
601
- # wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
602
- # month where the day is not significant. The year may be 0 to represent a month
603
- # and day independent of year; for example, anniversary date.
721
+ # Represents a whole calendar date, for example a date of birth. The time
722
+ # of day and time zone are either specified elsewhere or are not
723
+ # significant. The date is relative to the
724
+ # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
725
+ # Proleptic_Gregorian_calendar).
726
+ # The day may be 0 to represent a year and month where the day is not
727
+ # significant. The year may be 0 to represent a month and day independent
728
+ # of year; for example, anniversary date.
604
729
  class Date
605
730
  include Google::Apis::Core::Hashable
606
731
 
607
- # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
608
- # Corresponds to the JSON property `year`
609
- # @return [Fixnum]
610
- attr_accessor :year
611
-
612
732
  # Month of year. Must be from 1 to 12.
613
733
  # Corresponds to the JSON property `month`
614
734
  # @return [Fixnum]
615
735
  attr_accessor :month
616
736
 
617
- # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
618
- # specifying a year/month where the day is not significant.
737
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
738
+ # a year.
739
+ # Corresponds to the JSON property `year`
740
+ # @return [Fixnum]
741
+ attr_accessor :year
742
+
743
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
744
+ # if specifying a year/month where the day is not significant.
619
745
  # Corresponds to the JSON property `day`
620
746
  # @return [Fixnum]
621
747
  attr_accessor :day
@@ -626,124 +752,113 @@ module Google
626
752
 
627
753
  # Update properties of this object
628
754
  def update!(**args)
629
- @year = args[:year] if args.key?(:year)
630
755
  @month = args[:month] if args.key?(:month)
756
+ @year = args[:year] if args.key?(:year)
631
757
  @day = args[:day] if args.key?(:day)
632
758
  end
633
759
  end
634
760
 
635
- # An event related to the person.
636
- class Event
761
+ # A read-only brief one-line description of the person.
762
+ class Tagline
637
763
  include Google::Apis::Core::Hashable
638
764
 
765
+ # The tagline.
766
+ # Corresponds to the JSON property `value`
767
+ # @return [String]
768
+ attr_accessor :value
769
+
639
770
  # Metadata about a field.
640
771
  # Corresponds to the JSON property `metadata`
641
772
  # @return [Google::Apis::PeopleV1::FieldMetadata]
642
773
  attr_accessor :metadata
643
774
 
644
- # Represents a whole calendar date, for example a date of birth. The time of day
645
- # and time zone are either specified elsewhere or are not significant. The date
646
- # is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
647
- # wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
648
- # month where the day is not significant. The year may be 0 to represent a month
649
- # and day independent of year; for example, anniversary date.
650
- # Corresponds to the JSON property `date`
651
- # @return [Google::Apis::PeopleV1::Date]
652
- attr_accessor :date
653
-
654
- # The type of the event. The type can be custom or predefined. Possible values
655
- # include, but are not limited to, the following: * `anniversary` * `other`
656
- # Corresponds to the JSON property `type`
657
- # @return [String]
658
- attr_accessor :type
659
-
660
- # The read-only type of the event translated and formatted in the viewer's
661
- # account locale or the `Accept-Language` HTTP header locale.
662
- # Corresponds to the JSON property `formattedType`
663
- # @return [String]
664
- attr_accessor :formatted_type
665
-
666
775
  def initialize(**args)
667
776
  update!(**args)
668
777
  end
669
778
 
670
779
  # Update properties of this object
671
780
  def update!(**args)
781
+ @value = args[:value] if args.key?(:value)
672
782
  @metadata = args[:metadata] if args.key?(:metadata)
673
- @date = args[:date] if args.key?(:date)
674
- @type = args[:type] if args.key?(:type)
675
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
676
783
  end
677
784
  end
678
785
 
679
- # A person's physical address. May be a P.O. box or street address. All fields
680
- # are optional.
681
- class Address
786
+ # A person's name. If the name is a mononym, the family name is empty.
787
+ class Name
682
788
  include Google::Apis::Core::Hashable
683
789
 
684
- # Metadata about a field.
685
- # Corresponds to the JSON property `metadata`
686
- # @return [Google::Apis::PeopleV1::FieldMetadata]
687
- attr_accessor :metadata
790
+ # The full name spelled as it sounds.
791
+ # Corresponds to the JSON property `phoneticFullName`
792
+ # @return [String]
793
+ attr_accessor :phonetic_full_name
688
794
 
689
- # The read-only value of the address formatted in the viewer's account locale or
690
- # the `Accept-Language` HTTP header locale.
691
- # Corresponds to the JSON property `formattedValue`
795
+ # The read-only display name with the last name first formatted according to
796
+ # the locale specified by the viewer's account or the
797
+ # <code>Accept-Language</code> HTTP header.
798
+ # Corresponds to the JSON property `displayNameLastFirst`
692
799
  # @return [String]
693
- attr_accessor :formatted_value
800
+ attr_accessor :display_name_last_first
694
801
 
695
- # The type of the address. The type can be custom or predefined. Possible values
696
- # include, but are not limited to, the following: * `home` * `work` * `other`
697
- # Corresponds to the JSON property `type`
802
+ # The read-only display name formatted according to the locale specified by
803
+ # the viewer's account or the <code>Accept-Language</code> HTTP header.
804
+ # Corresponds to the JSON property `displayName`
698
805
  # @return [String]
699
- attr_accessor :type
806
+ attr_accessor :display_name
700
807
 
701
- # The read-only type of the address translated and formatted in the viewer's
702
- # account locale or the `Accept-Language` HTTP header locale.
703
- # Corresponds to the JSON property `formattedType`
808
+ # The honorific suffixes, such as `Jr.`
809
+ # Corresponds to the JSON property `honorificSuffix`
704
810
  # @return [String]
705
- attr_accessor :formatted_type
811
+ attr_accessor :honorific_suffix
706
812
 
707
- # The P.O. box of the address.
708
- # Corresponds to the JSON property `poBox`
813
+ # The honorific prefixes, such as `Mrs.` or `Dr.`
814
+ # Corresponds to the JSON property `honorificPrefix`
709
815
  # @return [String]
710
- attr_accessor :po_box
816
+ attr_accessor :honorific_prefix
711
817
 
712
- # The street address.
713
- # Corresponds to the JSON property `streetAddress`
818
+ # The honorific suffixes spelled as they sound.
819
+ # Corresponds to the JSON property `phoneticHonorificSuffix`
714
820
  # @return [String]
715
- attr_accessor :street_address
821
+ attr_accessor :phonetic_honorific_suffix
716
822
 
717
- # The extended address of the address; for example, the apartment number.
718
- # Corresponds to the JSON property `extendedAddress`
823
+ # The middle name(s).
824
+ # Corresponds to the JSON property `middleName`
719
825
  # @return [String]
720
- attr_accessor :extended_address
826
+ attr_accessor :middle_name
721
827
 
722
- # The city of the address.
723
- # Corresponds to the JSON property `city`
828
+ # The given name.
829
+ # Corresponds to the JSON property `givenName`
724
830
  # @return [String]
725
- attr_accessor :city
831
+ attr_accessor :given_name
726
832
 
727
- # The region of the address; for example, the state or province.
728
- # Corresponds to the JSON property `region`
833
+ # The honorific prefixes spelled as they sound.
834
+ # Corresponds to the JSON property `phoneticHonorificPrefix`
729
835
  # @return [String]
730
- attr_accessor :region
836
+ attr_accessor :phonetic_honorific_prefix
731
837
 
732
- # The postal code of the address.
733
- # Corresponds to the JSON property `postalCode`
838
+ # The given name spelled as it sounds.
839
+ # Corresponds to the JSON property `phoneticGivenName`
734
840
  # @return [String]
735
- attr_accessor :postal_code
841
+ attr_accessor :phonetic_given_name
736
842
 
737
- # The country of the address.
738
- # Corresponds to the JSON property `country`
843
+ # The family name spelled as it sounds.
844
+ # Corresponds to the JSON property `phoneticFamilyName`
845
+ # @return [String]
846
+ attr_accessor :phonetic_family_name
847
+
848
+ # The family name.
849
+ # Corresponds to the JSON property `familyName`
739
850
  # @return [String]
740
- attr_accessor :country
851
+ attr_accessor :family_name
741
852
 
742
- # The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country
743
- # code of the address.
744
- # Corresponds to the JSON property `countryCode`
853
+ # Metadata about a field.
854
+ # Corresponds to the JSON property `metadata`
855
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
856
+ attr_accessor :metadata
857
+
858
+ # The middle name(s) spelled as they sound.
859
+ # Corresponds to the JSON property `phoneticMiddleName`
745
860
  # @return [String]
746
- attr_accessor :country_code
861
+ attr_accessor :phonetic_middle_name
747
862
 
748
863
  def initialize(**args)
749
864
  update!(**args)
@@ -751,41 +866,36 @@ module Google
751
866
 
752
867
  # Update properties of this object
753
868
  def update!(**args)
869
+ @phonetic_full_name = args[:phonetic_full_name] if args.key?(:phonetic_full_name)
870
+ @display_name_last_first = args[:display_name_last_first] if args.key?(:display_name_last_first)
871
+ @display_name = args[:display_name] if args.key?(:display_name)
872
+ @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix)
873
+ @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix)
874
+ @phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
875
+ @middle_name = args[:middle_name] if args.key?(:middle_name)
876
+ @given_name = args[:given_name] if args.key?(:given_name)
877
+ @phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix)
878
+ @phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name)
879
+ @phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name)
880
+ @family_name = args[:family_name] if args.key?(:family_name)
754
881
  @metadata = args[:metadata] if args.key?(:metadata)
755
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
756
- @type = args[:type] if args.key?(:type)
757
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
758
- @po_box = args[:po_box] if args.key?(:po_box)
759
- @street_address = args[:street_address] if args.key?(:street_address)
760
- @extended_address = args[:extended_address] if args.key?(:extended_address)
761
- @city = args[:city] if args.key?(:city)
762
- @region = args[:region] if args.key?(:region)
763
- @postal_code = args[:postal_code] if args.key?(:postal_code)
764
- @country = args[:country] if args.key?(:country)
765
- @country_code = args[:country_code] if args.key?(:country_code)
882
+ @phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name)
766
883
  end
767
884
  end
768
885
 
769
- # A person's past or current residence.
770
- class Residence
886
+ # A person's bragging rights.
887
+ class BraggingRights
771
888
  include Google::Apis::Core::Hashable
772
889
 
773
- # Metadata about a field.
774
- # Corresponds to the JSON property `metadata`
775
- # @return [Google::Apis::PeopleV1::FieldMetadata]
776
- attr_accessor :metadata
777
-
778
- # The address of the residence.
890
+ # The bragging rights; for example, `climbed mount everest`.
779
891
  # Corresponds to the JSON property `value`
780
892
  # @return [String]
781
893
  attr_accessor :value
782
894
 
783
- # True if the residence is the person's current residence; false if the
784
- # residence is a past residence.
785
- # Corresponds to the JSON property `current`
786
- # @return [Boolean]
787
- attr_accessor :current
788
- alias_method :current?, :current
895
+ # Metadata about a field.
896
+ # Corresponds to the JSON property `metadata`
897
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
898
+ attr_accessor :metadata
789
899
 
790
900
  def initialize(**args)
791
901
  update!(**args)
@@ -793,38 +903,25 @@ module Google
793
903
 
794
904
  # Update properties of this object
795
905
  def update!(**args)
796
- @metadata = args[:metadata] if args.key?(:metadata)
797
906
  @value = args[:value] if args.key?(:value)
798
- @current = args[:current] if args.key?(:current)
907
+ @metadata = args[:metadata] if args.key?(:metadata)
799
908
  end
800
909
  end
801
910
 
802
- # A person's email address.
803
- class EmailAddress
911
+ # A person's locale preference.
912
+ class Locale
804
913
  include Google::Apis::Core::Hashable
805
914
 
806
- # Metadata about a field.
807
- # Corresponds to the JSON property `metadata`
808
- # @return [Google::Apis::PeopleV1::FieldMetadata]
809
- attr_accessor :metadata
810
-
811
- # The email address.
915
+ # The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47)
916
+ # language tag representing the locale.
812
917
  # Corresponds to the JSON property `value`
813
918
  # @return [String]
814
919
  attr_accessor :value
815
920
 
816
- # The type of the email address. The type can be custom or predefined. Possible
817
- # values include, but are not limited to, the following: * `home` * `work` * `
818
- # other`
819
- # Corresponds to the JSON property `type`
820
- # @return [String]
821
- attr_accessor :type
822
-
823
- # The read-only type of the email address translated and formatted in the viewer'
824
- # s account locale or the `Accept-Language` HTTP header locale.
825
- # Corresponds to the JSON property `formattedType`
826
- # @return [String]
827
- attr_accessor :formatted_type
921
+ # Metadata about a field.
922
+ # Corresponds to the JSON property `metadata`
923
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
924
+ attr_accessor :metadata
828
925
 
829
926
  def initialize(**args)
830
927
  update!(**args)
@@ -832,100 +929,106 @@ module Google
832
929
 
833
930
  # Update properties of this object
834
931
  def update!(**args)
835
- @metadata = args[:metadata] if args.key?(:metadata)
836
932
  @value = args[:value] if args.key?(:value)
837
- @type = args[:type] if args.key?(:type)
838
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
933
+ @metadata = args[:metadata] if args.key?(:metadata)
839
934
  end
840
935
  end
841
936
 
842
- # A person's phone number.
843
- class PhoneNumber
937
+ # A person's past or current organization. Overlapping date ranges are
938
+ # permitted.
939
+ class Organization
844
940
  include Google::Apis::Core::Hashable
845
941
 
846
- # Metadata about a field.
847
- # Corresponds to the JSON property `metadata`
848
- # @return [Google::Apis::PeopleV1::FieldMetadata]
849
- attr_accessor :metadata
850
-
851
- # The phone number.
852
- # Corresponds to the JSON property `value`
853
- # @return [String]
854
- attr_accessor :value
855
-
856
- # The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/
857
- # ibr/004/itu-t.E.164.1.2008.pdf) form of the phone number.
858
- # Corresponds to the JSON property `canonicalForm`
942
+ # The person's department at the organization.
943
+ # Corresponds to the JSON property `department`
859
944
  # @return [String]
860
- attr_accessor :canonical_form
945
+ attr_accessor :department
861
946
 
862
- # The type of the phone number. The type can be custom or predefined. Possible
863
- # values include, but are not limited to, the following: * `home` * `work` * `
864
- # mobile` * `homeFax` * `workFax` * `otherFax` * `pager` * `workMobile` * `
865
- # workPager` * `main` * `googleVoice` * `other`
947
+ # The type of the organization. The type can be custom or predefined.
948
+ # Possible values include, but are not limited to, the following:
949
+ # * `work`
950
+ # * `school`
866
951
  # Corresponds to the JSON property `type`
867
952
  # @return [String]
868
953
  attr_accessor :type
869
954
 
870
- # The read-only type of the phone number translated and formatted in the viewer'
871
- # s account locale or the the `Accept-Language` HTTP header locale.
872
- # Corresponds to the JSON property `formattedType`
955
+ # The phonetic name of the organization.
956
+ # Corresponds to the JSON property `phoneticName`
873
957
  # @return [String]
874
- attr_accessor :formatted_type
958
+ attr_accessor :phonetic_name
875
959
 
876
- def initialize(**args)
877
- update!(**args)
878
- end
960
+ # The person's job description at the organization.
961
+ # Corresponds to the JSON property `jobDescription`
962
+ # @return [String]
963
+ attr_accessor :job_description
879
964
 
880
- # Update properties of this object
881
- def update!(**args)
882
- @metadata = args[:metadata] if args.key?(:metadata)
883
- @value = args[:value] if args.key?(:value)
884
- @canonical_form = args[:canonical_form] if args.key?(:canonical_form)
885
- @type = args[:type] if args.key?(:type)
886
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
887
- end
888
- end
965
+ # Represents a whole calendar date, for example a date of birth. The time
966
+ # of day and time zone are either specified elsewhere or are not
967
+ # significant. The date is relative to the
968
+ # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
969
+ # Proleptic_Gregorian_calendar).
970
+ # The day may be 0 to represent a year and month where the day is not
971
+ # significant. The year may be 0 to represent a month and day independent
972
+ # of year; for example, anniversary date.
973
+ # Corresponds to the JSON property `endDate`
974
+ # @return [Google::Apis::PeopleV1::Date]
975
+ attr_accessor :end_date
889
976
 
890
- # A person's instant messaging client.
891
- class ImClient
892
- include Google::Apis::Core::Hashable
977
+ # The symbol associated with the organization; for example, a stock ticker
978
+ # symbol, abbreviation, or acronym.
979
+ # Corresponds to the JSON property `symbol`
980
+ # @return [String]
981
+ attr_accessor :symbol
982
+
983
+ # The name of the organization.
984
+ # Corresponds to the JSON property `name`
985
+ # @return [String]
986
+ attr_accessor :name
893
987
 
894
988
  # Metadata about a field.
895
989
  # Corresponds to the JSON property `metadata`
896
990
  # @return [Google::Apis::PeopleV1::FieldMetadata]
897
991
  attr_accessor :metadata
898
992
 
899
- # The user name used in the IM client.
900
- # Corresponds to the JSON property `username`
993
+ # The person's job title at the organization.
994
+ # Corresponds to the JSON property `title`
901
995
  # @return [String]
902
- attr_accessor :username
996
+ attr_accessor :title
903
997
 
904
- # The type of the IM client. The type can be custom or predefined. Possible
905
- # values include, but are not limited to, the following: * `home` * `work` * `
906
- # other`
907
- # Corresponds to the JSON property `type`
998
+ # The location of the organization office the person works at.
999
+ # Corresponds to the JSON property `location`
908
1000
  # @return [String]
909
- attr_accessor :type
1001
+ attr_accessor :location
910
1002
 
911
- # The read-only type of the IM client translated and formatted in the viewer's
912
- # account locale or the `Accept-Language` HTTP header locale.
1003
+ # True if the organization is the person's current organization;
1004
+ # false if the organization is a past organization.
1005
+ # Corresponds to the JSON property `current`
1006
+ # @return [Boolean]
1007
+ attr_accessor :current
1008
+ alias_method :current?, :current
1009
+
1010
+ # Represents a whole calendar date, for example a date of birth. The time
1011
+ # of day and time zone are either specified elsewhere or are not
1012
+ # significant. The date is relative to the
1013
+ # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
1014
+ # Proleptic_Gregorian_calendar).
1015
+ # The day may be 0 to represent a year and month where the day is not
1016
+ # significant. The year may be 0 to represent a month and day independent
1017
+ # of year; for example, anniversary date.
1018
+ # Corresponds to the JSON property `startDate`
1019
+ # @return [Google::Apis::PeopleV1::Date]
1020
+ attr_accessor :start_date
1021
+
1022
+ # The read-only type of the organization translated and formatted in the
1023
+ # viewer's account locale or the `Accept-Language` HTTP header locale.
913
1024
  # Corresponds to the JSON property `formattedType`
914
1025
  # @return [String]
915
1026
  attr_accessor :formatted_type
916
1027
 
917
- # The protocol of the IM client. The protocol can be custom or predefined.
918
- # Possible values include, but are not limited to, the following: * `aim` * `msn`
919
- # * `yahoo` * `skype` * `qq` * `googleTalk` * `icq` * `jabber` * `netMeeting`
920
- # Corresponds to the JSON property `protocol`
921
- # @return [String]
922
- attr_accessor :protocol
923
-
924
- # The read-only protocol of the IM client formatted in the viewer's account
925
- # locale or the `Accept-Language` HTTP header locale.
926
- # Corresponds to the JSON property `formattedProtocol`
1028
+ # The domain name associated with the organization; for example, `google.com`.
1029
+ # Corresponds to the JSON property `domain`
927
1030
  # @return [String]
928
- attr_accessor :formatted_protocol
1031
+ attr_accessor :domain
929
1032
 
930
1033
  def initialize(**args)
931
1034
  update!(**args)
@@ -933,25 +1036,38 @@ module Google
933
1036
 
934
1037
  # Update properties of this object
935
1038
  def update!(**args)
936
- @metadata = args[:metadata] if args.key?(:metadata)
937
- @username = args[:username] if args.key?(:username)
1039
+ @department = args[:department] if args.key?(:department)
938
1040
  @type = args[:type] if args.key?(:type)
1041
+ @phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name)
1042
+ @job_description = args[:job_description] if args.key?(:job_description)
1043
+ @end_date = args[:end_date] if args.key?(:end_date)
1044
+ @symbol = args[:symbol] if args.key?(:symbol)
1045
+ @name = args[:name] if args.key?(:name)
1046
+ @metadata = args[:metadata] if args.key?(:metadata)
1047
+ @title = args[:title] if args.key?(:title)
1048
+ @location = args[:location] if args.key?(:location)
1049
+ @current = args[:current] if args.key?(:current)
1050
+ @start_date = args[:start_date] if args.key?(:start_date)
939
1051
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
940
- @protocol = args[:protocol] if args.key?(:protocol)
941
- @formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol)
1052
+ @domain = args[:domain] if args.key?(:domain)
942
1053
  end
943
1054
  end
944
1055
 
945
- # A brief one-line description of the person.
946
- class Tagline
1056
+ # A person's short biography.
1057
+ class Biography
947
1058
  include Google::Apis::Core::Hashable
948
1059
 
1060
+ # The content type of the biography.
1061
+ # Corresponds to the JSON property `contentType`
1062
+ # @return [String]
1063
+ attr_accessor :content_type
1064
+
949
1065
  # Metadata about a field.
950
1066
  # Corresponds to the JSON property `metadata`
951
1067
  # @return [Google::Apis::PeopleV1::FieldMetadata]
952
1068
  attr_accessor :metadata
953
1069
 
954
- # The tagline.
1070
+ # The short biography.
955
1071
  # Corresponds to the JSON property `value`
956
1072
  # @return [String]
957
1073
  attr_accessor :value
@@ -962,21 +1078,71 @@ module Google
962
1078
 
963
1079
  # Update properties of this object
964
1080
  def update!(**args)
1081
+ @content_type = args[:content_type] if args.key?(:content_type)
965
1082
  @metadata = args[:metadata] if args.key?(:metadata)
966
1083
  @value = args[:value] if args.key?(:value)
967
1084
  end
968
1085
  end
969
1086
 
970
- # A person's short biography.
971
- class Biography
1087
+ # Metadata about a field.
1088
+ class FieldMetadata
1089
+ include Google::Apis::Core::Hashable
1090
+
1091
+ # True if the field is verified; false if the field is unverified. A
1092
+ # verified field is typically a name, email address, phone number, or
1093
+ # website that has been confirmed to be owned by the person.
1094
+ # Corresponds to the JSON property `verified`
1095
+ # @return [Boolean]
1096
+ attr_accessor :verified
1097
+ alias_method :verified?, :verified
1098
+
1099
+ # True if the field is the primary field; false if the field is a secondary
1100
+ # field.
1101
+ # Corresponds to the JSON property `primary`
1102
+ # @return [Boolean]
1103
+ attr_accessor :primary
1104
+ alias_method :primary?, :primary
1105
+
1106
+ # The source of a field.
1107
+ # Corresponds to the JSON property `source`
1108
+ # @return [Google::Apis::PeopleV1::Source]
1109
+ attr_accessor :source
1110
+
1111
+ def initialize(**args)
1112
+ update!(**args)
1113
+ end
1114
+
1115
+ # Update properties of this object
1116
+ def update!(**args)
1117
+ @verified = args[:verified] if args.key?(:verified)
1118
+ @primary = args[:primary] if args.key?(:primary)
1119
+ @source = args[:source] if args.key?(:source)
1120
+ end
1121
+ end
1122
+
1123
+ # A person's read-only relationship interest .
1124
+ class RelationshipInterest
972
1125
  include Google::Apis::Core::Hashable
973
1126
 
1127
+ # The value of the relationship interest translated and formatted in the
1128
+ # viewer's account locale or the locale specified in the Accept-Language
1129
+ # HTTP header.
1130
+ # Corresponds to the JSON property `formattedValue`
1131
+ # @return [String]
1132
+ attr_accessor :formatted_value
1133
+
974
1134
  # Metadata about a field.
975
1135
  # Corresponds to the JSON property `metadata`
976
1136
  # @return [Google::Apis::PeopleV1::FieldMetadata]
977
1137
  attr_accessor :metadata
978
1138
 
979
- # The short biography.
1139
+ # The kind of relationship the person is looking for. The value can be custom
1140
+ # or predefined. Possible values include, but are not limited to, the
1141
+ # following values:
1142
+ # * `friend`
1143
+ # * `date`
1144
+ # * `relationship`
1145
+ # * `networking`
980
1146
  # Corresponds to the JSON property `value`
981
1147
  # @return [String]
982
1148
  attr_accessor :value
@@ -987,38 +1153,39 @@ module Google
987
1153
 
988
1154
  # Update properties of this object
989
1155
  def update!(**args)
1156
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
990
1157
  @metadata = args[:metadata] if args.key?(:metadata)
991
1158
  @value = args[:value] if args.key?(:value)
992
1159
  end
993
1160
  end
994
1161
 
995
- # A person's associated URLs.
996
- class Url
1162
+ # The response for a single person
1163
+ class PersonResponse
997
1164
  include Google::Apis::Core::Hashable
998
1165
 
999
- # Metadata about a field.
1000
- # Corresponds to the JSON property `metadata`
1001
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1002
- attr_accessor :metadata
1003
-
1004
- # The URL.
1005
- # Corresponds to the JSON property `value`
1006
- # @return [String]
1007
- attr_accessor :value
1166
+ # Information about a person merged from various data sources such as the
1167
+ # authenticated user's contacts and profile data. Fields other than IDs,
1168
+ # metadata, and group memberships are user-edited.
1169
+ # Most fields can have multiple items. The items in a field have no guaranteed
1170
+ # order, but each non-empty field is guaranteed to have exactly one field with
1171
+ # `metadata.primary` set to true.
1172
+ # Corresponds to the JSON property `person`
1173
+ # @return [Google::Apis::PeopleV1::Person]
1174
+ attr_accessor :person
1008
1175
 
1009
- # The type of the URL. The type can be custom or predefined. Possible values
1010
- # include, but are not limited to, the following: * `home` * `work` * `blog` * `
1011
- # profile` * `homePage` * `ftp` * `reservations` * `appInstallPage`: website for
1012
- # a Google+ application. * `other`
1013
- # Corresponds to the JSON property `type`
1014
- # @return [String]
1015
- attr_accessor :type
1176
+ # [HTTP 1.1 status code](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
1177
+ # Corresponds to the JSON property `httpStatusCode`
1178
+ # @return [Fixnum]
1179
+ attr_accessor :http_status_code
1016
1180
 
1017
- # The read-only type of the URL translated and formatted in the viewer's account
1018
- # locale or the `Accept-Language` HTTP header locale.
1019
- # Corresponds to the JSON property `formattedType`
1181
+ # The original requested resource name. May be different than the resource
1182
+ # name on the returned person.
1183
+ # The resource name can change when adding or removing fields that link a
1184
+ # contact and profile such as a verified email, verified phone number, or a
1185
+ # profile URL.
1186
+ # Corresponds to the JSON property `requestedResourceName`
1020
1187
  # @return [String]
1021
- attr_accessor :formatted_type
1188
+ attr_accessor :requested_resource_name
1022
1189
 
1023
1190
  def initialize(**args)
1024
1191
  update!(**args)
@@ -1026,101 +1193,38 @@ module Google
1026
1193
 
1027
1194
  # Update properties of this object
1028
1195
  def update!(**args)
1029
- @metadata = args[:metadata] if args.key?(:metadata)
1030
- @value = args[:value] if args.key?(:value)
1031
- @type = args[:type] if args.key?(:type)
1032
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1196
+ @person = args[:person] if args.key?(:person)
1197
+ @http_status_code = args[:http_status_code] if args.key?(:http_status_code)
1198
+ @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
1033
1199
  end
1034
1200
  end
1035
1201
 
1036
- # A person's past or current organization. Overlapping date ranges are permitted.
1037
- class Organization
1202
+ # The source of a field.
1203
+ class Source
1038
1204
  include Google::Apis::Core::Hashable
1039
1205
 
1040
- # Metadata about a field.
1041
- # Corresponds to the JSON property `metadata`
1042
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1043
- attr_accessor :metadata
1206
+ # The resource name of the source. Only set if there is a separate
1207
+ # resource endpoint.
1208
+ # Corresponds to the JSON property `resourceName`
1209
+ # @return [String]
1210
+ attr_accessor :resource_name
1044
1211
 
1045
- # The type of the organization. The type can be custom or predefined. Possible
1046
- # values include, but are not limited to, the following: * `work` * `school`
1212
+ # The source type.
1047
1213
  # Corresponds to the JSON property `type`
1048
1214
  # @return [String]
1049
1215
  attr_accessor :type
1050
1216
 
1051
- # The read-only type of the organization translated and formatted in the viewer'
1052
- # s account locale or the `Accept-Language` HTTP header locale.
1053
- # Corresponds to the JSON property `formattedType`
1054
- # @return [String]
1055
- attr_accessor :formatted_type
1056
-
1057
- # Represents a whole calendar date, for example a date of birth. The time of day
1058
- # and time zone are either specified elsewhere or are not significant. The date
1059
- # is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
1060
- # wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
1061
- # month where the day is not significant. The year may be 0 to represent a month
1062
- # and day independent of year; for example, anniversary date.
1063
- # Corresponds to the JSON property `startDate`
1064
- # @return [Google::Apis::PeopleV1::Date]
1065
- attr_accessor :start_date
1066
-
1067
- # Represents a whole calendar date, for example a date of birth. The time of day
1068
- # and time zone are either specified elsewhere or are not significant. The date
1069
- # is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
1070
- # wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
1071
- # month where the day is not significant. The year may be 0 to represent a month
1072
- # and day independent of year; for example, anniversary date.
1073
- # Corresponds to the JSON property `endDate`
1074
- # @return [Google::Apis::PeopleV1::Date]
1075
- attr_accessor :end_date
1076
-
1077
- # True if the organization is the person's current organization; false if the
1078
- # organization is a past organization.
1079
- # Corresponds to the JSON property `current`
1080
- # @return [Boolean]
1081
- attr_accessor :current
1082
- alias_method :current?, :current
1083
-
1084
- # The name of the organization.
1085
- # Corresponds to the JSON property `name`
1086
- # @return [String]
1087
- attr_accessor :name
1088
-
1089
- # The phonetic name of the organization.
1090
- # Corresponds to the JSON property `phoneticName`
1091
- # @return [String]
1092
- attr_accessor :phonetic_name
1093
-
1094
- # The person's department at the organization.
1095
- # Corresponds to the JSON property `department`
1096
- # @return [String]
1097
- attr_accessor :department
1098
-
1099
- # The person's job title at the organization.
1100
- # Corresponds to the JSON property `title`
1101
- # @return [String]
1102
- attr_accessor :title
1103
-
1104
- # The person's job description at the organization.
1105
- # Corresponds to the JSON property `jobDescription`
1106
- # @return [String]
1107
- attr_accessor :job_description
1108
-
1109
- # The symbol associated with the organization; for example, a stock ticker
1110
- # symbol, abbreviation, or acronym.
1111
- # Corresponds to the JSON property `symbol`
1112
- # @return [String]
1113
- attr_accessor :symbol
1114
-
1115
- # The domain name associated with the organization; for example, `google.com`.
1116
- # Corresponds to the JSON property `domain`
1217
+ # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
1218
+ # source. Used for web cache validation. Only populated in
1219
+ # person.metadata.sources.
1220
+ # Corresponds to the JSON property `etag`
1117
1221
  # @return [String]
1118
- attr_accessor :domain
1222
+ attr_accessor :etag
1119
1223
 
1120
- # The location of the organization office the person works at.
1121
- # Corresponds to the JSON property `location`
1224
+ # The unique identifier within the source type generated by the server.
1225
+ # Corresponds to the JSON property `id`
1122
1226
  # @return [String]
1123
- attr_accessor :location
1227
+ attr_accessor :id
1124
1228
 
1125
1229
  def initialize(**args)
1126
1230
  update!(**args)
@@ -1128,36 +1232,53 @@ module Google
1128
1232
 
1129
1233
  # Update properties of this object
1130
1234
  def update!(**args)
1131
- @metadata = args[:metadata] if args.key?(:metadata)
1235
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
1132
1236
  @type = args[:type] if args.key?(:type)
1133
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1134
- @start_date = args[:start_date] if args.key?(:start_date)
1135
- @end_date = args[:end_date] if args.key?(:end_date)
1136
- @current = args[:current] if args.key?(:current)
1137
- @name = args[:name] if args.key?(:name)
1138
- @phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name)
1139
- @department = args[:department] if args.key?(:department)
1140
- @title = args[:title] if args.key?(:title)
1141
- @job_description = args[:job_description] if args.key?(:job_description)
1142
- @symbol = args[:symbol] if args.key?(:symbol)
1143
- @domain = args[:domain] if args.key?(:domain)
1144
- @location = args[:location] if args.key?(:location)
1237
+ @etag = args[:etag] if args.key?(:etag)
1238
+ @id = args[:id] if args.key?(:id)
1145
1239
  end
1146
1240
  end
1147
1241
 
1148
- # A person's occupation.
1149
- class Occupation
1242
+ # A person's relation to another person.
1243
+ class Relation
1150
1244
  include Google::Apis::Core::Hashable
1151
1245
 
1246
+ # The name of the other person this relation refers to.
1247
+ # Corresponds to the JSON property `person`
1248
+ # @return [String]
1249
+ attr_accessor :person
1250
+
1251
+ # The type of the relation translated and formatted in the viewer's account
1252
+ # locale or the locale specified in the Accept-Language HTTP header.
1253
+ # Corresponds to the JSON property `formattedType`
1254
+ # @return [String]
1255
+ attr_accessor :formatted_type
1256
+
1152
1257
  # Metadata about a field.
1153
1258
  # Corresponds to the JSON property `metadata`
1154
1259
  # @return [Google::Apis::PeopleV1::FieldMetadata]
1155
1260
  attr_accessor :metadata
1156
1261
 
1157
- # The occupation; for example, `carpenter`.
1158
- # Corresponds to the JSON property `value`
1262
+ # The person's relation to the other person. The type can be custom or
1263
+ # predefined.
1264
+ # Possible values include, but are not limited to, the following values:
1265
+ # * `spouse`
1266
+ # * `child`
1267
+ # * `mother`
1268
+ # * `father`
1269
+ # * `parent`
1270
+ # * `brother`
1271
+ # * `sister`
1272
+ # * `friend`
1273
+ # * `relative`
1274
+ # * `domesticPartner`
1275
+ # * `manager`
1276
+ # * `assistant`
1277
+ # * `referredBy`
1278
+ # * `partner`
1279
+ # Corresponds to the JSON property `type`
1159
1280
  # @return [String]
1160
- attr_accessor :value
1281
+ attr_accessor :type
1161
1282
 
1162
1283
  def initialize(**args)
1163
1284
  update!(**args)
@@ -1165,13 +1286,15 @@ module Google
1165
1286
 
1166
1287
  # Update properties of this object
1167
1288
  def update!(**args)
1289
+ @person = args[:person] if args.key?(:person)
1290
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1168
1291
  @metadata = args[:metadata] if args.key?(:metadata)
1169
- @value = args[:value] if args.key?(:value)
1292
+ @type = args[:type] if args.key?(:type)
1170
1293
  end
1171
1294
  end
1172
1295
 
1173
- # One of the person's interests.
1174
- class Interest
1296
+ # A person's occupation.
1297
+ class Occupation
1175
1298
  include Google::Apis::Core::Hashable
1176
1299
 
1177
1300
  # Metadata about a field.
@@ -1179,7 +1302,7 @@ module Google
1179
1302
  # @return [Google::Apis::PeopleV1::FieldMetadata]
1180
1303
  attr_accessor :metadata
1181
1304
 
1182
- # The interest; for example, `stargazing`.
1305
+ # The occupation; for example, `carpenter`.
1183
1306
  # Corresponds to the JSON property `value`
1184
1307
  # @return [String]
1185
1308
  attr_accessor :value
@@ -1195,84 +1318,161 @@ module Google
1195
1318
  end
1196
1319
  end
1197
1320
 
1198
- # A skill that the person has.
1199
- class Skill
1321
+ # Information about a person merged from various data sources such as the
1322
+ # authenticated user's contacts and profile data. Fields other than IDs,
1323
+ # metadata, and group memberships are user-edited.
1324
+ # Most fields can have multiple items. The items in a field have no guaranteed
1325
+ # order, but each non-empty field is guaranteed to have exactly one field with
1326
+ # `metadata.primary` set to true.
1327
+ class Person
1200
1328
  include Google::Apis::Core::Hashable
1201
1329
 
1202
- # Metadata about a field.
1330
+ # The person's instant messaging clients.
1331
+ # Corresponds to the JSON property `imClients`
1332
+ # @return [Array<Google::Apis::PeopleV1::ImClient>]
1333
+ attr_accessor :im_clients
1334
+
1335
+ # The person's birthdays.
1336
+ # Corresponds to the JSON property `birthdays`
1337
+ # @return [Array<Google::Apis::PeopleV1::Birthday>]
1338
+ attr_accessor :birthdays
1339
+
1340
+ # The person's locale preferences.
1341
+ # Corresponds to the JSON property `locales`
1342
+ # @return [Array<Google::Apis::PeopleV1::Locale>]
1343
+ attr_accessor :locales
1344
+
1345
+ # The kind of relationship the person is looking for.
1346
+ # Corresponds to the JSON property `relationshipInterests`
1347
+ # @return [Array<Google::Apis::PeopleV1::RelationshipInterest>]
1348
+ attr_accessor :relationship_interests
1349
+
1350
+ # The person's associated URLs.
1351
+ # Corresponds to the JSON property `urls`
1352
+ # @return [Array<Google::Apis::PeopleV1::Url>]
1353
+ attr_accessor :urls
1354
+
1355
+ # The person's nicknames.
1356
+ # Corresponds to the JSON property `nicknames`
1357
+ # @return [Array<Google::Apis::PeopleV1::Nickname>]
1358
+ attr_accessor :nicknames
1359
+
1360
+ # The person's names.
1361
+ # Corresponds to the JSON property `names`
1362
+ # @return [Array<Google::Apis::PeopleV1::Name>]
1363
+ attr_accessor :names
1364
+
1365
+ # The person's relations.
1366
+ # Corresponds to the JSON property `relations`
1367
+ # @return [Array<Google::Apis::PeopleV1::Relation>]
1368
+ attr_accessor :relations
1369
+
1370
+ # The person's occupations.
1371
+ # Corresponds to the JSON property `occupations`
1372
+ # @return [Array<Google::Apis::PeopleV1::Occupation>]
1373
+ attr_accessor :occupations
1374
+
1375
+ # The person's email addresses.
1376
+ # Corresponds to the JSON property `emailAddresses`
1377
+ # @return [Array<Google::Apis::PeopleV1::EmailAddress>]
1378
+ attr_accessor :email_addresses
1379
+
1380
+ # The person's past or current organizations.
1381
+ # Corresponds to the JSON property `organizations`
1382
+ # @return [Array<Google::Apis::PeopleV1::Organization>]
1383
+ attr_accessor :organizations
1384
+
1385
+ # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
1386
+ # resource. Used for web cache validation.
1387
+ # Corresponds to the JSON property `etag`
1388
+ # @return [String]
1389
+ attr_accessor :etag
1390
+
1391
+ # The person's bragging rights.
1392
+ # Corresponds to the JSON property `braggingRights`
1393
+ # @return [Array<Google::Apis::PeopleV1::BraggingRights>]
1394
+ attr_accessor :bragging_rights
1395
+
1396
+ # The read-only metadata about a person.
1203
1397
  # Corresponds to the JSON property `metadata`
1204
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1398
+ # @return [Google::Apis::PeopleV1::PersonMetadata]
1205
1399
  attr_accessor :metadata
1206
1400
 
1207
- # The skill; for example, `underwater basket weaving`.
1208
- # Corresponds to the JSON property `value`
1401
+ # The person's residences.
1402
+ # Corresponds to the JSON property `residences`
1403
+ # @return [Array<Google::Apis::PeopleV1::Residence>]
1404
+ attr_accessor :residences
1405
+
1406
+ # The person's genders.
1407
+ # Corresponds to the JSON property `genders`
1408
+ # @return [Array<Google::Apis::PeopleV1::Gender>]
1409
+ attr_accessor :genders
1410
+
1411
+ # The resource name for the person, assigned by the server. An ASCII string
1412
+ # with a max length of 27 characters. Always starts with `people/`.
1413
+ # Corresponds to the JSON property `resourceName`
1209
1414
  # @return [String]
1210
- attr_accessor :value
1415
+ attr_accessor :resource_name
1211
1416
 
1212
- def initialize(**args)
1213
- update!(**args)
1214
- end
1417
+ # The person's interests.
1418
+ # Corresponds to the JSON property `interests`
1419
+ # @return [Array<Google::Apis::PeopleV1::Interest>]
1420
+ attr_accessor :interests
1215
1421
 
1216
- # Update properties of this object
1217
- def update!(**args)
1218
- @metadata = args[:metadata] if args.key?(:metadata)
1219
- @value = args[:value] if args.key?(:value)
1220
- end
1221
- end
1422
+ # The person's biographies.
1423
+ # Corresponds to the JSON property `biographies`
1424
+ # @return [Array<Google::Apis::PeopleV1::Biography>]
1425
+ attr_accessor :biographies
1222
1426
 
1223
- # A person's bragging rights.
1224
- class BraggingRights
1225
- include Google::Apis::Core::Hashable
1427
+ # The person's skills.
1428
+ # Corresponds to the JSON property `skills`
1429
+ # @return [Array<Google::Apis::PeopleV1::Skill>]
1430
+ attr_accessor :skills
1226
1431
 
1227
- # Metadata about a field.
1228
- # Corresponds to the JSON property `metadata`
1229
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1230
- attr_accessor :metadata
1432
+ # The person's relationship statuses.
1433
+ # Corresponds to the JSON property `relationshipStatuses`
1434
+ # @return [Array<Google::Apis::PeopleV1::RelationshipStatus>]
1435
+ attr_accessor :relationship_statuses
1436
+
1437
+ # The person's photos.
1438
+ # Corresponds to the JSON property `photos`
1439
+ # @return [Array<Google::Apis::PeopleV1::Photo>]
1440
+ attr_accessor :photos
1231
1441
 
1232
- # The bragging rights; for example, `climbed mount everest`.
1233
- # Corresponds to the JSON property `value`
1442
+ # The person's age range.
1443
+ # Corresponds to the JSON property `ageRange`
1234
1444
  # @return [String]
1235
- attr_accessor :value
1236
-
1237
- def initialize(**args)
1238
- update!(**args)
1239
- end
1445
+ attr_accessor :age_range
1240
1446
 
1241
- # Update properties of this object
1242
- def update!(**args)
1243
- @metadata = args[:metadata] if args.key?(:metadata)
1244
- @value = args[:value] if args.key?(:value)
1245
- end
1246
- end
1447
+ # The person's taglines.
1448
+ # Corresponds to the JSON property `taglines`
1449
+ # @return [Array<Google::Apis::PeopleV1::Tagline>]
1450
+ attr_accessor :taglines
1247
1451
 
1248
- # A person's relation to another person.
1249
- class Relation
1250
- include Google::Apis::Core::Hashable
1452
+ # The person's street addresses.
1453
+ # Corresponds to the JSON property `addresses`
1454
+ # @return [Array<Google::Apis::PeopleV1::Address>]
1455
+ attr_accessor :addresses
1251
1456
 
1252
- # Metadata about a field.
1253
- # Corresponds to the JSON property `metadata`
1254
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1255
- attr_accessor :metadata
1457
+ # The person's events.
1458
+ # Corresponds to the JSON property `events`
1459
+ # @return [Array<Google::Apis::PeopleV1::Event>]
1460
+ attr_accessor :events
1256
1461
 
1257
- # The name of the other person this relation refers to.
1258
- # Corresponds to the JSON property `person`
1259
- # @return [String]
1260
- attr_accessor :person
1462
+ # The person's group memberships.
1463
+ # Corresponds to the JSON property `memberships`
1464
+ # @return [Array<Google::Apis::PeopleV1::Membership>]
1465
+ attr_accessor :memberships
1261
1466
 
1262
- # The person's relation to the other person. The type can be custom or
1263
- # predefined. Possible values include, but are not limited to, the following
1264
- # values: * `spouse` * `child` * `mother` * `father` * `parent` * `brother` * `
1265
- # sister` * `friend` * `relative` * `domesticPartner` * `manager` * `assistant` *
1266
- # `referredBy` * `partner`
1267
- # Corresponds to the JSON property `type`
1268
- # @return [String]
1269
- attr_accessor :type
1467
+ # The person's phone numbers.
1468
+ # Corresponds to the JSON property `phoneNumbers`
1469
+ # @return [Array<Google::Apis::PeopleV1::PhoneNumber>]
1470
+ attr_accessor :phone_numbers
1270
1471
 
1271
- # The type of the relation translated and formatted in the viewer's account
1272
- # locale or the locale specified in the Accept-Language HTTP header.
1273
- # Corresponds to the JSON property `formattedType`
1274
- # @return [String]
1275
- attr_accessor :formatted_type
1472
+ # The person's cover photos.
1473
+ # Corresponds to the JSON property `coverPhotos`
1474
+ # @return [Array<Google::Apis::PeopleV1::CoverPhoto>]
1475
+ attr_accessor :cover_photos
1276
1476
 
1277
1477
  def initialize(**args)
1278
1478
  update!(**args)
@@ -1280,34 +1480,46 @@ module Google
1280
1480
 
1281
1481
  # Update properties of this object
1282
1482
  def update!(**args)
1483
+ @im_clients = args[:im_clients] if args.key?(:im_clients)
1484
+ @birthdays = args[:birthdays] if args.key?(:birthdays)
1485
+ @locales = args[:locales] if args.key?(:locales)
1486
+ @relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests)
1487
+ @urls = args[:urls] if args.key?(:urls)
1488
+ @nicknames = args[:nicknames] if args.key?(:nicknames)
1489
+ @names = args[:names] if args.key?(:names)
1490
+ @relations = args[:relations] if args.key?(:relations)
1491
+ @occupations = args[:occupations] if args.key?(:occupations)
1492
+ @email_addresses = args[:email_addresses] if args.key?(:email_addresses)
1493
+ @organizations = args[:organizations] if args.key?(:organizations)
1494
+ @etag = args[:etag] if args.key?(:etag)
1495
+ @bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights)
1283
1496
  @metadata = args[:metadata] if args.key?(:metadata)
1284
- @person = args[:person] if args.key?(:person)
1285
- @type = args[:type] if args.key?(:type)
1286
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1497
+ @residences = args[:residences] if args.key?(:residences)
1498
+ @genders = args[:genders] if args.key?(:genders)
1499
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
1500
+ @interests = args[:interests] if args.key?(:interests)
1501
+ @biographies = args[:biographies] if args.key?(:biographies)
1502
+ @skills = args[:skills] if args.key?(:skills)
1503
+ @relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses)
1504
+ @photos = args[:photos] if args.key?(:photos)
1505
+ @age_range = args[:age_range] if args.key?(:age_range)
1506
+ @taglines = args[:taglines] if args.key?(:taglines)
1507
+ @addresses = args[:addresses] if args.key?(:addresses)
1508
+ @events = args[:events] if args.key?(:events)
1509
+ @memberships = args[:memberships] if args.key?(:memberships)
1510
+ @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers)
1511
+ @cover_photos = args[:cover_photos] if args.key?(:cover_photos)
1287
1512
  end
1288
1513
  end
1289
1514
 
1290
- # The kind of relationship the person is looking for.
1291
- class RelationshipInterest
1515
+ #
1516
+ class GetPeopleResponse
1292
1517
  include Google::Apis::Core::Hashable
1293
1518
 
1294
- # Metadata about a field.
1295
- # Corresponds to the JSON property `metadata`
1296
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1297
- attr_accessor :metadata
1298
-
1299
- # The kind of relationship the person is looking for. The value can be custom or
1300
- # predefined. Possible values include, but are not limited to, the following
1301
- # values: * `friend` * `date` * `relationship` * `networking`
1302
- # Corresponds to the JSON property `value`
1303
- # @return [String]
1304
- attr_accessor :value
1305
-
1306
- # The value of the relationship interest translated and formatted in the viewer'
1307
- # s account locale or the locale specified in the Accept-Language HTTP header.
1308
- # Corresponds to the JSON property `formattedValue`
1309
- # @return [String]
1310
- attr_accessor :formatted_value
1519
+ # The response for each requested resource name.
1520
+ # Corresponds to the JSON property `responses`
1521
+ # @return [Array<Google::Apis::PeopleV1::PersonResponse>]
1522
+ attr_accessor :responses
1311
1523
 
1312
1524
  def initialize(**args)
1313
1525
  update!(**args)
@@ -1315,14 +1527,12 @@ module Google
1315
1527
 
1316
1528
  # Update properties of this object
1317
1529
  def update!(**args)
1318
- @metadata = args[:metadata] if args.key?(:metadata)
1319
- @value = args[:value] if args.key?(:value)
1320
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
1530
+ @responses = args[:responses] if args.key?(:responses)
1321
1531
  end
1322
1532
  end
1323
1533
 
1324
- # A person's relationship status.
1325
- class RelationshipStatus
1534
+ # A person's phone number.
1535
+ class PhoneNumber
1326
1536
  include Google::Apis::Core::Hashable
1327
1537
 
1328
1538
  # Metadata about a field.
@@ -1330,19 +1540,41 @@ module Google
1330
1540
  # @return [Google::Apis::PeopleV1::FieldMetadata]
1331
1541
  attr_accessor :metadata
1332
1542
 
1333
- # The relationship status. The value can be custom or predefined. Possible
1334
- # values include, but are not limited to, the following: * `single` * `
1335
- # inARelationship` * `engaged` * `married` * `itsComplicated` * `
1336
- # openRelationship` * `widowed` * `inDomesticPartnership` * `inCivilUnion`
1543
+ # The type of the phone number. The type can be custom or predefined.
1544
+ # Possible values include, but are not limited to, the following:
1545
+ # * `home`
1546
+ # * `work`
1547
+ # * `mobile`
1548
+ # * `homeFax`
1549
+ # * `workFax`
1550
+ # * `otherFax`
1551
+ # * `pager`
1552
+ # * `workMobile`
1553
+ # * `workPager`
1554
+ # * `main`
1555
+ # * `googleVoice`
1556
+ # * `other`
1557
+ # Corresponds to the JSON property `type`
1558
+ # @return [String]
1559
+ attr_accessor :type
1560
+
1561
+ # The phone number.
1337
1562
  # Corresponds to the JSON property `value`
1338
1563
  # @return [String]
1339
1564
  attr_accessor :value
1340
1565
 
1341
- # The read-only value of the relationship status translated and formatted in the
1342
- # viewer's account locale or the `Accept-Language` HTTP header locale.
1343
- # Corresponds to the JSON property `formattedValue`
1566
+ # The read-only type of the phone number translated and formatted in the
1567
+ # viewer's account locale or the the `Accept-Language` HTTP header locale.
1568
+ # Corresponds to the JSON property `formattedType`
1344
1569
  # @return [String]
1345
- attr_accessor :formatted_value
1570
+ attr_accessor :formatted_type
1571
+
1572
+ # The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/
1573
+ # ibr/004/itu-t.E.164.1.2008.pdf)
1574
+ # form of the phone number.
1575
+ # Corresponds to the JSON property `canonicalForm`
1576
+ # @return [String]
1577
+ attr_accessor :canonical_form
1346
1578
 
1347
1579
  def initialize(**args)
1348
1580
  update!(**args)
@@ -1351,13 +1583,16 @@ module Google
1351
1583
  # Update properties of this object
1352
1584
  def update!(**args)
1353
1585
  @metadata = args[:metadata] if args.key?(:metadata)
1586
+ @type = args[:type] if args.key?(:type)
1354
1587
  @value = args[:value] if args.key?(:value)
1355
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
1588
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1589
+ @canonical_form = args[:canonical_form] if args.key?(:canonical_form)
1356
1590
  end
1357
1591
  end
1358
1592
 
1359
- # A person's membership in a group.
1360
- class Membership
1593
+ # A person's read-only photo. A picture shown next to the person's name to
1594
+ # help others recognize the person.
1595
+ class Photo
1361
1596
  include Google::Apis::Core::Hashable
1362
1597
 
1363
1598
  # Metadata about a field.
@@ -1365,59 +1600,10 @@ module Google
1365
1600
  # @return [Google::Apis::PeopleV1::FieldMetadata]
1366
1601
  attr_accessor :metadata
1367
1602
 
1368
- # A Google contact group membership.
1369
- # Corresponds to the JSON property `contactGroupMembership`
1370
- # @return [Google::Apis::PeopleV1::ContactGroupMembership]
1371
- attr_accessor :contact_group_membership
1372
-
1373
- # A Google Apps Domain membership.
1374
- # Corresponds to the JSON property `domainMembership`
1375
- # @return [Google::Apis::PeopleV1::DomainMembership]
1376
- attr_accessor :domain_membership
1377
-
1378
- def initialize(**args)
1379
- update!(**args)
1380
- end
1381
-
1382
- # Update properties of this object
1383
- def update!(**args)
1384
- @metadata = args[:metadata] if args.key?(:metadata)
1385
- @contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership)
1386
- @domain_membership = args[:domain_membership] if args.key?(:domain_membership)
1387
- end
1388
- end
1389
-
1390
- # A Google contact group membership.
1391
- class ContactGroupMembership
1392
- include Google::Apis::Core::Hashable
1393
-
1394
- # The contact group ID for the contact group membership. The contact group ID
1395
- # can be custom or predefined. Possible values include, but are not limited to,
1396
- # the following: * `myContacts` * `starred` * A numerical ID for user-created
1397
- # groups.
1398
- # Corresponds to the JSON property `contactGroupId`
1603
+ # The URL of the photo.
1604
+ # Corresponds to the JSON property `url`
1399
1605
  # @return [String]
1400
- attr_accessor :contact_group_id
1401
-
1402
- def initialize(**args)
1403
- update!(**args)
1404
- end
1405
-
1406
- # Update properties of this object
1407
- def update!(**args)
1408
- @contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id)
1409
- end
1410
- end
1411
-
1412
- # A Google Apps Domain membership.
1413
- class DomainMembership
1414
- include Google::Apis::Core::Hashable
1415
-
1416
- # True if the person is in the viewer's Google Apps domain.
1417
- # Corresponds to the JSON property `inViewerDomain`
1418
- # @return [Boolean]
1419
- attr_accessor :in_viewer_domain
1420
- alias_method :in_viewer_domain?, :in_viewer_domain
1606
+ attr_accessor :url
1421
1607
 
1422
1608
  def initialize(**args)
1423
1609
  update!(**args)
@@ -1425,81 +1611,25 @@ module Google
1425
1611
 
1426
1612
  # Update properties of this object
1427
1613
  def update!(**args)
1428
- @in_viewer_domain = args[:in_viewer_domain] if args.key?(:in_viewer_domain)
1614
+ @metadata = args[:metadata] if args.key?(:metadata)
1615
+ @url = args[:url] if args.key?(:url)
1429
1616
  end
1430
1617
  end
1431
1618
 
1432
1619
  #
1433
- class GetPeopleResponse
1434
- include Google::Apis::Core::Hashable
1435
-
1436
- # The response for each requested resource name.
1437
- # Corresponds to the JSON property `responses`
1438
- # @return [Array<Google::Apis::PeopleV1::PersonResponse>]
1439
- attr_accessor :responses
1440
-
1441
- def initialize(**args)
1442
- update!(**args)
1443
- end
1444
-
1445
- # Update properties of this object
1446
- def update!(**args)
1447
- @responses = args[:responses] if args.key?(:responses)
1448
- end
1449
- end
1450
-
1451
- # The response for a single person
1452
- class PersonResponse
1620
+ class ListConnectionsResponse
1453
1621
  include Google::Apis::Core::Hashable
1454
1622
 
1455
- # [HTTP 1.1 status code](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
1456
- # Corresponds to the JSON property `httpStatusCode`
1457
- # @return [Fixnum]
1458
- attr_accessor :http_status_code
1459
-
1460
- # Information about a person merged from various data sources such as the
1461
- # authenticated user's contacts and profile data. Fields other than IDs,
1462
- # metadata, and group memberships are user-edited. Most fields can have multiple
1463
- # items. The items in a field have no guaranteed order, but each non-empty field
1464
- # is guaranteed to have exactly one field with `metadata.primary` set to true.
1465
- # Corresponds to the JSON property `person`
1466
- # @return [Google::Apis::PeopleV1::Person]
1467
- attr_accessor :person
1468
-
1469
- # The original requested resource name. May be different than the resource name
1470
- # on the returned person. The resource name can change when adding or removing
1471
- # fields that link a contact and profile such as a verified email, verified
1472
- # phone number, or a profile URL.
1473
- # Corresponds to the JSON property `requestedResourceName`
1623
+ # The token that can be used to retrieve the next page of results.
1624
+ # Corresponds to the JSON property `nextPageToken`
1474
1625
  # @return [String]
1475
- attr_accessor :requested_resource_name
1476
-
1477
- def initialize(**args)
1478
- update!(**args)
1479
- end
1480
-
1481
- # Update properties of this object
1482
- def update!(**args)
1483
- @http_status_code = args[:http_status_code] if args.key?(:http_status_code)
1484
- @person = args[:person] if args.key?(:person)
1485
- @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
1486
- end
1487
- end
1488
-
1489
- #
1490
- class ListConnectionsResponse
1491
- include Google::Apis::Core::Hashable
1626
+ attr_accessor :next_page_token
1492
1627
 
1493
1628
  # The list of people that the requestor is connected to.
1494
1629
  # Corresponds to the JSON property `connections`
1495
1630
  # @return [Array<Google::Apis::PeopleV1::Person>]
1496
1631
  attr_accessor :connections
1497
1632
 
1498
- # The token that can be used to retrieve the next page of results.
1499
- # Corresponds to the JSON property `nextPageToken`
1500
- # @return [String]
1501
- attr_accessor :next_page_token
1502
-
1503
1633
  # The token that can be used to retrieve changes since the last request.
1504
1634
  # Corresponds to the JSON property `nextSyncToken`
1505
1635
  # @return [String]
@@ -1511,8 +1641,8 @@ module Google
1511
1641
 
1512
1642
  # Update properties of this object
1513
1643
  def update!(**args)
1514
- @connections = args[:connections] if args.key?(:connections)
1515
1644
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1645
+ @connections = args[:connections] if args.key?(:connections)
1516
1646
  @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
1517
1647
  end
1518
1648
  end