google-api-client 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services
26
26
  module GamesConfigurationV1configuration
27
27
  VERSION = 'V1configuration'
28
- REVISION = '20160111'
28
+ REVISION = '20160203'
29
29
 
30
30
  # View and manage your Google Play Developer account
31
31
  AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
@@ -80,14 +80,14 @@ module Google
80
80
 
81
81
  # Update properties of this object
82
82
  def update!(**args)
83
- @achievement_type = args[:achievement_type] unless args[:achievement_type].nil?
84
- @draft = args[:draft] unless args[:draft].nil?
85
- @id = args[:id] unless args[:id].nil?
86
- @initial_state = args[:initial_state] unless args[:initial_state].nil?
87
- @kind = args[:kind] unless args[:kind].nil?
88
- @published = args[:published] unless args[:published].nil?
89
- @steps_to_unlock = args[:steps_to_unlock] unless args[:steps_to_unlock].nil?
90
- @token = args[:token] unless args[:token].nil?
83
+ @achievement_type = args[:achievement_type] if args.key?(:achievement_type)
84
+ @draft = args[:draft] if args.key?(:draft)
85
+ @id = args[:id] if args.key?(:id)
86
+ @initial_state = args[:initial_state] if args.key?(:initial_state)
87
+ @kind = args[:kind] if args.key?(:kind)
88
+ @published = args[:published] if args.key?(:published)
89
+ @steps_to_unlock = args[:steps_to_unlock] if args.key?(:steps_to_unlock)
90
+ @token = args[:token] if args.key?(:token)
91
91
  end
92
92
  end
93
93
 
@@ -132,12 +132,12 @@ module Google
132
132
 
133
133
  # Update properties of this object
134
134
  def update!(**args)
135
- @description = args[:description] unless args[:description].nil?
136
- @icon_url = args[:icon_url] unless args[:icon_url].nil?
137
- @kind = args[:kind] unless args[:kind].nil?
138
- @name = args[:name] unless args[:name].nil?
139
- @point_value = args[:point_value] unless args[:point_value].nil?
140
- @sort_rank = args[:sort_rank] unless args[:sort_rank].nil?
135
+ @description = args[:description] if args.key?(:description)
136
+ @icon_url = args[:icon_url] if args.key?(:icon_url)
137
+ @kind = args[:kind] if args.key?(:kind)
138
+ @name = args[:name] if args.key?(:name)
139
+ @point_value = args[:point_value] if args.key?(:point_value)
140
+ @sort_rank = args[:sort_rank] if args.key?(:sort_rank)
141
141
  end
142
142
  end
143
143
 
@@ -167,9 +167,9 @@ module Google
167
167
 
168
168
  # Update properties of this object
169
169
  def update!(**args)
170
- @items = args[:items] unless args[:items].nil?
171
- @kind = args[:kind] unless args[:kind].nil?
172
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
170
+ @items = args[:items] if args.key?(:items)
171
+ @kind = args[:kind] if args.key?(:kind)
172
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
173
173
  end
174
174
  end
175
175
 
@@ -213,12 +213,12 @@ module Google
213
213
 
214
214
  # Update properties of this object
215
215
  def update!(**args)
216
- @few = args[:few] unless args[:few].nil?
217
- @many = args[:many] unless args[:many].nil?
218
- @one = args[:one] unless args[:one].nil?
219
- @other = args[:other] unless args[:other].nil?
220
- @two = args[:two] unless args[:two].nil?
221
- @zero = args[:zero] unless args[:zero].nil?
216
+ @few = args[:few] if args.key?(:few)
217
+ @many = args[:many] if args.key?(:many)
218
+ @one = args[:one] if args.key?(:one)
219
+ @other = args[:other] if args.key?(:other)
220
+ @two = args[:two] if args.key?(:two)
221
+ @zero = args[:zero] if args.key?(:zero)
222
222
  end
223
223
  end
224
224
 
@@ -258,10 +258,10 @@ module Google
258
258
 
259
259
  # Update properties of this object
260
260
  def update!(**args)
261
- @currency_code = args[:currency_code] unless args[:currency_code].nil?
262
- @num_decimal_places = args[:num_decimal_places] unless args[:num_decimal_places].nil?
263
- @number_format_type = args[:number_format_type] unless args[:number_format_type].nil?
264
- @suffix = args[:suffix] unless args[:suffix].nil?
261
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
262
+ @num_decimal_places = args[:num_decimal_places] if args.key?(:num_decimal_places)
263
+ @number_format_type = args[:number_format_type] if args.key?(:number_format_type)
264
+ @suffix = args[:suffix] if args.key?(:suffix)
265
265
  end
266
266
  end
267
267
 
@@ -296,10 +296,10 @@ module Google
296
296
 
297
297
  # Update properties of this object
298
298
  def update!(**args)
299
- @image_type = args[:image_type] unless args[:image_type].nil?
300
- @kind = args[:kind] unless args[:kind].nil?
301
- @resource_id = args[:resource_id] unless args[:resource_id].nil?
302
- @url = args[:url] unless args[:url].nil?
299
+ @image_type = args[:image_type] if args.key?(:image_type)
300
+ @kind = args[:kind] if args.key?(:kind)
301
+ @resource_id = args[:resource_id] if args.key?(:resource_id)
302
+ @url = args[:url] if args.key?(:url)
303
303
  end
304
304
  end
305
305
 
@@ -357,14 +357,14 @@ module Google
357
357
 
358
358
  # Update properties of this object
359
359
  def update!(**args)
360
- @draft = args[:draft] unless args[:draft].nil?
361
- @id = args[:id] unless args[:id].nil?
362
- @kind = args[:kind] unless args[:kind].nil?
363
- @published = args[:published] unless args[:published].nil?
364
- @score_max = args[:score_max] unless args[:score_max].nil?
365
- @score_min = args[:score_min] unless args[:score_min].nil?
366
- @score_order = args[:score_order] unless args[:score_order].nil?
367
- @token = args[:token] unless args[:token].nil?
360
+ @draft = args[:draft] if args.key?(:draft)
361
+ @id = args[:id] if args.key?(:id)
362
+ @kind = args[:kind] if args.key?(:kind)
363
+ @published = args[:published] if args.key?(:published)
364
+ @score_max = args[:score_max] if args.key?(:score_max)
365
+ @score_min = args[:score_min] if args.key?(:score_min)
366
+ @score_order = args[:score_order] if args.key?(:score_order)
367
+ @token = args[:token] if args.key?(:token)
368
368
  end
369
369
  end
370
370
 
@@ -404,11 +404,11 @@ module Google
404
404
 
405
405
  # Update properties of this object
406
406
  def update!(**args)
407
- @icon_url = args[:icon_url] unless args[:icon_url].nil?
408
- @kind = args[:kind] unless args[:kind].nil?
409
- @name = args[:name] unless args[:name].nil?
410
- @score_format = args[:score_format] unless args[:score_format].nil?
411
- @sort_rank = args[:sort_rank] unless args[:sort_rank].nil?
407
+ @icon_url = args[:icon_url] if args.key?(:icon_url)
408
+ @kind = args[:kind] if args.key?(:kind)
409
+ @name = args[:name] if args.key?(:name)
410
+ @score_format = args[:score_format] if args.key?(:score_format)
411
+ @sort_rank = args[:sort_rank] if args.key?(:sort_rank)
412
412
  end
413
413
  end
414
414
 
@@ -438,9 +438,9 @@ module Google
438
438
 
439
439
  # Update properties of this object
440
440
  def update!(**args)
441
- @items = args[:items] unless args[:items].nil?
442
- @kind = args[:kind] unless args[:kind].nil?
443
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
441
+ @items = args[:items] if args.key?(:items)
442
+ @kind = args[:kind] if args.key?(:kind)
443
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
444
444
  end
445
445
  end
446
446
 
@@ -470,9 +470,9 @@ module Google
470
470
 
471
471
  # Update properties of this object
472
472
  def update!(**args)
473
- @kind = args[:kind] unless args[:kind].nil?
474
- @locale = args[:locale] unless args[:locale].nil?
475
- @value = args[:value] unless args[:value].nil?
473
+ @kind = args[:kind] if args.key?(:kind)
474
+ @locale = args[:locale] if args.key?(:locale)
475
+ @value = args[:value] if args.key?(:value)
476
476
  end
477
477
  end
478
478
 
@@ -497,8 +497,8 @@ module Google
497
497
 
498
498
  # Update properties of this object
499
499
  def update!(**args)
500
- @kind = args[:kind] unless args[:kind].nil?
501
- @translations = args[:translations] unless args[:translations].nil?
500
+ @kind = args[:kind] if args.key?(:kind)
501
+ @translations = args[:translations] if args.key?(:translations)
502
502
  end
503
503
  end
504
504
  end
@@ -25,12 +25,12 @@ module Google
25
25
  # @see https://developers.google.com/games/services
26
26
  module GamesManagementV1management
27
27
  VERSION = 'V1management'
28
- REVISION = '20160111'
28
+ REVISION = '20160203'
29
29
 
30
30
  # Share your Google+ profile information and view and manage your game activity
31
31
  AUTH_GAMES = 'https://www.googleapis.com/auth/games'
32
32
 
33
- # Know your basic profile info and list of people in your circles.
33
+ # Know the list of people in your circles, your age range, and language
34
34
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
35
35
  end
36
36
  end
@@ -43,8 +43,8 @@ module Google
43
43
 
44
44
  # Update properties of this object
45
45
  def update!(**args)
46
- @kind = args[:kind] unless args[:kind].nil?
47
- @results = args[:results] unless args[:results].nil?
46
+ @kind = args[:kind] if args.key?(:kind)
47
+ @results = args[:results] if args.key?(:results)
48
48
  end
49
49
  end
50
50
 
@@ -69,8 +69,8 @@ module Google
69
69
 
70
70
  # Update properties of this object
71
71
  def update!(**args)
72
- @achievement_ids = args[:achievement_ids] unless args[:achievement_ids].nil?
73
- @kind = args[:kind] unless args[:kind].nil?
72
+ @achievement_ids = args[:achievement_ids] if args.key?(:achievement_ids)
73
+ @kind = args[:kind] if args.key?(:kind)
74
74
  end
75
75
  end
76
76
 
@@ -111,10 +111,10 @@ module Google
111
111
 
112
112
  # Update properties of this object
113
113
  def update!(**args)
114
- @current_state = args[:current_state] unless args[:current_state].nil?
115
- @definition_id = args[:definition_id] unless args[:definition_id].nil?
116
- @kind = args[:kind] unless args[:kind].nil?
117
- @update_occurred = args[:update_occurred] unless args[:update_occurred].nil?
114
+ @current_state = args[:current_state] if args.key?(:current_state)
115
+ @definition_id = args[:definition_id] if args.key?(:definition_id)
116
+ @kind = args[:kind] if args.key?(:kind)
117
+ @update_occurred = args[:update_occurred] if args.key?(:update_occurred)
118
118
  end
119
119
  end
120
120
 
@@ -139,8 +139,8 @@ module Google
139
139
 
140
140
  # Update properties of this object
141
141
  def update!(**args)
142
- @event_ids = args[:event_ids] unless args[:event_ids].nil?
143
- @kind = args[:kind] unless args[:kind].nil?
142
+ @event_ids = args[:event_ids] if args.key?(:event_ids)
143
+ @kind = args[:kind] if args.key?(:kind)
144
144
  end
145
145
  end
146
146
 
@@ -167,8 +167,8 @@ module Google
167
167
 
168
168
  # Update properties of this object
169
169
  def update!(**args)
170
- @auto_matched = args[:auto_matched] unless args[:auto_matched].nil?
171
- @time_millis = args[:time_millis] unless args[:time_millis].nil?
170
+ @auto_matched = args[:auto_matched] if args.key?(:auto_matched)
171
+ @time_millis = args[:time_millis] if args.key?(:time_millis)
172
172
  end
173
173
  end
174
174
 
@@ -202,10 +202,10 @@ module Google
202
202
 
203
203
  # Update properties of this object
204
204
  def update!(**args)
205
- @current_experience_points = args[:current_experience_points] unless args[:current_experience_points].nil?
206
- @current_level = args[:current_level] unless args[:current_level].nil?
207
- @last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] unless args[:last_level_up_timestamp_millis].nil?
208
- @next_level = args[:next_level] unless args[:next_level].nil?
205
+ @current_experience_points = args[:current_experience_points] if args.key?(:current_experience_points)
206
+ @current_level = args[:current_level] if args.key?(:current_level)
207
+ @last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] if args.key?(:last_level_up_timestamp_millis)
208
+ @next_level = args[:next_level] if args.key?(:next_level)
209
209
  end
210
210
  end
211
211
 
@@ -234,9 +234,9 @@ module Google
234
234
 
235
235
  # Update properties of this object
236
236
  def update!(**args)
237
- @level = args[:level] unless args[:level].nil?
238
- @max_experience_points = args[:max_experience_points] unless args[:max_experience_points].nil?
239
- @min_experience_points = args[:min_experience_points] unless args[:min_experience_points].nil?
237
+ @level = args[:level] if args.key?(:level)
238
+ @max_experience_points = args[:max_experience_points] if args.key?(:max_experience_points)
239
+ @min_experience_points = args[:min_experience_points] if args.key?(:min_experience_points)
240
240
  end
241
241
  end
242
242
 
@@ -266,9 +266,9 @@ module Google
266
266
 
267
267
  # Update properties of this object
268
268
  def update!(**args)
269
- @hidden_time_millis = args[:hidden_time_millis] unless args[:hidden_time_millis].nil?
270
- @kind = args[:kind] unless args[:kind].nil?
271
- @player = args[:player] unless args[:player].nil?
269
+ @hidden_time_millis = args[:hidden_time_millis] if args.key?(:hidden_time_millis)
270
+ @kind = args[:kind] if args.key?(:kind)
271
+ @player = args[:player] if args.key?(:player)
272
272
  end
273
273
  end
274
274
 
@@ -298,9 +298,9 @@ module Google
298
298
 
299
299
  # Update properties of this object
300
300
  def update!(**args)
301
- @items = args[:items] unless args[:items].nil?
302
- @kind = args[:kind] unless args[:kind].nil?
303
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
301
+ @items = args[:items] if args.key?(:items)
302
+ @kind = args[:kind] if args.key?(:kind)
303
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
304
304
  end
305
305
  end
306
306
 
@@ -351,6 +351,14 @@ module Google
351
351
  # @return [Google::Apis::GamesManagementV1management::Player::Name]
352
352
  attr_accessor :name
353
353
 
354
+ # The player ID that was used for this player the first time they signed into
355
+ # the game in question. This is only populated for calls to player.get for the
356
+ # requesting player, only if the player ID has subsequently changed, and only to
357
+ # clients that support remapping player IDs.
358
+ # Corresponds to the JSON property `originalPlayerId`
359
+ # @return [String]
360
+ attr_accessor :original_player_id
361
+
354
362
  # The ID of the player.
355
363
  # Corresponds to the JSON property `playerId`
356
364
  # @return [String]
@@ -367,16 +375,17 @@ module Google
367
375
 
368
376
  # Update properties of this object
369
377
  def update!(**args)
370
- @avatar_image_url = args[:avatar_image_url] unless args[:avatar_image_url].nil?
371
- @banner_url_landscape = args[:banner_url_landscape] unless args[:banner_url_landscape].nil?
372
- @banner_url_portrait = args[:banner_url_portrait] unless args[:banner_url_portrait].nil?
373
- @display_name = args[:display_name] unless args[:display_name].nil?
374
- @experience_info = args[:experience_info] unless args[:experience_info].nil?
375
- @kind = args[:kind] unless args[:kind].nil?
376
- @last_played_with = args[:last_played_with] unless args[:last_played_with].nil?
377
- @name = args[:name] unless args[:name].nil?
378
- @player_id = args[:player_id] unless args[:player_id].nil?
379
- @title = args[:title] unless args[:title].nil?
378
+ @avatar_image_url = args[:avatar_image_url] if args.key?(:avatar_image_url)
379
+ @banner_url_landscape = args[:banner_url_landscape] if args.key?(:banner_url_landscape)
380
+ @banner_url_portrait = args[:banner_url_portrait] if args.key?(:banner_url_portrait)
381
+ @display_name = args[:display_name] if args.key?(:display_name)
382
+ @experience_info = args[:experience_info] if args.key?(:experience_info)
383
+ @kind = args[:kind] if args.key?(:kind)
384
+ @last_played_with = args[:last_played_with] if args.key?(:last_played_with)
385
+ @name = args[:name] if args.key?(:name)
386
+ @original_player_id = args[:original_player_id] if args.key?(:original_player_id)
387
+ @player_id = args[:player_id] if args.key?(:player_id)
388
+ @title = args[:title] if args.key?(:title)
380
389
  end
381
390
 
382
391
  # An object representation of the individual components of the player's name.
@@ -400,8 +409,8 @@ module Google
400
409
 
401
410
  # Update properties of this object
402
411
  def update!(**args)
403
- @family_name = args[:family_name] unless args[:family_name].nil?
404
- @given_name = args[:given_name] unless args[:given_name].nil?
412
+ @family_name = args[:family_name] if args.key?(:family_name)
413
+ @given_name = args[:given_name] if args.key?(:given_name)
405
414
  end
406
415
  end
407
416
  end
@@ -427,8 +436,8 @@ module Google
427
436
 
428
437
  # Update properties of this object
429
438
  def update!(**args)
430
- @kind = args[:kind] unless args[:kind].nil?
431
- @results = args[:results] unless args[:results].nil?
439
+ @kind = args[:kind] if args.key?(:kind)
440
+ @results = args[:results] if args.key?(:results)
432
441
  end
433
442
  end
434
443
 
@@ -462,9 +471,9 @@ module Google
462
471
 
463
472
  # Update properties of this object
464
473
  def update!(**args)
465
- @definition_id = args[:definition_id] unless args[:definition_id].nil?
466
- @kind = args[:kind] unless args[:kind].nil?
467
- @reset_score_time_spans = args[:reset_score_time_spans] unless args[:reset_score_time_spans].nil?
474
+ @definition_id = args[:definition_id] if args.key?(:definition_id)
475
+ @kind = args[:kind] if args.key?(:kind)
476
+ @reset_score_time_spans = args[:reset_score_time_spans] if args.key?(:reset_score_time_spans)
468
477
  end
469
478
  end
470
479
 
@@ -489,8 +498,8 @@ module Google
489
498
 
490
499
  # Update properties of this object
491
500
  def update!(**args)
492
- @kind = args[:kind] unless args[:kind].nil?
493
- @quest_ids = args[:quest_ids] unless args[:quest_ids].nil?
501
+ @kind = args[:kind] if args.key?(:kind)
502
+ @quest_ids = args[:quest_ids] if args.key?(:quest_ids)
494
503
  end
495
504
  end
496
505
 
@@ -515,8 +524,8 @@ module Google
515
524
 
516
525
  # Update properties of this object
517
526
  def update!(**args)
518
- @kind = args[:kind] unless args[:kind].nil?
519
- @leaderboard_ids = args[:leaderboard_ids] unless args[:leaderboard_ids].nil?
527
+ @kind = args[:kind] if args.key?(:kind)
528
+ @leaderboard_ids = args[:leaderboard_ids] if args.key?(:leaderboard_ids)
520
529
  end
521
530
  end
522
531
  end
@@ -180,6 +180,7 @@ module Google
180
180
 
181
181
  property :name, as: 'name', class: Google::Apis::GamesManagementV1management::Player::Name, decorator: Google::Apis::GamesManagementV1management::Player::Name::Representation
182
182
 
183
+ property :original_player_id, as: 'originalPlayerId'
183
184
  property :player_id, as: 'playerId'
184
185
  property :title, as: 'title'
185
186
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services/
26
26
  module GamesV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160111'
28
+ REVISION = '20160203'
29
29
 
30
30
  # View and manage its own configuration data in your Google Drive
31
31
  AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
@@ -33,7 +33,7 @@ module Google
33
33
  # Share your Google+ profile information and view and manage your game activity
34
34
  AUTH_GAMES = 'https://www.googleapis.com/auth/games'
35
35
 
36
- # Know your basic profile info and list of people in your circles.
36
+ # Know the list of people in your circles, your age range, and language
37
37
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
38
38
  end
39
39
  end
@@ -109,19 +109,19 @@ module Google
109
109
 
110
110
  # Update properties of this object
111
111
  def update!(**args)
112
- @achievement_type = args[:achievement_type] unless args[:achievement_type].nil?
113
- @description = args[:description] unless args[:description].nil?
114
- @experience_points = args[:experience_points] unless args[:experience_points].nil?
115
- @formatted_total_steps = args[:formatted_total_steps] unless args[:formatted_total_steps].nil?
116
- @id = args[:id] unless args[:id].nil?
117
- @initial_state = args[:initial_state] unless args[:initial_state].nil?
118
- @is_revealed_icon_url_default = args[:is_revealed_icon_url_default] unless args[:is_revealed_icon_url_default].nil?
119
- @is_unlocked_icon_url_default = args[:is_unlocked_icon_url_default] unless args[:is_unlocked_icon_url_default].nil?
120
- @kind = args[:kind] unless args[:kind].nil?
121
- @name = args[:name] unless args[:name].nil?
122
- @revealed_icon_url = args[:revealed_icon_url] unless args[:revealed_icon_url].nil?
123
- @total_steps = args[:total_steps] unless args[:total_steps].nil?
124
- @unlocked_icon_url = args[:unlocked_icon_url] unless args[:unlocked_icon_url].nil?
112
+ @achievement_type = args[:achievement_type] if args.key?(:achievement_type)
113
+ @description = args[:description] if args.key?(:description)
114
+ @experience_points = args[:experience_points] if args.key?(:experience_points)
115
+ @formatted_total_steps = args[:formatted_total_steps] if args.key?(:formatted_total_steps)
116
+ @id = args[:id] if args.key?(:id)
117
+ @initial_state = args[:initial_state] if args.key?(:initial_state)
118
+ @is_revealed_icon_url_default = args[:is_revealed_icon_url_default] if args.key?(:is_revealed_icon_url_default)
119
+ @is_unlocked_icon_url_default = args[:is_unlocked_icon_url_default] if args.key?(:is_unlocked_icon_url_default)
120
+ @kind = args[:kind] if args.key?(:kind)
121
+ @name = args[:name] if args.key?(:name)
122
+ @revealed_icon_url = args[:revealed_icon_url] if args.key?(:revealed_icon_url)
123
+ @total_steps = args[:total_steps] if args.key?(:total_steps)
124
+ @unlocked_icon_url = args[:unlocked_icon_url] if args.key?(:unlocked_icon_url)
125
125
  end
126
126
  end
127
127
 
@@ -151,9 +151,9 @@ module Google
151
151
 
152
152
  # Update properties of this object
153
153
  def update!(**args)
154
- @items = args[:items] unless args[:items].nil?
155
- @kind = args[:kind] unless args[:kind].nil?
156
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
154
+ @items = args[:items] if args.key?(:items)
155
+ @kind = args[:kind] if args.key?(:kind)
156
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
157
157
  end
158
158
  end
159
159
 
@@ -185,9 +185,9 @@ module Google
185
185
 
186
186
  # Update properties of this object
187
187
  def update!(**args)
188
- @current_steps = args[:current_steps] unless args[:current_steps].nil?
189
- @kind = args[:kind] unless args[:kind].nil?
190
- @newly_unlocked = args[:newly_unlocked] unless args[:newly_unlocked].nil?
188
+ @current_steps = args[:current_steps] if args.key?(:current_steps)
189
+ @kind = args[:kind] if args.key?(:kind)
190
+ @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked)
191
191
  end
192
192
  end
193
193
 
@@ -216,8 +216,8 @@ module Google
216
216
 
217
217
  # Update properties of this object
218
218
  def update!(**args)
219
- @current_state = args[:current_state] unless args[:current_state].nil?
220
- @kind = args[:kind] unless args[:kind].nil?
219
+ @current_state = args[:current_state] if args.key?(:current_state)
220
+ @kind = args[:kind] if args.key?(:kind)
221
221
  end
222
222
  end
223
223
 
@@ -249,9 +249,9 @@ module Google
249
249
 
250
250
  # Update properties of this object
251
251
  def update!(**args)
252
- @current_steps = args[:current_steps] unless args[:current_steps].nil?
253
- @kind = args[:kind] unless args[:kind].nil?
254
- @newly_unlocked = args[:newly_unlocked] unless args[:newly_unlocked].nil?
252
+ @current_steps = args[:current_steps] if args.key?(:current_steps)
253
+ @kind = args[:kind] if args.key?(:kind)
254
+ @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked)
255
255
  end
256
256
  end
257
257
 
@@ -278,8 +278,8 @@ module Google
278
278
 
279
279
  # Update properties of this object
280
280
  def update!(**args)
281
- @kind = args[:kind] unless args[:kind].nil?
282
- @newly_unlocked = args[:newly_unlocked] unless args[:newly_unlocked].nil?
281
+ @kind = args[:kind] if args.key?(:kind)
282
+ @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked)
283
283
  end
284
284
  end
285
285
 
@@ -304,8 +304,8 @@ module Google
304
304
 
305
305
  # Update properties of this object
306
306
  def update!(**args)
307
- @kind = args[:kind] unless args[:kind].nil?
308
- @updates = args[:updates] unless args[:updates].nil?
307
+ @kind = args[:kind] if args.key?(:kind)
308
+ @updates = args[:updates] if args.key?(:updates)
309
309
  end
310
310
  end
311
311
 
@@ -330,8 +330,8 @@ module Google
330
330
 
331
331
  # Update properties of this object
332
332
  def update!(**args)
333
- @kind = args[:kind] unless args[:kind].nil?
334
- @updated_achievements = args[:updated_achievements] unless args[:updated_achievements].nil?
333
+ @kind = args[:kind] if args.key?(:kind)
334
+ @updated_achievements = args[:updated_achievements] if args.key?(:updated_achievements)
335
335
  end
336
336
  end
337
337
 
@@ -377,11 +377,11 @@ module Google
377
377
 
378
378
  # Update properties of this object
379
379
  def update!(**args)
380
- @achievement_id = args[:achievement_id] unless args[:achievement_id].nil?
381
- @increment_payload = args[:increment_payload] unless args[:increment_payload].nil?
382
- @kind = args[:kind] unless args[:kind].nil?
383
- @set_steps_at_least_payload = args[:set_steps_at_least_payload] unless args[:set_steps_at_least_payload].nil?
384
- @update_type = args[:update_type] unless args[:update_type].nil?
380
+ @achievement_id = args[:achievement_id] if args.key?(:achievement_id)
381
+ @increment_payload = args[:increment_payload] if args.key?(:increment_payload)
382
+ @kind = args[:kind] if args.key?(:kind)
383
+ @set_steps_at_least_payload = args[:set_steps_at_least_payload] if args.key?(:set_steps_at_least_payload)
384
+ @update_type = args[:update_type] if args.key?(:update_type)
385
385
  end
386
386
  end
387
387
 
@@ -433,12 +433,12 @@ module Google
433
433
 
434
434
  # Update properties of this object
435
435
  def update!(**args)
436
- @achievement_id = args[:achievement_id] unless args[:achievement_id].nil?
437
- @current_state = args[:current_state] unless args[:current_state].nil?
438
- @current_steps = args[:current_steps] unless args[:current_steps].nil?
439
- @kind = args[:kind] unless args[:kind].nil?
440
- @newly_unlocked = args[:newly_unlocked] unless args[:newly_unlocked].nil?
441
- @update_occurred = args[:update_occurred] unless args[:update_occurred].nil?
436
+ @achievement_id = args[:achievement_id] if args.key?(:achievement_id)
437
+ @current_state = args[:current_state] if args.key?(:current_state)
438
+ @current_steps = args[:current_steps] if args.key?(:current_steps)
439
+ @kind = args[:kind] if args.key?(:kind)
440
+ @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked)
441
+ @update_occurred = args[:update_occurred] if args.key?(:update_occurred)
442
442
  end
443
443
  end
444
444
 
@@ -478,11 +478,11 @@ module Google
478
478
 
479
479
  # Update properties of this object
480
480
  def update!(**args)
481
- @count = args[:count] unless args[:count].nil?
482
- @kind = args[:kind] unless args[:kind].nil?
483
- @max = args[:max] unless args[:max].nil?
484
- @min = args[:min] unless args[:min].nil?
485
- @sum = args[:sum] unless args[:sum].nil?
481
+ @count = args[:count] if args.key?(:count)
482
+ @kind = args[:kind] if args.key?(:kind)
483
+ @max = args[:max] if args.key?(:max)
484
+ @min = args[:min] if args.key?(:min)
485
+ @sum = args[:sum] if args.key?(:sum)
486
486
  end
487
487
  end
488
488
 
@@ -512,9 +512,9 @@ module Google
512
512
 
513
513
  # Update properties of this object
514
514
  def update!(**args)
515
- @avatar_image_url = args[:avatar_image_url] unless args[:avatar_image_url].nil?
516
- @display_name = args[:display_name] unless args[:display_name].nil?
517
- @kind = args[:kind] unless args[:kind].nil?
515
+ @avatar_image_url = args[:avatar_image_url] if args.key?(:avatar_image_url)
516
+ @display_name = args[:display_name] if args.key?(:display_name)
517
+ @kind = args[:kind] if args.key?(:kind)
518
518
  end
519
519
  end
520
520
 
@@ -597,19 +597,19 @@ module Google
597
597
 
598
598
  # Update properties of this object
599
599
  def update!(**args)
600
- @achievement_count = args[:achievement_count] unless args[:achievement_count].nil?
601
- @assets = args[:assets] unless args[:assets].nil?
602
- @author = args[:author] unless args[:author].nil?
603
- @category = args[:category] unless args[:category].nil?
604
- @description = args[:description] unless args[:description].nil?
605
- @enabled_features = args[:enabled_features] unless args[:enabled_features].nil?
606
- @id = args[:id] unless args[:id].nil?
607
- @instances = args[:instances] unless args[:instances].nil?
608
- @kind = args[:kind] unless args[:kind].nil?
609
- @last_updated_timestamp = args[:last_updated_timestamp] unless args[:last_updated_timestamp].nil?
610
- @leaderboard_count = args[:leaderboard_count] unless args[:leaderboard_count].nil?
611
- @name = args[:name] unless args[:name].nil?
612
- @theme_color = args[:theme_color] unless args[:theme_color].nil?
600
+ @achievement_count = args[:achievement_count] if args.key?(:achievement_count)
601
+ @assets = args[:assets] if args.key?(:assets)
602
+ @author = args[:author] if args.key?(:author)
603
+ @category = args[:category] if args.key?(:category)
604
+ @description = args[:description] if args.key?(:description)
605
+ @enabled_features = args[:enabled_features] if args.key?(:enabled_features)
606
+ @id = args[:id] if args.key?(:id)
607
+ @instances = args[:instances] if args.key?(:instances)
608
+ @kind = args[:kind] if args.key?(:kind)
609
+ @last_updated_timestamp = args[:last_updated_timestamp] if args.key?(:last_updated_timestamp)
610
+ @leaderboard_count = args[:leaderboard_count] if args.key?(:leaderboard_count)
611
+ @name = args[:name] if args.key?(:name)
612
+ @theme_color = args[:theme_color] if args.key?(:theme_color)
613
613
  end
614
614
  end
615
615
 
@@ -639,9 +639,9 @@ module Google
639
639
 
640
640
  # Update properties of this object
641
641
  def update!(**args)
642
- @kind = args[:kind] unless args[:kind].nil?
643
- @primary = args[:primary] unless args[:primary].nil?
644
- @secondary = args[:secondary] unless args[:secondary].nil?
642
+ @kind = args[:kind] if args.key?(:kind)
643
+ @primary = args[:primary] if args.key?(:primary)
644
+ @secondary = args[:secondary] if args.key?(:secondary)
645
645
  end
646
646
  end
647
647
 
@@ -667,8 +667,8 @@ module Google
667
667
 
668
668
  # Update properties of this object
669
669
  def update!(**args)
670
- @kind = args[:kind] unless args[:kind].nil?
671
- @player_id = args[:player_id] unless args[:player_id].nil?
670
+ @kind = args[:kind] if args.key?(:kind)
671
+ @player_id = args[:player_id] if args.key?(:player_id)
672
672
  end
673
673
  end
674
674
 
@@ -698,9 +698,9 @@ module Google
698
698
 
699
699
  # Update properties of this object
700
700
  def update!(**args)
701
- @category = args[:category] unless args[:category].nil?
702
- @experience_points = args[:experience_points] unless args[:experience_points].nil?
703
- @kind = args[:kind] unless args[:kind].nil?
701
+ @category = args[:category] if args.key?(:category)
702
+ @experience_points = args[:experience_points] if args.key?(:experience_points)
703
+ @kind = args[:kind] if args.key?(:kind)
704
704
  end
705
705
  end
706
706
 
@@ -730,9 +730,9 @@ module Google
730
730
 
731
731
  # Update properties of this object
732
732
  def update!(**args)
733
- @items = args[:items] unless args[:items].nil?
734
- @kind = args[:kind] unless args[:kind].nil?
735
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
733
+ @items = args[:items] if args.key?(:items)
734
+ @kind = args[:kind] if args.key?(:kind)
735
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
736
736
  end
737
737
  end
738
738
 
@@ -773,9 +773,9 @@ module Google
773
773
 
774
774
  # Update properties of this object
775
775
  def update!(**args)
776
- @failure_cause = args[:failure_cause] unless args[:failure_cause].nil?
777
- @kind = args[:kind] unless args[:kind].nil?
778
- @range = args[:range] unless args[:range].nil?
776
+ @failure_cause = args[:failure_cause] if args.key?(:failure_cause)
777
+ @kind = args[:kind] if args.key?(:kind)
778
+ @range = args[:range] if args.key?(:range)
779
779
  end
780
780
  end
781
781
 
@@ -800,8 +800,8 @@ module Google
800
800
 
801
801
  # Update properties of this object
802
802
  def update!(**args)
803
- @child_id = args[:child_id] unless args[:child_id].nil?
804
- @kind = args[:kind] unless args[:kind].nil?
803
+ @child_id = args[:child_id] if args.key?(:child_id)
804
+ @kind = args[:kind] if args.key?(:kind)
805
805
  end
806
806
  end
807
807
 
@@ -862,14 +862,14 @@ module Google
862
862
 
863
863
  # Update properties of this object
864
864
  def update!(**args)
865
- @child_events = args[:child_events] unless args[:child_events].nil?
866
- @description = args[:description] unless args[:description].nil?
867
- @display_name = args[:display_name] unless args[:display_name].nil?
868
- @id = args[:id] unless args[:id].nil?
869
- @image_url = args[:image_url] unless args[:image_url].nil?
870
- @is_default_image_url = args[:is_default_image_url] unless args[:is_default_image_url].nil?
871
- @kind = args[:kind] unless args[:kind].nil?
872
- @visibility = args[:visibility] unless args[:visibility].nil?
865
+ @child_events = args[:child_events] if args.key?(:child_events)
866
+ @description = args[:description] if args.key?(:description)
867
+ @display_name = args[:display_name] if args.key?(:display_name)
868
+ @id = args[:id] if args.key?(:id)
869
+ @image_url = args[:image_url] if args.key?(:image_url)
870
+ @is_default_image_url = args[:is_default_image_url] if args.key?(:is_default_image_url)
871
+ @kind = args[:kind] if args.key?(:kind)
872
+ @visibility = args[:visibility] if args.key?(:visibility)
873
873
  end
874
874
  end
875
875
 
@@ -899,9 +899,9 @@ module Google
899
899
 
900
900
  # Update properties of this object
901
901
  def update!(**args)
902
- @items = args[:items] unless args[:items].nil?
903
- @kind = args[:kind] unless args[:kind].nil?
904
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
902
+ @items = args[:items] if args.key?(:items)
903
+ @kind = args[:kind] if args.key?(:kind)
904
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
905
905
  end
906
906
  end
907
907
 
@@ -932,9 +932,9 @@ module Google
932
932
 
933
933
  # Update properties of this object
934
934
  def update!(**args)
935
- @kind = args[:kind] unless args[:kind].nil?
936
- @period_end_millis = args[:period_end_millis] unless args[:period_end_millis].nil?
937
- @period_start_millis = args[:period_start_millis] unless args[:period_start_millis].nil?
935
+ @kind = args[:kind] if args.key?(:kind)
936
+ @period_end_millis = args[:period_end_millis] if args.key?(:period_end_millis)
937
+ @period_start_millis = args[:period_start_millis] if args.key?(:period_start_millis)
938
938
  end
939
939
  end
940
940
 
@@ -964,9 +964,9 @@ module Google
964
964
 
965
965
  # Update properties of this object
966
966
  def update!(**args)
967
- @kind = args[:kind] unless args[:kind].nil?
968
- @time_period = args[:time_period] unless args[:time_period].nil?
969
- @updates = args[:updates] unless args[:updates].nil?
967
+ @kind = args[:kind] if args.key?(:kind)
968
+ @time_period = args[:time_period] if args.key?(:time_period)
969
+ @updates = args[:updates] if args.key?(:updates)
970
970
  end
971
971
  end
972
972
 
@@ -1000,9 +1000,9 @@ module Google
1000
1000
 
1001
1001
  # Update properties of this object
1002
1002
  def update!(**args)
1003
- @event_id = args[:event_id] unless args[:event_id].nil?
1004
- @failure_cause = args[:failure_cause] unless args[:failure_cause].nil?
1005
- @kind = args[:kind] unless args[:kind].nil?
1003
+ @event_id = args[:event_id] if args.key?(:event_id)
1004
+ @failure_cause = args[:failure_cause] if args.key?(:failure_cause)
1005
+ @kind = args[:kind] if args.key?(:kind)
1006
1006
  end
1007
1007
  end
1008
1008
 
@@ -1038,10 +1038,10 @@ module Google
1038
1038
 
1039
1039
  # Update properties of this object
1040
1040
  def update!(**args)
1041
- @current_time_millis = args[:current_time_millis] unless args[:current_time_millis].nil?
1042
- @kind = args[:kind] unless args[:kind].nil?
1043
- @request_id = args[:request_id] unless args[:request_id].nil?
1044
- @time_periods = args[:time_periods] unless args[:time_periods].nil?
1041
+ @current_time_millis = args[:current_time_millis] if args.key?(:current_time_millis)
1042
+ @kind = args[:kind] if args.key?(:kind)
1043
+ @request_id = args[:request_id] if args.key?(:request_id)
1044
+ @time_periods = args[:time_periods] if args.key?(:time_periods)
1045
1045
  end
1046
1046
  end
1047
1047
 
@@ -1071,9 +1071,9 @@ module Google
1071
1071
 
1072
1072
  # Update properties of this object
1073
1073
  def update!(**args)
1074
- @definition_id = args[:definition_id] unless args[:definition_id].nil?
1075
- @kind = args[:kind] unless args[:kind].nil?
1076
- @update_count = args[:update_count] unless args[:update_count].nil?
1074
+ @definition_id = args[:definition_id] if args.key?(:definition_id)
1075
+ @kind = args[:kind] if args.key?(:kind)
1076
+ @update_count = args[:update_count] if args.key?(:update_count)
1077
1077
  end
1078
1078
  end
1079
1079
 
@@ -1108,10 +1108,10 @@ module Google
1108
1108
 
1109
1109
  # Update properties of this object
1110
1110
  def update!(**args)
1111
- @batch_failures = args[:batch_failures] unless args[:batch_failures].nil?
1112
- @event_failures = args[:event_failures] unless args[:event_failures].nil?
1113
- @kind = args[:kind] unless args[:kind].nil?
1114
- @player_events = args[:player_events] unless args[:player_events].nil?
1111
+ @batch_failures = args[:batch_failures] if args.key?(:batch_failures)
1112
+ @event_failures = args[:event_failures] if args.key?(:event_failures)
1113
+ @kind = args[:kind] if args.key?(:kind)
1114
+ @player_events = args[:player_events] if args.key?(:player_events)
1115
1115
  end
1116
1116
  end
1117
1117
 
@@ -1141,9 +1141,9 @@ module Google
1141
1141
 
1142
1142
  # Update properties of this object
1143
1143
  def update!(**args)
1144
- @kind = args[:kind] unless args[:kind].nil?
1145
- @request_id = args[:request_id] unless args[:request_id].nil?
1146
- @steps = args[:steps] unless args[:steps].nil?
1144
+ @kind = args[:kind] if args.key?(:kind)
1145
+ @request_id = args[:request_id] if args.key?(:request_id)
1146
+ @steps = args[:steps] if args.key?(:steps)
1147
1147
  end
1148
1148
  end
1149
1149
 
@@ -1168,8 +1168,8 @@ module Google
1168
1168
 
1169
1169
  # Update properties of this object
1170
1170
  def update!(**args)
1171
- @kind = args[:kind] unless args[:kind].nil?
1172
- @steps = args[:steps] unless args[:steps].nil?
1171
+ @kind = args[:kind] if args.key?(:kind)
1172
+ @steps = args[:steps] if args.key?(:steps)
1173
1173
  end
1174
1174
  end
1175
1175
 
@@ -1209,11 +1209,11 @@ module Google
1209
1209
 
1210
1210
  # Update properties of this object
1211
1211
  def update!(**args)
1212
- @height = args[:height] unless args[:height].nil?
1213
- @kind = args[:kind] unless args[:kind].nil?
1214
- @name = args[:name] unless args[:name].nil?
1215
- @url = args[:url] unless args[:url].nil?
1216
- @width = args[:width] unless args[:width].nil?
1212
+ @height = args[:height] if args.key?(:height)
1213
+ @kind = args[:kind] if args.key?(:kind)
1214
+ @name = args[:name] if args.key?(:name)
1215
+ @url = args[:url] if args.key?(:url)
1216
+ @width = args[:width] if args.key?(:width)
1217
1217
  end
1218
1218
  end
1219
1219
 
@@ -1279,15 +1279,15 @@ module Google
1279
1279
 
1280
1280
  # Update properties of this object
1281
1281
  def update!(**args)
1282
- @acquisition_uri = args[:acquisition_uri] unless args[:acquisition_uri].nil?
1283
- @android_instance = args[:android_instance] unless args[:android_instance].nil?
1284
- @ios_instance = args[:ios_instance] unless args[:ios_instance].nil?
1285
- @kind = args[:kind] unless args[:kind].nil?
1286
- @name = args[:name] unless args[:name].nil?
1287
- @platform_type = args[:platform_type] unless args[:platform_type].nil?
1288
- @realtime_play = args[:realtime_play] unless args[:realtime_play].nil?
1289
- @turn_based_play = args[:turn_based_play] unless args[:turn_based_play].nil?
1290
- @web_instance = args[:web_instance] unless args[:web_instance].nil?
1282
+ @acquisition_uri = args[:acquisition_uri] if args.key?(:acquisition_uri)
1283
+ @android_instance = args[:android_instance] if args.key?(:android_instance)
1284
+ @ios_instance = args[:ios_instance] if args.key?(:ios_instance)
1285
+ @kind = args[:kind] if args.key?(:kind)
1286
+ @name = args[:name] if args.key?(:name)
1287
+ @platform_type = args[:platform_type] if args.key?(:platform_type)
1288
+ @realtime_play = args[:realtime_play] if args.key?(:realtime_play)
1289
+ @turn_based_play = args[:turn_based_play] if args.key?(:turn_based_play)
1290
+ @web_instance = args[:web_instance] if args.key?(:web_instance)
1291
1291
  end
1292
1292
  end
1293
1293
 
@@ -1324,10 +1324,10 @@ module Google
1324
1324
 
1325
1325
  # Update properties of this object
1326
1326
  def update!(**args)
1327
- @enable_piracy_check = args[:enable_piracy_check] unless args[:enable_piracy_check].nil?
1328
- @kind = args[:kind] unless args[:kind].nil?
1329
- @package_name = args[:package_name] unless args[:package_name].nil?
1330
- @preferred = args[:preferred] unless args[:preferred].nil?
1327
+ @enable_piracy_check = args[:enable_piracy_check] if args.key?(:enable_piracy_check)
1328
+ @kind = args[:kind] if args.key?(:kind)
1329
+ @package_name = args[:package_name] if args.key?(:package_name)
1330
+ @preferred = args[:preferred] if args.key?(:preferred)
1331
1331
  end
1332
1332
  end
1333
1333
 
@@ -1383,13 +1383,13 @@ module Google
1383
1383
 
1384
1384
  # Update properties of this object
1385
1385
  def update!(**args)
1386
- @bundle_identifier = args[:bundle_identifier] unless args[:bundle_identifier].nil?
1387
- @itunes_app_id = args[:itunes_app_id] unless args[:itunes_app_id].nil?
1388
- @kind = args[:kind] unless args[:kind].nil?
1389
- @preferred_for_ipad = args[:preferred_for_ipad] unless args[:preferred_for_ipad].nil?
1390
- @preferred_for_iphone = args[:preferred_for_iphone] unless args[:preferred_for_iphone].nil?
1391
- @support_ipad = args[:support_ipad] unless args[:support_ipad].nil?
1392
- @support_iphone = args[:support_iphone] unless args[:support_iphone].nil?
1386
+ @bundle_identifier = args[:bundle_identifier] if args.key?(:bundle_identifier)
1387
+ @itunes_app_id = args[:itunes_app_id] if args.key?(:itunes_app_id)
1388
+ @kind = args[:kind] if args.key?(:kind)
1389
+ @preferred_for_ipad = args[:preferred_for_ipad] if args.key?(:preferred_for_ipad)
1390
+ @preferred_for_iphone = args[:preferred_for_iphone] if args.key?(:preferred_for_iphone)
1391
+ @support_ipad = args[:support_ipad] if args.key?(:support_ipad)
1392
+ @support_iphone = args[:support_iphone] if args.key?(:support_iphone)
1393
1393
  end
1394
1394
  end
1395
1395
 
@@ -1420,9 +1420,9 @@ module Google
1420
1420
 
1421
1421
  # Update properties of this object
1422
1422
  def update!(**args)
1423
- @kind = args[:kind] unless args[:kind].nil?
1424
- @launch_url = args[:launch_url] unless args[:launch_url].nil?
1425
- @preferred = args[:preferred] unless args[:preferred].nil?
1423
+ @kind = args[:kind] if args.key?(:kind)
1424
+ @launch_url = args[:launch_url] if args.key?(:launch_url)
1425
+ @preferred = args[:preferred] if args.key?(:preferred)
1426
1426
  end
1427
1427
  end
1428
1428
 
@@ -1474,12 +1474,12 @@ module Google
1474
1474
 
1475
1475
  # Update properties of this object
1476
1476
  def update!(**args)
1477
- @icon_url = args[:icon_url] unless args[:icon_url].nil?
1478
- @id = args[:id] unless args[:id].nil?
1479
- @is_icon_url_default = args[:is_icon_url_default] unless args[:is_icon_url_default].nil?
1480
- @kind = args[:kind] unless args[:kind].nil?
1481
- @name = args[:name] unless args[:name].nil?
1482
- @order = args[:order] unless args[:order].nil?
1477
+ @icon_url = args[:icon_url] if args.key?(:icon_url)
1478
+ @id = args[:id] if args.key?(:id)
1479
+ @is_icon_url_default = args[:is_icon_url_default] if args.key?(:is_icon_url_default)
1480
+ @kind = args[:kind] if args.key?(:kind)
1481
+ @name = args[:name] if args.key?(:name)
1482
+ @order = args[:order] if args.key?(:order)
1483
1483
  end
1484
1484
  end
1485
1485
 
@@ -1545,15 +1545,15 @@ module Google
1545
1545
 
1546
1546
  # Update properties of this object
1547
1547
  def update!(**args)
1548
- @formatted_score = args[:formatted_score] unless args[:formatted_score].nil?
1549
- @formatted_score_rank = args[:formatted_score_rank] unless args[:formatted_score_rank].nil?
1550
- @kind = args[:kind] unless args[:kind].nil?
1551
- @player = args[:player] unless args[:player].nil?
1552
- @score_rank = args[:score_rank] unless args[:score_rank].nil?
1553
- @score_tag = args[:score_tag] unless args[:score_tag].nil?
1554
- @score_value = args[:score_value] unless args[:score_value].nil?
1555
- @time_span = args[:time_span] unless args[:time_span].nil?
1556
- @write_timestamp_millis = args[:write_timestamp_millis] unless args[:write_timestamp_millis].nil?
1548
+ @formatted_score = args[:formatted_score] if args.key?(:formatted_score)
1549
+ @formatted_score_rank = args[:formatted_score_rank] if args.key?(:formatted_score_rank)
1550
+ @kind = args[:kind] if args.key?(:kind)
1551
+ @player = args[:player] if args.key?(:player)
1552
+ @score_rank = args[:score_rank] if args.key?(:score_rank)
1553
+ @score_tag = args[:score_tag] if args.key?(:score_tag)
1554
+ @score_value = args[:score_value] if args.key?(:score_value)
1555
+ @time_span = args[:time_span] if args.key?(:time_span)
1556
+ @write_timestamp_millis = args[:write_timestamp_millis] if args.key?(:write_timestamp_millis)
1557
1557
  end
1558
1558
  end
1559
1559
 
@@ -1583,9 +1583,9 @@ module Google
1583
1583
 
1584
1584
  # Update properties of this object
1585
1585
  def update!(**args)
1586
- @items = args[:items] unless args[:items].nil?
1587
- @kind = args[:kind] unless args[:kind].nil?
1588
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1586
+ @items = args[:items] if args.key?(:items)
1587
+ @kind = args[:kind] if args.key?(:kind)
1588
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1589
1589
  end
1590
1590
  end
1591
1591
 
@@ -1625,11 +1625,11 @@ module Google
1625
1625
 
1626
1626
  # Update properties of this object
1627
1627
  def update!(**args)
1628
- @formatted_num_scores = args[:formatted_num_scores] unless args[:formatted_num_scores].nil?
1629
- @formatted_rank = args[:formatted_rank] unless args[:formatted_rank].nil?
1630
- @kind = args[:kind] unless args[:kind].nil?
1631
- @num_scores = args[:num_scores] unless args[:num_scores].nil?
1632
- @rank = args[:rank] unless args[:rank].nil?
1628
+ @formatted_num_scores = args[:formatted_num_scores] if args.key?(:formatted_num_scores)
1629
+ @formatted_rank = args[:formatted_rank] if args.key?(:formatted_rank)
1630
+ @kind = args[:kind] if args.key?(:kind)
1631
+ @num_scores = args[:num_scores] if args.key?(:num_scores)
1632
+ @rank = args[:rank] if args.key?(:rank)
1633
1633
  end
1634
1634
  end
1635
1635
 
@@ -1674,12 +1674,12 @@ module Google
1674
1674
 
1675
1675
  # Update properties of this object
1676
1676
  def update!(**args)
1677
- @items = args[:items] unless args[:items].nil?
1678
- @kind = args[:kind] unless args[:kind].nil?
1679
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1680
- @num_scores = args[:num_scores] unless args[:num_scores].nil?
1681
- @player_score = args[:player_score] unless args[:player_score].nil?
1682
- @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil?
1677
+ @items = args[:items] if args.key?(:items)
1678
+ @kind = args[:kind] if args.key?(:kind)
1679
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1680
+ @num_scores = args[:num_scores] if args.key?(:num_scores)
1681
+ @player_score = args[:player_score] if args.key?(:player_score)
1682
+ @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token)
1683
1683
  end
1684
1684
  end
1685
1685
 
@@ -1710,9 +1710,9 @@ module Google
1710
1710
 
1711
1711
  # Update properties of this object
1712
1712
  def update!(**args)
1713
- @current_version = args[:current_version] unless args[:current_version].nil?
1714
- @kind = args[:kind] unless args[:kind].nil?
1715
- @player_levels = args[:player_levels] unless args[:player_levels].nil?
1713
+ @current_version = args[:current_version] if args.key?(:current_version)
1714
+ @kind = args[:kind] if args.key?(:kind)
1715
+ @player_levels = args[:player_levels] if args.key?(:player_levels)
1716
1716
  end
1717
1717
  end
1718
1718
 
@@ -1770,13 +1770,13 @@ module Google
1770
1770
 
1771
1771
  # Update properties of this object
1772
1772
  def update!(**args)
1773
- @android_network_subtype = args[:android_network_subtype] unless args[:android_network_subtype].nil?
1774
- @android_network_type = args[:android_network_type] unless args[:android_network_type].nil?
1775
- @ios_network_type = args[:ios_network_type] unless args[:ios_network_type].nil?
1776
- @kind = args[:kind] unless args[:kind].nil?
1777
- @network_operator_code = args[:network_operator_code] unless args[:network_operator_code].nil?
1778
- @network_operator_name = args[:network_operator_name] unless args[:network_operator_name].nil?
1779
- @registration_latency_millis = args[:registration_latency_millis] unless args[:registration_latency_millis].nil?
1773
+ @android_network_subtype = args[:android_network_subtype] if args.key?(:android_network_subtype)
1774
+ @android_network_type = args[:android_network_type] if args.key?(:android_network_type)
1775
+ @ios_network_type = args[:ios_network_type] if args.key?(:ios_network_type)
1776
+ @kind = args[:kind] if args.key?(:kind)
1777
+ @network_operator_code = args[:network_operator_code] if args.key?(:network_operator_code)
1778
+ @network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name)
1779
+ @registration_latency_millis = args[:registration_latency_millis] if args.key?(:registration_latency_millis)
1780
1780
  end
1781
1781
  end
1782
1782
 
@@ -1823,10 +1823,10 @@ module Google
1823
1823
 
1824
1824
  # Update properties of this object
1825
1825
  def update!(**args)
1826
- @kind = args[:kind] unless args[:kind].nil?
1827
- @participant_id = args[:participant_id] unless args[:participant_id].nil?
1828
- @placing = args[:placing] unless args[:placing].nil?
1829
- @result = args[:result] unless args[:result].nil?
1826
+ @kind = args[:kind] if args.key?(:kind)
1827
+ @participant_id = args[:participant_id] if args.key?(:participant_id)
1828
+ @placing = args[:placing] if args.key?(:placing)
1829
+ @result = args[:result] if args.key?(:result)
1830
1830
  end
1831
1831
  end
1832
1832
 
@@ -1881,14 +1881,14 @@ module Google
1881
1881
 
1882
1882
  # Update properties of this object
1883
1883
  def update!(**args)
1884
- @bytes_received = args[:bytes_received] unless args[:bytes_received].nil?
1885
- @bytes_sent = args[:bytes_sent] unless args[:bytes_sent].nil?
1886
- @kind = args[:kind] unless args[:kind].nil?
1887
- @num_messages_lost = args[:num_messages_lost] unless args[:num_messages_lost].nil?
1888
- @num_messages_received = args[:num_messages_received] unless args[:num_messages_received].nil?
1889
- @num_messages_sent = args[:num_messages_sent] unless args[:num_messages_sent].nil?
1890
- @num_send_failures = args[:num_send_failures] unless args[:num_send_failures].nil?
1891
- @roundtrip_latency_millis = args[:roundtrip_latency_millis] unless args[:roundtrip_latency_millis].nil?
1884
+ @bytes_received = args[:bytes_received] if args.key?(:bytes_received)
1885
+ @bytes_sent = args[:bytes_sent] if args.key?(:bytes_sent)
1886
+ @kind = args[:kind] if args.key?(:kind)
1887
+ @num_messages_lost = args[:num_messages_lost] if args.key?(:num_messages_lost)
1888
+ @num_messages_received = args[:num_messages_received] if args.key?(:num_messages_received)
1889
+ @num_messages_sent = args[:num_messages_sent] if args.key?(:num_messages_sent)
1890
+ @num_send_failures = args[:num_send_failures] if args.key?(:num_send_failures)
1891
+ @roundtrip_latency_millis = args[:roundtrip_latency_millis] if args.key?(:roundtrip_latency_millis)
1892
1892
  end
1893
1893
  end
1894
1894
 
@@ -1928,11 +1928,11 @@ module Google
1928
1928
 
1929
1929
  # Update properties of this object
1930
1930
  def update!(**args)
1931
- @connected_timestamp_millis = args[:connected_timestamp_millis] unless args[:connected_timestamp_millis].nil?
1932
- @kind = args[:kind] unless args[:kind].nil?
1933
- @participant_id = args[:participant_id] unless args[:participant_id].nil?
1934
- @reliable_channel = args[:reliable_channel] unless args[:reliable_channel].nil?
1935
- @unreliable_channel = args[:unreliable_channel] unless args[:unreliable_channel].nil?
1931
+ @connected_timestamp_millis = args[:connected_timestamp_millis] if args.key?(:connected_timestamp_millis)
1932
+ @kind = args[:kind] if args.key?(:kind)
1933
+ @participant_id = args[:participant_id] if args.key?(:participant_id)
1934
+ @reliable_channel = args[:reliable_channel] if args.key?(:reliable_channel)
1935
+ @unreliable_channel = args[:unreliable_channel] if args.key?(:unreliable_channel)
1936
1936
  end
1937
1937
  end
1938
1938
 
@@ -1965,9 +1965,9 @@ module Google
1965
1965
 
1966
1966
  # Update properties of this object
1967
1967
  def update!(**args)
1968
- @auto_matched = args[:auto_matched] unless args[:auto_matched].nil?
1969
- @kind = args[:kind] unless args[:kind].nil?
1970
- @time_millis = args[:time_millis] unless args[:time_millis].nil?
1968
+ @auto_matched = args[:auto_matched] if args.key?(:auto_matched)
1969
+ @kind = args[:kind] if args.key?(:kind)
1970
+ @time_millis = args[:time_millis] if args.key?(:time_millis)
1971
1971
  end
1972
1972
  end
1973
1973
 
@@ -2018,6 +2018,14 @@ module Google
2018
2018
  # @return [Google::Apis::GamesV1::Player::Name]
2019
2019
  attr_accessor :name
2020
2020
 
2021
+ # The player ID that was used for this player the first time they signed into
2022
+ # the game in question. This is only populated for calls to player.get for the
2023
+ # requesting player, only if the player ID has subsequently changed, and only to
2024
+ # clients that support remapping player IDs.
2025
+ # Corresponds to the JSON property `originalPlayerId`
2026
+ # @return [String]
2027
+ attr_accessor :original_player_id
2028
+
2021
2029
  # The ID of the player.
2022
2030
  # Corresponds to the JSON property `playerId`
2023
2031
  # @return [String]
@@ -2034,16 +2042,17 @@ module Google
2034
2042
 
2035
2043
  # Update properties of this object
2036
2044
  def update!(**args)
2037
- @avatar_image_url = args[:avatar_image_url] unless args[:avatar_image_url].nil?
2038
- @banner_url_landscape = args[:banner_url_landscape] unless args[:banner_url_landscape].nil?
2039
- @banner_url_portrait = args[:banner_url_portrait] unless args[:banner_url_portrait].nil?
2040
- @display_name = args[:display_name] unless args[:display_name].nil?
2041
- @experience_info = args[:experience_info] unless args[:experience_info].nil?
2042
- @kind = args[:kind] unless args[:kind].nil?
2043
- @last_played_with = args[:last_played_with] unless args[:last_played_with].nil?
2044
- @name = args[:name] unless args[:name].nil?
2045
- @player_id = args[:player_id] unless args[:player_id].nil?
2046
- @title = args[:title] unless args[:title].nil?
2045
+ @avatar_image_url = args[:avatar_image_url] if args.key?(:avatar_image_url)
2046
+ @banner_url_landscape = args[:banner_url_landscape] if args.key?(:banner_url_landscape)
2047
+ @banner_url_portrait = args[:banner_url_portrait] if args.key?(:banner_url_portrait)
2048
+ @display_name = args[:display_name] if args.key?(:display_name)
2049
+ @experience_info = args[:experience_info] if args.key?(:experience_info)
2050
+ @kind = args[:kind] if args.key?(:kind)
2051
+ @last_played_with = args[:last_played_with] if args.key?(:last_played_with)
2052
+ @name = args[:name] if args.key?(:name)
2053
+ @original_player_id = args[:original_player_id] if args.key?(:original_player_id)
2054
+ @player_id = args[:player_id] if args.key?(:player_id)
2055
+ @title = args[:title] if args.key?(:title)
2047
2056
  end
2048
2057
 
2049
2058
  # An object representation of the individual components of the player's name.
@@ -2067,8 +2076,8 @@ module Google
2067
2076
 
2068
2077
  # Update properties of this object
2069
2078
  def update!(**args)
2070
- @family_name = args[:family_name] unless args[:family_name].nil?
2071
- @given_name = args[:given_name] unless args[:given_name].nil?
2079
+ @family_name = args[:family_name] if args.key?(:family_name)
2080
+ @given_name = args[:given_name] if args.key?(:given_name)
2072
2081
  end
2073
2082
  end
2074
2083
  end
@@ -2125,13 +2134,13 @@ module Google
2125
2134
 
2126
2135
  # Update properties of this object
2127
2136
  def update!(**args)
2128
- @achievement_state = args[:achievement_state] unless args[:achievement_state].nil?
2129
- @current_steps = args[:current_steps] unless args[:current_steps].nil?
2130
- @experience_points = args[:experience_points] unless args[:experience_points].nil?
2131
- @formatted_current_steps_string = args[:formatted_current_steps_string] unless args[:formatted_current_steps_string].nil?
2132
- @id = args[:id] unless args[:id].nil?
2133
- @kind = args[:kind] unless args[:kind].nil?
2134
- @last_updated_timestamp = args[:last_updated_timestamp] unless args[:last_updated_timestamp].nil?
2137
+ @achievement_state = args[:achievement_state] if args.key?(:achievement_state)
2138
+ @current_steps = args[:current_steps] if args.key?(:current_steps)
2139
+ @experience_points = args[:experience_points] if args.key?(:experience_points)
2140
+ @formatted_current_steps_string = args[:formatted_current_steps_string] if args.key?(:formatted_current_steps_string)
2141
+ @id = args[:id] if args.key?(:id)
2142
+ @kind = args[:kind] if args.key?(:kind)
2143
+ @last_updated_timestamp = args[:last_updated_timestamp] if args.key?(:last_updated_timestamp)
2135
2144
  end
2136
2145
  end
2137
2146
 
@@ -2161,9 +2170,9 @@ module Google
2161
2170
 
2162
2171
  # Update properties of this object
2163
2172
  def update!(**args)
2164
- @items = args[:items] unless args[:items].nil?
2165
- @kind = args[:kind] unless args[:kind].nil?
2166
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
2173
+ @items = args[:items] if args.key?(:items)
2174
+ @kind = args[:kind] if args.key?(:kind)
2175
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2167
2176
  end
2168
2177
  end
2169
2178
 
@@ -2205,11 +2214,11 @@ module Google
2205
2214
 
2206
2215
  # Update properties of this object
2207
2216
  def update!(**args)
2208
- @definition_id = args[:definition_id] unless args[:definition_id].nil?
2209
- @formatted_num_events = args[:formatted_num_events] unless args[:formatted_num_events].nil?
2210
- @kind = args[:kind] unless args[:kind].nil?
2211
- @num_events = args[:num_events] unless args[:num_events].nil?
2212
- @player_id = args[:player_id] unless args[:player_id].nil?
2217
+ @definition_id = args[:definition_id] if args.key?(:definition_id)
2218
+ @formatted_num_events = args[:formatted_num_events] if args.key?(:formatted_num_events)
2219
+ @kind = args[:kind] if args.key?(:kind)
2220
+ @num_events = args[:num_events] if args.key?(:num_events)
2221
+ @player_id = args[:player_id] if args.key?(:player_id)
2213
2222
  end
2214
2223
  end
2215
2224
 
@@ -2239,9 +2248,9 @@ module Google
2239
2248
 
2240
2249
  # Update properties of this object
2241
2250
  def update!(**args)
2242
- @items = args[:items] unless args[:items].nil?
2243
- @kind = args[:kind] unless args[:kind].nil?
2244
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
2251
+ @items = args[:items] if args.key?(:items)
2252
+ @kind = args[:kind] if args.key?(:kind)
2253
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2245
2254
  end
2246
2255
  end
2247
2256
 
@@ -2281,11 +2290,11 @@ module Google
2281
2290
 
2282
2291
  # Update properties of this object
2283
2292
  def update!(**args)
2284
- @current_experience_points = args[:current_experience_points] unless args[:current_experience_points].nil?
2285
- @current_level = args[:current_level] unless args[:current_level].nil?
2286
- @kind = args[:kind] unless args[:kind].nil?
2287
- @last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] unless args[:last_level_up_timestamp_millis].nil?
2288
- @next_level = args[:next_level] unless args[:next_level].nil?
2293
+ @current_experience_points = args[:current_experience_points] if args.key?(:current_experience_points)
2294
+ @current_level = args[:current_level] if args.key?(:current_level)
2295
+ @kind = args[:kind] if args.key?(:kind)
2296
+ @last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] if args.key?(:last_level_up_timestamp_millis)
2297
+ @next_level = args[:next_level] if args.key?(:next_level)
2289
2298
  end
2290
2299
  end
2291
2300
 
@@ -2351,15 +2360,15 @@ module Google
2351
2360
 
2352
2361
  # Update properties of this object
2353
2362
  def update!(**args)
2354
- @kind = args[:kind] unless args[:kind].nil?
2355
- @leaderboard_id = args[:leaderboard_id] unless args[:leaderboard_id].nil?
2356
- @public_rank = args[:public_rank] unless args[:public_rank].nil?
2357
- @score_string = args[:score_string] unless args[:score_string].nil?
2358
- @score_tag = args[:score_tag] unless args[:score_tag].nil?
2359
- @score_value = args[:score_value] unless args[:score_value].nil?
2360
- @social_rank = args[:social_rank] unless args[:social_rank].nil?
2361
- @time_span = args[:time_span] unless args[:time_span].nil?
2362
- @write_timestamp = args[:write_timestamp] unless args[:write_timestamp].nil?
2363
+ @kind = args[:kind] if args.key?(:kind)
2364
+ @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id)
2365
+ @public_rank = args[:public_rank] if args.key?(:public_rank)
2366
+ @score_string = args[:score_string] if args.key?(:score_string)
2367
+ @score_tag = args[:score_tag] if args.key?(:score_tag)
2368
+ @score_value = args[:score_value] if args.key?(:score_value)
2369
+ @social_rank = args[:social_rank] if args.key?(:social_rank)
2370
+ @time_span = args[:time_span] if args.key?(:time_span)
2371
+ @write_timestamp = args[:write_timestamp] if args.key?(:write_timestamp)
2363
2372
  end
2364
2373
  end
2365
2374
 
@@ -2394,10 +2403,10 @@ module Google
2394
2403
 
2395
2404
  # Update properties of this object
2396
2405
  def update!(**args)
2397
- @items = args[:items] unless args[:items].nil?
2398
- @kind = args[:kind] unless args[:kind].nil?
2399
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
2400
- @player = args[:player] unless args[:player].nil?
2406
+ @items = args[:items] if args.key?(:items)
2407
+ @kind = args[:kind] if args.key?(:kind)
2408
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2409
+ @player = args[:player] if args.key?(:player)
2401
2410
  end
2402
2411
  end
2403
2412
 
@@ -2432,10 +2441,10 @@ module Google
2432
2441
 
2433
2442
  # Update properties of this object
2434
2443
  def update!(**args)
2435
- @kind = args[:kind] unless args[:kind].nil?
2436
- @level = args[:level] unless args[:level].nil?
2437
- @max_experience_points = args[:max_experience_points] unless args[:max_experience_points].nil?
2438
- @min_experience_points = args[:min_experience_points] unless args[:min_experience_points].nil?
2444
+ @kind = args[:kind] if args.key?(:kind)
2445
+ @level = args[:level] if args.key?(:level)
2446
+ @max_experience_points = args[:max_experience_points] if args.key?(:max_experience_points)
2447
+ @min_experience_points = args[:min_experience_points] if args.key?(:min_experience_points)
2439
2448
  end
2440
2449
  end
2441
2450
 
@@ -2465,9 +2474,9 @@ module Google
2465
2474
 
2466
2475
  # Update properties of this object
2467
2476
  def update!(**args)
2468
- @items = args[:items] unless args[:items].nil?
2469
- @kind = args[:kind] unless args[:kind].nil?
2470
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
2477
+ @items = args[:items] if args.key?(:items)
2478
+ @kind = args[:kind] if args.key?(:kind)
2479
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2471
2480
  end
2472
2481
  end
2473
2482
 
@@ -2512,11 +2521,11 @@ module Google
2512
2521
 
2513
2522
  # Update properties of this object
2514
2523
  def update!(**args)
2515
- @formatted_score = args[:formatted_score] unless args[:formatted_score].nil?
2516
- @kind = args[:kind] unless args[:kind].nil?
2517
- @score = args[:score] unless args[:score].nil?
2518
- @score_tag = args[:score_tag] unless args[:score_tag].nil?
2519
- @time_span = args[:time_span] unless args[:time_span].nil?
2524
+ @formatted_score = args[:formatted_score] if args.key?(:formatted_score)
2525
+ @kind = args[:kind] if args.key?(:kind)
2526
+ @score = args[:score] if args.key?(:score)
2527
+ @score_tag = args[:score_tag] if args.key?(:score_tag)
2528
+ @time_span = args[:time_span] if args.key?(:time_span)
2520
2529
  end
2521
2530
  end
2522
2531
 
@@ -2541,8 +2550,8 @@ module Google
2541
2550
 
2542
2551
  # Update properties of this object
2543
2552
  def update!(**args)
2544
- @kind = args[:kind] unless args[:kind].nil?
2545
- @submitted_scores = args[:submitted_scores] unless args[:submitted_scores].nil?
2553
+ @kind = args[:kind] if args.key?(:kind)
2554
+ @submitted_scores = args[:submitted_scores] if args.key?(:submitted_scores)
2546
2555
  end
2547
2556
  end
2548
2557
 
@@ -2595,12 +2604,12 @@ module Google
2595
2604
 
2596
2605
  # Update properties of this object
2597
2606
  def update!(**args)
2598
- @beaten_score_time_spans = args[:beaten_score_time_spans] unless args[:beaten_score_time_spans].nil?
2599
- @formatted_score = args[:formatted_score] unless args[:formatted_score].nil?
2600
- @kind = args[:kind] unless args[:kind].nil?
2601
- @leaderboard_id = args[:leaderboard_id] unless args[:leaderboard_id].nil?
2602
- @score_tag = args[:score_tag] unless args[:score_tag].nil?
2603
- @unbeaten_scores = args[:unbeaten_scores] unless args[:unbeaten_scores].nil?
2607
+ @beaten_score_time_spans = args[:beaten_score_time_spans] if args.key?(:beaten_score_time_spans)
2608
+ @formatted_score = args[:formatted_score] if args.key?(:formatted_score)
2609
+ @kind = args[:kind] if args.key?(:kind)
2610
+ @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id)
2611
+ @score_tag = args[:score_tag] if args.key?(:score_tag)
2612
+ @unbeaten_scores = args[:unbeaten_scores] if args.key?(:unbeaten_scores)
2604
2613
  end
2605
2614
  end
2606
2615
 
@@ -2625,8 +2634,8 @@ module Google
2625
2634
 
2626
2635
  # Update properties of this object
2627
2636
  def update!(**args)
2628
- @kind = args[:kind] unless args[:kind].nil?
2629
- @scores = args[:scores] unless args[:scores].nil?
2637
+ @kind = args[:kind] if args.key?(:kind)
2638
+ @scores = args[:scores] if args.key?(:scores)
2630
2639
  end
2631
2640
  end
2632
2641
 
@@ -2665,10 +2674,10 @@ module Google
2665
2674
 
2666
2675
  # Update properties of this object
2667
2676
  def update!(**args)
2668
- @client_revision = args[:client_revision] unless args[:client_revision].nil?
2669
- @id = args[:id] unless args[:id].nil?
2670
- @kind = args[:kind] unless args[:kind].nil?
2671
- @language = args[:language] unless args[:language].nil?
2677
+ @client_revision = args[:client_revision] if args.key?(:client_revision)
2678
+ @id = args[:id] if args.key?(:id)
2679
+ @kind = args[:kind] if args.key?(:kind)
2680
+ @language = args[:language] if args.key?(:language)
2672
2681
  end
2673
2682
  end
2674
2683
 
@@ -2693,8 +2702,8 @@ module Google
2693
2702
 
2694
2703
  # Update properties of this object
2695
2704
  def update!(**args)
2696
- @ios = args[:ios] unless args[:ios].nil?
2697
- @kind = args[:kind] unless args[:kind].nil?
2705
+ @ios = args[:ios] if args.key?(:ios)
2706
+ @kind = args[:kind] if args.key?(:kind)
2698
2707
  end
2699
2708
 
2700
2709
  # A push token ID for iOS devices.
@@ -2719,8 +2728,8 @@ module Google
2719
2728
 
2720
2729
  # Update properties of this object
2721
2730
  def update!(**args)
2722
- @apns_device_token = args[:apns_device_token] unless args[:apns_device_token].nil?
2723
- @apns_environment = args[:apns_environment] unless args[:apns_environment].nil?
2731
+ @apns_device_token = args[:apns_device_token] if args.key?(:apns_device_token)
2732
+ @apns_environment = args[:apns_environment] if args.key?(:apns_environment)
2724
2733
  end
2725
2734
  end
2726
2735
  end
@@ -2835,22 +2844,22 @@ module Google
2835
2844
 
2836
2845
  # Update properties of this object
2837
2846
  def update!(**args)
2838
- @accepted_timestamp_millis = args[:accepted_timestamp_millis] unless args[:accepted_timestamp_millis].nil?
2839
- @application_id = args[:application_id] unless args[:application_id].nil?
2840
- @banner_url = args[:banner_url] unless args[:banner_url].nil?
2841
- @description = args[:description] unless args[:description].nil?
2842
- @end_timestamp_millis = args[:end_timestamp_millis] unless args[:end_timestamp_millis].nil?
2843
- @icon_url = args[:icon_url] unless args[:icon_url].nil?
2844
- @id = args[:id] unless args[:id].nil?
2845
- @is_default_banner_url = args[:is_default_banner_url] unless args[:is_default_banner_url].nil?
2846
- @is_default_icon_url = args[:is_default_icon_url] unless args[:is_default_icon_url].nil?
2847
- @kind = args[:kind] unless args[:kind].nil?
2848
- @last_updated_timestamp_millis = args[:last_updated_timestamp_millis] unless args[:last_updated_timestamp_millis].nil?
2849
- @milestones = args[:milestones] unless args[:milestones].nil?
2850
- @name = args[:name] unless args[:name].nil?
2851
- @notify_timestamp_millis = args[:notify_timestamp_millis] unless args[:notify_timestamp_millis].nil?
2852
- @start_timestamp_millis = args[:start_timestamp_millis] unless args[:start_timestamp_millis].nil?
2853
- @state = args[:state] unless args[:state].nil?
2847
+ @accepted_timestamp_millis = args[:accepted_timestamp_millis] if args.key?(:accepted_timestamp_millis)
2848
+ @application_id = args[:application_id] if args.key?(:application_id)
2849
+ @banner_url = args[:banner_url] if args.key?(:banner_url)
2850
+ @description = args[:description] if args.key?(:description)
2851
+ @end_timestamp_millis = args[:end_timestamp_millis] if args.key?(:end_timestamp_millis)
2852
+ @icon_url = args[:icon_url] if args.key?(:icon_url)
2853
+ @id = args[:id] if args.key?(:id)
2854
+ @is_default_banner_url = args[:is_default_banner_url] if args.key?(:is_default_banner_url)
2855
+ @is_default_icon_url = args[:is_default_icon_url] if args.key?(:is_default_icon_url)
2856
+ @kind = args[:kind] if args.key?(:kind)
2857
+ @last_updated_timestamp_millis = args[:last_updated_timestamp_millis] if args.key?(:last_updated_timestamp_millis)
2858
+ @milestones = args[:milestones] if args.key?(:milestones)
2859
+ @name = args[:name] if args.key?(:name)
2860
+ @notify_timestamp_millis = args[:notify_timestamp_millis] if args.key?(:notify_timestamp_millis)
2861
+ @start_timestamp_millis = args[:start_timestamp_millis] if args.key?(:start_timestamp_millis)
2862
+ @state = args[:state] if args.key?(:state)
2854
2863
  end
2855
2864
  end
2856
2865
 
@@ -2882,9 +2891,9 @@ module Google
2882
2891
 
2883
2892
  # Update properties of this object
2884
2893
  def update!(**args)
2885
- @formatted_value = args[:formatted_value] unless args[:formatted_value].nil?
2886
- @kind = args[:kind] unless args[:kind].nil?
2887
- @value = args[:value] unless args[:value].nil?
2894
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
2895
+ @kind = args[:kind] if args.key?(:kind)
2896
+ @value = args[:value] if args.key?(:value)
2888
2897
  end
2889
2898
  end
2890
2899
 
@@ -2924,11 +2933,11 @@ module Google
2924
2933
 
2925
2934
  # Update properties of this object
2926
2935
  def update!(**args)
2927
- @completion_contribution = args[:completion_contribution] unless args[:completion_contribution].nil?
2928
- @current_contribution = args[:current_contribution] unless args[:current_contribution].nil?
2929
- @event_id = args[:event_id] unless args[:event_id].nil?
2930
- @initial_player_progress = args[:initial_player_progress] unless args[:initial_player_progress].nil?
2931
- @kind = args[:kind] unless args[:kind].nil?
2936
+ @completion_contribution = args[:completion_contribution] if args.key?(:completion_contribution)
2937
+ @current_contribution = args[:current_contribution] if args.key?(:current_contribution)
2938
+ @event_id = args[:event_id] if args.key?(:event_id)
2939
+ @initial_player_progress = args[:initial_player_progress] if args.key?(:initial_player_progress)
2940
+ @kind = args[:kind] if args.key?(:kind)
2932
2941
  end
2933
2942
  end
2934
2943
 
@@ -2958,9 +2967,9 @@ module Google
2958
2967
 
2959
2968
  # Update properties of this object
2960
2969
  def update!(**args)
2961
- @items = args[:items] unless args[:items].nil?
2962
- @kind = args[:kind] unless args[:kind].nil?
2963
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
2970
+ @items = args[:items] if args.key?(:items)
2971
+ @kind = args[:kind] if args.key?(:kind)
2972
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2964
2973
  end
2965
2974
  end
2966
2975
 
@@ -3008,11 +3017,11 @@ module Google
3008
3017
 
3009
3018
  # Update properties of this object
3010
3019
  def update!(**args)
3011
- @completion_reward_data = args[:completion_reward_data] unless args[:completion_reward_data].nil?
3012
- @criteria = args[:criteria] unless args[:criteria].nil?
3013
- @id = args[:id] unless args[:id].nil?
3014
- @kind = args[:kind] unless args[:kind].nil?
3015
- @state = args[:state] unless args[:state].nil?
3020
+ @completion_reward_data = args[:completion_reward_data] if args.key?(:completion_reward_data)
3021
+ @criteria = args[:criteria] if args.key?(:criteria)
3022
+ @id = args[:id] if args.key?(:id)
3023
+ @kind = args[:kind] if args.key?(:kind)
3024
+ @state = args[:state] if args.key?(:state)
3016
3025
  end
3017
3026
  end
3018
3027
 
@@ -3048,9 +3057,9 @@ module Google
3048
3057
 
3049
3058
  # Update properties of this object
3050
3059
  def update!(**args)
3051
- @api_version = args[:api_version] unless args[:api_version].nil?
3052
- @kind = args[:kind] unless args[:kind].nil?
3053
- @revision_status = args[:revision_status] unless args[:revision_status].nil?
3060
+ @api_version = args[:api_version] if args.key?(:api_version)
3061
+ @kind = args[:kind] if args.key?(:kind)
3062
+ @revision_status = args[:revision_status] if args.key?(:revision_status)
3054
3063
  end
3055
3064
  end
3056
3065
 
@@ -3145,19 +3154,19 @@ module Google
3145
3154
 
3146
3155
  # Update properties of this object
3147
3156
  def update!(**args)
3148
- @application_id = args[:application_id] unless args[:application_id].nil?
3149
- @auto_matching_criteria = args[:auto_matching_criteria] unless args[:auto_matching_criteria].nil?
3150
- @auto_matching_status = args[:auto_matching_status] unless args[:auto_matching_status].nil?
3151
- @creation_details = args[:creation_details] unless args[:creation_details].nil?
3152
- @description = args[:description] unless args[:description].nil?
3153
- @inviter_id = args[:inviter_id] unless args[:inviter_id].nil?
3154
- @kind = args[:kind] unless args[:kind].nil?
3155
- @last_update_details = args[:last_update_details] unless args[:last_update_details].nil?
3156
- @participants = args[:participants] unless args[:participants].nil?
3157
- @room_id = args[:room_id] unless args[:room_id].nil?
3158
- @room_status_version = args[:room_status_version] unless args[:room_status_version].nil?
3159
- @status = args[:status] unless args[:status].nil?
3160
- @variant = args[:variant] unless args[:variant].nil?
3157
+ @application_id = args[:application_id] if args.key?(:application_id)
3158
+ @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria)
3159
+ @auto_matching_status = args[:auto_matching_status] if args.key?(:auto_matching_status)
3160
+ @creation_details = args[:creation_details] if args.key?(:creation_details)
3161
+ @description = args[:description] if args.key?(:description)
3162
+ @inviter_id = args[:inviter_id] if args.key?(:inviter_id)
3163
+ @kind = args[:kind] if args.key?(:kind)
3164
+ @last_update_details = args[:last_update_details] if args.key?(:last_update_details)
3165
+ @participants = args[:participants] if args.key?(:participants)
3166
+ @room_id = args[:room_id] if args.key?(:room_id)
3167
+ @room_status_version = args[:room_status_version] if args.key?(:room_status_version)
3168
+ @status = args[:status] if args.key?(:status)
3169
+ @variant = args[:variant] if args.key?(:variant)
3161
3170
  end
3162
3171
  end
3163
3172
 
@@ -3183,8 +3192,8 @@ module Google
3183
3192
 
3184
3193
  # Update properties of this object
3185
3194
  def update!(**args)
3186
- @kind = args[:kind] unless args[:kind].nil?
3187
- @wait_estimate_seconds = args[:wait_estimate_seconds] unless args[:wait_estimate_seconds].nil?
3195
+ @kind = args[:kind] if args.key?(:kind)
3196
+ @wait_estimate_seconds = args[:wait_estimate_seconds] if args.key?(:wait_estimate_seconds)
3188
3197
  end
3189
3198
  end
3190
3199
 
@@ -3223,10 +3232,10 @@ module Google
3223
3232
 
3224
3233
  # Update properties of this object
3225
3234
  def update!(**args)
3226
- @exclusive_bitmask = args[:exclusive_bitmask] unless args[:exclusive_bitmask].nil?
3227
- @kind = args[:kind] unless args[:kind].nil?
3228
- @max_auto_matching_players = args[:max_auto_matching_players] unless args[:max_auto_matching_players].nil?
3229
- @min_auto_matching_players = args[:min_auto_matching_players] unless args[:min_auto_matching_players].nil?
3235
+ @exclusive_bitmask = args[:exclusive_bitmask] if args.key?(:exclusive_bitmask)
3236
+ @kind = args[:kind] if args.key?(:kind)
3237
+ @max_auto_matching_players = args[:max_auto_matching_players] if args.key?(:max_auto_matching_players)
3238
+ @min_auto_matching_players = args[:min_auto_matching_players] if args.key?(:min_auto_matching_players)
3230
3239
  end
3231
3240
  end
3232
3241
 
@@ -3251,8 +3260,8 @@ module Google
3251
3260
 
3252
3261
  # Update properties of this object
3253
3262
  def update!(**args)
3254
- @kind = args[:kind] unless args[:kind].nil?
3255
- @xmpp_address = args[:xmpp_address] unless args[:xmpp_address].nil?
3263
+ @kind = args[:kind] if args.key?(:kind)
3264
+ @xmpp_address = args[:xmpp_address] if args.key?(:xmpp_address)
3256
3265
  end
3257
3266
  end
3258
3267
 
@@ -3310,14 +3319,14 @@ module Google
3310
3319
 
3311
3320
  # Update properties of this object
3312
3321
  def update!(**args)
3313
- @auto_matching_criteria = args[:auto_matching_criteria] unless args[:auto_matching_criteria].nil?
3314
- @capabilities = args[:capabilities] unless args[:capabilities].nil?
3315
- @client_address = args[:client_address] unless args[:client_address].nil?
3316
- @invited_player_ids = args[:invited_player_ids] unless args[:invited_player_ids].nil?
3317
- @kind = args[:kind] unless args[:kind].nil?
3318
- @network_diagnostics = args[:network_diagnostics] unless args[:network_diagnostics].nil?
3319
- @request_id = args[:request_id] unless args[:request_id].nil?
3320
- @variant = args[:variant] unless args[:variant].nil?
3322
+ @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria)
3323
+ @capabilities = args[:capabilities] if args.key?(:capabilities)
3324
+ @client_address = args[:client_address] if args.key?(:client_address)
3325
+ @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids)
3326
+ @kind = args[:kind] if args.key?(:kind)
3327
+ @network_diagnostics = args[:network_diagnostics] if args.key?(:network_diagnostics)
3328
+ @request_id = args[:request_id] if args.key?(:request_id)
3329
+ @variant = args[:variant] if args.key?(:variant)
3321
3330
  end
3322
3331
  end
3323
3332
 
@@ -3352,10 +3361,10 @@ module Google
3352
3361
 
3353
3362
  # Update properties of this object
3354
3363
  def update!(**args)
3355
- @capabilities = args[:capabilities] unless args[:capabilities].nil?
3356
- @client_address = args[:client_address] unless args[:client_address].nil?
3357
- @kind = args[:kind] unless args[:kind].nil?
3358
- @network_diagnostics = args[:network_diagnostics] unless args[:network_diagnostics].nil?
3364
+ @capabilities = args[:capabilities] if args.key?(:capabilities)
3365
+ @client_address = args[:client_address] if args.key?(:client_address)
3366
+ @kind = args[:kind] if args.key?(:kind)
3367
+ @network_diagnostics = args[:network_diagnostics] if args.key?(:network_diagnostics)
3359
3368
  end
3360
3369
  end
3361
3370
 
@@ -3420,14 +3429,14 @@ module Google
3420
3429
 
3421
3430
  # Update properties of this object
3422
3431
  def update!(**args)
3423
- @android_network_subtype = args[:android_network_subtype] unless args[:android_network_subtype].nil?
3424
- @android_network_type = args[:android_network_type] unless args[:android_network_type].nil?
3425
- @ios_network_type = args[:ios_network_type] unless args[:ios_network_type].nil?
3426
- @kind = args[:kind] unless args[:kind].nil?
3427
- @network_operator_code = args[:network_operator_code] unless args[:network_operator_code].nil?
3428
- @network_operator_name = args[:network_operator_name] unless args[:network_operator_name].nil?
3429
- @peer_session = args[:peer_session] unless args[:peer_session].nil?
3430
- @sockets_used = args[:sockets_used] unless args[:sockets_used].nil?
3432
+ @android_network_subtype = args[:android_network_subtype] if args.key?(:android_network_subtype)
3433
+ @android_network_type = args[:android_network_type] if args.key?(:android_network_type)
3434
+ @ios_network_type = args[:ios_network_type] if args.key?(:ios_network_type)
3435
+ @kind = args[:kind] if args.key?(:kind)
3436
+ @network_operator_code = args[:network_operator_code] if args.key?(:network_operator_code)
3437
+ @network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name)
3438
+ @peer_session = args[:peer_session] if args.key?(:peer_session)
3439
+ @sockets_used = args[:sockets_used] if args.key?(:sockets_used)
3431
3440
  end
3432
3441
  end
3433
3442
 
@@ -3478,9 +3487,9 @@ module Google
3478
3487
 
3479
3488
  # Update properties of this object
3480
3489
  def update!(**args)
3481
- @kind = args[:kind] unless args[:kind].nil?
3482
- @leave_diagnostics = args[:leave_diagnostics] unless args[:leave_diagnostics].nil?
3483
- @reason = args[:reason] unless args[:reason].nil?
3490
+ @kind = args[:kind] if args.key?(:kind)
3491
+ @leave_diagnostics = args[:leave_diagnostics] if args.key?(:leave_diagnostics)
3492
+ @reason = args[:reason] if args.key?(:reason)
3484
3493
  end
3485
3494
  end
3486
3495
 
@@ -3510,9 +3519,9 @@ module Google
3510
3519
 
3511
3520
  # Update properties of this object
3512
3521
  def update!(**args)
3513
- @items = args[:items] unless args[:items].nil?
3514
- @kind = args[:kind] unless args[:kind].nil?
3515
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
3522
+ @items = args[:items] if args.key?(:items)
3523
+ @kind = args[:kind] if args.key?(:kind)
3524
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3516
3525
  end
3517
3526
  end
3518
3527
 
@@ -3543,9 +3552,9 @@ module Google
3543
3552
 
3544
3553
  # Update properties of this object
3545
3554
  def update!(**args)
3546
- @kind = args[:kind] unless args[:kind].nil?
3547
- @modified_timestamp_millis = args[:modified_timestamp_millis] unless args[:modified_timestamp_millis].nil?
3548
- @participant_id = args[:participant_id] unless args[:participant_id].nil?
3555
+ @kind = args[:kind] if args.key?(:kind)
3556
+ @modified_timestamp_millis = args[:modified_timestamp_millis] if args.key?(:modified_timestamp_millis)
3557
+ @participant_id = args[:participant_id] if args.key?(:participant_id)
3549
3558
  end
3550
3559
  end
3551
3560
 
@@ -3609,13 +3618,13 @@ module Google
3609
3618
 
3610
3619
  # Update properties of this object
3611
3620
  def update!(**args)
3612
- @connection_setup_latency_millis = args[:connection_setup_latency_millis] unless args[:connection_setup_latency_millis].nil?
3613
- @error = args[:error] unless args[:error].nil?
3614
- @error_reason = args[:error_reason] unless args[:error_reason].nil?
3615
- @kind = args[:kind] unless args[:kind].nil?
3616
- @participant_id = args[:participant_id] unless args[:participant_id].nil?
3617
- @status = args[:status] unless args[:status].nil?
3618
- @unreliable_roundtrip_latency_millis = args[:unreliable_roundtrip_latency_millis] unless args[:unreliable_roundtrip_latency_millis].nil?
3621
+ @connection_setup_latency_millis = args[:connection_setup_latency_millis] if args.key?(:connection_setup_latency_millis)
3622
+ @error = args[:error] if args.key?(:error)
3623
+ @error_reason = args[:error_reason] if args.key?(:error_reason)
3624
+ @kind = args[:kind] if args.key?(:kind)
3625
+ @participant_id = args[:participant_id] if args.key?(:participant_id)
3626
+ @status = args[:status] if args.key?(:status)
3627
+ @unreliable_roundtrip_latency_millis = args[:unreliable_roundtrip_latency_millis] if args.key?(:unreliable_roundtrip_latency_millis)
3619
3628
  end
3620
3629
  end
3621
3630
 
@@ -3640,8 +3649,8 @@ module Google
3640
3649
 
3641
3650
  # Update properties of this object
3642
3651
  def update!(**args)
3643
- @kind = args[:kind] unless args[:kind].nil?
3644
- @updates = args[:updates] unless args[:updates].nil?
3652
+ @kind = args[:kind] if args.key?(:kind)
3653
+ @updates = args[:updates] if args.key?(:updates)
3645
3654
  end
3646
3655
  end
3647
3656
 
@@ -3730,16 +3739,16 @@ module Google
3730
3739
 
3731
3740
  # Update properties of this object
3732
3741
  def update!(**args)
3733
- @auto_matched = args[:auto_matched] unless args[:auto_matched].nil?
3734
- @auto_matched_player = args[:auto_matched_player] unless args[:auto_matched_player].nil?
3735
- @capabilities = args[:capabilities] unless args[:capabilities].nil?
3736
- @client_address = args[:client_address] unless args[:client_address].nil?
3737
- @connected = args[:connected] unless args[:connected].nil?
3738
- @id = args[:id] unless args[:id].nil?
3739
- @kind = args[:kind] unless args[:kind].nil?
3740
- @leave_reason = args[:leave_reason] unless args[:leave_reason].nil?
3741
- @player = args[:player] unless args[:player].nil?
3742
- @status = args[:status] unless args[:status].nil?
3742
+ @auto_matched = args[:auto_matched] if args.key?(:auto_matched)
3743
+ @auto_matched_player = args[:auto_matched_player] if args.key?(:auto_matched_player)
3744
+ @capabilities = args[:capabilities] if args.key?(:capabilities)
3745
+ @client_address = args[:client_address] if args.key?(:client_address)
3746
+ @connected = args[:connected] if args.key?(:connected)
3747
+ @id = args[:id] if args.key?(:id)
3748
+ @kind = args[:kind] if args.key?(:kind)
3749
+ @leave_reason = args[:leave_reason] if args.key?(:leave_reason)
3750
+ @player = args[:player] if args.key?(:player)
3751
+ @status = args[:status] if args.key?(:status)
3743
3752
  end
3744
3753
  end
3745
3754
 
@@ -3793,12 +3802,12 @@ module Google
3793
3802
 
3794
3803
  # Update properties of this object
3795
3804
  def update!(**args)
3796
- @auto_matching_status = args[:auto_matching_status] unless args[:auto_matching_status].nil?
3797
- @kind = args[:kind] unless args[:kind].nil?
3798
- @participants = args[:participants] unless args[:participants].nil?
3799
- @room_id = args[:room_id] unless args[:room_id].nil?
3800
- @status = args[:status] unless args[:status].nil?
3801
- @status_version = args[:status_version] unless args[:status_version].nil?
3805
+ @auto_matching_status = args[:auto_matching_status] if args.key?(:auto_matching_status)
3806
+ @kind = args[:kind] if args.key?(:kind)
3807
+ @participants = args[:participants] if args.key?(:participants)
3808
+ @room_id = args[:room_id] if args.key?(:room_id)
3809
+ @status = args[:status] if args.key?(:status)
3810
+ @status_version = args[:status_version] if args.key?(:status_version)
3802
3811
  end
3803
3812
  end
3804
3813
 
@@ -3840,11 +3849,11 @@ module Google
3840
3849
 
3841
3850
  # Update properties of this object
3842
3851
  def update!(**args)
3843
- @kind = args[:kind] unless args[:kind].nil?
3844
- @leaderboard_id = args[:leaderboard_id] unless args[:leaderboard_id].nil?
3845
- @score = args[:score] unless args[:score].nil?
3846
- @score_tag = args[:score_tag] unless args[:score_tag].nil?
3847
- @signature = args[:signature] unless args[:signature].nil?
3852
+ @kind = args[:kind] if args.key?(:kind)
3853
+ @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id)
3854
+ @score = args[:score] if args.key?(:score)
3855
+ @score_tag = args[:score_tag] if args.key?(:score_tag)
3856
+ @signature = args[:signature] if args.key?(:signature)
3848
3857
  end
3849
3858
  end
3850
3859
 
@@ -3919,17 +3928,17 @@ module Google
3919
3928
 
3920
3929
  # Update properties of this object
3921
3930
  def update!(**args)
3922
- @cover_image = args[:cover_image] unless args[:cover_image].nil?
3923
- @description = args[:description] unless args[:description].nil?
3924
- @drive_id = args[:drive_id] unless args[:drive_id].nil?
3925
- @duration_millis = args[:duration_millis] unless args[:duration_millis].nil?
3926
- @id = args[:id] unless args[:id].nil?
3927
- @kind = args[:kind] unless args[:kind].nil?
3928
- @last_modified_millis = args[:last_modified_millis] unless args[:last_modified_millis].nil?
3929
- @progress_value = args[:progress_value] unless args[:progress_value].nil?
3930
- @title = args[:title] unless args[:title].nil?
3931
- @type = args[:type] unless args[:type].nil?
3932
- @unique_name = args[:unique_name] unless args[:unique_name].nil?
3931
+ @cover_image = args[:cover_image] if args.key?(:cover_image)
3932
+ @description = args[:description] if args.key?(:description)
3933
+ @drive_id = args[:drive_id] if args.key?(:drive_id)
3934
+ @duration_millis = args[:duration_millis] if args.key?(:duration_millis)
3935
+ @id = args[:id] if args.key?(:id)
3936
+ @kind = args[:kind] if args.key?(:kind)
3937
+ @last_modified_millis = args[:last_modified_millis] if args.key?(:last_modified_millis)
3938
+ @progress_value = args[:progress_value] if args.key?(:progress_value)
3939
+ @title = args[:title] if args.key?(:title)
3940
+ @type = args[:type] if args.key?(:type)
3941
+ @unique_name = args[:unique_name] if args.key?(:unique_name)
3933
3942
  end
3934
3943
  end
3935
3944
 
@@ -3970,11 +3979,11 @@ module Google
3970
3979
 
3971
3980
  # Update properties of this object
3972
3981
  def update!(**args)
3973
- @height = args[:height] unless args[:height].nil?
3974
- @kind = args[:kind] unless args[:kind].nil?
3975
- @mime_type = args[:mime_type] unless args[:mime_type].nil?
3976
- @url = args[:url] unless args[:url].nil?
3977
- @width = args[:width] unless args[:width].nil?
3982
+ @height = args[:height] if args.key?(:height)
3983
+ @kind = args[:kind] if args.key?(:kind)
3984
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
3985
+ @url = args[:url] if args.key?(:url)
3986
+ @width = args[:width] if args.key?(:width)
3978
3987
  end
3979
3988
  end
3980
3989
 
@@ -4005,9 +4014,9 @@ module Google
4005
4014
 
4006
4015
  # Update properties of this object
4007
4016
  def update!(**args)
4008
- @items = args[:items] unless args[:items].nil?
4009
- @kind = args[:kind] unless args[:kind].nil?
4010
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
4017
+ @items = args[:items] if args.key?(:items)
4018
+ @kind = args[:kind] if args.key?(:kind)
4019
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4011
4020
  end
4012
4021
  end
4013
4022
 
@@ -4046,10 +4055,10 @@ module Google
4046
4055
 
4047
4056
  # Update properties of this object
4048
4057
  def update!(**args)
4049
- @exclusive_bitmask = args[:exclusive_bitmask] unless args[:exclusive_bitmask].nil?
4050
- @kind = args[:kind] unless args[:kind].nil?
4051
- @max_auto_matching_players = args[:max_auto_matching_players] unless args[:max_auto_matching_players].nil?
4052
- @min_auto_matching_players = args[:min_auto_matching_players] unless args[:min_auto_matching_players].nil?
4058
+ @exclusive_bitmask = args[:exclusive_bitmask] if args.key?(:exclusive_bitmask)
4059
+ @kind = args[:kind] if args.key?(:kind)
4060
+ @max_auto_matching_players = args[:max_auto_matching_players] if args.key?(:max_auto_matching_players)
4061
+ @min_auto_matching_players = args[:min_auto_matching_players] if args.key?(:min_auto_matching_players)
4053
4062
  end
4054
4063
  end
4055
4064
 
@@ -4191,26 +4200,26 @@ module Google
4191
4200
 
4192
4201
  # Update properties of this object
4193
4202
  def update!(**args)
4194
- @application_id = args[:application_id] unless args[:application_id].nil?
4195
- @auto_matching_criteria = args[:auto_matching_criteria] unless args[:auto_matching_criteria].nil?
4196
- @creation_details = args[:creation_details] unless args[:creation_details].nil?
4197
- @data = args[:data] unless args[:data].nil?
4198
- @description = args[:description] unless args[:description].nil?
4199
- @inviter_id = args[:inviter_id] unless args[:inviter_id].nil?
4200
- @kind = args[:kind] unless args[:kind].nil?
4201
- @last_update_details = args[:last_update_details] unless args[:last_update_details].nil?
4202
- @match_id = args[:match_id] unless args[:match_id].nil?
4203
- @match_number = args[:match_number] unless args[:match_number].nil?
4204
- @match_version = args[:match_version] unless args[:match_version].nil?
4205
- @participants = args[:participants] unless args[:participants].nil?
4206
- @pending_participant_id = args[:pending_participant_id] unless args[:pending_participant_id].nil?
4207
- @previous_match_data = args[:previous_match_data] unless args[:previous_match_data].nil?
4208
- @rematch_id = args[:rematch_id] unless args[:rematch_id].nil?
4209
- @results = args[:results] unless args[:results].nil?
4210
- @status = args[:status] unless args[:status].nil?
4211
- @user_match_status = args[:user_match_status] unless args[:user_match_status].nil?
4212
- @variant = args[:variant] unless args[:variant].nil?
4213
- @with_participant_id = args[:with_participant_id] unless args[:with_participant_id].nil?
4203
+ @application_id = args[:application_id] if args.key?(:application_id)
4204
+ @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria)
4205
+ @creation_details = args[:creation_details] if args.key?(:creation_details)
4206
+ @data = args[:data] if args.key?(:data)
4207
+ @description = args[:description] if args.key?(:description)
4208
+ @inviter_id = args[:inviter_id] if args.key?(:inviter_id)
4209
+ @kind = args[:kind] if args.key?(:kind)
4210
+ @last_update_details = args[:last_update_details] if args.key?(:last_update_details)
4211
+ @match_id = args[:match_id] if args.key?(:match_id)
4212
+ @match_number = args[:match_number] if args.key?(:match_number)
4213
+ @match_version = args[:match_version] if args.key?(:match_version)
4214
+ @participants = args[:participants] if args.key?(:participants)
4215
+ @pending_participant_id = args[:pending_participant_id] if args.key?(:pending_participant_id)
4216
+ @previous_match_data = args[:previous_match_data] if args.key?(:previous_match_data)
4217
+ @rematch_id = args[:rematch_id] if args.key?(:rematch_id)
4218
+ @results = args[:results] if args.key?(:results)
4219
+ @status = args[:status] if args.key?(:status)
4220
+ @user_match_status = args[:user_match_status] if args.key?(:user_match_status)
4221
+ @variant = args[:variant] if args.key?(:variant)
4222
+ @with_participant_id = args[:with_participant_id] if args.key?(:with_participant_id)
4214
4223
  end
4215
4224
  end
4216
4225
 
@@ -4253,11 +4262,11 @@ module Google
4253
4262
 
4254
4263
  # Update properties of this object
4255
4264
  def update!(**args)
4256
- @auto_matching_criteria = args[:auto_matching_criteria] unless args[:auto_matching_criteria].nil?
4257
- @invited_player_ids = args[:invited_player_ids] unless args[:invited_player_ids].nil?
4258
- @kind = args[:kind] unless args[:kind].nil?
4259
- @request_id = args[:request_id] unless args[:request_id].nil?
4260
- @variant = args[:variant] unless args[:variant].nil?
4265
+ @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria)
4266
+ @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids)
4267
+ @kind = args[:kind] if args.key?(:kind)
4268
+ @request_id = args[:request_id] if args.key?(:request_id)
4269
+ @variant = args[:variant] if args.key?(:variant)
4261
4270
  end
4262
4271
  end
4263
4272
 
@@ -4290,9 +4299,9 @@ module Google
4290
4299
 
4291
4300
  # Update properties of this object
4292
4301
  def update!(**args)
4293
- @data = args[:data] unless args[:data].nil?
4294
- @data_available = args[:data_available] unless args[:data_available].nil?
4295
- @kind = args[:kind] unless args[:kind].nil?
4302
+ @data = args[:data] if args.key?(:data)
4303
+ @data_available = args[:data_available] if args.key?(:data_available)
4304
+ @kind = args[:kind] if args.key?(:kind)
4296
4305
  end
4297
4306
  end
4298
4307
 
@@ -4318,8 +4327,8 @@ module Google
4318
4327
 
4319
4328
  # Update properties of this object
4320
4329
  def update!(**args)
4321
- @data = args[:data] unless args[:data].nil?
4322
- @kind = args[:kind] unless args[:kind].nil?
4330
+ @data = args[:data] if args.key?(:data)
4331
+ @kind = args[:kind] if args.key?(:kind)
4323
4332
  end
4324
4333
  end
4325
4334
 
@@ -4349,9 +4358,9 @@ module Google
4349
4358
 
4350
4359
  # Update properties of this object
4351
4360
  def update!(**args)
4352
- @items = args[:items] unless args[:items].nil?
4353
- @kind = args[:kind] unless args[:kind].nil?
4354
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
4361
+ @items = args[:items] if args.key?(:items)
4362
+ @kind = args[:kind] if args.key?(:kind)
4363
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4355
4364
  end
4356
4365
  end
4357
4366
 
@@ -4382,9 +4391,9 @@ module Google
4382
4391
 
4383
4392
  # Update properties of this object
4384
4393
  def update!(**args)
4385
- @kind = args[:kind] unless args[:kind].nil?
4386
- @modified_timestamp_millis = args[:modified_timestamp_millis] unless args[:modified_timestamp_millis].nil?
4387
- @participant_id = args[:participant_id] unless args[:participant_id].nil?
4394
+ @kind = args[:kind] if args.key?(:kind)
4395
+ @modified_timestamp_millis = args[:modified_timestamp_millis] if args.key?(:modified_timestamp_millis)
4396
+ @participant_id = args[:participant_id] if args.key?(:participant_id)
4388
4397
  end
4389
4398
  end
4390
4399
 
@@ -4445,12 +4454,12 @@ module Google
4445
4454
 
4446
4455
  # Update properties of this object
4447
4456
  def update!(**args)
4448
- @auto_matched = args[:auto_matched] unless args[:auto_matched].nil?
4449
- @auto_matched_player = args[:auto_matched_player] unless args[:auto_matched_player].nil?
4450
- @id = args[:id] unless args[:id].nil?
4451
- @kind = args[:kind] unless args[:kind].nil?
4452
- @player = args[:player] unless args[:player].nil?
4453
- @status = args[:status] unless args[:status].nil?
4457
+ @auto_matched = args[:auto_matched] if args.key?(:auto_matched)
4458
+ @auto_matched_player = args[:auto_matched_player] if args.key?(:auto_matched_player)
4459
+ @id = args[:id] if args.key?(:id)
4460
+ @kind = args[:kind] if args.key?(:kind)
4461
+ @player = args[:player] if args.key?(:player)
4462
+ @status = args[:status] if args.key?(:status)
4454
4463
  end
4455
4464
  end
4456
4465
 
@@ -4480,9 +4489,9 @@ module Google
4480
4489
 
4481
4490
  # Update properties of this object
4482
4491
  def update!(**args)
4483
- @kind = args[:kind] unless args[:kind].nil?
4484
- @previous_match = args[:previous_match] unless args[:previous_match].nil?
4485
- @rematch = args[:rematch] unless args[:rematch].nil?
4492
+ @kind = args[:kind] if args.key?(:kind)
4493
+ @previous_match = args[:previous_match] if args.key?(:previous_match)
4494
+ @rematch = args[:rematch] if args.key?(:rematch)
4486
4495
  end
4487
4496
  end
4488
4497
 
@@ -4517,10 +4526,10 @@ module Google
4517
4526
 
4518
4527
  # Update properties of this object
4519
4528
  def update!(**args)
4520
- @data = args[:data] unless args[:data].nil?
4521
- @kind = args[:kind] unless args[:kind].nil?
4522
- @match_version = args[:match_version] unless args[:match_version].nil?
4523
- @results = args[:results] unless args[:results].nil?
4529
+ @data = args[:data] if args.key?(:data)
4530
+ @kind = args[:kind] if args.key?(:kind)
4531
+ @match_version = args[:match_version] if args.key?(:match_version)
4532
+ @results = args[:results] if args.key?(:results)
4524
4533
  end
4525
4534
  end
4526
4535
 
@@ -4557,10 +4566,10 @@ module Google
4557
4566
 
4558
4567
  # Update properties of this object
4559
4568
  def update!(**args)
4560
- @items = args[:items] unless args[:items].nil?
4561
- @kind = args[:kind] unless args[:kind].nil?
4562
- @more_available = args[:more_available] unless args[:more_available].nil?
4563
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
4569
+ @items = args[:items] if args.key?(:items)
4570
+ @kind = args[:kind] if args.key?(:kind)
4571
+ @more_available = args[:more_available] if args.key?(:more_available)
4572
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4564
4573
  end
4565
4574
  end
4566
4575
 
@@ -4605,11 +4614,11 @@ module Google
4605
4614
 
4606
4615
  # Update properties of this object
4607
4616
  def update!(**args)
4608
- @data = args[:data] unless args[:data].nil?
4609
- @kind = args[:kind] unless args[:kind].nil?
4610
- @match_version = args[:match_version] unless args[:match_version].nil?
4611
- @pending_participant_id = args[:pending_participant_id] unless args[:pending_participant_id].nil?
4612
- @results = args[:results] unless args[:results].nil?
4617
+ @data = args[:data] if args.key?(:data)
4618
+ @kind = args[:kind] if args.key?(:kind)
4619
+ @match_version = args[:match_version] if args.key?(:match_version)
4620
+ @pending_participant_id = args[:pending_participant_id] if args.key?(:pending_participant_id)
4621
+ @results = args[:results] if args.key?(:results)
4613
4622
  end
4614
4623
  end
4615
4624
  end