google-api-client 0.9.1 → 0.9.2

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