google-api-client 0.10.1 → 0.10.2

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