google-api-client 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/api_names.yaml +42335 -1
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
  14. data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +61 -61
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +403 -403
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
  24. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  25. data/generated/google/apis/appengine_v1.rb +6 -5
  26. data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
  27. data/generated/google/apis/appengine_v1/representations.rb +331 -331
  28. data/generated/google/apis/appengine_v1/service.rb +173 -168
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
  36. data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
  37. data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
  38. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  39. data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
  40. data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
  41. data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
  42. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  43. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
  44. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
  45. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
  46. data/generated/google/apis/cloudfunctions_v1.rb +1 -4
  47. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
  48. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
  49. data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
  50. data/generated/google/apis/cloudkms_v1.rb +1 -1
  51. data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
  52. data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
  53. data/generated/google/apis/cloudkms_v1/service.rb +272 -272
  54. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
  63. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
  66. data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +194 -25
  69. data/generated/google/apis/compute_beta/representations.rb +42 -0
  70. data/generated/google/apis/compute_beta/service.rb +196 -100
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +69 -18
  73. data/generated/google/apis/compute_v1/representations.rb +16 -0
  74. data/generated/google/apis/compute_v1/service.rb +84 -26
  75. data/generated/google/apis/container_v1.rb +3 -3
  76. data/generated/google/apis/container_v1/classes.rb +794 -586
  77. data/generated/google/apis/container_v1/representations.rb +202 -118
  78. data/generated/google/apis/container_v1/service.rb +396 -167
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +4 -4
  81. data/generated/google/apis/dataproc_v1.rb +1 -1
  82. data/generated/google/apis/dataproc_v1/classes.rb +487 -484
  83. data/generated/google/apis/dataproc_v1/representations.rb +83 -83
  84. data/generated/google/apis/dataproc_v1/service.rb +299 -297
  85. data/generated/google/apis/datastore_v1.rb +1 -1
  86. data/generated/google/apis/datastore_v1/classes.rb +703 -703
  87. data/generated/google/apis/datastore_v1/representations.rb +148 -148
  88. data/generated/google/apis/datastore_v1/service.rb +62 -62
  89. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  90. data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -5
  91. data/generated/google/apis/dfareporting_v2_6.rb +1 -1
  92. data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
  93. data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
  94. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  95. data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
  96. data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
  97. data/generated/google/apis/dfareporting_v2_8.rb +40 -0
  98. data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
  99. data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
  100. data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
  101. data/generated/google/apis/dns_v1.rb +1 -1
  102. data/generated/google/apis/dns_v2beta1.rb +1 -1
  103. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2.rb +1 -1
  105. data/generated/google/apis/drive_v2/classes.rb +15 -0
  106. data/generated/google/apis/drive_v2/representations.rb +2 -0
  107. data/generated/google/apis/drive_v2/service.rb +2 -1
  108. data/generated/google/apis/drive_v3.rb +1 -1
  109. data/generated/google/apis/drive_v3/classes.rb +16 -0
  110. data/generated/google/apis/drive_v3/representations.rb +2 -0
  111. data/generated/google/apis/drive_v3/service.rb +2 -1
  112. data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
  113. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
  114. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
  115. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
  116. data/generated/google/apis/firebaserules_v1.rb +1 -1
  117. data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
  118. data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
  119. data/generated/google/apis/firebaserules_v1/service.rb +118 -118
  120. data/generated/google/apis/fusiontables_v2.rb +1 -1
  121. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  122. data/generated/google/apis/games_management_v1management.rb +1 -1
  123. data/generated/google/apis/games_v1.rb +1 -1
  124. data/generated/google/apis/genomics_v1.rb +1 -1
  125. data/generated/google/apis/genomics_v1/classes.rb +920 -920
  126. data/generated/google/apis/genomics_v1/representations.rb +202 -202
  127. data/generated/google/apis/genomics_v1/service.rb +1092 -1092
  128. data/generated/google/apis/gmail_v1.rb +1 -1
  129. data/generated/google/apis/iam_v1.rb +1 -1
  130. data/generated/google/apis/iam_v1/classes.rb +455 -435
  131. data/generated/google/apis/iam_v1/representations.rb +96 -93
  132. data/generated/google/apis/iam_v1/service.rb +157 -157
  133. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  134. data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
  135. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
  136. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  137. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  138. data/generated/google/apis/kgsearch_v1/service.rb +9 -9
  139. data/generated/google/apis/language_v1.rb +1 -1
  140. data/generated/google/apis/language_v1/classes.rb +455 -455
  141. data/generated/google/apis/language_v1/representations.rb +102 -102
  142. data/generated/google/apis/language_v1/service.rb +42 -42
  143. data/generated/google/apis/language_v1beta1.rb +1 -1
  144. data/generated/google/apis/language_v1beta1/classes.rb +216 -215
  145. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  146. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  147. data/generated/google/apis/logging_v2.rb +1 -1
  148. data/generated/google/apis/logging_v2/classes.rb +908 -895
  149. data/generated/google/apis/logging_v2/representations.rb +121 -120
  150. data/generated/google/apis/logging_v2/service.rb +489 -489
  151. data/generated/google/apis/logging_v2beta1.rb +4 -4
  152. data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
  153. data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
  154. data/generated/google/apis/logging_v2beta1/service.rb +249 -249
  155. data/generated/google/apis/manufacturers_v1.rb +1 -1
  156. data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
  157. data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
  158. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  159. data/generated/google/apis/mirror_v1.rb +1 -1
  160. data/generated/google/apis/ml_v1.rb +1 -1
  161. data/generated/google/apis/ml_v1/classes.rb +1186 -1183
  162. data/generated/google/apis/ml_v1/representations.rb +177 -177
  163. data/generated/google/apis/ml_v1/service.rb +244 -244
  164. data/generated/google/apis/monitoring_v3.rb +1 -1
  165. data/generated/google/apis/monitoring_v3/classes.rb +866 -866
  166. data/generated/google/apis/monitoring_v3/representations.rb +163 -163
  167. data/generated/google/apis/monitoring_v3/service.rb +355 -316
  168. data/generated/google/apis/oauth2_v2.rb +1 -1
  169. data/generated/google/apis/partners_v2.rb +1 -1
  170. data/generated/google/apis/partners_v2/classes.rb +1499 -1499
  171. data/generated/google/apis/partners_v2/representations.rb +368 -368
  172. data/generated/google/apis/partners_v2/service.rb +512 -512
  173. data/generated/google/apis/people_v1.rb +10 -10
  174. data/generated/google/apis/people_v1/classes.rb +544 -423
  175. data/generated/google/apis/people_v1/representations.rb +127 -109
  176. data/generated/google/apis/people_v1/service.rb +8 -8
  177. data/generated/google/apis/plus_domains_v1.rb +1 -1
  178. data/generated/google/apis/plus_v1.rb +1 -1
  179. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  180. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +200 -200
  181. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
  182. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
  183. data/generated/google/apis/pubsub_v1.rb +1 -1
  184. data/generated/google/apis/pubsub_v1/classes.rb +377 -377
  185. data/generated/google/apis/pubsub_v1/representations.rb +82 -82
  186. data/generated/google/apis/pubsub_v1/service.rb +93 -93
  187. data/generated/google/apis/runtimeconfig_v1.rb +6 -4
  188. data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
  189. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  190. data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
  191. data/generated/google/apis/script_v1.rb +14 -14
  192. data/generated/google/apis/script_v1/classes.rb +113 -58
  193. data/generated/google/apis/script_v1/representations.rb +43 -14
  194. data/generated/google/apis/script_v1/service.rb +6 -6
  195. data/generated/google/apis/searchconsole_v1.rb +1 -1
  196. data/generated/google/apis/searchconsole_v1/classes.rb +67 -67
  197. data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
  198. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  199. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  200. data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
  201. data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
  202. data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
  203. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  204. data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
  205. data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
  206. data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
  207. data/generated/google/apis/serviceuser_v1.rb +4 -4
  208. data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
  209. data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
  210. data/generated/google/apis/serviceuser_v1/service.rb +19 -19
  211. data/generated/google/apis/sheets_v4.rb +4 -1
  212. data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
  213. data/generated/google/apis/sheets_v4/representations.rb +858 -858
  214. data/generated/google/apis/sheets_v4/service.rb +115 -115
  215. data/generated/google/apis/slides_v1.rb +1 -1
  216. data/generated/google/apis/slides_v1/classes.rb +2890 -2890
  217. data/generated/google/apis/slides_v1/representations.rb +638 -638
  218. data/generated/google/apis/slides_v1/service.rb +36 -36
  219. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  220. data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
  221. data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
  222. data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
  223. data/generated/google/apis/spanner_v1.rb +1 -1
  224. data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
  225. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  226. data/generated/google/apis/spanner_v1/service.rb +466 -466
  227. data/generated/google/apis/speech_v1beta1.rb +2 -2
  228. data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
  229. data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
  230. data/generated/google/apis/speech_v1beta1/service.rb +49 -49
  231. data/generated/google/apis/storage_v1.rb +1 -1
  232. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  233. data/generated/google/apis/storagetransfer_v1/classes.rb +786 -786
  234. data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
  235. data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
  236. data/generated/google/apis/surveys_v2.rb +1 -1
  237. data/generated/google/apis/surveys_v2/classes.rb +0 -12
  238. data/generated/google/apis/surveys_v2/representations.rb +0 -4
  239. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  240. data/generated/google/apis/vision_v1.rb +1 -1
  241. data/generated/google/apis/vision_v1/classes.rb +1301 -1302
  242. data/generated/google/apis/vision_v1/representations.rb +183 -183
  243. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  244. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  245. data/generated/google/apis/youtube_partner_v1/classes.rb +10 -0
  246. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
  247. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  248. data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
  249. data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
  250. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  251. data/lib/google/apis/version.rb +1 -1
  252. metadata +7 -3
@@ -25,7 +25,13 @@ module Google
25
25
  # @see https://developers.google.com/people/
26
26
  module PeopleV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170402'
28
+ REVISION = '20170503'
29
+
30
+ # Know the list of people in your circles, your age range, and language
31
+ AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
32
+
33
+ # View your basic profile info
34
+ AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile'
29
35
 
30
36
  # View your email addresses
31
37
  AUTH_USER_EMAILS_READ = 'https://www.googleapis.com/auth/user.emails.read'
@@ -36,23 +42,17 @@ module Google
36
42
  # View your street addresses
37
43
  AUTH_USER_ADDRESSES_READ = 'https://www.googleapis.com/auth/user.addresses.read'
38
44
 
39
- # View your email address
40
- AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
41
-
42
45
  # View your phone numbers
43
46
  AUTH_USER_PHONENUMBERS_READ = 'https://www.googleapis.com/auth/user.phonenumbers.read'
44
47
 
48
+ # View your email address
49
+ AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
50
+
45
51
  # View your complete date of birth
46
52
  AUTH_USER_BIRTHDAY_READ = 'https://www.googleapis.com/auth/user.birthday.read'
47
53
 
48
54
  # View your contacts
49
55
  AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
50
-
51
- # Know the list of people in your circles, your age range, and language
52
- AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
53
-
54
- # View your basic profile info
55
- AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile'
56
56
  end
57
57
  end
58
58
  end
@@ -22,15 +22,140 @@ module Google
22
22
  module Apis
23
23
  module PeopleV1
24
24
 
25
- # The read-only metadata about a profile.
26
- class ProfileMetadata
25
+ # A Google contact group membership.
26
+ class ContactGroupMembership
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # The profile object type.
29
+ # The contact group ID for the contact group membership. The contact group
30
+ # ID can be custom or predefined. Possible values include, but are not
31
+ # limited to, the following:
32
+ # * `myContacts`
33
+ # * `starred`
34
+ # * A numerical ID for user-created groups.
35
+ # Corresponds to the JSON property `contactGroupId`
36
+ # @return [String]
37
+ attr_accessor :contact_group_id
38
+
39
+ def initialize(**args)
40
+ update!(**args)
41
+ end
42
+
43
+ # Update properties of this object
44
+ def update!(**args)
45
+ @contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id)
46
+ end
47
+ end
48
+
49
+ # The `Status` type defines a logical error model that is suitable for different
50
+ # programming environments, including REST APIs and RPC APIs. It is used by
51
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
52
+ # - Simple to use and understand for most users
53
+ # - Flexible enough to meet unexpected needs
54
+ # # Overview
55
+ # The `Status` message contains three pieces of data: error code, error message,
56
+ # and error details. The error code should be an enum value of
57
+ # google.rpc.Code, but it may accept additional error codes if needed. The
58
+ # error message should be a developer-facing English message that helps
59
+ # developers *understand* and *resolve* the error. If a localized user-facing
60
+ # error message is needed, put the localized message in the error details or
61
+ # localize it in the client. The optional error details may contain arbitrary
62
+ # information about the error. There is a predefined set of error detail types
63
+ # in the package `google.rpc` which can be used for common error conditions.
64
+ # # Language mapping
65
+ # The `Status` message is the logical representation of the error model, but it
66
+ # is not necessarily the actual wire format. When the `Status` message is
67
+ # exposed in different client libraries and different wire protocols, it can be
68
+ # mapped differently. For example, it will likely be mapped to some exceptions
69
+ # in Java, but more likely mapped to some error codes in C.
70
+ # # Other uses
71
+ # The error model and the `Status` message can be used in a variety of
72
+ # environments, either with or without APIs, to provide a
73
+ # consistent developer experience across different environments.
74
+ # Example uses of this error model include:
75
+ # - Partial errors. If a service needs to return partial errors to the client,
76
+ # it may embed the `Status` in the normal response to indicate the partial
77
+ # errors.
78
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
79
+ # have a `Status` message for error reporting purpose.
80
+ # - Batch operations. If a client uses batch request and batch response, the
81
+ # `Status` message should be used directly inside batch response, one for
82
+ # each error sub-response.
83
+ # - Asynchronous operations. If an API call embeds asynchronous operation
84
+ # results in its response, the status of those operations should be
85
+ # represented directly using the `Status` message.
86
+ # - Logging. If some API errors are stored in logs, the message `Status` could
87
+ # be used directly after any stripping needed for security/privacy reasons.
88
+ class Status
89
+ include Google::Apis::Core::Hashable
90
+
91
+ # A list of messages that carry the error details. There will be a
92
+ # common set of message types for APIs to use.
93
+ # Corresponds to the JSON property `details`
94
+ # @return [Array<Hash<String,Object>>]
95
+ attr_accessor :details
96
+
97
+ # The status code, which should be an enum value of google.rpc.Code.
98
+ # Corresponds to the JSON property `code`
99
+ # @return [Fixnum]
100
+ attr_accessor :code
101
+
102
+ # A developer-facing error message, which should be in English. Any
103
+ # user-facing error message should be localized and sent in the
104
+ # google.rpc.Status.details field, or localized by the client.
105
+ # Corresponds to the JSON property `message`
106
+ # @return [String]
107
+ attr_accessor :message
108
+
109
+ def initialize(**args)
110
+ update!(**args)
111
+ end
112
+
113
+ # Update properties of this object
114
+ def update!(**args)
115
+ @details = args[:details] if args.key?(:details)
116
+ @code = args[:code] if args.key?(:code)
117
+ @message = args[:message] if args.key?(:message)
118
+ end
119
+ end
120
+
121
+ # The read-only metadata about a person.
122
+ class PersonMetadata
123
+ include Google::Apis::Core::Hashable
124
+
125
+ # DEPRECATED(Please read person.metadata.sources.profile_metadata instead).
126
+ # The type of the person object.
30
127
  # Corresponds to the JSON property `objectType`
31
128
  # @return [String]
32
129
  attr_accessor :object_type
33
130
 
131
+ # Resource names of people linked to this resource.
132
+ # Corresponds to the JSON property `linkedPeopleResourceNames`
133
+ # @return [Array<String>]
134
+ attr_accessor :linked_people_resource_names
135
+
136
+ # The sources of data for the person.
137
+ # Corresponds to the JSON property `sources`
138
+ # @return [Array<Google::Apis::PeopleV1::Source>]
139
+ attr_accessor :sources
140
+
141
+ # Any former resource names this person has had. Populated only for
142
+ # [`connections.list`](/people/api/rest/v1/people.connections/list) requests
143
+ # that include a sync token.
144
+ # The resource name may change when adding or removing fields that link a
145
+ # contact and profile such as a verified email, verified phone number, or
146
+ # profile URL.
147
+ # Corresponds to the JSON property `previousResourceNames`
148
+ # @return [Array<String>]
149
+ attr_accessor :previous_resource_names
150
+
151
+ # True if the person resource has been deleted. Populated only for
152
+ # [`connections.list`](/people/api/rest/v1/people.connections/list) requests
153
+ # that include a sync token.
154
+ # Corresponds to the JSON property `deleted`
155
+ # @return [Boolean]
156
+ attr_accessor :deleted
157
+ alias_method :deleted?, :deleted
158
+
34
159
  def initialize(**args)
35
160
  update!(**args)
36
161
  end
@@ -38,43 +163,47 @@ module Google
38
163
  # Update properties of this object
39
164
  def update!(**args)
40
165
  @object_type = args[:object_type] if args.key?(:object_type)
166
+ @linked_people_resource_names = args[:linked_people_resource_names] if args.key?(:linked_people_resource_names)
167
+ @sources = args[:sources] if args.key?(:sources)
168
+ @previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names)
169
+ @deleted = args[:deleted] if args.key?(:deleted)
41
170
  end
42
171
  end
43
172
 
44
- # A person's associated URLs.
45
- class Url
173
+ # An event related to the person.
174
+ class Event
46
175
  include Google::Apis::Core::Hashable
47
176
 
177
+ # The read-only type of the event translated and formatted in the
178
+ # viewer's account locale or the `Accept-Language` HTTP header locale.
179
+ # Corresponds to the JSON property `formattedType`
180
+ # @return [String]
181
+ attr_accessor :formatted_type
182
+
48
183
  # Metadata about a field.
49
184
  # Corresponds to the JSON property `metadata`
50
185
  # @return [Google::Apis::PeopleV1::FieldMetadata]
51
186
  attr_accessor :metadata
52
187
 
53
- # The type of the URL. The type can be custom or predefined.
188
+ # The type of the event. The type can be custom or predefined.
54
189
  # Possible values include, but are not limited to, the following:
55
- # * `home`
56
- # * `work`
57
- # * `blog`
58
- # * `profile`
59
- # * `homePage`
60
- # * `ftp`
61
- # * `reservations`
62
- # * `appInstallPage`: website for a Google+ application.
190
+ # * `anniversary`
63
191
  # * `other`
64
192
  # Corresponds to the JSON property `type`
65
193
  # @return [String]
66
194
  attr_accessor :type
67
195
 
68
- # The URL.
69
- # Corresponds to the JSON property `value`
70
- # @return [String]
71
- attr_accessor :value
72
-
73
- # The read-only type of the URL translated and formatted in the viewer's
74
- # account locale or the `Accept-Language` HTTP header locale.
75
- # Corresponds to the JSON property `formattedType`
76
- # @return [String]
77
- attr_accessor :formatted_type
196
+ # Represents a whole calendar date, for example a date of birth. The time
197
+ # of day and time zone are either specified elsewhere or are not
198
+ # significant. The date is relative to the
199
+ # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
200
+ # Proleptic_Gregorian_calendar).
201
+ # The day may be 0 to represent a year and month where the day is not
202
+ # significant. The year may be 0 to represent a month and day independent
203
+ # of year; for example, anniversary date.
204
+ # Corresponds to the JSON property `date`
205
+ # @return [Google::Apis::PeopleV1::Date]
206
+ attr_accessor :date
78
207
 
79
208
  def initialize(**args)
80
209
  update!(**args)
@@ -82,27 +211,35 @@ module Google
82
211
 
83
212
  # Update properties of this object
84
213
  def update!(**args)
214
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
85
215
  @metadata = args[:metadata] if args.key?(:metadata)
86
216
  @type = args[:type] if args.key?(:type)
87
- @value = args[:value] if args.key?(:value)
88
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
217
+ @date = args[:date] if args.key?(:date)
89
218
  end
90
219
  end
91
220
 
92
- # A person's gender.
93
- class Gender
221
+ # The read-only metadata about a profile.
222
+ class ProfileMetadata
94
223
  include Google::Apis::Core::Hashable
95
224
 
96
- # The gender for the person. The gender can be custom or predefined.
97
- # Possible values include, but are not limited to, the
98
- # following:
99
- # * `male`
100
- # * `female`
101
- # * `other`
102
- # * `unknown`
103
- # Corresponds to the JSON property `value`
225
+ # The profile object type.
226
+ # Corresponds to the JSON property `objectType`
104
227
  # @return [String]
105
- attr_accessor :value
228
+ attr_accessor :object_type
229
+
230
+ def initialize(**args)
231
+ update!(**args)
232
+ end
233
+
234
+ # Update properties of this object
235
+ def update!(**args)
236
+ @object_type = args[:object_type] if args.key?(:object_type)
237
+ end
238
+ end
239
+
240
+ # A person's gender.
241
+ class Gender
242
+ include Google::Apis::Core::Hashable
106
243
 
107
244
  # The read-only value of the gender translated and formatted in the viewer's
108
245
  # account locale or the `Accept-Language` HTTP header locale.
@@ -115,21 +252,31 @@ module Google
115
252
  # @return [Google::Apis::PeopleV1::FieldMetadata]
116
253
  attr_accessor :metadata
117
254
 
255
+ # The gender for the person. The gender can be custom or predefined.
256
+ # Possible values include, but are not limited to, the
257
+ # following:
258
+ # * `male`
259
+ # * `female`
260
+ # * `other`
261
+ # * `unknown`
262
+ # Corresponds to the JSON property `value`
263
+ # @return [String]
264
+ attr_accessor :value
265
+
118
266
  def initialize(**args)
119
267
  update!(**args)
120
268
  end
121
269
 
122
270
  # Update properties of this object
123
271
  def update!(**args)
124
- @value = args[:value] if args.key?(:value)
125
272
  @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
126
273
  @metadata = args[:metadata] if args.key?(:metadata)
274
+ @value = args[:value] if args.key?(:value)
127
275
  end
128
276
  end
129
277
 
130
- # A person's read-only cover photo. A large image shown on the person's
131
- # profile page that represents who they are or what they care about.
132
- class CoverPhoto
278
+ # A person's associated URLs.
279
+ class Url
133
280
  include Google::Apis::Core::Hashable
134
281
 
135
282
  # Metadata about a field.
@@ -137,17 +284,31 @@ module Google
137
284
  # @return [Google::Apis::PeopleV1::FieldMetadata]
138
285
  attr_accessor :metadata
139
286
 
140
- # True if the cover photo is the default cover photo;
141
- # false if the cover photo is a user-provided cover photo.
142
- # Corresponds to the JSON property `default`
143
- # @return [Boolean]
144
- attr_accessor :default
145
- alias_method :default?, :default
287
+ # The type of the URL. The type can be custom or predefined.
288
+ # Possible values include, but are not limited to, the following:
289
+ # * `home`
290
+ # * `work`
291
+ # * `blog`
292
+ # * `profile`
293
+ # * `homePage`
294
+ # * `ftp`
295
+ # * `reservations`
296
+ # * `appInstallPage`: website for a Google+ application.
297
+ # * `other`
298
+ # Corresponds to the JSON property `type`
299
+ # @return [String]
300
+ attr_accessor :type
146
301
 
147
- # The URL of the cover photo.
148
- # Corresponds to the JSON property `url`
302
+ # The URL.
303
+ # Corresponds to the JSON property `value`
149
304
  # @return [String]
150
- attr_accessor :url
305
+ attr_accessor :value
306
+
307
+ # The read-only type of the URL translated and formatted in the viewer's
308
+ # account locale or the `Accept-Language` HTTP header locale.
309
+ # Corresponds to the JSON property `formattedType`
310
+ # @return [String]
311
+ attr_accessor :formatted_type
151
312
 
152
313
  def initialize(**args)
153
314
  update!(**args)
@@ -156,13 +317,15 @@ module Google
156
317
  # Update properties of this object
157
318
  def update!(**args)
158
319
  @metadata = args[:metadata] if args.key?(:metadata)
159
- @default = args[:default] if args.key?(:default)
160
- @url = args[:url] if args.key?(:url)
320
+ @type = args[:type] if args.key?(:type)
321
+ @value = args[:value] if args.key?(:value)
322
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
161
323
  end
162
324
  end
163
325
 
164
- # One of the person's interests.
165
- class Interest
326
+ # A person's read-only cover photo. A large image shown on the person's
327
+ # profile page that represents who they are or what they care about.
328
+ class CoverPhoto
166
329
  include Google::Apis::Core::Hashable
167
330
 
168
331
  # Metadata about a field.
@@ -170,10 +333,17 @@ module Google
170
333
  # @return [Google::Apis::PeopleV1::FieldMetadata]
171
334
  attr_accessor :metadata
172
335
 
173
- # The interest; for example, `stargazing`.
174
- # Corresponds to the JSON property `value`
336
+ # True if the cover photo is the default cover photo;
337
+ # false if the cover photo is a user-provided cover photo.
338
+ # Corresponds to the JSON property `default`
339
+ # @return [Boolean]
340
+ attr_accessor :default
341
+ alias_method :default?, :default
342
+
343
+ # The URL of the cover photo.
344
+ # Corresponds to the JSON property `url`
175
345
  # @return [String]
176
- attr_accessor :value
346
+ attr_accessor :url
177
347
 
178
348
  def initialize(**args)
179
349
  update!(**args)
@@ -182,7 +352,8 @@ module Google
182
352
  # Update properties of this object
183
353
  def update!(**args)
184
354
  @metadata = args[:metadata] if args.key?(:metadata)
185
- @value = args[:value] if args.key?(:value)
355
+ @default = args[:default] if args.key?(:default)
356
+ @url = args[:url] if args.key?(:url)
186
357
  end
187
358
  end
188
359
 
@@ -190,18 +361,6 @@ module Google
190
361
  class ImClient
191
362
  include Google::Apis::Core::Hashable
192
363
 
193
- # The read-only protocol of the IM client formatted in the viewer's account
194
- # locale or the `Accept-Language` HTTP header locale.
195
- # Corresponds to the JSON property `formattedProtocol`
196
- # @return [String]
197
- attr_accessor :formatted_protocol
198
-
199
- # The read-only type of the IM client translated and formatted in the
200
- # viewer's account locale or the `Accept-Language` HTTP header locale.
201
- # Corresponds to the JSON property `formattedType`
202
- # @return [String]
203
- attr_accessor :formatted_type
204
-
205
364
  # The protocol of the IM client. The protocol can be custom or predefined.
206
365
  # Possible values include, but are not limited to, the following:
207
366
  # * `aim`
@@ -236,18 +395,55 @@ module Google
236
395
  # @return [String]
237
396
  attr_accessor :username
238
397
 
398
+ # The read-only protocol of the IM client formatted in the viewer's account
399
+ # locale or the `Accept-Language` HTTP header locale.
400
+ # Corresponds to the JSON property `formattedProtocol`
401
+ # @return [String]
402
+ attr_accessor :formatted_protocol
403
+
404
+ # The read-only type of the IM client translated and formatted in the
405
+ # viewer's account locale or the `Accept-Language` HTTP header locale.
406
+ # Corresponds to the JSON property `formattedType`
407
+ # @return [String]
408
+ attr_accessor :formatted_type
409
+
239
410
  def initialize(**args)
240
411
  update!(**args)
241
412
  end
242
413
 
243
414
  # Update properties of this object
244
415
  def update!(**args)
245
- @formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol)
246
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
247
416
  @protocol = args[:protocol] if args.key?(:protocol)
248
417
  @metadata = args[:metadata] if args.key?(:metadata)
249
418
  @type = args[:type] if args.key?(:type)
250
419
  @username = args[:username] if args.key?(:username)
420
+ @formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol)
421
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
422
+ end
423
+ end
424
+
425
+ # One of the person's interests.
426
+ class Interest
427
+ include Google::Apis::Core::Hashable
428
+
429
+ # Metadata about a field.
430
+ # Corresponds to the JSON property `metadata`
431
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
432
+ attr_accessor :metadata
433
+
434
+ # The interest; for example, `stargazing`.
435
+ # Corresponds to the JSON property `value`
436
+ # @return [String]
437
+ attr_accessor :value
438
+
439
+ def initialize(**args)
440
+ update!(**args)
441
+ end
442
+
443
+ # Update properties of this object
444
+ def update!(**args)
445
+ @metadata = args[:metadata] if args.key?(:metadata)
446
+ @value = args[:value] if args.key?(:value)
251
447
  end
252
448
  end
253
449
 
@@ -334,24 +530,24 @@ module Google
334
530
  class Skill
335
531
  include Google::Apis::Core::Hashable
336
532
 
337
- # The skill; for example, `underwater basket weaving`.
338
- # Corresponds to the JSON property `value`
339
- # @return [String]
340
- attr_accessor :value
341
-
342
533
  # Metadata about a field.
343
534
  # Corresponds to the JSON property `metadata`
344
535
  # @return [Google::Apis::PeopleV1::FieldMetadata]
345
536
  attr_accessor :metadata
346
537
 
538
+ # The skill; for example, `underwater basket weaving`.
539
+ # Corresponds to the JSON property `value`
540
+ # @return [String]
541
+ attr_accessor :value
542
+
347
543
  def initialize(**args)
348
544
  update!(**args)
349
545
  end
350
546
 
351
547
  # Update properties of this object
352
548
  def update!(**args)
353
- @value = args[:value] if args.key?(:value)
354
549
  @metadata = args[:metadata] if args.key?(:metadata)
550
+ @value = args[:value] if args.key?(:value)
355
551
  end
356
552
  end
357
553
 
@@ -379,11 +575,6 @@ module Google
379
575
  class Membership
380
576
  include Google::Apis::Core::Hashable
381
577
 
382
- # Metadata about a field.
383
- # Corresponds to the JSON property `metadata`
384
- # @return [Google::Apis::PeopleV1::FieldMetadata]
385
- attr_accessor :metadata
386
-
387
578
  # A Google contact group membership.
388
579
  # Corresponds to the JSON property `contactGroupMembership`
389
580
  # @return [Google::Apis::PeopleV1::ContactGroupMembership]
@@ -394,15 +585,20 @@ module Google
394
585
  # @return [Google::Apis::PeopleV1::DomainMembership]
395
586
  attr_accessor :domain_membership
396
587
 
588
+ # Metadata about a field.
589
+ # Corresponds to the JSON property `metadata`
590
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
591
+ attr_accessor :metadata
592
+
397
593
  def initialize(**args)
398
594
  update!(**args)
399
595
  end
400
596
 
401
597
  # Update properties of this object
402
598
  def update!(**args)
403
- @metadata = args[:metadata] if args.key?(:metadata)
404
599
  @contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership)
405
600
  @domain_membership = args[:domain_membership] if args.key?(:domain_membership)
601
+ @metadata = args[:metadata] if args.key?(:metadata)
406
602
  end
407
603
  end
408
604
 
@@ -427,49 +623,24 @@ module Google
427
623
  # * `inARelationship`
428
624
  # * `engaged`
429
625
  # * `married`
430
- # * `itsComplicated`
431
- # * `openRelationship`
432
- # * `widowed`
433
- # * `inDomesticPartnership`
434
- # * `inCivilUnion`
435
- # Corresponds to the JSON property `value`
436
- # @return [String]
437
- attr_accessor :value
438
-
439
- def initialize(**args)
440
- update!(**args)
441
- end
442
-
443
- # Update properties of this object
444
- def update!(**args)
445
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
446
- @metadata = args[:metadata] if args.key?(:metadata)
447
- @value = args[:value] if args.key?(:value)
448
- end
449
- end
450
-
451
- # A read-only brief one-line description of the person.
452
- class Tagline
453
- include Google::Apis::Core::Hashable
454
-
455
- # The tagline.
626
+ # * `itsComplicated`
627
+ # * `openRelationship`
628
+ # * `widowed`
629
+ # * `inDomesticPartnership`
630
+ # * `inCivilUnion`
456
631
  # Corresponds to the JSON property `value`
457
632
  # @return [String]
458
633
  attr_accessor :value
459
634
 
460
- # Metadata about a field.
461
- # Corresponds to the JSON property `metadata`
462
- # @return [Google::Apis::PeopleV1::FieldMetadata]
463
- attr_accessor :metadata
464
-
465
635
  def initialize(**args)
466
636
  update!(**args)
467
637
  end
468
638
 
469
639
  # Update properties of this object
470
640
  def update!(**args)
471
- @value = args[:value] if args.key?(:value)
641
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
472
642
  @metadata = args[:metadata] if args.key?(:metadata)
643
+ @value = args[:value] if args.key?(:value)
473
644
  end
474
645
  end
475
646
 
@@ -513,20 +684,34 @@ module Google
513
684
  end
514
685
  end
515
686
 
516
- # A person's name. If the name is a mononym, the family name is empty.
517
- class Name
687
+ # A read-only brief one-line description of the person.
688
+ class Tagline
518
689
  include Google::Apis::Core::Hashable
519
690
 
520
- # The read-only display name formatted according to the locale specified by
521
- # the viewer's account or the <code>Accept-Language</code> HTTP header.
522
- # Corresponds to the JSON property `displayName`
523
- # @return [String]
524
- attr_accessor :display_name
691
+ # Metadata about a field.
692
+ # Corresponds to the JSON property `metadata`
693
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
694
+ attr_accessor :metadata
525
695
 
526
- # The honorific suffixes, such as `Jr.`
527
- # Corresponds to the JSON property `honorificSuffix`
696
+ # The tagline.
697
+ # Corresponds to the JSON property `value`
528
698
  # @return [String]
529
- attr_accessor :honorific_suffix
699
+ attr_accessor :value
700
+
701
+ def initialize(**args)
702
+ update!(**args)
703
+ end
704
+
705
+ # Update properties of this object
706
+ def update!(**args)
707
+ @metadata = args[:metadata] if args.key?(:metadata)
708
+ @value = args[:value] if args.key?(:value)
709
+ end
710
+ end
711
+
712
+ # A person's name. If the name is a mononym, the family name is empty.
713
+ class Name
714
+ include Google::Apis::Core::Hashable
530
715
 
531
716
  # The honorific prefixes, such as `Mrs.` or `Dr.`
532
717
  # Corresponds to the JSON property `honorificPrefix`
@@ -568,16 +753,16 @@ module Google
568
753
  # @return [String]
569
754
  attr_accessor :family_name
570
755
 
571
- # Metadata about a field.
572
- # Corresponds to the JSON property `metadata`
573
- # @return [Google::Apis::PeopleV1::FieldMetadata]
574
- attr_accessor :metadata
575
-
576
756
  # The middle name(s) spelled as they sound.
577
757
  # Corresponds to the JSON property `phoneticMiddleName`
578
758
  # @return [String]
579
759
  attr_accessor :phonetic_middle_name
580
760
 
761
+ # Metadata about a field.
762
+ # Corresponds to the JSON property `metadata`
763
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
764
+ attr_accessor :metadata
765
+
581
766
  # The full name spelled as it sounds.
582
767
  # Corresponds to the JSON property `phoneticFullName`
583
768
  # @return [String]
@@ -590,14 +775,23 @@ module Google
590
775
  # @return [String]
591
776
  attr_accessor :display_name_last_first
592
777
 
778
+ # The read-only display name formatted according to the locale specified by
779
+ # the viewer's account or the <code>Accept-Language</code> HTTP header.
780
+ # Corresponds to the JSON property `displayName`
781
+ # @return [String]
782
+ attr_accessor :display_name
783
+
784
+ # The honorific suffixes, such as `Jr.`
785
+ # Corresponds to the JSON property `honorificSuffix`
786
+ # @return [String]
787
+ attr_accessor :honorific_suffix
788
+
593
789
  def initialize(**args)
594
790
  update!(**args)
595
791
  end
596
792
 
597
793
  # Update properties of this object
598
794
  def update!(**args)
599
- @display_name = args[:display_name] if args.key?(:display_name)
600
- @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix)
601
795
  @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix)
602
796
  @phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
603
797
  @given_name = args[:given_name] if args.key?(:given_name)
@@ -606,10 +800,12 @@ module Google
606
800
  @phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name)
607
801
  @phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name)
608
802
  @family_name = args[:family_name] if args.key?(:family_name)
609
- @metadata = args[:metadata] if args.key?(:metadata)
610
803
  @phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name)
804
+ @metadata = args[:metadata] if args.key?(:metadata)
611
805
  @phonetic_full_name = args[:phonetic_full_name] if args.key?(:phonetic_full_name)
612
806
  @display_name_last_first = args[:display_name_last_first] if args.key?(:display_name_last_first)
807
+ @display_name = args[:display_name] if args.key?(:display_name)
808
+ @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix)
613
809
  end
614
810
  end
615
811
 
@@ -617,24 +813,24 @@ module Google
617
813
  class BraggingRights
618
814
  include Google::Apis::Core::Hashable
619
815
 
620
- # Metadata about a field.
621
- # Corresponds to the JSON property `metadata`
622
- # @return [Google::Apis::PeopleV1::FieldMetadata]
623
- attr_accessor :metadata
624
-
625
816
  # The bragging rights; for example, `climbed mount everest`.
626
817
  # Corresponds to the JSON property `value`
627
818
  # @return [String]
628
819
  attr_accessor :value
629
820
 
821
+ # Metadata about a field.
822
+ # Corresponds to the JSON property `metadata`
823
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
824
+ attr_accessor :metadata
825
+
630
826
  def initialize(**args)
631
827
  update!(**args)
632
828
  end
633
829
 
634
830
  # Update properties of this object
635
831
  def update!(**args)
636
- @metadata = args[:metadata] if args.key?(:metadata)
637
832
  @value = args[:value] if args.key?(:value)
833
+ @metadata = args[:metadata] if args.key?(:metadata)
638
834
  end
639
835
  end
640
836
 
@@ -642,25 +838,25 @@ module Google
642
838
  class Locale
643
839
  include Google::Apis::Core::Hashable
644
840
 
645
- # Metadata about a field.
646
- # Corresponds to the JSON property `metadata`
647
- # @return [Google::Apis::PeopleV1::FieldMetadata]
648
- attr_accessor :metadata
649
-
650
841
  # The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47)
651
842
  # language tag representing the locale.
652
843
  # Corresponds to the JSON property `value`
653
844
  # @return [String]
654
845
  attr_accessor :value
655
846
 
847
+ # Metadata about a field.
848
+ # Corresponds to the JSON property `metadata`
849
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
850
+ attr_accessor :metadata
851
+
656
852
  def initialize(**args)
657
853
  update!(**args)
658
854
  end
659
855
 
660
856
  # Update properties of this object
661
857
  def update!(**args)
662
- @metadata = args[:metadata] if args.key?(:metadata)
663
858
  @value = args[:value] if args.key?(:value)
859
+ @metadata = args[:metadata] if args.key?(:metadata)
664
860
  end
665
861
  end
666
862
 
@@ -669,11 +865,6 @@ module Google
669
865
  class Organization
670
866
  include Google::Apis::Core::Hashable
671
867
 
672
- # The domain name associated with the organization; for example, `google.com`.
673
- # Corresponds to the JSON property `domain`
674
- # @return [String]
675
- attr_accessor :domain
676
-
677
868
  # The person's department at the organization.
678
869
  # Corresponds to the JSON property `department`
679
870
  # @return [String]
@@ -725,16 +916,16 @@ module Google
725
916
  # @return [Google::Apis::PeopleV1::FieldMetadata]
726
917
  attr_accessor :metadata
727
918
 
728
- # The location of the organization office the person works at.
729
- # Corresponds to the JSON property `location`
730
- # @return [String]
731
- attr_accessor :location
732
-
733
919
  # The person's job title at the organization.
734
920
  # Corresponds to the JSON property `title`
735
921
  # @return [String]
736
922
  attr_accessor :title
737
923
 
924
+ # The location of the organization office the person works at.
925
+ # Corresponds to the JSON property `location`
926
+ # @return [String]
927
+ attr_accessor :location
928
+
738
929
  # True if the organization is the person's current organization;
739
930
  # false if the organization is a past organization.
740
931
  # Corresponds to the JSON property `current`
@@ -760,13 +951,17 @@ module Google
760
951
  # @return [String]
761
952
  attr_accessor :formatted_type
762
953
 
954
+ # The domain name associated with the organization; for example, `google.com`.
955
+ # Corresponds to the JSON property `domain`
956
+ # @return [String]
957
+ attr_accessor :domain
958
+
763
959
  def initialize(**args)
764
960
  update!(**args)
765
961
  end
766
962
 
767
963
  # Update properties of this object
768
964
  def update!(**args)
769
- @domain = args[:domain] if args.key?(:domain)
770
965
  @department = args[:department] if args.key?(:department)
771
966
  @phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name)
772
967
  @type = args[:type] if args.key?(:type)
@@ -775,11 +970,12 @@ module Google
775
970
  @symbol = args[:symbol] if args.key?(:symbol)
776
971
  @name = args[:name] if args.key?(:name)
777
972
  @metadata = args[:metadata] if args.key?(:metadata)
778
- @location = args[:location] if args.key?(:location)
779
973
  @title = args[:title] if args.key?(:title)
974
+ @location = args[:location] if args.key?(:location)
780
975
  @current = args[:current] if args.key?(:current)
781
976
  @start_date = args[:start_date] if args.key?(:start_date)
782
977
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
978
+ @domain = args[:domain] if args.key?(:domain)
783
979
  end
784
980
  end
785
981
 
@@ -787,6 +983,11 @@ module Google
787
983
  class Biography
788
984
  include Google::Apis::Core::Hashable
789
985
 
986
+ # The short biography.
987
+ # Corresponds to the JSON property `value`
988
+ # @return [String]
989
+ attr_accessor :value
990
+
790
991
  # The content type of the biography.
791
992
  # Corresponds to the JSON property `contentType`
792
993
  # @return [String]
@@ -797,20 +998,15 @@ module Google
797
998
  # @return [Google::Apis::PeopleV1::FieldMetadata]
798
999
  attr_accessor :metadata
799
1000
 
800
- # The short biography.
801
- # Corresponds to the JSON property `value`
802
- # @return [String]
803
- attr_accessor :value
804
-
805
1001
  def initialize(**args)
806
1002
  update!(**args)
807
1003
  end
808
1004
 
809
1005
  # Update properties of this object
810
1006
  def update!(**args)
1007
+ @value = args[:value] if args.key?(:value)
811
1008
  @content_type = args[:content_type] if args.key?(:content_type)
812
1009
  @metadata = args[:metadata] if args.key?(:metadata)
813
- @value = args[:value] if args.key?(:value)
814
1010
  end
815
1011
  end
816
1012
 
@@ -843,6 +1039,11 @@ module Google
843
1039
  class FieldMetadata
844
1040
  include Google::Apis::Core::Hashable
845
1041
 
1042
+ # The source of a field.
1043
+ # Corresponds to the JSON property `source`
1044
+ # @return [Google::Apis::PeopleV1::Source]
1045
+ attr_accessor :source
1046
+
846
1047
  # True if the field is verified; false if the field is unverified. A
847
1048
  # verified field is typically a name, email address, phone number, or
848
1049
  # website that has been confirmed to be owned by the person.
@@ -858,20 +1059,54 @@ module Google
858
1059
  attr_accessor :primary
859
1060
  alias_method :primary?, :primary
860
1061
 
861
- # The source of a field.
862
- # Corresponds to the JSON property `source`
863
- # @return [Google::Apis::PeopleV1::Source]
864
- attr_accessor :source
865
-
866
1062
  def initialize(**args)
867
1063
  update!(**args)
868
1064
  end
869
1065
 
870
1066
  # Update properties of this object
871
1067
  def update!(**args)
1068
+ @source = args[:source] if args.key?(:source)
872
1069
  @verified = args[:verified] if args.key?(:verified)
873
1070
  @primary = args[:primary] if args.key?(:primary)
874
- @source = args[:source] if args.key?(:source)
1071
+ end
1072
+ end
1073
+
1074
+ # A person's read-only relationship interest .
1075
+ class RelationshipInterest
1076
+ include Google::Apis::Core::Hashable
1077
+
1078
+ # The kind of relationship the person is looking for. The value can be custom
1079
+ # or predefined. Possible values include, but are not limited to, the
1080
+ # following values:
1081
+ # * `friend`
1082
+ # * `date`
1083
+ # * `relationship`
1084
+ # * `networking`
1085
+ # Corresponds to the JSON property `value`
1086
+ # @return [String]
1087
+ attr_accessor :value
1088
+
1089
+ # The value of the relationship interest translated and formatted in the
1090
+ # viewer's account locale or the locale specified in the Accept-Language
1091
+ # HTTP header.
1092
+ # Corresponds to the JSON property `formattedValue`
1093
+ # @return [String]
1094
+ attr_accessor :formatted_value
1095
+
1096
+ # Metadata about a field.
1097
+ # Corresponds to the JSON property `metadata`
1098
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
1099
+ attr_accessor :metadata
1100
+
1101
+ def initialize(**args)
1102
+ update!(**args)
1103
+ end
1104
+
1105
+ # Update properties of this object
1106
+ def update!(**args)
1107
+ @value = args[:value] if args.key?(:value)
1108
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
1109
+ @metadata = args[:metadata] if args.key?(:metadata)
875
1110
  end
876
1111
  end
877
1112
 
@@ -918,79 +1153,84 @@ module Google
918
1153
  class PersonResponse
919
1154
  include Google::Apis::Core::Hashable
920
1155
 
1156
+ # The original requested resource name. May be different than the resource
1157
+ # name on the returned person.
1158
+ # The resource name can change when adding or removing fields that link a
1159
+ # contact and profile such as a verified email, verified phone number, or a
1160
+ # profile URL.
1161
+ # Corresponds to the JSON property `requestedResourceName`
1162
+ # @return [String]
1163
+ attr_accessor :requested_resource_name
1164
+
921
1165
  # Information about a person merged from various data sources such as the
922
- # authenticated user's contacts and profile data. Fields other than IDs,
923
- # metadata, and group memberships are user-edited.
1166
+ # authenticated user's contacts and profile data.
924
1167
  # Most fields can have multiple items. The items in a field have no guaranteed
925
1168
  # order, but each non-empty field is guaranteed to have exactly one field with
926
1169
  # `metadata.primary` set to true.
927
- # NEXT_ID: 31
928
1170
  # Corresponds to the JSON property `person`
929
1171
  # @return [Google::Apis::PeopleV1::Person]
930
1172
  attr_accessor :person
931
1173
 
932
- # [HTTP 1.1 status code](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
1174
+ # The `Status` type defines a logical error model that is suitable for different
1175
+ # programming environments, including REST APIs and RPC APIs. It is used by
1176
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
1177
+ # - Simple to use and understand for most users
1178
+ # - Flexible enough to meet unexpected needs
1179
+ # # Overview
1180
+ # The `Status` message contains three pieces of data: error code, error message,
1181
+ # and error details. The error code should be an enum value of
1182
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1183
+ # error message should be a developer-facing English message that helps
1184
+ # developers *understand* and *resolve* the error. If a localized user-facing
1185
+ # error message is needed, put the localized message in the error details or
1186
+ # localize it in the client. The optional error details may contain arbitrary
1187
+ # information about the error. There is a predefined set of error detail types
1188
+ # in the package `google.rpc` which can be used for common error conditions.
1189
+ # # Language mapping
1190
+ # The `Status` message is the logical representation of the error model, but it
1191
+ # is not necessarily the actual wire format. When the `Status` message is
1192
+ # exposed in different client libraries and different wire protocols, it can be
1193
+ # mapped differently. For example, it will likely be mapped to some exceptions
1194
+ # in Java, but more likely mapped to some error codes in C.
1195
+ # # Other uses
1196
+ # The error model and the `Status` message can be used in a variety of
1197
+ # environments, either with or without APIs, to provide a
1198
+ # consistent developer experience across different environments.
1199
+ # Example uses of this error model include:
1200
+ # - Partial errors. If a service needs to return partial errors to the client,
1201
+ # it may embed the `Status` in the normal response to indicate the partial
1202
+ # errors.
1203
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1204
+ # have a `Status` message for error reporting purpose.
1205
+ # - Batch operations. If a client uses batch request and batch response, the
1206
+ # `Status` message should be used directly inside batch response, one for
1207
+ # each error sub-response.
1208
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1209
+ # results in its response, the status of those operations should be
1210
+ # represented directly using the `Status` message.
1211
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1212
+ # be used directly after any stripping needed for security/privacy reasons.
1213
+ # Corresponds to the JSON property `status`
1214
+ # @return [Google::Apis::PeopleV1::Status]
1215
+ attr_accessor :status
1216
+
1217
+ # DEPRECATED(Please use status instead).
1218
+ # [HTTP 1.1 status
1219
+ # code](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
933
1220
  # Corresponds to the JSON property `httpStatusCode`
934
1221
  # @return [Fixnum]
935
1222
  attr_accessor :http_status_code
936
1223
 
937
- # The original requested resource name. May be different than the resource
938
- # name on the returned person.
939
- # The resource name can change when adding or removing fields that link a
940
- # contact and profile such as a verified email, verified phone number, or a
941
- # profile URL.
942
- # Corresponds to the JSON property `requestedResourceName`
943
- # @return [String]
944
- attr_accessor :requested_resource_name
945
-
946
1224
  def initialize(**args)
947
1225
  update!(**args)
948
1226
  end
949
1227
 
950
1228
  # Update properties of this object
951
1229
  def update!(**args)
1230
+ @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
952
1231
  @person = args[:person] if args.key?(:person)
1232
+ @status = args[:status] if args.key?(:status)
953
1233
  @http_status_code = args[:http_status_code] if args.key?(:http_status_code)
954
- @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
955
- end
956
- end
957
-
958
- # A person's read-only relationship interest .
959
- class RelationshipInterest
960
- include Google::Apis::Core::Hashable
961
-
962
- # Metadata about a field.
963
- # Corresponds to the JSON property `metadata`
964
- # @return [Google::Apis::PeopleV1::FieldMetadata]
965
- attr_accessor :metadata
966
-
967
- # The kind of relationship the person is looking for. The value can be custom
968
- # or predefined. Possible values include, but are not limited to, the
969
- # following values:
970
- # * `friend`
971
- # * `date`
972
- # * `relationship`
973
- # * `networking`
974
- # Corresponds to the JSON property `value`
975
- # @return [String]
976
- attr_accessor :value
977
-
978
- # The value of the relationship interest translated and formatted in the
979
- # viewer's account locale or the locale specified in the Accept-Language
980
- # HTTP header.
981
- # Corresponds to the JSON property `formattedValue`
982
- # @return [String]
983
- attr_accessor :formatted_value
984
-
985
- def initialize(**args)
986
- update!(**args)
987
- end
988
-
989
- # Update properties of this object
990
- def update!(**args)
991
- @metadata = args[:metadata] if args.key?(:metadata)
992
- @value = args[:value] if args.key?(:value)
993
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
994
1234
  end
995
1235
  end
996
1236
 
@@ -1074,15 +1314,18 @@ module Google
1074
1314
  end
1075
1315
 
1076
1316
  # Information about a person merged from various data sources such as the
1077
- # authenticated user's contacts and profile data. Fields other than IDs,
1078
- # metadata, and group memberships are user-edited.
1317
+ # authenticated user's contacts and profile data.
1079
1318
  # Most fields can have multiple items. The items in a field have no guaranteed
1080
1319
  # order, but each non-empty field is guaranteed to have exactly one field with
1081
1320
  # `metadata.primary` set to true.
1082
- # NEXT_ID: 31
1083
1321
  class Person
1084
1322
  include Google::Apis::Core::Hashable
1085
1323
 
1324
+ # The person's cover photos.
1325
+ # Corresponds to the JSON property `coverPhotos`
1326
+ # @return [Array<Google::Apis::PeopleV1::CoverPhoto>]
1327
+ attr_accessor :cover_photos
1328
+
1086
1329
  # The person's instant messaging clients.
1087
1330
  # Corresponds to the JSON property `imClients`
1088
1331
  # @return [Array<Google::Apis::PeopleV1::ImClient>]
@@ -1164,17 +1407,17 @@ module Google
1164
1407
  # @return [Array<Google::Apis::PeopleV1::Gender>]
1165
1408
  attr_accessor :genders
1166
1409
 
1167
- # The person's interests.
1168
- # Corresponds to the JSON property `interests`
1169
- # @return [Array<Google::Apis::PeopleV1::Interest>]
1170
- attr_accessor :interests
1171
-
1172
1410
  # The resource name for the person, assigned by the server. An ASCII string
1173
- # with a max length of 27 characters. Always starts with `people/`.
1411
+ # with a max length of 27 characters, in the form of `people/<person_id>`.
1174
1412
  # Corresponds to the JSON property `resourceName`
1175
1413
  # @return [String]
1176
1414
  attr_accessor :resource_name
1177
1415
 
1416
+ # The person's interests.
1417
+ # Corresponds to the JSON property `interests`
1418
+ # @return [Array<Google::Apis::PeopleV1::Interest>]
1419
+ attr_accessor :interests
1420
+
1178
1421
  # The person's biographies.
1179
1422
  # Corresponds to the JSON property `biographies`
1180
1423
  # @return [Array<Google::Apis::PeopleV1::Biography>]
@@ -1230,17 +1473,13 @@ module Google
1230
1473
  # @return [Array<Google::Apis::PeopleV1::PhoneNumber>]
1231
1474
  attr_accessor :phone_numbers
1232
1475
 
1233
- # The person's cover photos.
1234
- # Corresponds to the JSON property `coverPhotos`
1235
- # @return [Array<Google::Apis::PeopleV1::CoverPhoto>]
1236
- attr_accessor :cover_photos
1237
-
1238
1476
  def initialize(**args)
1239
1477
  update!(**args)
1240
1478
  end
1241
1479
 
1242
1480
  # Update properties of this object
1243
1481
  def update!(**args)
1482
+ @cover_photos = args[:cover_photos] if args.key?(:cover_photos)
1244
1483
  @im_clients = args[:im_clients] if args.key?(:im_clients)
1245
1484
  @birthdays = args[:birthdays] if args.key?(:birthdays)
1246
1485
  @locales = args[:locales] if args.key?(:locales)
@@ -1257,8 +1496,8 @@ module Google
1257
1496
  @metadata = args[:metadata] if args.key?(:metadata)
1258
1497
  @residences = args[:residences] if args.key?(:residences)
1259
1498
  @genders = args[:genders] if args.key?(:genders)
1260
- @interests = args[:interests] if args.key?(:interests)
1261
1499
  @resource_name = args[:resource_name] if args.key?(:resource_name)
1500
+ @interests = args[:interests] if args.key?(:interests)
1262
1501
  @biographies = args[:biographies] if args.key?(:biographies)
1263
1502
  @skills = args[:skills] if args.key?(:skills)
1264
1503
  @relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses)
@@ -1270,7 +1509,6 @@ module Google
1270
1509
  @events = args[:events] if args.key?(:events)
1271
1510
  @memberships = args[:memberships] if args.key?(:memberships)
1272
1511
  @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers)
1273
- @cover_photos = args[:cover_photos] if args.key?(:cover_photos)
1274
1512
  end
1275
1513
  end
1276
1514
 
@@ -1293,35 +1531,22 @@ module Google
1293
1531
  end
1294
1532
  end
1295
1533
 
1296
- # A person's read-only photo. A picture shown next to the person's name to
1297
- # help others recognize the person.
1298
- class Photo
1534
+ # A person's phone number.
1535
+ class PhoneNumber
1299
1536
  include Google::Apis::Core::Hashable
1300
1537
 
1301
- # Metadata about a field.
1302
- # Corresponds to the JSON property `metadata`
1303
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1304
- attr_accessor :metadata
1305
-
1306
- # The URL of the photo.
1307
- # Corresponds to the JSON property `url`
1538
+ # The read-only type of the phone number translated and formatted in the
1539
+ # viewer's account locale or the the `Accept-Language` HTTP header locale.
1540
+ # Corresponds to the JSON property `formattedType`
1308
1541
  # @return [String]
1309
- attr_accessor :url
1310
-
1311
- def initialize(**args)
1312
- update!(**args)
1313
- end
1314
-
1315
- # Update properties of this object
1316
- def update!(**args)
1317
- @metadata = args[:metadata] if args.key?(:metadata)
1318
- @url = args[:url] if args.key?(:url)
1319
- end
1320
- end
1542
+ attr_accessor :formatted_type
1321
1543
 
1322
- # A person's phone number.
1323
- class PhoneNumber
1324
- include Google::Apis::Core::Hashable
1544
+ # The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/
1545
+ # ibr/004/itu-t.E.164.1.2008.pdf)
1546
+ # form of the phone number.
1547
+ # Corresponds to the JSON property `canonicalForm`
1548
+ # @return [String]
1549
+ attr_accessor :canonical_form
1325
1550
 
1326
1551
  # Metadata about a field.
1327
1552
  # Corresponds to the JSON property `metadata`
@@ -1351,18 +1576,34 @@ module Google
1351
1576
  # @return [String]
1352
1577
  attr_accessor :value
1353
1578
 
1354
- # The read-only type of the phone number translated and formatted in the
1355
- # viewer's account locale or the the `Accept-Language` HTTP header locale.
1356
- # Corresponds to the JSON property `formattedType`
1357
- # @return [String]
1358
- attr_accessor :formatted_type
1579
+ def initialize(**args)
1580
+ update!(**args)
1581
+ end
1359
1582
 
1360
- # The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/
1361
- # ibr/004/itu-t.E.164.1.2008.pdf)
1362
- # form of the phone number.
1363
- # Corresponds to the JSON property `canonicalForm`
1583
+ # Update properties of this object
1584
+ def update!(**args)
1585
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1586
+ @canonical_form = args[:canonical_form] if args.key?(:canonical_form)
1587
+ @metadata = args[:metadata] if args.key?(:metadata)
1588
+ @type = args[:type] if args.key?(:type)
1589
+ @value = args[:value] if args.key?(:value)
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
+ # The URL of the photo.
1599
+ # Corresponds to the JSON property `url`
1364
1600
  # @return [String]
1365
- attr_accessor :canonical_form
1601
+ attr_accessor :url
1602
+
1603
+ # Metadata about a field.
1604
+ # Corresponds to the JSON property `metadata`
1605
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
1606
+ attr_accessor :metadata
1366
1607
 
1367
1608
  def initialize(**args)
1368
1609
  update!(**args)
@@ -1370,11 +1611,8 @@ module Google
1370
1611
 
1371
1612
  # Update properties of this object
1372
1613
  def update!(**args)
1614
+ @url = args[:url] if args.key?(:url)
1373
1615
  @metadata = args[:metadata] if args.key?(:metadata)
1374
- @type = args[:type] if args.key?(:type)
1375
- @value = args[:value] if args.key?(:value)
1376
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1377
- @canonical_form = args[:canonical_form] if args.key?(:canonical_form)
1378
1616
  end
1379
1617
  end
1380
1618
 
@@ -1397,7 +1635,13 @@ module Google
1397
1635
  # @return [String]
1398
1636
  attr_accessor :next_sync_token
1399
1637
 
1400
- # The total number of people in the list without pagination.
1638
+ # The total number of items in the list without pagination.
1639
+ # Corresponds to the JSON property `totalItems`
1640
+ # @return [Fixnum]
1641
+ attr_accessor :total_items
1642
+
1643
+ # DEPRECATED(Please use total_items). The total number of people in the list
1644
+ # without pagination.
1401
1645
  # Corresponds to the JSON property `totalPeople`
1402
1646
  # @return [Fixnum]
1403
1647
  attr_accessor :total_people
@@ -1411,6 +1655,7 @@ module Google
1411
1655
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1412
1656
  @connections = args[:connections] if args.key?(:connections)
1413
1657
  @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
1658
+ @total_items = args[:total_items] if args.key?(:total_items)
1414
1659
  @total_people = args[:total_people] if args.key?(:total_people)
1415
1660
  end
1416
1661
  end
@@ -1455,50 +1700,11 @@ module Google
1455
1700
  end
1456
1701
  end
1457
1702
 
1458
- # A person's past or current residence.
1459
- class Residence
1460
- include Google::Apis::Core::Hashable
1461
-
1462
- # Metadata about a field.
1463
- # Corresponds to the JSON property `metadata`
1464
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1465
- attr_accessor :metadata
1466
-
1467
- # True if the residence is the person's current residence;
1468
- # false if the residence is a past residence.
1469
- # Corresponds to the JSON property `current`
1470
- # @return [Boolean]
1471
- attr_accessor :current
1472
- alias_method :current?, :current
1473
-
1474
- # The address of the residence.
1475
- # Corresponds to the JSON property `value`
1476
- # @return [String]
1477
- attr_accessor :value
1478
-
1479
- def initialize(**args)
1480
- update!(**args)
1481
- end
1482
-
1483
- # Update properties of this object
1484
- def update!(**args)
1485
- @metadata = args[:metadata] if args.key?(:metadata)
1486
- @current = args[:current] if args.key?(:current)
1487
- @value = args[:value] if args.key?(:value)
1488
- end
1489
- end
1490
-
1491
1703
  # A person's physical address. May be a P.O. box or street address. All fields
1492
1704
  # are optional.
1493
1705
  class Address
1494
1706
  include Google::Apis::Core::Hashable
1495
1707
 
1496
- # The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country
1497
- # code of the address.
1498
- # Corresponds to the JSON property `countryCode`
1499
- # @return [String]
1500
- attr_accessor :country_code
1501
-
1502
1708
  # The read-only type of the address translated and formatted in the viewer's
1503
1709
  # account locale or the `Accept-Language` HTTP header locale.
1504
1710
  # Corresponds to the JSON property `formattedType`
@@ -1560,13 +1766,18 @@ module Google
1560
1766
  # @return [Google::Apis::PeopleV1::FieldMetadata]
1561
1767
  attr_accessor :metadata
1562
1768
 
1769
+ # The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country
1770
+ # code of the address.
1771
+ # Corresponds to the JSON property `countryCode`
1772
+ # @return [String]
1773
+ attr_accessor :country_code
1774
+
1563
1775
  def initialize(**args)
1564
1776
  update!(**args)
1565
1777
  end
1566
1778
 
1567
1779
  # Update properties of this object
1568
1780
  def update!(**args)
1569
- @country_code = args[:country_code] if args.key?(:country_code)
1570
1781
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1571
1782
  @city = args[:city] if args.key?(:city)
1572
1783
  @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
@@ -1578,87 +1789,12 @@ module Google
1578
1789
  @region = args[:region] if args.key?(:region)
1579
1790
  @street_address = args[:street_address] if args.key?(:street_address)
1580
1791
  @metadata = args[:metadata] if args.key?(:metadata)
1792
+ @country_code = args[:country_code] if args.key?(:country_code)
1581
1793
  end
1582
1794
  end
1583
1795
 
1584
- # A Google contact group membership.
1585
- class ContactGroupMembership
1586
- include Google::Apis::Core::Hashable
1587
-
1588
- # The contact group ID for the contact group membership. The contact group
1589
- # ID can be custom or predefined. Possible values include, but are not
1590
- # limited to, the following:
1591
- # * `myContacts`
1592
- # * `starred`
1593
- # * A numerical ID for user-created groups.
1594
- # Corresponds to the JSON property `contactGroupId`
1595
- # @return [String]
1596
- attr_accessor :contact_group_id
1597
-
1598
- def initialize(**args)
1599
- update!(**args)
1600
- end
1601
-
1602
- # Update properties of this object
1603
- def update!(**args)
1604
- @contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id)
1605
- end
1606
- end
1607
-
1608
- # The read-only metadata about a person.
1609
- class PersonMetadata
1610
- include Google::Apis::Core::Hashable
1611
-
1612
- # True if the person resource has been deleted. Populated only for
1613
- # [`connections.list`](/people/api/rest/v1/people.connections/list) requests
1614
- # that include a sync token.
1615
- # Corresponds to the JSON property `deleted`
1616
- # @return [Boolean]
1617
- attr_accessor :deleted
1618
- alias_method :deleted?, :deleted
1619
-
1620
- # DEPRECATED(Please read person.metadata.sources.profile_metadata instead).
1621
- # The type of the person object.
1622
- # Corresponds to the JSON property `objectType`
1623
- # @return [String]
1624
- attr_accessor :object_type
1625
-
1626
- # Resource names of people linked to this resource.
1627
- # Corresponds to the JSON property `linkedPeopleResourceNames`
1628
- # @return [Array<String>]
1629
- attr_accessor :linked_people_resource_names
1630
-
1631
- # The sources of data for the person.
1632
- # Corresponds to the JSON property `sources`
1633
- # @return [Array<Google::Apis::PeopleV1::Source>]
1634
- attr_accessor :sources
1635
-
1636
- # Any former resource names this person has had. Populated only for
1637
- # [`connections.list`](/people/api/rest/v1/people.connections/list) requests
1638
- # that include a sync token.
1639
- # The resource name may change when adding or removing fields that link a
1640
- # contact and profile such as a verified email, verified phone number, or
1641
- # profile URL.
1642
- # Corresponds to the JSON property `previousResourceNames`
1643
- # @return [Array<String>]
1644
- attr_accessor :previous_resource_names
1645
-
1646
- def initialize(**args)
1647
- update!(**args)
1648
- end
1649
-
1650
- # Update properties of this object
1651
- def update!(**args)
1652
- @deleted = args[:deleted] if args.key?(:deleted)
1653
- @object_type = args[:object_type] if args.key?(:object_type)
1654
- @linked_people_resource_names = args[:linked_people_resource_names] if args.key?(:linked_people_resource_names)
1655
- @sources = args[:sources] if args.key?(:sources)
1656
- @previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names)
1657
- end
1658
- end
1659
-
1660
- # An event related to the person.
1661
- class Event
1796
+ # A person's past or current residence.
1797
+ class Residence
1662
1798
  include Google::Apis::Core::Hashable
1663
1799
 
1664
1800
  # Metadata about a field.
@@ -1666,31 +1802,17 @@ module Google
1666
1802
  # @return [Google::Apis::PeopleV1::FieldMetadata]
1667
1803
  attr_accessor :metadata
1668
1804
 
1669
- # The type of the event. The type can be custom or predefined.
1670
- # Possible values include, but are not limited to, the following:
1671
- # * `anniversary`
1672
- # * `other`
1673
- # Corresponds to the JSON property `type`
1674
- # @return [String]
1675
- attr_accessor :type
1676
-
1677
- # Represents a whole calendar date, for example a date of birth. The time
1678
- # of day and time zone are either specified elsewhere or are not
1679
- # significant. The date is relative to the
1680
- # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
1681
- # Proleptic_Gregorian_calendar).
1682
- # The day may be 0 to represent a year and month where the day is not
1683
- # significant. The year may be 0 to represent a month and day independent
1684
- # of year; for example, anniversary date.
1685
- # Corresponds to the JSON property `date`
1686
- # @return [Google::Apis::PeopleV1::Date]
1687
- attr_accessor :date
1805
+ # True if the residence is the person's current residence;
1806
+ # false if the residence is a past residence.
1807
+ # Corresponds to the JSON property `current`
1808
+ # @return [Boolean]
1809
+ attr_accessor :current
1810
+ alias_method :current?, :current
1688
1811
 
1689
- # The read-only type of the event translated and formatted in the
1690
- # viewer's account locale or the `Accept-Language` HTTP header locale.
1691
- # Corresponds to the JSON property `formattedType`
1812
+ # The address of the residence.
1813
+ # Corresponds to the JSON property `value`
1692
1814
  # @return [String]
1693
- attr_accessor :formatted_type
1815
+ attr_accessor :value
1694
1816
 
1695
1817
  def initialize(**args)
1696
1818
  update!(**args)
@@ -1699,9 +1821,8 @@ module Google
1699
1821
  # Update properties of this object
1700
1822
  def update!(**args)
1701
1823
  @metadata = args[:metadata] if args.key?(:metadata)
1702
- @type = args[:type] if args.key?(:type)
1703
- @date = args[:date] if args.key?(:date)
1704
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1824
+ @current = args[:current] if args.key?(:current)
1825
+ @value = args[:value] if args.key?(:value)
1705
1826
  end
1706
1827
  end
1707
1828
  end