google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -25,7 +25,19 @@ module Google
25
25
  # @see https://developers.google.com/people/
26
26
  module PeopleV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170503'
28
+ REVISION = '20170524'
29
+
30
+ # View your email address
31
+ AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
32
+
33
+ # View your phone numbers
34
+ AUTH_USER_PHONENUMBERS_READ = 'https://www.googleapis.com/auth/user.phonenumbers.read'
35
+
36
+ # View your contacts
37
+ AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
38
+
39
+ # View your complete date of birth
40
+ AUTH_USER_BIRTHDAY_READ = 'https://www.googleapis.com/auth/user.birthday.read'
29
41
 
30
42
  # Know the list of people in your circles, your age range, and language
31
43
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -41,18 +53,6 @@ module Google
41
53
 
42
54
  # View your street addresses
43
55
  AUTH_USER_ADDRESSES_READ = 'https://www.googleapis.com/auth/user.addresses.read'
44
-
45
- # View your phone numbers
46
- AUTH_USER_PHONENUMBERS_READ = 'https://www.googleapis.com/auth/user.phonenumbers.read'
47
-
48
- # View your email address
49
- AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
50
-
51
- # View your complete date of birth
52
- AUTH_USER_BIRTHDAY_READ = 'https://www.googleapis.com/auth/user.birthday.read'
53
-
54
- # View your contacts
55
- AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
56
56
  end
57
57
  end
58
58
  end
@@ -22,202 +22,6 @@ module Google
22
22
  module Apis
23
23
  module PeopleV1
24
24
 
25
- # A Google contact group membership.
26
- class ContactGroupMembership
27
- include Google::Apis::Core::Hashable
28
-
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.
127
- # Corresponds to the JSON property `objectType`
128
- # @return [String]
129
- attr_accessor :object_type
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
-
159
- def initialize(**args)
160
- update!(**args)
161
- end
162
-
163
- # Update properties of this object
164
- def update!(**args)
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)
170
- end
171
- end
172
-
173
- # An event related to the person.
174
- class Event
175
- include Google::Apis::Core::Hashable
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
-
183
- # Metadata about a field.
184
- # Corresponds to the JSON property `metadata`
185
- # @return [Google::Apis::PeopleV1::FieldMetadata]
186
- attr_accessor :metadata
187
-
188
- # The type of the event. The type can be custom or predefined.
189
- # Possible values include, but are not limited to, the following:
190
- # * `anniversary`
191
- # * `other`
192
- # Corresponds to the JSON property `type`
193
- # @return [String]
194
- attr_accessor :type
195
-
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
207
-
208
- def initialize(**args)
209
- update!(**args)
210
- end
211
-
212
- # Update properties of this object
213
- def update!(**args)
214
- @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
215
- @metadata = args[:metadata] if args.key?(:metadata)
216
- @type = args[:type] if args.key?(:type)
217
- @date = args[:date] if args.key?(:date)
218
- end
219
- end
220
-
221
25
  # The read-only metadata about a profile.
222
26
  class ProfileMetadata
223
27
  include Google::Apis::Core::Hashable
@@ -279,10 +83,16 @@ module Google
279
83
  class Url
280
84
  include Google::Apis::Core::Hashable
281
85
 
282
- # Metadata about a field.
283
- # Corresponds to the JSON property `metadata`
284
- # @return [Google::Apis::PeopleV1::FieldMetadata]
285
- attr_accessor :metadata
86
+ # The URL.
87
+ # Corresponds to the JSON property `value`
88
+ # @return [String]
89
+ attr_accessor :value
90
+
91
+ # The read-only type of the URL translated and formatted in the viewer's
92
+ # account locale or the `Accept-Language` HTTP header locale.
93
+ # Corresponds to the JSON property `formattedType`
94
+ # @return [String]
95
+ attr_accessor :formatted_type
286
96
 
287
97
  # The type of the URL. The type can be custom or predefined.
288
98
  # Possible values include, but are not limited to, the following:
@@ -299,16 +109,10 @@ module Google
299
109
  # @return [String]
300
110
  attr_accessor :type
301
111
 
302
- # The URL.
303
- # Corresponds to the JSON property `value`
304
- # @return [String]
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
112
+ # Metadata about a field.
113
+ # Corresponds to the JSON property `metadata`
114
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
115
+ attr_accessor :metadata
312
116
 
313
117
  def initialize(**args)
314
118
  update!(**args)
@@ -316,10 +120,10 @@ module Google
316
120
 
317
121
  # Update properties of this object
318
122
  def update!(**args)
319
- @metadata = args[:metadata] if args.key?(:metadata)
320
- @type = args[:type] if args.key?(:type)
321
123
  @value = args[:value] if args.key?(:value)
322
124
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
125
+ @type = args[:type] if args.key?(:type)
126
+ @metadata = args[:metadata] if args.key?(:metadata)
323
127
  end
324
128
  end
325
129
 
@@ -328,11 +132,6 @@ module Google
328
132
  class CoverPhoto
329
133
  include Google::Apis::Core::Hashable
330
134
 
331
- # Metadata about a field.
332
- # Corresponds to the JSON property `metadata`
333
- # @return [Google::Apis::PeopleV1::FieldMetadata]
334
- attr_accessor :metadata
335
-
336
135
  # True if the cover photo is the default cover photo;
337
136
  # false if the cover photo is a user-provided cover photo.
338
137
  # Corresponds to the JSON property `default`
@@ -340,6 +139,11 @@ module Google
340
139
  attr_accessor :default
341
140
  alias_method :default?, :default
342
141
 
142
+ # Metadata about a field.
143
+ # Corresponds to the JSON property `metadata`
144
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
145
+ attr_accessor :metadata
146
+
343
147
  # The URL of the cover photo.
344
148
  # Corresponds to the JSON property `url`
345
149
  # @return [String]
@@ -351,8 +155,8 @@ module Google
351
155
 
352
156
  # Update properties of this object
353
157
  def update!(**args)
354
- @metadata = args[:metadata] if args.key?(:metadata)
355
158
  @default = args[:default] if args.key?(:default)
159
+ @metadata = args[:metadata] if args.key?(:metadata)
356
160
  @url = args[:url] if args.key?(:url)
357
161
  end
358
162
  end
@@ -361,6 +165,20 @@ module Google
361
165
  class ImClient
362
166
  include Google::Apis::Core::Hashable
363
167
 
168
+ # Metadata about a field.
169
+ # Corresponds to the JSON property `metadata`
170
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
171
+ attr_accessor :metadata
172
+
173
+ # The type of the IM client. The type can be custom or predefined.
174
+ # Possible values include, but are not limited to, the following:
175
+ # * `home`
176
+ # * `work`
177
+ # * `other`
178
+ # Corresponds to the JSON property `type`
179
+ # @return [String]
180
+ attr_accessor :type
181
+
364
182
  # The protocol of the IM client. The protocol can be custom or predefined.
365
183
  # Possible values include, but are not limited to, the following:
366
184
  # * `aim`
@@ -376,20 +194,6 @@ module Google
376
194
  # @return [String]
377
195
  attr_accessor :protocol
378
196
 
379
- # Metadata about a field.
380
- # Corresponds to the JSON property `metadata`
381
- # @return [Google::Apis::PeopleV1::FieldMetadata]
382
- attr_accessor :metadata
383
-
384
- # The type of the IM client. The type can be custom or predefined.
385
- # Possible values include, but are not limited to, the following:
386
- # * `home`
387
- # * `work`
388
- # * `other`
389
- # Corresponds to the JSON property `type`
390
- # @return [String]
391
- attr_accessor :type
392
-
393
197
  # The user name used in the IM client.
394
198
  # Corresponds to the JSON property `username`
395
199
  # @return [String]
@@ -413,9 +217,9 @@ module Google
413
217
 
414
218
  # Update properties of this object
415
219
  def update!(**args)
416
- @protocol = args[:protocol] if args.key?(:protocol)
417
220
  @metadata = args[:metadata] if args.key?(:metadata)
418
221
  @type = args[:type] if args.key?(:type)
222
+ @protocol = args[:protocol] if args.key?(:protocol)
419
223
  @username = args[:username] if args.key?(:username)
420
224
  @formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol)
421
225
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
@@ -467,11 +271,6 @@ module Google
467
271
  # @return [String]
468
272
  attr_accessor :display_name
469
273
 
470
- # Metadata about a field.
471
- # Corresponds to the JSON property `metadata`
472
- # @return [Google::Apis::PeopleV1::FieldMetadata]
473
- attr_accessor :metadata
474
-
475
274
  # The type of the email address. The type can be custom or predefined.
476
275
  # Possible values include, but are not limited to, the following:
477
276
  # * `home`
@@ -481,6 +280,11 @@ module Google
481
280
  # @return [String]
482
281
  attr_accessor :type
483
282
 
283
+ # Metadata about a field.
284
+ # Corresponds to the JSON property `metadata`
285
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
286
+ attr_accessor :metadata
287
+
484
288
  def initialize(**args)
485
289
  update!(**args)
486
290
  end
@@ -490,8 +294,8 @@ module Google
490
294
  @value = args[:value] if args.key?(:value)
491
295
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
492
296
  @display_name = args[:display_name] if args.key?(:display_name)
493
- @metadata = args[:metadata] if args.key?(:metadata)
494
297
  @type = args[:type] if args.key?(:type)
298
+ @metadata = args[:metadata] if args.key?(:metadata)
495
299
  end
496
300
  end
497
301
 
@@ -499,16 +303,16 @@ module Google
499
303
  class Nickname
500
304
  include Google::Apis::Core::Hashable
501
305
 
502
- # Metadata about a field.
503
- # Corresponds to the JSON property `metadata`
504
- # @return [Google::Apis::PeopleV1::FieldMetadata]
505
- attr_accessor :metadata
506
-
507
306
  # The type of the nickname.
508
307
  # Corresponds to the JSON property `type`
509
308
  # @return [String]
510
309
  attr_accessor :type
511
310
 
311
+ # Metadata about a field.
312
+ # Corresponds to the JSON property `metadata`
313
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
314
+ attr_accessor :metadata
315
+
512
316
  # The nickname.
513
317
  # Corresponds to the JSON property `value`
514
318
  # @return [String]
@@ -520,8 +324,8 @@ module Google
520
324
 
521
325
  # Update properties of this object
522
326
  def update!(**args)
523
- @metadata = args[:metadata] if args.key?(:metadata)
524
327
  @type = args[:type] if args.key?(:type)
328
+ @metadata = args[:metadata] if args.key?(:metadata)
525
329
  @value = args[:value] if args.key?(:value)
526
330
  end
527
331
  end
@@ -575,16 +379,16 @@ module Google
575
379
  class Membership
576
380
  include Google::Apis::Core::Hashable
577
381
 
578
- # A Google contact group membership.
579
- # Corresponds to the JSON property `contactGroupMembership`
580
- # @return [Google::Apis::PeopleV1::ContactGroupMembership]
581
- attr_accessor :contact_group_membership
582
-
583
382
  # A Google Apps Domain membership.
584
383
  # Corresponds to the JSON property `domainMembership`
585
384
  # @return [Google::Apis::PeopleV1::DomainMembership]
586
385
  attr_accessor :domain_membership
587
386
 
387
+ # A Google contact group membership.
388
+ # Corresponds to the JSON property `contactGroupMembership`
389
+ # @return [Google::Apis::PeopleV1::ContactGroupMembership]
390
+ attr_accessor :contact_group_membership
391
+
588
392
  # Metadata about a field.
589
393
  # Corresponds to the JSON property `metadata`
590
394
  # @return [Google::Apis::PeopleV1::FieldMetadata]
@@ -596,8 +400,8 @@ module Google
596
400
 
597
401
  # Update properties of this object
598
402
  def update!(**args)
599
- @contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership)
600
403
  @domain_membership = args[:domain_membership] if args.key?(:domain_membership)
404
+ @contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership)
601
405
  @metadata = args[:metadata] if args.key?(:metadata)
602
406
  end
603
407
  end
@@ -606,12 +410,6 @@ module Google
606
410
  class RelationshipStatus
607
411
  include Google::Apis::Core::Hashable
608
412
 
609
- # The read-only value of the relationship status translated and formatted in
610
- # the viewer's account locale or the `Accept-Language` HTTP header locale.
611
- # Corresponds to the JSON property `formattedValue`
612
- # @return [String]
613
- attr_accessor :formatted_value
614
-
615
413
  # Metadata about a field.
616
414
  # Corresponds to the JSON property `metadata`
617
415
  # @return [Google::Apis::PeopleV1::FieldMetadata]
@@ -632,55 +430,21 @@ module Google
632
430
  # @return [String]
633
431
  attr_accessor :value
634
432
 
433
+ # The read-only value of the relationship status translated and formatted in
434
+ # the viewer's account locale or the `Accept-Language` HTTP header locale.
435
+ # Corresponds to the JSON property `formattedValue`
436
+ # @return [String]
437
+ attr_accessor :formatted_value
438
+
635
439
  def initialize(**args)
636
440
  update!(**args)
637
441
  end
638
442
 
639
443
  # Update properties of this object
640
444
  def update!(**args)
641
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
642
445
  @metadata = args[:metadata] if args.key?(:metadata)
643
446
  @value = args[:value] if args.key?(:value)
644
- end
645
- end
646
-
647
- # Represents a whole calendar date, for example a date of birth. The time
648
- # of day and time zone are either specified elsewhere or are not
649
- # significant. The date is relative to the
650
- # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
651
- # Proleptic_Gregorian_calendar).
652
- # The day may be 0 to represent a year and month where the day is not
653
- # significant. The year may be 0 to represent a month and day independent
654
- # of year; for example, anniversary date.
655
- class Date
656
- include Google::Apis::Core::Hashable
657
-
658
- # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
659
- # a year.
660
- # Corresponds to the JSON property `year`
661
- # @return [Fixnum]
662
- attr_accessor :year
663
-
664
- # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
665
- # if specifying a year/month where the day is not significant.
666
- # Corresponds to the JSON property `day`
667
- # @return [Fixnum]
668
- attr_accessor :day
669
-
670
- # Month of year. Must be from 1 to 12.
671
- # Corresponds to the JSON property `month`
672
- # @return [Fixnum]
673
- attr_accessor :month
674
-
675
- def initialize(**args)
676
- update!(**args)
677
- end
678
-
679
- # Update properties of this object
680
- def update!(**args)
681
- @year = args[:year] if args.key?(:year)
682
- @day = args[:day] if args.key?(:day)
683
- @month = args[:month] if args.key?(:month)
447
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
684
448
  end
685
449
  end
686
450
 
@@ -709,39 +473,49 @@ module Google
709
473
  end
710
474
  end
711
475
 
712
- # A person's name. If the name is a mononym, the family name is empty.
713
- class Name
476
+ # Represents a whole calendar date, for example a date of birth. The time
477
+ # of day and time zone are either specified elsewhere or are not
478
+ # significant. The date is relative to the
479
+ # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
480
+ # Proleptic_Gregorian_calendar).
481
+ # The day may be 0 to represent a year and month where the day is not
482
+ # significant. The year may be 0 to represent a month and day independent
483
+ # of year; for example, anniversary date.
484
+ class Date
714
485
  include Google::Apis::Core::Hashable
715
486
 
716
- # The honorific prefixes, such as `Mrs.` or `Dr.`
717
- # Corresponds to the JSON property `honorificPrefix`
718
- # @return [String]
719
- attr_accessor :honorific_prefix
487
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
488
+ # if specifying a year/month where the day is not significant.
489
+ # Corresponds to the JSON property `day`
490
+ # @return [Fixnum]
491
+ attr_accessor :day
720
492
 
721
- # The honorific suffixes spelled as they sound.
722
- # Corresponds to the JSON property `phoneticHonorificSuffix`
723
- # @return [String]
724
- attr_accessor :phonetic_honorific_suffix
493
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
494
+ # a year.
495
+ # Corresponds to the JSON property `year`
496
+ # @return [Fixnum]
497
+ attr_accessor :year
725
498
 
726
- # The given name.
727
- # Corresponds to the JSON property `givenName`
728
- # @return [String]
729
- attr_accessor :given_name
499
+ # Month of year. Must be from 1 to 12.
500
+ # Corresponds to the JSON property `month`
501
+ # @return [Fixnum]
502
+ attr_accessor :month
730
503
 
731
- # The middle name(s).
732
- # Corresponds to the JSON property `middleName`
733
- # @return [String]
734
- attr_accessor :middle_name
504
+ def initialize(**args)
505
+ update!(**args)
506
+ end
735
507
 
736
- # The honorific prefixes spelled as they sound.
737
- # Corresponds to the JSON property `phoneticHonorificPrefix`
738
- # @return [String]
739
- attr_accessor :phonetic_honorific_prefix
508
+ # Update properties of this object
509
+ def update!(**args)
510
+ @day = args[:day] if args.key?(:day)
511
+ @year = args[:year] if args.key?(:year)
512
+ @month = args[:month] if args.key?(:month)
513
+ end
514
+ end
740
515
 
741
- # The given name spelled as it sounds.
742
- # Corresponds to the JSON property `phoneticGivenName`
743
- # @return [String]
744
- attr_accessor :phonetic_given_name
516
+ # A person's name. If the name is a mononym, the family name is empty.
517
+ class Name
518
+ include Google::Apis::Core::Hashable
745
519
 
746
520
  # The family name spelled as it sounds.
747
521
  # Corresponds to the JSON property `phoneticFamilyName`
@@ -786,18 +560,42 @@ module Google
786
560
  # @return [String]
787
561
  attr_accessor :honorific_suffix
788
562
 
563
+ # The honorific prefixes, such as `Mrs.` or `Dr.`
564
+ # Corresponds to the JSON property `honorificPrefix`
565
+ # @return [String]
566
+ attr_accessor :honorific_prefix
567
+
568
+ # The honorific suffixes spelled as they sound.
569
+ # Corresponds to the JSON property `phoneticHonorificSuffix`
570
+ # @return [String]
571
+ attr_accessor :phonetic_honorific_suffix
572
+
573
+ # The given name.
574
+ # Corresponds to the JSON property `givenName`
575
+ # @return [String]
576
+ attr_accessor :given_name
577
+
578
+ # The middle name(s).
579
+ # Corresponds to the JSON property `middleName`
580
+ # @return [String]
581
+ attr_accessor :middle_name
582
+
583
+ # The honorific prefixes spelled as they sound.
584
+ # Corresponds to the JSON property `phoneticHonorificPrefix`
585
+ # @return [String]
586
+ attr_accessor :phonetic_honorific_prefix
587
+
588
+ # The given name spelled as it sounds.
589
+ # Corresponds to the JSON property `phoneticGivenName`
590
+ # @return [String]
591
+ attr_accessor :phonetic_given_name
592
+
789
593
  def initialize(**args)
790
594
  update!(**args)
791
595
  end
792
596
 
793
597
  # Update properties of this object
794
598
  def update!(**args)
795
- @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix)
796
- @phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
797
- @given_name = args[:given_name] if args.key?(:given_name)
798
- @middle_name = args[:middle_name] if args.key?(:middle_name)
799
- @phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix)
800
- @phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name)
801
599
  @phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name)
802
600
  @family_name = args[:family_name] if args.key?(:family_name)
803
601
  @phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name)
@@ -806,6 +604,12 @@ module Google
806
604
  @display_name_last_first = args[:display_name_last_first] if args.key?(:display_name_last_first)
807
605
  @display_name = args[:display_name] if args.key?(:display_name)
808
606
  @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix)
607
+ @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix)
608
+ @phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
609
+ @given_name = args[:given_name] if args.key?(:given_name)
610
+ @middle_name = args[:middle_name] if args.key?(:middle_name)
611
+ @phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix)
612
+ @phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name)
809
613
  end
810
614
  end
811
615
 
@@ -813,24 +617,24 @@ module Google
813
617
  class BraggingRights
814
618
  include Google::Apis::Core::Hashable
815
619
 
816
- # The bragging rights; for example, `climbed mount everest`.
817
- # Corresponds to the JSON property `value`
818
- # @return [String]
819
- attr_accessor :value
820
-
821
620
  # Metadata about a field.
822
621
  # Corresponds to the JSON property `metadata`
823
622
  # @return [Google::Apis::PeopleV1::FieldMetadata]
824
623
  attr_accessor :metadata
825
624
 
625
+ # The bragging rights; for example, `climbed mount everest`.
626
+ # Corresponds to the JSON property `value`
627
+ # @return [String]
628
+ attr_accessor :value
629
+
826
630
  def initialize(**args)
827
631
  update!(**args)
828
632
  end
829
633
 
830
634
  # Update properties of this object
831
635
  def update!(**args)
832
- @value = args[:value] if args.key?(:value)
833
636
  @metadata = args[:metadata] if args.key?(:metadata)
637
+ @value = args[:value] if args.key?(:value)
834
638
  end
835
639
  end
836
640
 
@@ -838,25 +642,25 @@ module Google
838
642
  class Locale
839
643
  include Google::Apis::Core::Hashable
840
644
 
645
+ # Metadata about a field.
646
+ # Corresponds to the JSON property `metadata`
647
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
648
+ attr_accessor :metadata
649
+
841
650
  # The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47)
842
651
  # language tag representing the locale.
843
652
  # Corresponds to the JSON property `value`
844
653
  # @return [String]
845
654
  attr_accessor :value
846
655
 
847
- # Metadata about a field.
848
- # Corresponds to the JSON property `metadata`
849
- # @return [Google::Apis::PeopleV1::FieldMetadata]
850
- attr_accessor :metadata
851
-
852
656
  def initialize(**args)
853
657
  update!(**args)
854
658
  end
855
659
 
856
660
  # Update properties of this object
857
661
  def update!(**args)
858
- @value = args[:value] if args.key?(:value)
859
662
  @metadata = args[:metadata] if args.key?(:metadata)
663
+ @value = args[:value] if args.key?(:value)
860
664
  end
861
665
  end
862
666
 
@@ -865,29 +669,6 @@ module Google
865
669
  class Organization
866
670
  include Google::Apis::Core::Hashable
867
671
 
868
- # The person's department at the organization.
869
- # Corresponds to the JSON property `department`
870
- # @return [String]
871
- attr_accessor :department
872
-
873
- # The phonetic name of the organization.
874
- # Corresponds to the JSON property `phoneticName`
875
- # @return [String]
876
- attr_accessor :phonetic_name
877
-
878
- # The type of the organization. The type can be custom or predefined.
879
- # Possible values include, but are not limited to, the following:
880
- # * `work`
881
- # * `school`
882
- # Corresponds to the JSON property `type`
883
- # @return [String]
884
- attr_accessor :type
885
-
886
- # The person's job description at the organization.
887
- # Corresponds to the JSON property `jobDescription`
888
- # @return [String]
889
- attr_accessor :job_description
890
-
891
672
  # Represents a whole calendar date, for example a date of birth. The time
892
673
  # of day and time zone are either specified elsewhere or are not
893
674
  # significant. The date is relative to the
@@ -916,16 +697,16 @@ module Google
916
697
  # @return [Google::Apis::PeopleV1::FieldMetadata]
917
698
  attr_accessor :metadata
918
699
 
919
- # The person's job title at the organization.
920
- # Corresponds to the JSON property `title`
921
- # @return [String]
922
- attr_accessor :title
923
-
924
700
  # The location of the organization office the person works at.
925
701
  # Corresponds to the JSON property `location`
926
702
  # @return [String]
927
703
  attr_accessor :location
928
704
 
705
+ # The person's job title at the organization.
706
+ # Corresponds to the JSON property `title`
707
+ # @return [String]
708
+ attr_accessor :title
709
+
929
710
  # True if the organization is the person's current organization;
930
711
  # false if the organization is a past organization.
931
712
  # Corresponds to the JSON property `current`
@@ -933,6 +714,12 @@ module Google
933
714
  attr_accessor :current
934
715
  alias_method :current?, :current
935
716
 
717
+ # The read-only type of the organization translated and formatted in the
718
+ # viewer's account locale or the `Accept-Language` HTTP header locale.
719
+ # Corresponds to the JSON property `formattedType`
720
+ # @return [String]
721
+ attr_accessor :formatted_type
722
+
936
723
  # Represents a whole calendar date, for example a date of birth. The time
937
724
  # of day and time zone are either specified elsewhere or are not
938
725
  # significant. The date is relative to the
@@ -945,37 +732,54 @@ module Google
945
732
  # @return [Google::Apis::PeopleV1::Date]
946
733
  attr_accessor :start_date
947
734
 
948
- # The read-only type of the organization translated and formatted in the
949
- # viewer's account locale or the `Accept-Language` HTTP header locale.
950
- # Corresponds to the JSON property `formattedType`
951
- # @return [String]
952
- attr_accessor :formatted_type
953
-
954
735
  # The domain name associated with the organization; for example, `google.com`.
955
736
  # Corresponds to the JSON property `domain`
956
737
  # @return [String]
957
738
  attr_accessor :domain
958
739
 
740
+ # The person's department at the organization.
741
+ # Corresponds to the JSON property `department`
742
+ # @return [String]
743
+ attr_accessor :department
744
+
745
+ # The phonetic name of the organization.
746
+ # Corresponds to the JSON property `phoneticName`
747
+ # @return [String]
748
+ attr_accessor :phonetic_name
749
+
750
+ # The type of the organization. The type can be custom or predefined.
751
+ # Possible values include, but are not limited to, the following:
752
+ # * `work`
753
+ # * `school`
754
+ # Corresponds to the JSON property `type`
755
+ # @return [String]
756
+ attr_accessor :type
757
+
758
+ # The person's job description at the organization.
759
+ # Corresponds to the JSON property `jobDescription`
760
+ # @return [String]
761
+ attr_accessor :job_description
762
+
959
763
  def initialize(**args)
960
764
  update!(**args)
961
765
  end
962
766
 
963
767
  # Update properties of this object
964
768
  def update!(**args)
965
- @department = args[:department] if args.key?(:department)
966
- @phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name)
967
- @type = args[:type] if args.key?(:type)
968
- @job_description = args[:job_description] if args.key?(:job_description)
969
769
  @end_date = args[:end_date] if args.key?(:end_date)
970
770
  @symbol = args[:symbol] if args.key?(:symbol)
971
771
  @name = args[:name] if args.key?(:name)
972
772
  @metadata = args[:metadata] if args.key?(:metadata)
973
- @title = args[:title] if args.key?(:title)
974
773
  @location = args[:location] if args.key?(:location)
774
+ @title = args[:title] if args.key?(:title)
975
775
  @current = args[:current] if args.key?(:current)
976
- @start_date = args[:start_date] if args.key?(:start_date)
977
776
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
777
+ @start_date = args[:start_date] if args.key?(:start_date)
978
778
  @domain = args[:domain] if args.key?(:domain)
779
+ @department = args[:department] if args.key?(:department)
780
+ @phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name)
781
+ @type = args[:type] if args.key?(:type)
782
+ @job_description = args[:job_description] if args.key?(:job_description)
979
783
  end
980
784
  end
981
785
 
@@ -983,11 +787,6 @@ module Google
983
787
  class Biography
984
788
  include Google::Apis::Core::Hashable
985
789
 
986
- # The short biography.
987
- # Corresponds to the JSON property `value`
988
- # @return [String]
989
- attr_accessor :value
990
-
991
790
  # The content type of the biography.
992
791
  # Corresponds to the JSON property `contentType`
993
792
  # @return [String]
@@ -998,15 +797,20 @@ module Google
998
797
  # @return [Google::Apis::PeopleV1::FieldMetadata]
999
798
  attr_accessor :metadata
1000
799
 
800
+ # The short biography.
801
+ # Corresponds to the JSON property `value`
802
+ # @return [String]
803
+ attr_accessor :value
804
+
1001
805
  def initialize(**args)
1002
806
  update!(**args)
1003
807
  end
1004
808
 
1005
809
  # Update properties of this object
1006
810
  def update!(**args)
1007
- @value = args[:value] if args.key?(:value)
1008
811
  @content_type = args[:content_type] if args.key?(:content_type)
1009
812
  @metadata = args[:metadata] if args.key?(:metadata)
813
+ @value = args[:value] if args.key?(:value)
1010
814
  end
1011
815
  end
1012
816
 
@@ -1014,89 +818,15 @@ module Google
1014
818
  class AgeRangeType
1015
819
  include Google::Apis::Core::Hashable
1016
820
 
1017
- # The age range.
1018
- # Corresponds to the JSON property `ageRange`
1019
- # @return [String]
1020
- attr_accessor :age_range
1021
-
1022
821
  # Metadata about a field.
1023
822
  # Corresponds to the JSON property `metadata`
1024
823
  # @return [Google::Apis::PeopleV1::FieldMetadata]
1025
824
  attr_accessor :metadata
1026
825
 
1027
- def initialize(**args)
1028
- update!(**args)
1029
- end
1030
-
1031
- # Update properties of this object
1032
- def update!(**args)
1033
- @age_range = args[:age_range] if args.key?(:age_range)
1034
- @metadata = args[:metadata] if args.key?(:metadata)
1035
- end
1036
- end
1037
-
1038
- # Metadata about a field.
1039
- class FieldMetadata
1040
- include Google::Apis::Core::Hashable
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
-
1047
- # True if the field is verified; false if the field is unverified. A
1048
- # verified field is typically a name, email address, phone number, or
1049
- # website that has been confirmed to be owned by the person.
1050
- # Corresponds to the JSON property `verified`
1051
- # @return [Boolean]
1052
- attr_accessor :verified
1053
- alias_method :verified?, :verified
1054
-
1055
- # True if the field is the primary field; false if the field is a secondary
1056
- # field.
1057
- # Corresponds to the JSON property `primary`
1058
- # @return [Boolean]
1059
- attr_accessor :primary
1060
- alias_method :primary?, :primary
1061
-
1062
- def initialize(**args)
1063
- update!(**args)
1064
- end
1065
-
1066
- # Update properties of this object
1067
- def update!(**args)
1068
- @source = args[:source] if args.key?(:source)
1069
- @verified = args[:verified] if args.key?(:verified)
1070
- @primary = args[:primary] if args.key?(:primary)
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`
826
+ # The age range.
827
+ # Corresponds to the JSON property `ageRange`
1093
828
  # @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
829
+ attr_accessor :age_range
1100
830
 
1101
831
  def initialize(**args)
1102
832
  update!(**args)
@@ -1104,37 +834,34 @@ module Google
1104
834
 
1105
835
  # Update properties of this object
1106
836
  def update!(**args)
1107
- @value = args[:value] if args.key?(:value)
1108
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
1109
837
  @metadata = args[:metadata] if args.key?(:metadata)
838
+ @age_range = args[:age_range] if args.key?(:age_range)
1110
839
  end
1111
- end
1112
-
1113
- # The source of a field.
1114
- class Source
1115
- include Google::Apis::Core::Hashable
840
+ end
1116
841
 
1117
- # The source type.
1118
- # Corresponds to the JSON property `type`
1119
- # @return [String]
1120
- attr_accessor :type
842
+ # Metadata about a field.
843
+ class FieldMetadata
844
+ include Google::Apis::Core::Hashable
1121
845
 
1122
- # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
1123
- # source. Used for web cache validation. Only populated in
1124
- # person.metadata.sources.
1125
- # Corresponds to the JSON property `etag`
1126
- # @return [String]
1127
- attr_accessor :etag
846
+ # The source of a field.
847
+ # Corresponds to the JSON property `source`
848
+ # @return [Google::Apis::PeopleV1::Source]
849
+ attr_accessor :source
1128
850
 
1129
- # The unique identifier within the source type generated by the server.
1130
- # Corresponds to the JSON property `id`
1131
- # @return [String]
1132
- attr_accessor :id
851
+ # True if the field is verified; false if the field is unverified. A
852
+ # verified field is typically a name, email address, phone number, or
853
+ # website that has been confirmed to be owned by the person.
854
+ # Corresponds to the JSON property `verified`
855
+ # @return [Boolean]
856
+ attr_accessor :verified
857
+ alias_method :verified?, :verified
1133
858
 
1134
- # The read-only metadata about a profile.
1135
- # Corresponds to the JSON property `profileMetadata`
1136
- # @return [Google::Apis::PeopleV1::ProfileMetadata]
1137
- attr_accessor :profile_metadata
859
+ # True if the field is the primary field; false if the field is a secondary
860
+ # field.
861
+ # Corresponds to the JSON property `primary`
862
+ # @return [Boolean]
863
+ attr_accessor :primary
864
+ alias_method :primary?, :primary
1138
865
 
1139
866
  def initialize(**args)
1140
867
  update!(**args)
@@ -1142,10 +869,9 @@ module Google
1142
869
 
1143
870
  # Update properties of this object
1144
871
  def update!(**args)
1145
- @type = args[:type] if args.key?(:type)
1146
- @etag = args[:etag] if args.key?(:etag)
1147
- @id = args[:id] if args.key?(:id)
1148
- @profile_metadata = args[:profile_metadata] if args.key?(:profile_metadata)
872
+ @source = args[:source] if args.key?(:source)
873
+ @verified = args[:verified] if args.key?(:verified)
874
+ @primary = args[:primary] if args.key?(:primary)
1149
875
  end
1150
876
  end
1151
877
 
@@ -1153,15 +879,6 @@ module Google
1153
879
  class PersonResponse
1154
880
  include Google::Apis::Core::Hashable
1155
881
 
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
-
1165
882
  # Information about a person merged from various data sources such as the
1166
883
  # authenticated user's contacts and profile data.
1167
884
  # Most fields can have multiple items. The items in a field have no guaranteed
@@ -1185,7 +902,7 @@ module Google
1185
902
  # error message is needed, put the localized message in the error details or
1186
903
  # localize it in the client. The optional error details may contain arbitrary
1187
904
  # 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.
905
+ # in the package `google.rpc` that can be used for common error conditions.
1189
906
  # # Language mapping
1190
907
  # The `Status` message is the logical representation of the error model, but it
1191
908
  # is not necessarily the actual wire format. When the `Status` message is
@@ -1201,7 +918,7 @@ module Google
1201
918
  # it may embed the `Status` in the normal response to indicate the partial
1202
919
  # errors.
1203
920
  # - Workflow errors. A typical workflow has multiple steps. Each step may
1204
- # have a `Status` message for error reporting purpose.
921
+ # have a `Status` message for error reporting.
1205
922
  # - Batch operations. If a client uses batch request and batch response, the
1206
923
  # `Status` message should be used directly inside batch response, one for
1207
924
  # each error sub-response.
@@ -1221,28 +938,110 @@ module Google
1221
938
  # @return [Fixnum]
1222
939
  attr_accessor :http_status_code
1223
940
 
941
+ # The original requested resource name. May be different than the resource
942
+ # name on the returned person.
943
+ # The resource name can change when adding or removing fields that link a
944
+ # contact and profile such as a verified email, verified phone number, or a
945
+ # profile URL.
946
+ # Corresponds to the JSON property `requestedResourceName`
947
+ # @return [String]
948
+ attr_accessor :requested_resource_name
949
+
1224
950
  def initialize(**args)
1225
951
  update!(**args)
1226
952
  end
1227
953
 
1228
954
  # Update properties of this object
1229
955
  def update!(**args)
1230
- @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
1231
956
  @person = args[:person] if args.key?(:person)
1232
957
  @status = args[:status] if args.key?(:status)
1233
958
  @http_status_code = args[:http_status_code] if args.key?(:http_status_code)
959
+ @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
1234
960
  end
1235
961
  end
1236
962
 
1237
- # A person's relation to another person.
1238
- class Relation
963
+ # A person's read-only relationship interest .
964
+ class RelationshipInterest
1239
965
  include Google::Apis::Core::Hashable
1240
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
+
1241
985
  # Metadata about a field.
1242
986
  # Corresponds to the JSON property `metadata`
1243
987
  # @return [Google::Apis::PeopleV1::FieldMetadata]
1244
988
  attr_accessor :metadata
1245
989
 
990
+ def initialize(**args)
991
+ update!(**args)
992
+ end
993
+
994
+ # Update properties of this object
995
+ def update!(**args)
996
+ @value = args[:value] if args.key?(:value)
997
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
998
+ @metadata = args[:metadata] if args.key?(:metadata)
999
+ end
1000
+ end
1001
+
1002
+ # The source of a field.
1003
+ class Source
1004
+ include Google::Apis::Core::Hashable
1005
+
1006
+ # The source type.
1007
+ # Corresponds to the JSON property `type`
1008
+ # @return [String]
1009
+ attr_accessor :type
1010
+
1011
+ # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
1012
+ # source. Used for web cache validation. Only populated in
1013
+ # person.metadata.sources.
1014
+ # Corresponds to the JSON property `etag`
1015
+ # @return [String]
1016
+ attr_accessor :etag
1017
+
1018
+ # The unique identifier within the source type generated by the server.
1019
+ # Corresponds to the JSON property `id`
1020
+ # @return [String]
1021
+ attr_accessor :id
1022
+
1023
+ # The read-only metadata about a profile.
1024
+ # Corresponds to the JSON property `profileMetadata`
1025
+ # @return [Google::Apis::PeopleV1::ProfileMetadata]
1026
+ attr_accessor :profile_metadata
1027
+
1028
+ def initialize(**args)
1029
+ update!(**args)
1030
+ end
1031
+
1032
+ # Update properties of this object
1033
+ def update!(**args)
1034
+ @type = args[:type] if args.key?(:type)
1035
+ @etag = args[:etag] if args.key?(:etag)
1036
+ @id = args[:id] if args.key?(:id)
1037
+ @profile_metadata = args[:profile_metadata] if args.key?(:profile_metadata)
1038
+ end
1039
+ end
1040
+
1041
+ # A person's relation to another person.
1042
+ class Relation
1043
+ include Google::Apis::Core::Hashable
1044
+
1246
1045
  # The person's relation to the other person. The type can be custom or
1247
1046
  # predefined.
1248
1047
  # Possible values include, but are not limited to, the following values:
@@ -1264,10 +1063,10 @@ module Google
1264
1063
  # @return [String]
1265
1064
  attr_accessor :type
1266
1065
 
1267
- # The name of the other person this relation refers to.
1268
- # Corresponds to the JSON property `person`
1269
- # @return [String]
1270
- attr_accessor :person
1066
+ # Metadata about a field.
1067
+ # Corresponds to the JSON property `metadata`
1068
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
1069
+ attr_accessor :metadata
1271
1070
 
1272
1071
  # The type of the relation translated and formatted in the viewer's account
1273
1072
  # locale or the locale specified in the Accept-Language HTTP header.
@@ -1275,16 +1074,21 @@ module Google
1275
1074
  # @return [String]
1276
1075
  attr_accessor :formatted_type
1277
1076
 
1077
+ # The name of the other person this relation refers to.
1078
+ # Corresponds to the JSON property `person`
1079
+ # @return [String]
1080
+ attr_accessor :person
1081
+
1278
1082
  def initialize(**args)
1279
1083
  update!(**args)
1280
1084
  end
1281
1085
 
1282
1086
  # Update properties of this object
1283
1087
  def update!(**args)
1284
- @metadata = args[:metadata] if args.key?(:metadata)
1285
1088
  @type = args[:type] if args.key?(:type)
1286
- @person = args[:person] if args.key?(:person)
1089
+ @metadata = args[:metadata] if args.key?(:metadata)
1287
1090
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1091
+ @person = args[:person] if args.key?(:person)
1288
1092
  end
1289
1093
  end
1290
1094
 
@@ -1321,16 +1125,6 @@ module Google
1321
1125
  class Person
1322
1126
  include Google::Apis::Core::Hashable
1323
1127
 
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
-
1329
- # The person's instant messaging clients.
1330
- # Corresponds to the JSON property `imClients`
1331
- # @return [Array<Google::Apis::PeopleV1::ImClient>]
1332
- attr_accessor :im_clients
1333
-
1334
1128
  # The person's birthdays.
1335
1129
  # Corresponds to the JSON property `birthdays`
1336
1130
  # @return [Array<Google::Apis::PeopleV1::Birthday>]
@@ -1356,16 +1150,16 @@ module Google
1356
1150
  # @return [Array<Google::Apis::PeopleV1::Nickname>]
1357
1151
  attr_accessor :nicknames
1358
1152
 
1359
- # The person's names.
1360
- # Corresponds to the JSON property `names`
1361
- # @return [Array<Google::Apis::PeopleV1::Name>]
1362
- attr_accessor :names
1363
-
1364
1153
  # The person's relations.
1365
1154
  # Corresponds to the JSON property `relations`
1366
1155
  # @return [Array<Google::Apis::PeopleV1::Relation>]
1367
1156
  attr_accessor :relations
1368
1157
 
1158
+ # The person's names.
1159
+ # Corresponds to the JSON property `names`
1160
+ # @return [Array<Google::Apis::PeopleV1::Name>]
1161
+ attr_accessor :names
1162
+
1369
1163
  # The person's occupations.
1370
1164
  # Corresponds to the JSON property `occupations`
1371
1165
  # @return [Array<Google::Apis::PeopleV1::Occupation>]
@@ -1407,17 +1201,17 @@ module Google
1407
1201
  # @return [Array<Google::Apis::PeopleV1::Gender>]
1408
1202
  attr_accessor :genders
1409
1203
 
1204
+ # The person's interests.
1205
+ # Corresponds to the JSON property `interests`
1206
+ # @return [Array<Google::Apis::PeopleV1::Interest>]
1207
+ attr_accessor :interests
1208
+
1410
1209
  # The resource name for the person, assigned by the server. An ASCII string
1411
1210
  # with a max length of 27 characters, in the form of `people/<person_id>`.
1412
1211
  # Corresponds to the JSON property `resourceName`
1413
1212
  # @return [String]
1414
1213
  attr_accessor :resource_name
1415
1214
 
1416
- # The person's interests.
1417
- # Corresponds to the JSON property `interests`
1418
- # @return [Array<Google::Apis::PeopleV1::Interest>]
1419
- attr_accessor :interests
1420
-
1421
1215
  # The person's biographies.
1422
1216
  # Corresponds to the JSON property `biographies`
1423
1217
  # @return [Array<Google::Apis::PeopleV1::Biography>]
@@ -1473,21 +1267,29 @@ module Google
1473
1267
  # @return [Array<Google::Apis::PeopleV1::PhoneNumber>]
1474
1268
  attr_accessor :phone_numbers
1475
1269
 
1270
+ # The person's cover photos.
1271
+ # Corresponds to the JSON property `coverPhotos`
1272
+ # @return [Array<Google::Apis::PeopleV1::CoverPhoto>]
1273
+ attr_accessor :cover_photos
1274
+
1275
+ # The person's instant messaging clients.
1276
+ # Corresponds to the JSON property `imClients`
1277
+ # @return [Array<Google::Apis::PeopleV1::ImClient>]
1278
+ attr_accessor :im_clients
1279
+
1476
1280
  def initialize(**args)
1477
1281
  update!(**args)
1478
1282
  end
1479
1283
 
1480
1284
  # Update properties of this object
1481
1285
  def update!(**args)
1482
- @cover_photos = args[:cover_photos] if args.key?(:cover_photos)
1483
- @im_clients = args[:im_clients] if args.key?(:im_clients)
1484
1286
  @birthdays = args[:birthdays] if args.key?(:birthdays)
1485
1287
  @locales = args[:locales] if args.key?(:locales)
1486
1288
  @relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests)
1487
1289
  @urls = args[:urls] if args.key?(:urls)
1488
1290
  @nicknames = args[:nicknames] if args.key?(:nicknames)
1489
- @names = args[:names] if args.key?(:names)
1490
1291
  @relations = args[:relations] if args.key?(:relations)
1292
+ @names = args[:names] if args.key?(:names)
1491
1293
  @occupations = args[:occupations] if args.key?(:occupations)
1492
1294
  @email_addresses = args[:email_addresses] if args.key?(:email_addresses)
1493
1295
  @organizations = args[:organizations] if args.key?(:organizations)
@@ -1496,8 +1298,8 @@ module Google
1496
1298
  @metadata = args[:metadata] if args.key?(:metadata)
1497
1299
  @residences = args[:residences] if args.key?(:residences)
1498
1300
  @genders = args[:genders] if args.key?(:genders)
1499
- @resource_name = args[:resource_name] if args.key?(:resource_name)
1500
1301
  @interests = args[:interests] if args.key?(:interests)
1302
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
1501
1303
  @biographies = args[:biographies] if args.key?(:biographies)
1502
1304
  @skills = args[:skills] if args.key?(:skills)
1503
1305
  @relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses)
@@ -1509,6 +1311,8 @@ module Google
1509
1311
  @events = args[:events] if args.key?(:events)
1510
1312
  @memberships = args[:memberships] if args.key?(:memberships)
1511
1313
  @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers)
1314
+ @cover_photos = args[:cover_photos] if args.key?(:cover_photos)
1315
+ @im_clients = args[:im_clients] if args.key?(:im_clients)
1512
1316
  end
1513
1317
  end
1514
1318
 
@@ -1535,24 +1339,6 @@ module Google
1535
1339
  class PhoneNumber
1536
1340
  include Google::Apis::Core::Hashable
1537
1341
 
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`
1541
- # @return [String]
1542
- attr_accessor :formatted_type
1543
-
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
1550
-
1551
- # Metadata about a field.
1552
- # Corresponds to the JSON property `metadata`
1553
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1554
- attr_accessor :metadata
1555
-
1556
1342
  # The type of the phone number. The type can be custom or predefined.
1557
1343
  # Possible values include, but are not limited to, the following:
1558
1344
  # * `home`
@@ -1571,22 +1357,40 @@ module Google
1571
1357
  # @return [String]
1572
1358
  attr_accessor :type
1573
1359
 
1360
+ # Metadata about a field.
1361
+ # Corresponds to the JSON property `metadata`
1362
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
1363
+ attr_accessor :metadata
1364
+
1574
1365
  # The phone number.
1575
1366
  # Corresponds to the JSON property `value`
1576
1367
  # @return [String]
1577
1368
  attr_accessor :value
1578
1369
 
1370
+ # The read-only type of the phone number translated and formatted in the
1371
+ # viewer's account locale or the the `Accept-Language` HTTP header locale.
1372
+ # Corresponds to the JSON property `formattedType`
1373
+ # @return [String]
1374
+ attr_accessor :formatted_type
1375
+
1376
+ # The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/
1377
+ # ibr/004/itu-t.E.164.1.2008.pdf)
1378
+ # form of the phone number.
1379
+ # Corresponds to the JSON property `canonicalForm`
1380
+ # @return [String]
1381
+ attr_accessor :canonical_form
1382
+
1579
1383
  def initialize(**args)
1580
1384
  update!(**args)
1581
1385
  end
1582
1386
 
1583
1387
  # Update properties of this object
1584
1388
  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
1389
  @type = args[:type] if args.key?(:type)
1390
+ @metadata = args[:metadata] if args.key?(:metadata)
1589
1391
  @value = args[:value] if args.key?(:value)
1392
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1393
+ @canonical_form = args[:canonical_form] if args.key?(:canonical_form)
1590
1394
  end
1591
1395
  end
1592
1396
 
@@ -1595,24 +1399,27 @@ module Google
1595
1399
  class Photo
1596
1400
  include Google::Apis::Core::Hashable
1597
1401
 
1598
- # The URL of the photo.
1599
- # Corresponds to the JSON property `url`
1600
- # @return [String]
1601
- attr_accessor :url
1602
-
1603
1402
  # Metadata about a field.
1604
1403
  # Corresponds to the JSON property `metadata`
1605
1404
  # @return [Google::Apis::PeopleV1::FieldMetadata]
1606
1405
  attr_accessor :metadata
1607
1406
 
1407
+ # The URL of the photo. You can change the desired size by appending a query
1408
+ # parameter `sz=<size>` at the end of the url. Example:
1409
+ # `https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/AAAAAAAABa8/
1410
+ # 00gzXvDBYqw/s100/photo.jpg?sz=50`
1411
+ # Corresponds to the JSON property `url`
1412
+ # @return [String]
1413
+ attr_accessor :url
1414
+
1608
1415
  def initialize(**args)
1609
1416
  update!(**args)
1610
1417
  end
1611
1418
 
1612
1419
  # Update properties of this object
1613
1420
  def update!(**args)
1614
- @url = args[:url] if args.key?(:url)
1615
1421
  @metadata = args[:metadata] if args.key?(:metadata)
1422
+ @url = args[:url] if args.key?(:url)
1616
1423
  end
1617
1424
  end
1618
1425
 
@@ -1625,20 +1432,20 @@ module Google
1625
1432
  # @return [String]
1626
1433
  attr_accessor :next_page_token
1627
1434
 
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
1435
+ # The total number of items in the list without pagination.
1436
+ # Corresponds to the JSON property `totalItems`
1437
+ # @return [Fixnum]
1438
+ attr_accessor :total_items
1632
1439
 
1633
1440
  # The token that can be used to retrieve changes since the last request.
1634
1441
  # Corresponds to the JSON property `nextSyncToken`
1635
1442
  # @return [String]
1636
1443
  attr_accessor :next_sync_token
1637
1444
 
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
1445
+ # The list of people that the requestor is connected to.
1446
+ # Corresponds to the JSON property `connections`
1447
+ # @return [Array<Google::Apis::PeopleV1::Person>]
1448
+ attr_accessor :connections
1642
1449
 
1643
1450
  # DEPRECATED(Please use total_items). The total number of people in the list
1644
1451
  # without pagination.
@@ -1653,9 +1460,9 @@ module Google
1653
1460
  # Update properties of this object
1654
1461
  def update!(**args)
1655
1462
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1656
- @connections = args[:connections] if args.key?(:connections)
1657
- @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
1658
1463
  @total_items = args[:total_items] if args.key?(:total_items)
1464
+ @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
1465
+ @connections = args[:connections] if args.key?(:connections)
1659
1466
  @total_people = args[:total_people] if args.key?(:total_people)
1660
1467
  end
1661
1468
  end
@@ -1666,16 +1473,16 @@ module Google
1666
1473
  class Birthday
1667
1474
  include Google::Apis::Core::Hashable
1668
1475
 
1669
- # Metadata about a field.
1670
- # Corresponds to the JSON property `metadata`
1671
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1672
- attr_accessor :metadata
1673
-
1674
1476
  # A free-form string representing the user's birthday.
1675
1477
  # Corresponds to the JSON property `text`
1676
1478
  # @return [String]
1677
1479
  attr_accessor :text
1678
1480
 
1481
+ # Metadata about a field.
1482
+ # Corresponds to the JSON property `metadata`
1483
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
1484
+ attr_accessor :metadata
1485
+
1679
1486
  # Represents a whole calendar date, for example a date of birth. The time
1680
1487
  # of day and time zone are either specified elsewhere or are not
1681
1488
  # significant. The date is relative to the
@@ -1694,8 +1501,8 @@ module Google
1694
1501
 
1695
1502
  # Update properties of this object
1696
1503
  def update!(**args)
1697
- @metadata = args[:metadata] if args.key?(:metadata)
1698
1504
  @text = args[:text] if args.key?(:text)
1505
+ @metadata = args[:metadata] if args.key?(:metadata)
1699
1506
  @date = args[:date] if args.key?(:date)
1700
1507
  end
1701
1508
  end
@@ -1705,6 +1512,12 @@ module Google
1705
1512
  class Address
1706
1513
  include Google::Apis::Core::Hashable
1707
1514
 
1515
+ # The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country
1516
+ # code of the address.
1517
+ # Corresponds to the JSON property `countryCode`
1518
+ # @return [String]
1519
+ attr_accessor :country_code
1520
+
1708
1521
  # The read-only type of the address translated and formatted in the viewer's
1709
1522
  # account locale or the `Accept-Language` HTTP header locale.
1710
1523
  # Corresponds to the JSON property `formattedType`
@@ -1766,18 +1579,13 @@ module Google
1766
1579
  # @return [Google::Apis::PeopleV1::FieldMetadata]
1767
1580
  attr_accessor :metadata
1768
1581
 
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
-
1775
1582
  def initialize(**args)
1776
1583
  update!(**args)
1777
1584
  end
1778
1585
 
1779
1586
  # Update properties of this object
1780
1587
  def update!(**args)
1588
+ @country_code = args[:country_code] if args.key?(:country_code)
1781
1589
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1782
1590
  @city = args[:city] if args.key?(:city)
1783
1591
  @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
@@ -1789,7 +1597,6 @@ module Google
1789
1597
  @region = args[:region] if args.key?(:region)
1790
1598
  @street_address = args[:street_address] if args.key?(:street_address)
1791
1599
  @metadata = args[:metadata] if args.key?(:metadata)
1792
- @country_code = args[:country_code] if args.key?(:country_code)
1793
1600
  end
1794
1601
  end
1795
1602
 
@@ -1797,11 +1604,6 @@ module Google
1797
1604
  class Residence
1798
1605
  include Google::Apis::Core::Hashable
1799
1606
 
1800
- # Metadata about a field.
1801
- # Corresponds to the JSON property `metadata`
1802
- # @return [Google::Apis::PeopleV1::FieldMetadata]
1803
- attr_accessor :metadata
1804
-
1805
1607
  # True if the residence is the person's current residence;
1806
1608
  # false if the residence is a past residence.
1807
1609
  # Corresponds to the JSON property `current`
@@ -1809,6 +1611,11 @@ module Google
1809
1611
  attr_accessor :current
1810
1612
  alias_method :current?, :current
1811
1613
 
1614
+ # Metadata about a field.
1615
+ # Corresponds to the JSON property `metadata`
1616
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
1617
+ attr_accessor :metadata
1618
+
1812
1619
  # The address of the residence.
1813
1620
  # Corresponds to the JSON property `value`
1814
1621
  # @return [String]
@@ -1820,11 +1627,207 @@ module Google
1820
1627
 
1821
1628
  # Update properties of this object
1822
1629
  def update!(**args)
1823
- @metadata = args[:metadata] if args.key?(:metadata)
1824
1630
  @current = args[:current] if args.key?(:current)
1631
+ @metadata = args[:metadata] if args.key?(:metadata)
1825
1632
  @value = args[:value] if args.key?(:value)
1826
1633
  end
1827
1634
  end
1635
+
1636
+ # The `Status` type defines a logical error model that is suitable for different
1637
+ # programming environments, including REST APIs and RPC APIs. It is used by
1638
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
1639
+ # - Simple to use and understand for most users
1640
+ # - Flexible enough to meet unexpected needs
1641
+ # # Overview
1642
+ # The `Status` message contains three pieces of data: error code, error message,
1643
+ # and error details. The error code should be an enum value of
1644
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1645
+ # error message should be a developer-facing English message that helps
1646
+ # developers *understand* and *resolve* the error. If a localized user-facing
1647
+ # error message is needed, put the localized message in the error details or
1648
+ # localize it in the client. The optional error details may contain arbitrary
1649
+ # information about the error. There is a predefined set of error detail types
1650
+ # in the package `google.rpc` that can be used for common error conditions.
1651
+ # # Language mapping
1652
+ # The `Status` message is the logical representation of the error model, but it
1653
+ # is not necessarily the actual wire format. When the `Status` message is
1654
+ # exposed in different client libraries and different wire protocols, it can be
1655
+ # mapped differently. For example, it will likely be mapped to some exceptions
1656
+ # in Java, but more likely mapped to some error codes in C.
1657
+ # # Other uses
1658
+ # The error model and the `Status` message can be used in a variety of
1659
+ # environments, either with or without APIs, to provide a
1660
+ # consistent developer experience across different environments.
1661
+ # Example uses of this error model include:
1662
+ # - Partial errors. If a service needs to return partial errors to the client,
1663
+ # it may embed the `Status` in the normal response to indicate the partial
1664
+ # errors.
1665
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1666
+ # have a `Status` message for error reporting.
1667
+ # - Batch operations. If a client uses batch request and batch response, the
1668
+ # `Status` message should be used directly inside batch response, one for
1669
+ # each error sub-response.
1670
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1671
+ # results in its response, the status of those operations should be
1672
+ # represented directly using the `Status` message.
1673
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1674
+ # be used directly after any stripping needed for security/privacy reasons.
1675
+ class Status
1676
+ include Google::Apis::Core::Hashable
1677
+
1678
+ # The status code, which should be an enum value of google.rpc.Code.
1679
+ # Corresponds to the JSON property `code`
1680
+ # @return [Fixnum]
1681
+ attr_accessor :code
1682
+
1683
+ # A developer-facing error message, which should be in English. Any
1684
+ # user-facing error message should be localized and sent in the
1685
+ # google.rpc.Status.details field, or localized by the client.
1686
+ # Corresponds to the JSON property `message`
1687
+ # @return [String]
1688
+ attr_accessor :message
1689
+
1690
+ # A list of messages that carry the error details. There will be a
1691
+ # common set of message types for APIs to use.
1692
+ # Corresponds to the JSON property `details`
1693
+ # @return [Array<Hash<String,Object>>]
1694
+ attr_accessor :details
1695
+
1696
+ def initialize(**args)
1697
+ update!(**args)
1698
+ end
1699
+
1700
+ # Update properties of this object
1701
+ def update!(**args)
1702
+ @code = args[:code] if args.key?(:code)
1703
+ @message = args[:message] if args.key?(:message)
1704
+ @details = args[:details] if args.key?(:details)
1705
+ end
1706
+ end
1707
+
1708
+ # A Google contact group membership.
1709
+ class ContactGroupMembership
1710
+ include Google::Apis::Core::Hashable
1711
+
1712
+ # The contact group ID for the contact group membership. The contact group
1713
+ # ID can be custom or predefined. Possible values include, but are not
1714
+ # limited to, the following:
1715
+ # * `myContacts`
1716
+ # * `starred`
1717
+ # * A numerical ID for user-created groups.
1718
+ # Corresponds to the JSON property `contactGroupId`
1719
+ # @return [String]
1720
+ attr_accessor :contact_group_id
1721
+
1722
+ def initialize(**args)
1723
+ update!(**args)
1724
+ end
1725
+
1726
+ # Update properties of this object
1727
+ def update!(**args)
1728
+ @contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id)
1729
+ end
1730
+ end
1731
+
1732
+ # The read-only metadata about a person.
1733
+ class PersonMetadata
1734
+ include Google::Apis::Core::Hashable
1735
+
1736
+ # Resource names of people linked to this resource.
1737
+ # Corresponds to the JSON property `linkedPeopleResourceNames`
1738
+ # @return [Array<String>]
1739
+ attr_accessor :linked_people_resource_names
1740
+
1741
+ # Any former resource names this person has had. Populated only for
1742
+ # [`connections.list`](/people/api/rest/v1/people.connections/list) requests
1743
+ # that include a sync token.
1744
+ # The resource name may change when adding or removing fields that link a
1745
+ # contact and profile such as a verified email, verified phone number, or
1746
+ # profile URL.
1747
+ # Corresponds to the JSON property `previousResourceNames`
1748
+ # @return [Array<String>]
1749
+ attr_accessor :previous_resource_names
1750
+
1751
+ # The sources of data for the person.
1752
+ # Corresponds to the JSON property `sources`
1753
+ # @return [Array<Google::Apis::PeopleV1::Source>]
1754
+ attr_accessor :sources
1755
+
1756
+ # True if the person resource has been deleted. Populated only for
1757
+ # [`connections.list`](/people/api/rest/v1/people.connections/list) requests
1758
+ # that include a sync token.
1759
+ # Corresponds to the JSON property `deleted`
1760
+ # @return [Boolean]
1761
+ attr_accessor :deleted
1762
+ alias_method :deleted?, :deleted
1763
+
1764
+ # DEPRECATED(Please read person.metadata.sources.profile_metadata instead).
1765
+ # The type of the person object.
1766
+ # Corresponds to the JSON property `objectType`
1767
+ # @return [String]
1768
+ attr_accessor :object_type
1769
+
1770
+ def initialize(**args)
1771
+ update!(**args)
1772
+ end
1773
+
1774
+ # Update properties of this object
1775
+ def update!(**args)
1776
+ @linked_people_resource_names = args[:linked_people_resource_names] if args.key?(:linked_people_resource_names)
1777
+ @previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names)
1778
+ @sources = args[:sources] if args.key?(:sources)
1779
+ @deleted = args[:deleted] if args.key?(:deleted)
1780
+ @object_type = args[:object_type] if args.key?(:object_type)
1781
+ end
1782
+ end
1783
+
1784
+ # An event related to the person.
1785
+ class Event
1786
+ include Google::Apis::Core::Hashable
1787
+
1788
+ # The type of the event. The type can be custom or predefined.
1789
+ # Possible values include, but are not limited to, the following:
1790
+ # * `anniversary`
1791
+ # * `other`
1792
+ # Corresponds to the JSON property `type`
1793
+ # @return [String]
1794
+ attr_accessor :type
1795
+
1796
+ # Metadata about a field.
1797
+ # Corresponds to the JSON property `metadata`
1798
+ # @return [Google::Apis::PeopleV1::FieldMetadata]
1799
+ attr_accessor :metadata
1800
+
1801
+ # Represents a whole calendar date, for example a date of birth. The time
1802
+ # of day and time zone are either specified elsewhere or are not
1803
+ # significant. The date is relative to the
1804
+ # [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
1805
+ # Proleptic_Gregorian_calendar).
1806
+ # The day may be 0 to represent a year and month where the day is not
1807
+ # significant. The year may be 0 to represent a month and day independent
1808
+ # of year; for example, anniversary date.
1809
+ # Corresponds to the JSON property `date`
1810
+ # @return [Google::Apis::PeopleV1::Date]
1811
+ attr_accessor :date
1812
+
1813
+ # The read-only type of the event translated and formatted in the
1814
+ # viewer's account locale or the `Accept-Language` HTTP header locale.
1815
+ # Corresponds to the JSON property `formattedType`
1816
+ # @return [String]
1817
+ attr_accessor :formatted_type
1818
+
1819
+ def initialize(**args)
1820
+ update!(**args)
1821
+ end
1822
+
1823
+ # Update properties of this object
1824
+ def update!(**args)
1825
+ @type = args[:type] if args.key?(:type)
1826
+ @metadata = args[:metadata] if args.key?(:metadata)
1827
+ @date = args[:date] if args.key?(:date)
1828
+ @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
1829
+ end
1830
+ end
1828
1831
  end
1829
1832
  end
1830
1833
  end