google-api-client 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  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/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/people/
26
26
  module PeopleV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170213'
28
+ REVISION = '20170310'
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,6 +22,122 @@ 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
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # Metadata about a field.
31
+ # Corresponds to the JSON property `metadata`
32
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
33
+ attr_accessor :metadata
34
+
35
+ # The URL of the photo.
36
+ # Corresponds to the JSON property `url`
37
+ # @return [String]
38
+ attr_accessor :url
39
+
40
+ def initialize(**args)
41
+ update!(**args)
42
+ end
43
+
44
+ # Update properties of this object
45
+ def update!(**args)
46
+ @metadata = args[:metadata] if args.key?(:metadata)
47
+ @url = args[:url] if args.key?(:url)
48
+ end
49
+ end
50
+
51
+ # A person's phone number.
52
+ class PhoneNumber
53
+ include Google::Apis::Core::Hashable
54
+
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.
57
+ # Corresponds to the JSON property `formattedType`
58
+ # @return [String]
59
+ attr_accessor :formatted_type
60
+
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`
65
+ # @return [String]
66
+ attr_accessor :canonical_form
67
+
68
+ # Metadata about a field.
69
+ # Corresponds to the JSON property `metadata`
70
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
71
+ attr_accessor :metadata
72
+
73
+ # The type of the phone number. The type can be custom or predefined.
74
+ # Possible values include, but are not limited to, the following:
75
+ # * `home`
76
+ # * `work`
77
+ # * `mobile`
78
+ # * `homeFax`
79
+ # * `workFax`
80
+ # * `otherFax`
81
+ # * `pager`
82
+ # * `workMobile`
83
+ # * `workPager`
84
+ # * `main`
85
+ # * `googleVoice`
86
+ # * `other`
87
+ # Corresponds to the JSON property `type`
88
+ # @return [String]
89
+ attr_accessor :type
90
+
91
+ # The phone number.
92
+ # Corresponds to the JSON property `value`
93
+ # @return [String]
94
+ attr_accessor :value
95
+
96
+ def initialize(**args)
97
+ update!(**args)
98
+ end
99
+
100
+ # Update properties of this object
101
+ def update!(**args)
102
+ @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)
105
+ @type = args[:type] if args.key?(:type)
106
+ @value = args[:value] if args.key?(:value)
107
+ end
108
+ end
109
+
110
+ #
111
+ class ListConnectionsResponse
112
+ include Google::Apis::Core::Hashable
113
+
114
+ # The token that can be used to retrieve the next page of results.
115
+ # Corresponds to the JSON property `nextPageToken`
116
+ # @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
123
+
124
+ # The token that can be used to retrieve changes since the last request.
125
+ # Corresponds to the JSON property `nextSyncToken`
126
+ # @return [String]
127
+ attr_accessor :next_sync_token
128
+
129
+ def initialize(**args)
130
+ update!(**args)
131
+ end
132
+
133
+ # Update properties of this object
134
+ 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)
138
+ end
139
+ end
140
+
25
141
  # A person's birthday. At least one of the `date` and `text` fields are
26
142
  # specified. The `date` and `text` fields typically represent the same
27
143
  # date, but are not guaranteed to.
@@ -62,46 +178,43 @@ module Google
62
178
  end
63
179
  end
64
180
 
65
- # A person's physical address. May be a P.O. box or street address. All fields
66
- # are optional.
67
- class Address
181
+ # A person's past or current residence.
182
+ class Residence
68
183
  include Google::Apis::Core::Hashable
69
184
 
70
- # The extended address of the address; for example, the apartment number.
71
- # Corresponds to the JSON property `extendedAddress`
72
- # @return [String]
73
- attr_accessor :extended_address
74
-
75
- # The P.O. box of the address.
76
- # Corresponds to the JSON property `poBox`
77
- # @return [String]
78
- attr_accessor :po_box
79
-
80
- # The postal code of the address.
81
- # Corresponds to the JSON property `postalCode`
82
- # @return [String]
83
- attr_accessor :postal_code
84
-
85
- # The region of the address; for example, the state or province.
86
- # Corresponds to the JSON property `region`
87
- # @return [String]
88
- attr_accessor :region
89
-
90
- # The street address.
91
- # Corresponds to the JSON property `streetAddress`
92
- # @return [String]
93
- attr_accessor :street_address
94
-
95
185
  # Metadata about a field.
96
186
  # Corresponds to the JSON property `metadata`
97
187
  # @return [Google::Apis::PeopleV1::FieldMetadata]
98
188
  attr_accessor :metadata
99
189
 
100
- # The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country
101
- # code of the address.
102
- # Corresponds to the JSON property `countryCode`
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`
193
+ # @return [Boolean]
194
+ attr_accessor :current
195
+ alias_method :current?, :current
196
+
197
+ # The address of the residence.
198
+ # Corresponds to the JSON property `value`
103
199
  # @return [String]
104
- attr_accessor :country_code
200
+ attr_accessor :value
201
+
202
+ def initialize(**args)
203
+ update!(**args)
204
+ end
205
+
206
+ # Update properties of this object
207
+ 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)
211
+ end
212
+ end
213
+
214
+ # A person's physical address. May be a P.O. box or street address. All fields
215
+ # are optional.
216
+ class Address
217
+ include Google::Apis::Core::Hashable
105
218
 
106
219
  # The read-only type of the address translated and formatted in the viewer's
107
220
  # account locale or the `Accept-Language` HTTP header locale.
@@ -134,47 +247,41 @@ module Google
134
247
  # @return [String]
135
248
  attr_accessor :type
136
249
 
137
- def initialize(**args)
138
- update!(**args)
139
- end
250
+ # The extended address of the address; for example, the apartment number.
251
+ # Corresponds to the JSON property `extendedAddress`
252
+ # @return [String]
253
+ attr_accessor :extended_address
140
254
 
141
- # Update properties of this object
142
- def update!(**args)
143
- @extended_address = args[:extended_address] if args.key?(:extended_address)
144
- @po_box = args[:po_box] if args.key?(:po_box)
145
- @postal_code = args[:postal_code] if args.key?(:postal_code)
146
- @region = args[:region] if args.key?(:region)
147
- @street_address = args[:street_address] if args.key?(:street_address)
148
- @metadata = args[:metadata] if args.key?(:metadata)
149
- @country_code = args[:country_code] if args.key?(:country_code)
150
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
151
- @city = args[:city] if args.key?(:city)
152
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
153
- @country = args[:country] if args.key?(:country)
154
- @type = args[:type] if args.key?(:type)
155
- end
156
- end
255
+ # The P.O. box of the address.
256
+ # Corresponds to the JSON property `poBox`
257
+ # @return [String]
258
+ attr_accessor :po_box
157
259
 
158
- # A person's past or current residence.
159
- class Residence
160
- include Google::Apis::Core::Hashable
260
+ # The postal code of the address.
261
+ # Corresponds to the JSON property `postalCode`
262
+ # @return [String]
263
+ attr_accessor :postal_code
264
+
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
269
+
270
+ # The street address.
271
+ # Corresponds to the JSON property `streetAddress`
272
+ # @return [String]
273
+ attr_accessor :street_address
161
274
 
162
275
  # Metadata about a field.
163
276
  # Corresponds to the JSON property `metadata`
164
277
  # @return [Google::Apis::PeopleV1::FieldMetadata]
165
278
  attr_accessor :metadata
166
279
 
167
- # True if the residence is the person's current residence;
168
- # false if the residence is a past residence.
169
- # Corresponds to the JSON property `current`
170
- # @return [Boolean]
171
- attr_accessor :current
172
- alias_method :current?, :current
173
-
174
- # The address of the residence.
175
- # Corresponds to the JSON property `value`
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`
176
283
  # @return [String]
177
- attr_accessor :value
284
+ attr_accessor :country_code
178
285
 
179
286
  def initialize(**args)
180
287
  update!(**args)
@@ -182,9 +289,18 @@ module Google
182
289
 
183
290
  # Update properties of this object
184
291
  def update!(**args)
292
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
293
+ @city = args[:city] if args.key?(:city)
294
+ @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)
185
302
  @metadata = args[:metadata] if args.key?(:metadata)
186
- @current = args[:current] if args.key?(:current)
187
- @value = args[:value] if args.key?(:value)
303
+ @country_code = args[:country_code] if args.key?(:country_code)
188
304
  end
189
305
  end
190
306
 
@@ -212,54 +328,6 @@ module Google
212
328
  end
213
329
  end
214
330
 
215
- # An event related to the person.
216
- class Event
217
- include Google::Apis::Core::Hashable
218
-
219
- # Metadata about a field.
220
- # Corresponds to the JSON property `metadata`
221
- # @return [Google::Apis::PeopleV1::FieldMetadata]
222
- attr_accessor :metadata
223
-
224
- # The type of the event. The type can be custom or predefined.
225
- # Possible values include, but are not limited to, the following:
226
- # * `anniversary`
227
- # * `other`
228
- # Corresponds to the JSON property `type`
229
- # @return [String]
230
- attr_accessor :type
231
-
232
- # Represents a whole calendar date, for example a date of birth. The time
233
- # of day and time zone are either specified elsewhere or are not
234
- # significant. The date is relative to the
235
- # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
236
- # Proleptic_Gregorian_calendar).
237
- # The day may be 0 to represent a year and month where the day is not
238
- # significant. The year may be 0 to represent a month and day independent
239
- # of year; for example, anniversary date.
240
- # Corresponds to the JSON property `date`
241
- # @return [Google::Apis::PeopleV1::Date]
242
- attr_accessor :date
243
-
244
- # The read-only type of the event translated and formatted in the
245
- # viewer's account locale or the `Accept-Language` HTTP header locale.
246
- # Corresponds to the JSON property `formattedType`
247
- # @return [String]
248
- attr_accessor :formatted_type
249
-
250
- def initialize(**args)
251
- update!(**args)
252
- end
253
-
254
- # Update properties of this object
255
- def update!(**args)
256
- @metadata = args[:metadata] if args.key?(:metadata)
257
- @type = args[:type] if args.key?(:type)
258
- @date = args[:date] if args.key?(:date)
259
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
260
- end
261
- end
262
-
263
331
  # The read-only metadata about a person.
264
332
  class PersonMetadata
265
333
  include Google::Apis::Core::Hashable
@@ -287,6 +355,7 @@ module Google
287
355
  attr_accessor :deleted
288
356
  alias_method :deleted?, :deleted
289
357
 
358
+ # DEPRECATED(Please read person.metadata.sources.profile_metadata instead).
290
359
  # The type of the person object.
291
360
  # Corresponds to the JSON property `objectType`
292
361
  # @return [String]
@@ -311,31 +380,40 @@ module Google
311
380
  end
312
381
  end
313
382
 
314
- # A person's gender.
315
- class Gender
383
+ # An event related to the person.
384
+ class Event
316
385
  include Google::Apis::Core::Hashable
317
386
 
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
+
318
393
  # Metadata about a field.
319
394
  # Corresponds to the JSON property `metadata`
320
395
  # @return [Google::Apis::PeopleV1::FieldMetadata]
321
396
  attr_accessor :metadata
322
397
 
323
- # The gender for the person. The gender can be custom or predefined.
324
- # Possible values include, but are not limited to, the
325
- # following:
326
- # * `male`
327
- # * `female`
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`
328
401
  # * `other`
329
- # * `unknown`
330
- # Corresponds to the JSON property `value`
402
+ # Corresponds to the JSON property `type`
331
403
  # @return [String]
332
- attr_accessor :value
404
+ attr_accessor :type
333
405
 
334
- # The read-only value of the gender translated and formatted in the viewer's
335
- # account locale or the `Accept-Language` HTTP header locale.
336
- # Corresponds to the JSON property `formattedValue`
337
- # @return [String]
338
- attr_accessor :formatted_value
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
339
417
 
340
418
  def initialize(**args)
341
419
  update!(**args)
@@ -343,9 +421,29 @@ module Google
343
421
 
344
422
  # Update properties of this object
345
423
  def update!(**args)
424
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
346
425
  @metadata = args[:metadata] if args.key?(:metadata)
347
- @value = args[:value] if args.key?(:value)
348
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
426
+ @type = args[:type] if args.key?(:type)
427
+ @date = args[:date] if args.key?(:date)
428
+ end
429
+ end
430
+
431
+ # The read-only metadata about a profile.
432
+ class ProfileMetadata
433
+ include Google::Apis::Core::Hashable
434
+
435
+ # The profile object type.
436
+ # Corresponds to the JSON property `objectType`
437
+ # @return [String]
438
+ attr_accessor :object_type
439
+
440
+ def initialize(**args)
441
+ update!(**args)
442
+ end
443
+
444
+ # Update properties of this object
445
+ def update!(**args)
446
+ @object_type = args[:object_type] if args.key?(:object_type)
349
447
  end
350
448
  end
351
449
 
@@ -397,6 +495,44 @@ module Google
397
495
  end
398
496
  end
399
497
 
498
+ # A person's gender.
499
+ class Gender
500
+ include Google::Apis::Core::Hashable
501
+
502
+ # Metadata about a field.
503
+ # Corresponds to the JSON property `metadata`
504
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
505
+ attr_accessor :metadata
506
+
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
517
+
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`
521
+ # @return [String]
522
+ attr_accessor :formatted_value
523
+
524
+ def initialize(**args)
525
+ update!(**args)
526
+ end
527
+
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
535
+
400
536
  # A person's read-only cover photo. A large image shown on the person's
401
537
  # profile page that represents who they are or what they care about.
402
538
  class CoverPhoto
@@ -447,20 +583,6 @@ module Google
447
583
  # @return [String]
448
584
  attr_accessor :formatted_type
449
585
 
450
- # Metadata about a field.
451
- # Corresponds to the JSON property `metadata`
452
- # @return [Google::Apis::PeopleV1::FieldMetadata]
453
- attr_accessor :metadata
454
-
455
- # The type of the IM client. The type can be custom or predefined.
456
- # Possible values include, but are not limited to, the following:
457
- # * `home`
458
- # * `work`
459
- # * `other`
460
- # Corresponds to the JSON property `type`
461
- # @return [String]
462
- attr_accessor :type
463
-
464
586
  # The protocol of the IM client. The protocol can be custom or predefined.
465
587
  # Possible values include, but are not limited to, the following:
466
588
  # * `aim`
@@ -476,6 +598,20 @@ module Google
476
598
  # @return [String]
477
599
  attr_accessor :protocol
478
600
 
601
+ # Metadata about a field.
602
+ # Corresponds to the JSON property `metadata`
603
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
604
+ attr_accessor :metadata
605
+
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
614
+
479
615
  # The user name used in the IM client.
480
616
  # Corresponds to the JSON property `username`
481
617
  # @return [String]
@@ -489,9 +625,9 @@ module Google
489
625
  def update!(**args)
490
626
  @formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol)
491
627
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
628
+ @protocol = args[:protocol] if args.key?(:protocol)
492
629
  @metadata = args[:metadata] if args.key?(:metadata)
493
630
  @type = args[:type] if args.key?(:type)
494
- @protocol = args[:protocol] if args.key?(:protocol)
495
631
  @username = args[:username] if args.key?(:username)
496
632
  end
497
633
  end
@@ -521,24 +657,39 @@ module Google
521
657
  end
522
658
  end
523
659
 
524
- # A person's nickname.
525
- class Nickname
660
+ # A person's email address.
661
+ class EmailAddress
526
662
  include Google::Apis::Core::Hashable
527
663
 
664
+ # The display name of the email.
665
+ # Corresponds to the JSON property `displayName`
666
+ # @return [String]
667
+ attr_accessor :display_name
668
+
528
669
  # Metadata about a field.
529
670
  # Corresponds to the JSON property `metadata`
530
671
  # @return [Google::Apis::PeopleV1::FieldMetadata]
531
672
  attr_accessor :metadata
532
673
 
533
- # The type of the nickname.
674
+ # The type of the email address. The type can be custom or predefined.
675
+ # Possible values include, but are not limited to, the following:
676
+ # * `home`
677
+ # * `work`
678
+ # * `other`
534
679
  # Corresponds to the JSON property `type`
535
680
  # @return [String]
536
681
  attr_accessor :type
537
682
 
538
- # The nickname.
683
+ # The email address.
539
684
  # Corresponds to the JSON property `value`
540
685
  # @return [String]
541
- attr_accessor :value
686
+ attr_accessor :value
687
+
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.
690
+ # Corresponds to the JSON property `formattedType`
691
+ # @return [String]
692
+ attr_accessor :formatted_type
542
693
 
543
694
  def initialize(**args)
544
695
  update!(**args)
@@ -546,57 +697,42 @@ module Google
546
697
 
547
698
  # Update properties of this object
548
699
  def update!(**args)
700
+ @display_name = args[:display_name] if args.key?(:display_name)
549
701
  @metadata = args[:metadata] if args.key?(:metadata)
550
702
  @type = args[:type] if args.key?(:type)
551
703
  @value = args[:value] if args.key?(:value)
704
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
552
705
  end
553
706
  end
554
707
 
555
- # A person's email address.
556
- class EmailAddress
708
+ # A person's nickname.
709
+ class Nickname
557
710
  include Google::Apis::Core::Hashable
558
711
 
559
- # The display name of the email.
560
- # Corresponds to the JSON property `displayName`
561
- # @return [String]
562
- attr_accessor :display_name
563
-
564
712
  # Metadata about a field.
565
713
  # Corresponds to the JSON property `metadata`
566
714
  # @return [Google::Apis::PeopleV1::FieldMetadata]
567
715
  attr_accessor :metadata
568
716
 
569
- # The type of the email address. The type can be custom or predefined.
570
- # Possible values include, but are not limited to, the following:
571
- # * `home`
572
- # * `work`
573
- # * `other`
717
+ # The type of the nickname.
574
718
  # Corresponds to the JSON property `type`
575
719
  # @return [String]
576
720
  attr_accessor :type
577
721
 
578
- # The email address.
722
+ # The nickname.
579
723
  # Corresponds to the JSON property `value`
580
724
  # @return [String]
581
725
  attr_accessor :value
582
726
 
583
- # The read-only type of the email address translated and formatted in the
584
- # viewer's account locale or the `Accept-Language` HTTP header locale.
585
- # Corresponds to the JSON property `formattedType`
586
- # @return [String]
587
- attr_accessor :formatted_type
588
-
589
727
  def initialize(**args)
590
728
  update!(**args)
591
729
  end
592
730
 
593
731
  # Update properties of this object
594
732
  def update!(**args)
595
- @display_name = args[:display_name] if args.key?(:display_name)
596
733
  @metadata = args[:metadata] if args.key?(:metadata)
597
734
  @type = args[:type] if args.key?(:type)
598
735
  @value = args[:value] if args.key?(:value)
599
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
600
736
  end
601
737
  end
602
738
 
@@ -680,12 +816,6 @@ module Google
680
816
  class RelationshipStatus
681
817
  include Google::Apis::Core::Hashable
682
818
 
683
- # The read-only value of the relationship status translated and formatted in
684
- # the viewer's account locale or the `Accept-Language` HTTP header locale.
685
- # Corresponds to the JSON property `formattedValue`
686
- # @return [String]
687
- attr_accessor :formatted_value
688
-
689
819
  # Metadata about a field.
690
820
  # Corresponds to the JSON property `metadata`
691
821
  # @return [Google::Apis::PeopleV1::FieldMetadata]
@@ -706,15 +836,21 @@ module Google
706
836
  # @return [String]
707
837
  attr_accessor :value
708
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
+
709
845
  def initialize(**args)
710
846
  update!(**args)
711
847
  end
712
848
 
713
849
  # Update properties of this object
714
850
  def update!(**args)
715
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
716
851
  @metadata = args[:metadata] if args.key?(:metadata)
717
852
  @value = args[:value] if args.key?(:value)
853
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
718
854
  end
719
855
  end
720
856
 
@@ -729,11 +865,6 @@ module Google
729
865
  class Date
730
866
  include Google::Apis::Core::Hashable
731
867
 
732
- # Month of year. Must be from 1 to 12.
733
- # Corresponds to the JSON property `month`
734
- # @return [Fixnum]
735
- attr_accessor :month
736
-
737
868
  # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
738
869
  # a year.
739
870
  # Corresponds to the JSON property `year`
@@ -746,15 +877,20 @@ module Google
746
877
  # @return [Fixnum]
747
878
  attr_accessor :day
748
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
884
+
749
885
  def initialize(**args)
750
886
  update!(**args)
751
887
  end
752
888
 
753
889
  # Update properties of this object
754
890
  def update!(**args)
755
- @month = args[:month] if args.key?(:month)
756
891
  @year = args[:year] if args.key?(:year)
757
892
  @day = args[:day] if args.key?(:day)
893
+ @month = args[:month] if args.key?(:month)
758
894
  end
759
895
  end
760
896
 
@@ -762,24 +898,24 @@ module Google
762
898
  class Tagline
763
899
  include Google::Apis::Core::Hashable
764
900
 
765
- # The tagline.
766
- # Corresponds to the JSON property `value`
767
- # @return [String]
768
- attr_accessor :value
769
-
770
901
  # Metadata about a field.
771
902
  # Corresponds to the JSON property `metadata`
772
903
  # @return [Google::Apis::PeopleV1::FieldMetadata]
773
904
  attr_accessor :metadata
774
905
 
906
+ # The tagline.
907
+ # Corresponds to the JSON property `value`
908
+ # @return [String]
909
+ attr_accessor :value
910
+
775
911
  def initialize(**args)
776
912
  update!(**args)
777
913
  end
778
914
 
779
915
  # Update properties of this object
780
916
  def update!(**args)
781
- @value = args[:value] if args.key?(:value)
782
917
  @metadata = args[:metadata] if args.key?(:metadata)
918
+ @value = args[:value] if args.key?(:value)
783
919
  end
784
920
  end
785
921
 
@@ -787,29 +923,6 @@ module Google
787
923
  class Name
788
924
  include Google::Apis::Core::Hashable
789
925
 
790
- # The full name spelled as it sounds.
791
- # Corresponds to the JSON property `phoneticFullName`
792
- # @return [String]
793
- attr_accessor :phonetic_full_name
794
-
795
- # The read-only display name with the last name first formatted according to
796
- # the locale specified by the viewer's account or the
797
- # <code>Accept-Language</code> HTTP header.
798
- # Corresponds to the JSON property `displayNameLastFirst`
799
- # @return [String]
800
- attr_accessor :display_name_last_first
801
-
802
- # The read-only display name formatted according to the locale specified by
803
- # the viewer's account or the <code>Accept-Language</code> HTTP header.
804
- # Corresponds to the JSON property `displayName`
805
- # @return [String]
806
- attr_accessor :display_name
807
-
808
- # The honorific suffixes, such as `Jr.`
809
- # Corresponds to the JSON property `honorificSuffix`
810
- # @return [String]
811
- attr_accessor :honorific_suffix
812
-
813
926
  # The honorific prefixes, such as `Mrs.` or `Dr.`
814
927
  # Corresponds to the JSON property `honorificPrefix`
815
928
  # @return [String]
@@ -850,15 +963,38 @@ module Google
850
963
  # @return [String]
851
964
  attr_accessor :family_name
852
965
 
966
+ # The middle name(s) spelled as they sound.
967
+ # Corresponds to the JSON property `phoneticMiddleName`
968
+ # @return [String]
969
+ attr_accessor :phonetic_middle_name
970
+
853
971
  # Metadata about a field.
854
972
  # Corresponds to the JSON property `metadata`
855
973
  # @return [Google::Apis::PeopleV1::FieldMetadata]
856
974
  attr_accessor :metadata
857
975
 
858
- # The middle name(s) spelled as they sound.
859
- # Corresponds to the JSON property `phoneticMiddleName`
976
+ # The full name spelled as it sounds.
977
+ # Corresponds to the JSON property `phoneticFullName`
860
978
  # @return [String]
861
- attr_accessor :phonetic_middle_name
979
+ attr_accessor :phonetic_full_name
980
+
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
987
+
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
993
+
994
+ # The honorific suffixes, such as `Jr.`
995
+ # Corresponds to the JSON property `honorificSuffix`
996
+ # @return [String]
997
+ attr_accessor :honorific_suffix
862
998
 
863
999
  def initialize(**args)
864
1000
  update!(**args)
@@ -866,10 +1002,6 @@ module Google
866
1002
 
867
1003
  # Update properties of this object
868
1004
  def update!(**args)
869
- @phonetic_full_name = args[:phonetic_full_name] if args.key?(:phonetic_full_name)
870
- @display_name_last_first = args[:display_name_last_first] if args.key?(:display_name_last_first)
871
- @display_name = args[:display_name] if args.key?(:display_name)
872
- @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix)
873
1005
  @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix)
874
1006
  @phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
875
1007
  @middle_name = args[:middle_name] if args.key?(:middle_name)
@@ -878,8 +1010,12 @@ module Google
878
1010
  @phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name)
879
1011
  @phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name)
880
1012
  @family_name = args[:family_name] if args.key?(:family_name)
881
- @metadata = args[:metadata] if args.key?(:metadata)
882
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)
883
1019
  end
884
1020
  end
885
1021
 
@@ -887,24 +1023,24 @@ module Google
887
1023
  class BraggingRights
888
1024
  include Google::Apis::Core::Hashable
889
1025
 
890
- # The bragging rights; for example, `climbed mount everest`.
891
- # Corresponds to the JSON property `value`
892
- # @return [String]
893
- attr_accessor :value
894
-
895
1026
  # Metadata about a field.
896
1027
  # Corresponds to the JSON property `metadata`
897
1028
  # @return [Google::Apis::PeopleV1::FieldMetadata]
898
1029
  attr_accessor :metadata
899
1030
 
1031
+ # The bragging rights; for example, `climbed mount everest`.
1032
+ # Corresponds to the JSON property `value`
1033
+ # @return [String]
1034
+ attr_accessor :value
1035
+
900
1036
  def initialize(**args)
901
1037
  update!(**args)
902
1038
  end
903
1039
 
904
1040
  # Update properties of this object
905
1041
  def update!(**args)
906
- @value = args[:value] if args.key?(:value)
907
1042
  @metadata = args[:metadata] if args.key?(:metadata)
1043
+ @value = args[:value] if args.key?(:value)
908
1044
  end
909
1045
  end
910
1046
 
@@ -912,25 +1048,25 @@ module Google
912
1048
  class Locale
913
1049
  include Google::Apis::Core::Hashable
914
1050
 
1051
+ # Metadata about a field.
1052
+ # Corresponds to the JSON property `metadata`
1053
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
1054
+ attr_accessor :metadata
1055
+
915
1056
  # The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47)
916
1057
  # language tag representing the locale.
917
1058
  # Corresponds to the JSON property `value`
918
1059
  # @return [String]
919
1060
  attr_accessor :value
920
1061
 
921
- # Metadata about a field.
922
- # Corresponds to the JSON property `metadata`
923
- # @return [Google::Apis::PeopleV1::FieldMetadata]
924
- attr_accessor :metadata
925
-
926
1062
  def initialize(**args)
927
1063
  update!(**args)
928
1064
  end
929
1065
 
930
1066
  # Update properties of this object
931
1067
  def update!(**args)
932
- @value = args[:value] if args.key?(:value)
933
1068
  @metadata = args[:metadata] if args.key?(:metadata)
1069
+ @value = args[:value] if args.key?(:value)
934
1070
  end
935
1071
  end
936
1072
 
@@ -939,11 +1075,39 @@ module Google
939
1075
  class Organization
940
1076
  include Google::Apis::Core::Hashable
941
1077
 
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
+
942
1101
  # The person's department at the organization.
943
1102
  # Corresponds to the JSON property `department`
944
1103
  # @return [String]
945
1104
  attr_accessor :department
946
1105
 
1106
+ # The phonetic name of the organization.
1107
+ # Corresponds to the JSON property `phoneticName`
1108
+ # @return [String]
1109
+ attr_accessor :phonetic_name
1110
+
947
1111
  # The type of the organization. The type can be custom or predefined.
948
1112
  # Possible values include, but are not limited to, the following:
949
1113
  # * `work`
@@ -952,11 +1116,6 @@ module Google
952
1116
  # @return [String]
953
1117
  attr_accessor :type
954
1118
 
955
- # The phonetic name of the organization.
956
- # Corresponds to the JSON property `phoneticName`
957
- # @return [String]
958
- attr_accessor :phonetic_name
959
-
960
1119
  # The person's job description at the organization.
961
1120
  # Corresponds to the JSON property `jobDescription`
962
1121
  # @return [String]
@@ -990,16 +1149,16 @@ module Google
990
1149
  # @return [Google::Apis::PeopleV1::FieldMetadata]
991
1150
  attr_accessor :metadata
992
1151
 
993
- # The person's job title at the organization.
994
- # Corresponds to the JSON property `title`
995
- # @return [String]
996
- attr_accessor :title
997
-
998
1152
  # The location of the organization office the person works at.
999
1153
  # Corresponds to the JSON property `location`
1000
1154
  # @return [String]
1001
1155
  attr_accessor :location
1002
1156
 
1157
+ # The person's job title at the organization.
1158
+ # Corresponds to the JSON property `title`
1159
+ # @return [String]
1160
+ attr_accessor :title
1161
+
1003
1162
  # True if the organization is the person's current organization;
1004
1163
  # false if the organization is a past organization.
1005
1164
  # Corresponds to the JSON property `current`
@@ -1007,70 +1166,73 @@ module Google
1007
1166
  attr_accessor :current
1008
1167
  alias_method :current?, :current
1009
1168
 
1010
- # Represents a whole calendar date, for example a date of birth. The time
1011
- # of day and time zone are either specified elsewhere or are not
1012
- # significant. The date is relative to the
1013
- # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
1014
- # Proleptic_Gregorian_calendar).
1015
- # The day may be 0 to represent a year and month where the day is not
1016
- # significant. The year may be 0 to represent a month and day independent
1017
- # of year; for example, anniversary date.
1018
- # Corresponds to the JSON property `startDate`
1019
- # @return [Google::Apis::PeopleV1::Date]
1020
- attr_accessor :start_date
1021
-
1022
- # The read-only type of the organization translated and formatted in the
1023
- # viewer's account locale or the `Accept-Language` HTTP header locale.
1024
- # Corresponds to the JSON property `formattedType`
1025
- # @return [String]
1026
- attr_accessor :formatted_type
1027
-
1028
- # The domain name associated with the organization; for example, `google.com`.
1029
- # Corresponds to the JSON property `domain`
1030
- # @return [String]
1031
- attr_accessor :domain
1032
-
1033
1169
  def initialize(**args)
1034
1170
  update!(**args)
1035
1171
  end
1036
1172
 
1037
1173
  # Update properties of this object
1038
1174
  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)
1039
1178
  @department = args[:department] if args.key?(:department)
1040
- @type = args[:type] if args.key?(:type)
1041
1179
  @phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name)
1180
+ @type = args[:type] if args.key?(:type)
1042
1181
  @job_description = args[:job_description] if args.key?(:job_description)
1043
1182
  @end_date = args[:end_date] if args.key?(:end_date)
1044
1183
  @symbol = args[:symbol] if args.key?(:symbol)
1045
1184
  @name = args[:name] if args.key?(:name)
1046
1185
  @metadata = args[:metadata] if args.key?(:metadata)
1047
- @title = args[:title] if args.key?(:title)
1048
1186
  @location = args[:location] if args.key?(:location)
1187
+ @title = args[:title] if args.key?(:title)
1049
1188
  @current = args[:current] if args.key?(:current)
1050
- @start_date = args[:start_date] if args.key?(:start_date)
1051
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1052
- @domain = args[:domain] if args.key?(:domain)
1053
1189
  end
1054
1190
  end
1055
1191
 
1056
- # A person's short biography.
1057
- class Biography
1192
+ # A person's short biography.
1193
+ class Biography
1194
+ include Google::Apis::Core::Hashable
1195
+
1196
+ # Metadata about a field.
1197
+ # Corresponds to the JSON property `metadata`
1198
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
1199
+ attr_accessor :metadata
1200
+
1201
+ # The short biography.
1202
+ # Corresponds to the JSON property `value`
1203
+ # @return [String]
1204
+ attr_accessor :value
1205
+
1206
+ # The content type of the biography.
1207
+ # Corresponds to the JSON property `contentType`
1208
+ # @return [String]
1209
+ attr_accessor :content_type
1210
+
1211
+ def initialize(**args)
1212
+ update!(**args)
1213
+ end
1214
+
1215
+ # Update properties of this object
1216
+ def update!(**args)
1217
+ @metadata = args[:metadata] if args.key?(:metadata)
1218
+ @value = args[:value] if args.key?(:value)
1219
+ @content_type = args[:content_type] if args.key?(:content_type)
1220
+ end
1221
+ end
1222
+
1223
+ # A person's age range.
1224
+ class AgeRangeType
1058
1225
  include Google::Apis::Core::Hashable
1059
1226
 
1060
- # The content type of the biography.
1061
- # Corresponds to the JSON property `contentType`
1062
- # @return [String]
1063
- attr_accessor :content_type
1064
-
1065
1227
  # Metadata about a field.
1066
1228
  # Corresponds to the JSON property `metadata`
1067
1229
  # @return [Google::Apis::PeopleV1::FieldMetadata]
1068
1230
  attr_accessor :metadata
1069
1231
 
1070
- # The short biography.
1071
- # Corresponds to the JSON property `value`
1232
+ # The age range.
1233
+ # Corresponds to the JSON property `ageRange`
1072
1234
  # @return [String]
1073
- attr_accessor :value
1235
+ attr_accessor :age_range
1074
1236
 
1075
1237
  def initialize(**args)
1076
1238
  update!(**args)
@@ -1078,9 +1240,8 @@ module Google
1078
1240
 
1079
1241
  # Update properties of this object
1080
1242
  def update!(**args)
1081
- @content_type = args[:content_type] if args.key?(:content_type)
1082
1243
  @metadata = args[:metadata] if args.key?(:metadata)
1083
- @value = args[:value] if args.key?(:value)
1244
+ @age_range = args[:age_range] if args.key?(:age_range)
1084
1245
  end
1085
1246
  end
1086
1247
 
@@ -1120,45 +1281,6 @@ module Google
1120
1281
  end
1121
1282
  end
1122
1283
 
1123
- # A person's read-only relationship interest .
1124
- class RelationshipInterest
1125
- include Google::Apis::Core::Hashable
1126
-
1127
- # The value of the relationship interest translated and formatted in the
1128
- # viewer's account locale or the locale specified in the Accept-Language
1129
- # HTTP header.
1130
- # Corresponds to the JSON property `formattedValue`
1131
- # @return [String]
1132
- attr_accessor :formatted_value
1133
-
1134
- # Metadata about a field.
1135
- # Corresponds to the JSON property `metadata`
1136
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1137
- attr_accessor :metadata
1138
-
1139
- # The kind of relationship the person is looking for. The value can be custom
1140
- # or predefined. Possible values include, but are not limited to, the
1141
- # following values:
1142
- # * `friend`
1143
- # * `date`
1144
- # * `relationship`
1145
- # * `networking`
1146
- # Corresponds to the JSON property `value`
1147
- # @return [String]
1148
- attr_accessor :value
1149
-
1150
- def initialize(**args)
1151
- update!(**args)
1152
- end
1153
-
1154
- # Update properties of this object
1155
- def update!(**args)
1156
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
1157
- @metadata = args[:metadata] if args.key?(:metadata)
1158
- @value = args[:value] if args.key?(:value)
1159
- end
1160
- end
1161
-
1162
1284
  # The response for a single person
1163
1285
  class PersonResponse
1164
1286
  include Google::Apis::Core::Hashable
@@ -1169,6 +1291,7 @@ module Google
1169
1291
  # Most fields can have multiple items. The items in a field have no guaranteed
1170
1292
  # order, but each non-empty field is guaranteed to have exactly one field with
1171
1293
  # `metadata.primary` set to true.
1294
+ # NEXT_ID: 31
1172
1295
  # Corresponds to the JSON property `person`
1173
1296
  # @return [Google::Apis::PeopleV1::Person]
1174
1297
  attr_accessor :person
@@ -1199,15 +1322,53 @@ module Google
1199
1322
  end
1200
1323
  end
1201
1324
 
1325
+ # A person's read-only relationship interest .
1326
+ class RelationshipInterest
1327
+ include Google::Apis::Core::Hashable
1328
+
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`
1333
+ # @return [String]
1334
+ attr_accessor :formatted_value
1335
+
1336
+ # Metadata about a field.
1337
+ # Corresponds to the JSON property `metadata`
1338
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
1339
+ attr_accessor :metadata
1340
+
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
+ def initialize(**args)
1353
+ update!(**args)
1354
+ end
1355
+
1356
+ # Update properties of this object
1357
+ def update!(**args)
1358
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
1359
+ @metadata = args[:metadata] if args.key?(:metadata)
1360
+ @value = args[:value] if args.key?(:value)
1361
+ end
1362
+ end
1363
+
1202
1364
  # The source of a field.
1203
1365
  class Source
1204
1366
  include Google::Apis::Core::Hashable
1205
1367
 
1206
- # The resource name of the source. Only set if there is a separate
1207
- # resource endpoint.
1208
- # Corresponds to the JSON property `resourceName`
1209
- # @return [String]
1210
- attr_accessor :resource_name
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
1211
1372
 
1212
1373
  # The source type.
1213
1374
  # Corresponds to the JSON property `type`
@@ -1232,7 +1393,7 @@ module Google
1232
1393
 
1233
1394
  # Update properties of this object
1234
1395
  def update!(**args)
1235
- @resource_name = args[:resource_name] if args.key?(:resource_name)
1396
+ @profile_metadata = args[:profile_metadata] if args.key?(:profile_metadata)
1236
1397
  @type = args[:type] if args.key?(:type)
1237
1398
  @etag = args[:etag] if args.key?(:etag)
1238
1399
  @id = args[:id] if args.key?(:id)
@@ -1243,17 +1404,6 @@ module Google
1243
1404
  class Relation
1244
1405
  include Google::Apis::Core::Hashable
1245
1406
 
1246
- # The name of the other person this relation refers to.
1247
- # Corresponds to the JSON property `person`
1248
- # @return [String]
1249
- attr_accessor :person
1250
-
1251
- # The type of the relation translated and formatted in the viewer's account
1252
- # locale or the locale specified in the Accept-Language HTTP header.
1253
- # Corresponds to the JSON property `formattedType`
1254
- # @return [String]
1255
- attr_accessor :formatted_type
1256
-
1257
1407
  # Metadata about a field.
1258
1408
  # Corresponds to the JSON property `metadata`
1259
1409
  # @return [Google::Apis::PeopleV1::FieldMetadata]
@@ -1280,16 +1430,27 @@ module Google
1280
1430
  # @return [String]
1281
1431
  attr_accessor :type
1282
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
1437
+
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
1443
+
1283
1444
  def initialize(**args)
1284
1445
  update!(**args)
1285
1446
  end
1286
1447
 
1287
1448
  # Update properties of this object
1288
1449
  def update!(**args)
1289
- @person = args[:person] if args.key?(:person)
1290
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1291
1450
  @metadata = args[:metadata] if args.key?(:metadata)
1292
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)
1293
1454
  end
1294
1455
  end
1295
1456
 
@@ -1324,14 +1485,10 @@ module Google
1324
1485
  # Most fields can have multiple items. The items in a field have no guaranteed
1325
1486
  # order, but each non-empty field is guaranteed to have exactly one field with
1326
1487
  # `metadata.primary` set to true.
1488
+ # NEXT_ID: 31
1327
1489
  class Person
1328
1490
  include Google::Apis::Core::Hashable
1329
1491
 
1330
- # The person's instant messaging clients.
1331
- # Corresponds to the JSON property `imClients`
1332
- # @return [Array<Google::Apis::PeopleV1::ImClient>]
1333
- attr_accessor :im_clients
1334
-
1335
1492
  # The person's birthdays.
1336
1493
  # Corresponds to the JSON property `birthdays`
1337
1494
  # @return [Array<Google::Apis::PeopleV1::Birthday>]
@@ -1439,7 +1596,7 @@ module Google
1439
1596
  # @return [Array<Google::Apis::PeopleV1::Photo>]
1440
1597
  attr_accessor :photos
1441
1598
 
1442
- # The person's age range.
1599
+ # DEPRECATED(Please read person.age_ranges instead). The person's age range.
1443
1600
  # Corresponds to the JSON property `ageRange`
1444
1601
  # @return [String]
1445
1602
  attr_accessor :age_range
@@ -1449,6 +1606,11 @@ module Google
1449
1606
  # @return [Array<Google::Apis::PeopleV1::Tagline>]
1450
1607
  attr_accessor :taglines
1451
1608
 
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
1613
+
1452
1614
  # The person's street addresses.
1453
1615
  # Corresponds to the JSON property `addresses`
1454
1616
  # @return [Array<Google::Apis::PeopleV1::Address>]
@@ -1474,13 +1636,17 @@ module Google
1474
1636
  # @return [Array<Google::Apis::PeopleV1::CoverPhoto>]
1475
1637
  attr_accessor :cover_photos
1476
1638
 
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
1643
+
1477
1644
  def initialize(**args)
1478
1645
  update!(**args)
1479
1646
  end
1480
1647
 
1481
1648
  # Update properties of this object
1482
1649
  def update!(**args)
1483
- @im_clients = args[:im_clients] if args.key?(:im_clients)
1484
1650
  @birthdays = args[:birthdays] if args.key?(:birthdays)
1485
1651
  @locales = args[:locales] if args.key?(:locales)
1486
1652
  @relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests)
@@ -1504,11 +1670,13 @@ module Google
1504
1670
  @photos = args[:photos] if args.key?(:photos)
1505
1671
  @age_range = args[:age_range] if args.key?(:age_range)
1506
1672
  @taglines = args[:taglines] if args.key?(:taglines)
1673
+ @age_ranges = args[:age_ranges] if args.key?(:age_ranges)
1507
1674
  @addresses = args[:addresses] if args.key?(:addresses)
1508
1675
  @events = args[:events] if args.key?(:events)
1509
1676
  @memberships = args[:memberships] if args.key?(:memberships)
1510
1677
  @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers)
1511
1678
  @cover_photos = args[:cover_photos] if args.key?(:cover_photos)
1679
+ @im_clients = args[:im_clients] if args.key?(:im_clients)
1512
1680
  end
1513
1681
  end
1514
1682
 
@@ -1530,122 +1698,6 @@ module Google
1530
1698
  @responses = args[:responses] if args.key?(:responses)
1531
1699
  end
1532
1700
  end
1533
-
1534
- # A person's phone number.
1535
- class PhoneNumber
1536
- include Google::Apis::Core::Hashable
1537
-
1538
- # Metadata about a field.
1539
- # Corresponds to the JSON property `metadata`
1540
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1541
- attr_accessor :metadata
1542
-
1543
- # The type of the phone number. The type can be custom or predefined.
1544
- # Possible values include, but are not limited to, the following:
1545
- # * `home`
1546
- # * `work`
1547
- # * `mobile`
1548
- # * `homeFax`
1549
- # * `workFax`
1550
- # * `otherFax`
1551
- # * `pager`
1552
- # * `workMobile`
1553
- # * `workPager`
1554
- # * `main`
1555
- # * `googleVoice`
1556
- # * `other`
1557
- # Corresponds to the JSON property `type`
1558
- # @return [String]
1559
- attr_accessor :type
1560
-
1561
- # The phone number.
1562
- # Corresponds to the JSON property `value`
1563
- # @return [String]
1564
- attr_accessor :value
1565
-
1566
- # The read-only type of the phone number translated and formatted in the
1567
- # viewer's account locale or the the `Accept-Language` HTTP header locale.
1568
- # Corresponds to the JSON property `formattedType`
1569
- # @return [String]
1570
- attr_accessor :formatted_type
1571
-
1572
- # The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/
1573
- # ibr/004/itu-t.E.164.1.2008.pdf)
1574
- # form of the phone number.
1575
- # Corresponds to the JSON property `canonicalForm`
1576
- # @return [String]
1577
- attr_accessor :canonical_form
1578
-
1579
- def initialize(**args)
1580
- update!(**args)
1581
- end
1582
-
1583
- # Update properties of this object
1584
- def update!(**args)
1585
- @metadata = args[:metadata] if args.key?(:metadata)
1586
- @type = args[:type] if args.key?(:type)
1587
- @value = args[:value] if args.key?(:value)
1588
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1589
- @canonical_form = args[:canonical_form] if args.key?(:canonical_form)
1590
- end
1591
- end
1592
-
1593
- # A person's read-only photo. A picture shown next to the person's name to
1594
- # help others recognize the person.
1595
- class Photo
1596
- include Google::Apis::Core::Hashable
1597
-
1598
- # Metadata about a field.
1599
- # Corresponds to the JSON property `metadata`
1600
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1601
- attr_accessor :metadata
1602
-
1603
- # The URL of the photo.
1604
- # Corresponds to the JSON property `url`
1605
- # @return [String]
1606
- attr_accessor :url
1607
-
1608
- def initialize(**args)
1609
- update!(**args)
1610
- end
1611
-
1612
- # Update properties of this object
1613
- def update!(**args)
1614
- @metadata = args[:metadata] if args.key?(:metadata)
1615
- @url = args[:url] if args.key?(:url)
1616
- end
1617
- end
1618
-
1619
- #
1620
- class ListConnectionsResponse
1621
- include Google::Apis::Core::Hashable
1622
-
1623
- # The token that can be used to retrieve the next page of results.
1624
- # Corresponds to the JSON property `nextPageToken`
1625
- # @return [String]
1626
- attr_accessor :next_page_token
1627
-
1628
- # The list of people that the requestor is connected to.
1629
- # Corresponds to the JSON property `connections`
1630
- # @return [Array<Google::Apis::PeopleV1::Person>]
1631
- attr_accessor :connections
1632
-
1633
- # The token that can be used to retrieve changes since the last request.
1634
- # Corresponds to the JSON property `nextSyncToken`
1635
- # @return [String]
1636
- attr_accessor :next_sync_token
1637
-
1638
- def initialize(**args)
1639
- update!(**args)
1640
- end
1641
-
1642
- # Update properties of this object
1643
- def update!(**args)
1644
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1645
- @connections = args[:connections] if args.key?(:connections)
1646
- @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
1647
- end
1648
- end
1649
1701
  end
1650
1702
  end
1651
1703
  end