google-api-client 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +11 -2
  4. data/api_names.yaml +76 -43
  5. data/api_names_out.yaml +3853 -3508
  6. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +151 -151
  7. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +2785 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1033 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1378 -0
  11. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +79 -79
  12. data/generated/google/apis/admin_datatransfer_v1/classes.rb +26 -26
  13. data/generated/google/apis/admin_directory_v1/classes.rb +374 -374
  14. data/generated/google/apis/admin_reports_v1/classes.rb +63 -63
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +145 -143
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1/classes.rb +95 -92
  19. data/generated/google/apis/analytics_v3/classes.rb +582 -582
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +132 -132
  22. data/generated/google/apis/androidenterprise_v1/service.rb +9 -8
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +122 -122
  24. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  25. data/generated/google/apis/appengine_v1beta4/classes.rb +195 -142
  26. data/generated/google/apis/appengine_v1beta4/representations.rb +16 -0
  27. data/generated/google/apis/appengine_v1beta4/service.rb +3 -2
  28. data/generated/google/apis/appengine_v1beta5.rb +35 -0
  29. data/generated/google/apis/appengine_v1beta5/classes.rb +1523 -0
  30. data/generated/google/apis/appengine_v1beta5/representations.rb +525 -0
  31. data/generated/google/apis/appengine_v1beta5/service.rb +478 -0
  32. data/generated/google/apis/appsactivity_v1/classes.rb +34 -34
  33. data/generated/google/apis/appstate_v1.rb +1 -1
  34. data/generated/google/apis/appstate_v1/classes.rb +12 -12
  35. data/generated/google/apis/autoscaler_v1beta2/classes.rb +82 -82
  36. data/generated/google/apis/bigquery_v2.rb +1 -1
  37. data/generated/google/apis/bigquery_v2/classes.rb +266 -265
  38. data/generated/google/apis/blogger_v3/classes.rb +145 -145
  39. data/generated/google/apis/books_v1.rb +1 -1
  40. data/generated/google/apis/books_v1/classes.rb +431 -431
  41. data/generated/google/apis/books_v1/service.rb +3 -12
  42. data/generated/google/apis/calendar_v3.rb +1 -1
  43. data/generated/google/apis/calendar_v3/classes.rb +180 -180
  44. data/generated/google/apis/civicinfo_v2/classes.rb +125 -125
  45. data/generated/google/apis/classroom_v1/classes.rb +42 -42
  46. data/generated/google/apis/cloudbilling_v1/classes.rb +11 -11
  47. data/generated/google/apis/{mapsengine_v1.rb → cloudbuild_v1.rb} +11 -14
  48. data/generated/google/apis/cloudbuild_v1/classes.rb +521 -0
  49. data/generated/google/apis/cloudbuild_v1/representations.rb +190 -0
  50. data/generated/google/apis/cloudbuild_v1/service.rb +278 -0
  51. data/generated/google/apis/clouddebugger_v2/classes.rb +81 -81
  52. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  53. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  54. data/generated/google/apis/cloudlatencytest_v2/representations.rb +113 -0
  55. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  56. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  57. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +55 -55
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +26 -26
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +13 -13
  60. data/generated/google/apis/clouduseraccounts_beta/classes.rb +85 -85
  61. data/generated/google/apis/compute_beta.rb +1 -1
  62. data/generated/google/apis/compute_beta/classes.rb +1051 -998
  63. data/generated/google/apis/compute_beta/representations.rb +1 -0
  64. data/generated/google/apis/compute_beta/service.rb +426 -366
  65. data/generated/google/apis/compute_v1.rb +1 -1
  66. data/generated/google/apis/compute_v1/classes.rb +1332 -946
  67. data/generated/google/apis/compute_v1/representations.rb +108 -0
  68. data/generated/google/apis/compute_v1/service.rb +686 -318
  69. data/generated/google/apis/container_v1/classes.rb +43 -43
  70. data/generated/google/apis/content_v2.rb +1 -1
  71. data/generated/google/apis/content_v2/classes.rb +767 -639
  72. data/generated/google/apis/content_v2/representations.rb +40 -0
  73. data/generated/google/apis/coordinate_v1/classes.rb +66 -66
  74. data/generated/google/apis/customsearch_v1/classes.rb +96 -96
  75. data/generated/google/apis/dataproc_v1.rb +43 -0
  76. data/generated/google/apis/dataproc_v1/classes.rb +175 -0
  77. data/generated/google/apis/dataproc_v1/representations.rb +84 -0
  78. data/generated/google/apis/dataproc_v1/service.rb +142 -0
  79. data/generated/google/apis/datastore_v1beta2/classes.rb +105 -105
  80. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  81. data/generated/google/apis/deploymentmanager_v2/classes.rb +183 -112
  82. data/generated/google/apis/deploymentmanager_v2/representations.rb +28 -0
  83. data/generated/google/apis/deploymentmanager_v2/service.rb +42 -37
  84. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  85. data/generated/google/apis/dfareporting_v2_3/classes.rb +10830 -0
  86. data/generated/google/apis/dfareporting_v2_3/representations.rb +3443 -0
  87. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  88. data/generated/google/apis/discovery_v1/classes.rb +106 -106
  89. data/generated/google/apis/dns_v1/classes.rb +39 -39
  90. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  91. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +155 -69
  92. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +31 -0
  93. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +33 -0
  94. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  95. data/generated/google/apis/doubleclicksearch_v2/classes.rb +106 -104
  96. data/generated/google/apis/drive_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2/classes.rb +308 -308
  98. data/generated/google/apis/drive_v2/service.rb +44 -0
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +178 -178
  101. data/generated/google/apis/drive_v3/service.rb +2 -1
  102. data/generated/google/apis/fitness_v1/classes.rb +74 -74
  103. data/generated/google/apis/fusiontables_v2/classes.rb +108 -108
  104. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  105. data/generated/google/apis/games_configuration_v1configuration/classes.rb +52 -52
  106. data/generated/google/apis/games_management_v1management.rb +2 -2
  107. data/generated/google/apis/games_management_v1management/classes.rb +55 -46
  108. data/generated/google/apis/games_management_v1management/representations.rb +1 -0
  109. data/generated/google/apis/games_v1.rb +2 -2
  110. data/generated/google/apis/games_v1/classes.rb +484 -475
  111. data/generated/google/apis/games_v1/representations.rb +1 -0
  112. data/generated/google/apis/gan_v1beta1/classes.rb +187 -187
  113. data/generated/google/apis/genomics_v1.rb +2 -2
  114. data/generated/google/apis/genomics_v1/classes.rb +441 -232
  115. data/generated/google/apis/genomics_v1/representations.rb +85 -0
  116. data/generated/google/apis/genomics_v1/service.rb +1 -1
  117. data/generated/google/apis/gmail_v1/classes.rb +73 -73
  118. data/generated/google/apis/groupsmigration_v1/classes.rb +2 -2
  119. data/generated/google/apis/groupssettings_v1/classes.rb +28 -28
  120. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  121. data/generated/google/apis/identitytoolkit_v3/classes.rb +232 -166
  122. data/generated/google/apis/identitytoolkit_v3/representations.rb +10 -0
  123. data/generated/google/apis/kgsearch_v1/classes.rb +3 -3
  124. data/generated/google/apis/licensing_v1/classes.rb +11 -11
  125. data/generated/google/apis/logging_v2beta1.rb +47 -0
  126. data/generated/google/apis/logging_v2beta1/classes.rb +990 -0
  127. data/generated/google/apis/logging_v2beta1/representations.rb +337 -0
  128. data/generated/google/apis/logging_v2beta1/service.rb +547 -0
  129. data/generated/google/apis/manager_v1beta2/classes.rb +125 -125
  130. data/generated/google/apis/mirror_v1/classes.rb +101 -101
  131. data/generated/google/apis/oauth2_v2.rb +2 -2
  132. data/generated/google/apis/oauth2_v2/classes.rb +27 -27
  133. data/generated/google/apis/pagespeedonline_v2/classes.rb +62 -62
  134. data/generated/google/apis/partners_v2/classes.rb +87 -87
  135. data/generated/google/apis/people_v1.rb +59 -0
  136. data/generated/google/apis/people_v1/classes.rb +1594 -0
  137. data/generated/google/apis/people_v1/representations.rb +593 -0
  138. data/generated/google/apis/people_v1/service.rb +193 -0
  139. data/generated/google/apis/plus_domains_v1.rb +2 -2
  140. data/generated/google/apis/plus_domains_v1/classes.rb +274 -274
  141. data/generated/google/apis/plus_v1.rb +2 -2
  142. data/generated/google/apis/plus_v1/classes.rb +215 -215
  143. data/generated/google/apis/prediction_v1_6/classes.rb +73 -73
  144. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +45 -45
  145. data/generated/google/apis/pubsub_v1/classes.rb +36 -36
  146. data/generated/google/apis/qpx_express_v1/classes.rb +135 -135
  147. data/generated/google/apis/replicapool_v1beta2/classes.rb +63 -63
  148. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +76 -76
  149. data/generated/google/apis/reseller_v1.rb +1 -1
  150. data/generated/google/apis/reseller_v1/classes.rb +55 -55
  151. data/generated/google/apis/reseller_v1/service.rb +1 -1
  152. data/generated/google/apis/resourceviews_v1beta2/classes.rb +68 -68
  153. data/generated/google/apis/script_v1/classes.rb +18 -18
  154. data/generated/google/apis/site_verification_v1/classes.rb +12 -12
  155. data/generated/google/apis/sqladmin_v1beta4/classes.rb +203 -203
  156. data/generated/google/apis/storage_v1.rb +1 -1
  157. data/generated/google/apis/storage_v1/classes.rb +130 -130
  158. data/generated/google/apis/storagetransfer_v1/classes.rb +84 -84
  159. data/generated/google/apis/tagmanager_v1/classes.rb +154 -154
  160. data/generated/google/apis/taskqueue_v1beta2/classes.rb +24 -24
  161. data/generated/google/apis/tasks_v1/classes.rb +32 -32
  162. data/generated/google/apis/translate_v2/classes.rb +10 -10
  163. data/generated/google/apis/urlshortener_v1/classes.rb +24 -24
  164. data/generated/google/apis/webmasters_v3/classes.rb +49 -49
  165. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1/classes.rb +49 -49
  167. data/generated/google/apis/youtube_v3.rb +1 -1
  168. data/generated/google/apis/youtube_v3/classes.rb +882 -895
  169. data/generated/google/apis/youtube_v3/representations.rb +2 -13
  170. data/generated/google/apis/youtubereporting_v1/classes.rb +19 -19
  171. data/lib/google/apis/core/api_command.rb +1 -1
  172. data/lib/google/apis/core/upload.rb +1 -1
  173. data/lib/google/apis/generator/templates/_class.tmpl +1 -1
  174. data/lib/google/apis/version.rb +1 -1
  175. data/samples/cli/lib/base_cli.rb +2 -1
  176. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  177. data/script/generate +17 -13
  178. metadata +35 -6
  179. data/generated/google/apis/mapsengine_v1/classes.rb +0 -2873
  180. data/generated/google/apis/mapsengine_v1/representations.rb +0 -1235
  181. data/generated/google/apis/mapsengine_v1/service.rb +0 -3388
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/compute/docs/reference/latest/
26
26
  module ComputeV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160112'
28
+ REVISION = '20160205'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -57,10 +57,10 @@ module Google
57
57
 
58
58
  # Update properties of this object
59
59
  def update!(**args)
60
- @kind = args[:kind] unless args[:kind].nil?
61
- @name = args[:name] unless args[:name].nil?
62
- @nat_ip = args[:nat_ip] unless args[:nat_ip].nil?
63
- @type = args[:type] unless args[:type].nil?
60
+ @kind = args[:kind] if args.key?(:kind)
61
+ @name = args[:name] if args.key?(:name)
62
+ @nat_ip = args[:nat_ip] if args.key?(:nat_ip)
63
+ @type = args[:type] if args.key?(:type)
64
64
  end
65
65
  end
66
66
 
@@ -135,16 +135,16 @@ module Google
135
135
 
136
136
  # Update properties of this object
137
137
  def update!(**args)
138
- @address = args[:address] unless args[:address].nil?
139
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
140
- @description = args[:description] unless args[:description].nil?
141
- @id = args[:id] unless args[:id].nil?
142
- @kind = args[:kind] unless args[:kind].nil?
143
- @name = args[:name] unless args[:name].nil?
144
- @region = args[:region] unless args[:region].nil?
145
- @self_link = args[:self_link] unless args[:self_link].nil?
146
- @status = args[:status] unless args[:status].nil?
147
- @users = args[:users] unless args[:users].nil?
138
+ @address = args[:address] if args.key?(:address)
139
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
140
+ @description = args[:description] if args.key?(:description)
141
+ @id = args[:id] if args.key?(:id)
142
+ @kind = args[:kind] if args.key?(:kind)
143
+ @name = args[:name] if args.key?(:name)
144
+ @region = args[:region] if args.key?(:region)
145
+ @self_link = args[:self_link] if args.key?(:self_link)
146
+ @status = args[:status] if args.key?(:status)
147
+ @users = args[:users] if args.key?(:users)
148
148
  end
149
149
  end
150
150
 
@@ -188,15 +188,15 @@ module Google
188
188
 
189
189
  # Update properties of this object
190
190
  def update!(**args)
191
- @id = args[:id] unless args[:id].nil?
192
- @items = args[:items] unless args[:items].nil?
193
- @kind = args[:kind] unless args[:kind].nil?
194
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
195
- @self_link = args[:self_link] unless args[:self_link].nil?
191
+ @id = args[:id] if args.key?(:id)
192
+ @items = args[:items] if args.key?(:items)
193
+ @kind = args[:kind] if args.key?(:kind)
194
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
195
+ @self_link = args[:self_link] if args.key?(:self_link)
196
196
  end
197
197
  end
198
198
 
199
- # Contains a list of address resources.
199
+ # Contains a list of addresses.
200
200
  class AddressList
201
201
  include Google::Apis::Core::Hashable
202
202
 
@@ -206,7 +206,7 @@ module Google
206
206
  # @return [String]
207
207
  attr_accessor :id
208
208
 
209
- # [Output Only] A list of Address resources.
209
+ # [Output Only] A list of addresses.
210
210
  # Corresponds to the JSON property `items`
211
211
  # @return [Array<Google::Apis::ComputeV1::Address>]
212
212
  attr_accessor :items
@@ -237,11 +237,11 @@ module Google
237
237
 
238
238
  # Update properties of this object
239
239
  def update!(**args)
240
- @id = args[:id] unless args[:id].nil?
241
- @items = args[:items] unless args[:items].nil?
242
- @kind = args[:kind] unless args[:kind].nil?
243
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
244
- @self_link = args[:self_link] unless args[:self_link].nil?
240
+ @id = args[:id] if args.key?(:id)
241
+ @items = args[:items] if args.key?(:items)
242
+ @kind = args[:kind] if args.key?(:kind)
243
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
244
+ @self_link = args[:self_link] if args.key?(:self_link)
245
245
  end
246
246
  end
247
247
 
@@ -266,8 +266,8 @@ module Google
266
266
 
267
267
  # Update properties of this object
268
268
  def update!(**args)
269
- @addresses = args[:addresses] unless args[:addresses].nil?
270
- @warning = args[:warning] unless args[:warning].nil?
269
+ @addresses = args[:addresses] if args.key?(:addresses)
270
+ @warning = args[:warning] if args.key?(:warning)
271
271
  end
272
272
 
273
273
  # [Output Only] Informational warning which replaces the list of addresses when
@@ -298,9 +298,9 @@ module Google
298
298
 
299
299
  # Update properties of this object
300
300
  def update!(**args)
301
- @code = args[:code] unless args[:code].nil?
302
- @data = args[:data] unless args[:data].nil?
303
- @message = args[:message] unless args[:message].nil?
301
+ @code = args[:code] if args.key?(:code)
302
+ @data = args[:data] if args.key?(:data)
303
+ @message = args[:message] if args.key?(:message)
304
304
  end
305
305
 
306
306
  #
@@ -329,8 +329,8 @@ module Google
329
329
 
330
330
  # Update properties of this object
331
331
  def update!(**args)
332
- @key = args[:key] unless args[:key].nil?
333
- @value = args[:value] unless args[:value].nil?
332
+ @key = args[:key] if args.key?(:key)
333
+ @value = args[:value] if args.key?(:value)
334
334
  end
335
335
  end
336
336
  end
@@ -382,9 +382,11 @@ module Google
382
382
  # @return [Google::Apis::ComputeV1::AttachedDiskInitializeParams]
383
383
  attr_accessor :initialize_params
384
384
 
385
- # Specifies the disk interface to use for attaching this disk, either SCSI or
386
- # NVME. The default is SCSI. For performance characteristics of SCSI over NVMe,
387
- # see Local SSD performance.
385
+ # Specifies the disk interface to use for attaching this disk, which is either
386
+ # SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and
387
+ # the request will fail if you attempt to attach a persistent disk in any other
388
+ # format than SCSI. Local SSDs can use either NVME or SCSI. For performance
389
+ # characteristics of SCSI over NVMe, see Local SSD performance.
388
390
  # Corresponds to the JSON property `interface`
389
391
  # @return [String]
390
392
  attr_accessor :interface
@@ -424,17 +426,17 @@ module Google
424
426
 
425
427
  # Update properties of this object
426
428
  def update!(**args)
427
- @auto_delete = args[:auto_delete] unless args[:auto_delete].nil?
428
- @boot = args[:boot] unless args[:boot].nil?
429
- @device_name = args[:device_name] unless args[:device_name].nil?
430
- @index = args[:index] unless args[:index].nil?
431
- @initialize_params = args[:initialize_params] unless args[:initialize_params].nil?
432
- @interface = args[:interface] unless args[:interface].nil?
433
- @kind = args[:kind] unless args[:kind].nil?
434
- @licenses = args[:licenses] unless args[:licenses].nil?
435
- @mode = args[:mode] unless args[:mode].nil?
436
- @source = args[:source] unless args[:source].nil?
437
- @type = args[:type] unless args[:type].nil?
429
+ @auto_delete = args[:auto_delete] if args.key?(:auto_delete)
430
+ @boot = args[:boot] if args.key?(:boot)
431
+ @device_name = args[:device_name] if args.key?(:device_name)
432
+ @index = args[:index] if args.key?(:index)
433
+ @initialize_params = args[:initialize_params] if args.key?(:initialize_params)
434
+ @interface = args[:interface] if args.key?(:interface)
435
+ @kind = args[:kind] if args.key?(:kind)
436
+ @licenses = args[:licenses] if args.key?(:licenses)
437
+ @mode = args[:mode] if args.key?(:mode)
438
+ @source = args[:source] if args.key?(:source)
439
+ @type = args[:type] if args.key?(:type)
438
440
  end
439
441
  end
440
442
 
@@ -492,10 +494,10 @@ module Google
492
494
 
493
495
  # Update properties of this object
494
496
  def update!(**args)
495
- @disk_name = args[:disk_name] unless args[:disk_name].nil?
496
- @disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil?
497
- @disk_type = args[:disk_type] unless args[:disk_type].nil?
498
- @source_image = args[:source_image] unless args[:source_image].nil?
497
+ @disk_name = args[:disk_name] if args.key?(:disk_name)
498
+ @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
499
+ @disk_type = args[:disk_type] if args.key?(:disk_type)
500
+ @source_image = args[:source_image] if args.key?(:source_image)
499
501
  end
500
502
  end
501
503
 
@@ -562,15 +564,15 @@ module Google
562
564
 
563
565
  # Update properties of this object
564
566
  def update!(**args)
565
- @autoscaling_policy = args[:autoscaling_policy] unless args[:autoscaling_policy].nil?
566
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
567
- @description = args[:description] unless args[:description].nil?
568
- @id = args[:id] unless args[:id].nil?
569
- @kind = args[:kind] unless args[:kind].nil?
570
- @name = args[:name] unless args[:name].nil?
571
- @self_link = args[:self_link] unless args[:self_link].nil?
572
- @target = args[:target] unless args[:target].nil?
573
- @zone = args[:zone] unless args[:zone].nil?
567
+ @autoscaling_policy = args[:autoscaling_policy] if args.key?(:autoscaling_policy)
568
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
569
+ @description = args[:description] if args.key?(:description)
570
+ @id = args[:id] if args.key?(:id)
571
+ @kind = args[:kind] if args.key?(:kind)
572
+ @name = args[:name] if args.key?(:name)
573
+ @self_link = args[:self_link] if args.key?(:self_link)
574
+ @target = args[:target] if args.key?(:target)
575
+ @zone = args[:zone] if args.key?(:zone)
574
576
  end
575
577
  end
576
578
 
@@ -614,11 +616,11 @@ module Google
614
616
 
615
617
  # Update properties of this object
616
618
  def update!(**args)
617
- @id = args[:id] unless args[:id].nil?
618
- @items = args[:items] unless args[:items].nil?
619
- @kind = args[:kind] unless args[:kind].nil?
620
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
621
- @self_link = args[:self_link] unless args[:self_link].nil?
619
+ @id = args[:id] if args.key?(:id)
620
+ @items = args[:items] if args.key?(:items)
621
+ @kind = args[:kind] if args.key?(:kind)
622
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
623
+ @self_link = args[:self_link] if args.key?(:self_link)
622
624
  end
623
625
  end
624
626
 
@@ -662,11 +664,11 @@ module Google
662
664
 
663
665
  # Update properties of this object
664
666
  def update!(**args)
665
- @id = args[:id] unless args[:id].nil?
666
- @items = args[:items] unless args[:items].nil?
667
- @kind = args[:kind] unless args[:kind].nil?
668
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
669
- @self_link = args[:self_link] unless args[:self_link].nil?
667
+ @id = args[:id] if args.key?(:id)
668
+ @items = args[:items] if args.key?(:items)
669
+ @kind = args[:kind] if args.key?(:kind)
670
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
671
+ @self_link = args[:self_link] if args.key?(:self_link)
670
672
  end
671
673
  end
672
674
 
@@ -691,8 +693,8 @@ module Google
691
693
 
692
694
  # Update properties of this object
693
695
  def update!(**args)
694
- @autoscalers = args[:autoscalers] unless args[:autoscalers].nil?
695
- @warning = args[:warning] unless args[:warning].nil?
696
+ @autoscalers = args[:autoscalers] if args.key?(:autoscalers)
697
+ @warning = args[:warning] if args.key?(:warning)
696
698
  end
697
699
 
698
700
  # Informational warning which replaces the list of autoscalers when the list is
@@ -723,9 +725,9 @@ module Google
723
725
 
724
726
  # Update properties of this object
725
727
  def update!(**args)
726
- @code = args[:code] unless args[:code].nil?
727
- @data = args[:data] unless args[:data].nil?
728
- @message = args[:message] unless args[:message].nil?
728
+ @code = args[:code] if args.key?(:code)
729
+ @data = args[:data] if args.key?(:data)
730
+ @message = args[:message] if args.key?(:message)
729
731
  end
730
732
 
731
733
  #
@@ -754,8 +756,8 @@ module Google
754
756
 
755
757
  # Update properties of this object
756
758
  def update!(**args)
757
- @key = args[:key] unless args[:key].nil?
758
- @value = args[:value] unless args[:value].nil?
759
+ @key = args[:key] if args.key?(:key)
760
+ @value = args[:value] if args.key?(:value)
759
761
  end
760
762
  end
761
763
  end
@@ -810,12 +812,12 @@ module Google
810
812
 
811
813
  # Update properties of this object
812
814
  def update!(**args)
813
- @cool_down_period_sec = args[:cool_down_period_sec] unless args[:cool_down_period_sec].nil?
814
- @cpu_utilization = args[:cpu_utilization] unless args[:cpu_utilization].nil?
815
- @custom_metric_utilizations = args[:custom_metric_utilizations] unless args[:custom_metric_utilizations].nil?
816
- @load_balancing_utilization = args[:load_balancing_utilization] unless args[:load_balancing_utilization].nil?
817
- @max_num_replicas = args[:max_num_replicas] unless args[:max_num_replicas].nil?
818
- @min_num_replicas = args[:min_num_replicas] unless args[:min_num_replicas].nil?
815
+ @cool_down_period_sec = args[:cool_down_period_sec] if args.key?(:cool_down_period_sec)
816
+ @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization)
817
+ @custom_metric_utilizations = args[:custom_metric_utilizations] if args.key?(:custom_metric_utilizations)
818
+ @load_balancing_utilization = args[:load_balancing_utilization] if args.key?(:load_balancing_utilization)
819
+ @max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas)
820
+ @min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas)
819
821
  end
820
822
  end
821
823
 
@@ -837,7 +839,7 @@ module Google
837
839
 
838
840
  # Update properties of this object
839
841
  def update!(**args)
840
- @utilization_target = args[:utilization_target] unless args[:utilization_target].nil?
842
+ @utilization_target = args[:utilization_target] if args.key?(:utilization_target)
841
843
  end
842
844
  end
843
845
 
@@ -871,9 +873,9 @@ module Google
871
873
 
872
874
  # Update properties of this object
873
875
  def update!(**args)
874
- @metric = args[:metric] unless args[:metric].nil?
875
- @utilization_target = args[:utilization_target] unless args[:utilization_target].nil?
876
- @utilization_target_type = args[:utilization_target_type] unless args[:utilization_target_type].nil?
876
+ @metric = args[:metric] if args.key?(:metric)
877
+ @utilization_target = args[:utilization_target] if args.key?(:utilization_target)
878
+ @utilization_target_type = args[:utilization_target_type] if args.key?(:utilization_target_type)
877
879
  end
878
880
  end
879
881
 
@@ -897,7 +899,7 @@ module Google
897
899
 
898
900
  # Update properties of this object
899
901
  def update!(**args)
900
- @utilization_target = args[:utilization_target] unless args[:utilization_target].nil?
902
+ @utilization_target = args[:utilization_target] if args.key?(:utilization_target)
901
903
  end
902
904
  end
903
905
 
@@ -905,8 +907,8 @@ module Google
905
907
  class Backend
906
908
  include Google::Apis::Core::Hashable
907
909
 
908
- # Specifies the balancing mode for this backend. The default is UTILIZATION but
909
- # available values are UTILIZATION and RATE.
910
+ # Specifies the balancing mode for this backend. For global HTTP(S) load
911
+ # balancing, the default is UTILIZATION. Valid values are UTILIZATION and RATE.
910
912
  # Corresponds to the JSON property `balancingMode`
911
913
  # @return [String]
912
914
  attr_accessor :balancing_mode
@@ -937,14 +939,14 @@ module Google
937
939
  # @return [String]
938
940
  attr_accessor :group
939
941
 
940
- # The max requests per second (RPS) of the group. Can be used with either
941
- # balancing mode, but required if RATE mode. For RATE mode, either maxRate or
942
- # maxRatePerInstance must be set.
942
+ # The max requests per second (RPS) of the group. Can be used with either RATE
943
+ # or UTILIZATION balancing modes, but required if RATE mode. For RATE mode,
944
+ # either maxRate or maxRatePerInstance must be set.
943
945
  # Corresponds to the JSON property `maxRate`
944
946
  # @return [Fixnum]
945
947
  attr_accessor :max_rate
946
948
 
947
- # The max requests per second (RPS) that a single backed instance can handle.
949
+ # The max requests per second (RPS) that a single backend instance can handle.
948
950
  # This is used to calculate the capacity of the group. Can be used in either
949
951
  # balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be
950
952
  # set.
@@ -964,13 +966,13 @@ module Google
964
966
 
965
967
  # Update properties of this object
966
968
  def update!(**args)
967
- @balancing_mode = args[:balancing_mode] unless args[:balancing_mode].nil?
968
- @capacity_scaler = args[:capacity_scaler] unless args[:capacity_scaler].nil?
969
- @description = args[:description] unless args[:description].nil?
970
- @group = args[:group] unless args[:group].nil?
971
- @max_rate = args[:max_rate] unless args[:max_rate].nil?
972
- @max_rate_per_instance = args[:max_rate_per_instance] unless args[:max_rate_per_instance].nil?
973
- @max_utilization = args[:max_utilization] unless args[:max_utilization].nil?
969
+ @balancing_mode = args[:balancing_mode] if args.key?(:balancing_mode)
970
+ @capacity_scaler = args[:capacity_scaler] if args.key?(:capacity_scaler)
971
+ @description = args[:description] if args.key?(:description)
972
+ @group = args[:group] if args.key?(:group)
973
+ @max_rate = args[:max_rate] if args.key?(:max_rate)
974
+ @max_rate_per_instance = args[:max_rate_per_instance] if args.key?(:max_rate_per_instance)
975
+ @max_utilization = args[:max_utilization] if args.key?(:max_utilization)
974
976
  end
975
977
  end
976
978
 
@@ -1038,13 +1040,14 @@ module Google
1038
1040
  # @return [Fixnum]
1039
1041
  attr_accessor :port
1040
1042
 
1041
- # Name of backend port. The same name should appear in the resource views
1043
+ # Name of backend port. The same name should appear in the instance groups
1042
1044
  # referenced by this service. Required.
1043
1045
  # Corresponds to the JSON property `portName`
1044
1046
  # @return [String]
1045
1047
  attr_accessor :port_name
1046
1048
 
1047
- #
1049
+ # The protocol this BackendService uses to communicate with backends.
1050
+ # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL.
1048
1051
  # Corresponds to the JSON property `protocol`
1049
1052
  # @return [String]
1050
1053
  attr_accessor :protocol
@@ -1066,19 +1069,19 @@ module Google
1066
1069
 
1067
1070
  # Update properties of this object
1068
1071
  def update!(**args)
1069
- @backends = args[:backends] unless args[:backends].nil?
1070
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
1071
- @description = args[:description] unless args[:description].nil?
1072
- @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
1073
- @health_checks = args[:health_checks] unless args[:health_checks].nil?
1074
- @id = args[:id] unless args[:id].nil?
1075
- @kind = args[:kind] unless args[:kind].nil?
1076
- @name = args[:name] unless args[:name].nil?
1077
- @port = args[:port] unless args[:port].nil?
1078
- @port_name = args[:port_name] unless args[:port_name].nil?
1079
- @protocol = args[:protocol] unless args[:protocol].nil?
1080
- @self_link = args[:self_link] unless args[:self_link].nil?
1081
- @timeout_sec = args[:timeout_sec] unless args[:timeout_sec].nil?
1072
+ @backends = args[:backends] if args.key?(:backends)
1073
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
1074
+ @description = args[:description] if args.key?(:description)
1075
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
1076
+ @health_checks = args[:health_checks] if args.key?(:health_checks)
1077
+ @id = args[:id] if args.key?(:id)
1078
+ @kind = args[:kind] if args.key?(:kind)
1079
+ @name = args[:name] if args.key?(:name)
1080
+ @port = args[:port] if args.key?(:port)
1081
+ @port_name = args[:port_name] if args.key?(:port_name)
1082
+ @protocol = args[:protocol] if args.key?(:protocol)
1083
+ @self_link = args[:self_link] if args.key?(:self_link)
1084
+ @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
1082
1085
  end
1083
1086
  end
1084
1087
 
@@ -1103,8 +1106,8 @@ module Google
1103
1106
 
1104
1107
  # Update properties of this object
1105
1108
  def update!(**args)
1106
- @health_status = args[:health_status] unless args[:health_status].nil?
1107
- @kind = args[:kind] unless args[:kind].nil?
1109
+ @health_status = args[:health_status] if args.key?(:health_status)
1110
+ @kind = args[:kind] if args.key?(:kind)
1108
1111
  end
1109
1112
  end
1110
1113
 
@@ -1149,11 +1152,11 @@ module Google
1149
1152
 
1150
1153
  # Update properties of this object
1151
1154
  def update!(**args)
1152
- @id = args[:id] unless args[:id].nil?
1153
- @items = args[:items] unless args[:items].nil?
1154
- @kind = args[:kind] unless args[:kind].nil?
1155
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1156
- @self_link = args[:self_link] unless args[:self_link].nil?
1155
+ @id = args[:id] if args.key?(:id)
1156
+ @items = args[:items] if args.key?(:items)
1157
+ @kind = args[:kind] if args.key?(:kind)
1158
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1159
+ @self_link = args[:self_link] if args.key?(:self_link)
1157
1160
  end
1158
1161
  end
1159
1162
 
@@ -1201,11 +1204,11 @@ module Google
1201
1204
 
1202
1205
  # Update properties of this object
1203
1206
  def update!(**args)
1204
- @deleted = args[:deleted] unless args[:deleted].nil?
1205
- @deprecated = args[:deprecated] unless args[:deprecated].nil?
1206
- @obsolete = args[:obsolete] unless args[:obsolete].nil?
1207
- @replacement = args[:replacement] unless args[:replacement].nil?
1208
- @state = args[:state] unless args[:state].nil?
1207
+ @deleted = args[:deleted] if args.key?(:deleted)
1208
+ @deprecated = args[:deprecated] if args.key?(:deprecated)
1209
+ @obsolete = args[:obsolete] if args.key?(:obsolete)
1210
+ @replacement = args[:replacement] if args.key?(:replacement)
1211
+ @state = args[:state] if args.key?(:state)
1209
1212
  end
1210
1213
  end
1211
1214
 
@@ -1245,7 +1248,7 @@ module Google
1245
1248
  # @return [String]
1246
1249
  attr_accessor :last_detach_timestamp
1247
1250
 
1248
- # Any applicable publicly visible licenses.
1251
+ # [Output Only] Any applicable publicly visible licenses.
1249
1252
  # Corresponds to the JSON property `licenses`
1250
1253
  # @return [Array<String>]
1251
1254
  attr_accessor :licenses
@@ -1293,15 +1296,22 @@ module Google
1293
1296
  # projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD
1294
1297
  # where vYYYYMMDD is the image version. The fully-qualified URL will also work
1295
1298
  # in both cases.
1299
+ # You can also specify the latest image for a private image family by replacing
1300
+ # the image name suffix with family/family-name. For example:
1301
+ # global/images/family/my-private-family
1302
+ # Or you can specify an image family from a publicly-available project. For
1303
+ # example, to use the latest Debian 7 from the debian-cloud project, make sure
1304
+ # to include the project in the URL:
1305
+ # projects/debian-cloud/global/images/family/debian-7
1296
1306
  # Corresponds to the JSON property `sourceImage`
1297
1307
  # @return [String]
1298
1308
  attr_accessor :source_image
1299
1309
 
1300
- # The ID value of the image used to create this disk. This value identifies the
1301
- # exact image that was used to create this persistent disk. For example, if you
1302
- # created the persistent disk from an image that was later deleted and recreated
1303
- # under the same name, the source image ID would identify the exact version of
1304
- # the image that was used.
1310
+ # [Output Only] The ID value of the image used to create this disk. This value
1311
+ # identifies the exact image that was used to create this persistent disk. For
1312
+ # example, if you created the persistent disk from an image that was later
1313
+ # deleted and recreated under the same name, the source image ID would identify
1314
+ # the exact version of the image that was used.
1305
1315
  # Corresponds to the JSON property `sourceImageId`
1306
1316
  # @return [String]
1307
1317
  attr_accessor :source_image_id
@@ -1333,13 +1343,13 @@ module Google
1333
1343
  attr_accessor :status
1334
1344
 
1335
1345
  # URL of the disk type resource describing which disk type to use to create the
1336
- # disk; provided by the client when the disk is created.
1346
+ # disk. Provide this when creating the disk.
1337
1347
  # Corresponds to the JSON property `type`
1338
1348
  # @return [String]
1339
1349
  attr_accessor :type
1340
1350
 
1341
- # Links to the users of the disk (attached instances) in form: project/zones/
1342
- # zone/instances/instance
1351
+ # [Output Only] Links to the users of the disk (attached instances) in form:
1352
+ # project/zones/zone/instances/instance
1343
1353
  # Corresponds to the JSON property `users`
1344
1354
  # @return [Array<String>]
1345
1355
  attr_accessor :users
@@ -1355,25 +1365,25 @@ module Google
1355
1365
 
1356
1366
  # Update properties of this object
1357
1367
  def update!(**args)
1358
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
1359
- @description = args[:description] unless args[:description].nil?
1360
- @id = args[:id] unless args[:id].nil?
1361
- @kind = args[:kind] unless args[:kind].nil?
1362
- @last_attach_timestamp = args[:last_attach_timestamp] unless args[:last_attach_timestamp].nil?
1363
- @last_detach_timestamp = args[:last_detach_timestamp] unless args[:last_detach_timestamp].nil?
1364
- @licenses = args[:licenses] unless args[:licenses].nil?
1365
- @name = args[:name] unless args[:name].nil?
1366
- @options = args[:options] unless args[:options].nil?
1367
- @self_link = args[:self_link] unless args[:self_link].nil?
1368
- @size_gb = args[:size_gb] unless args[:size_gb].nil?
1369
- @source_image = args[:source_image] unless args[:source_image].nil?
1370
- @source_image_id = args[:source_image_id] unless args[:source_image_id].nil?
1371
- @source_snapshot = args[:source_snapshot] unless args[:source_snapshot].nil?
1372
- @source_snapshot_id = args[:source_snapshot_id] unless args[:source_snapshot_id].nil?
1373
- @status = args[:status] unless args[:status].nil?
1374
- @type = args[:type] unless args[:type].nil?
1375
- @users = args[:users] unless args[:users].nil?
1376
- @zone = args[:zone] unless args[:zone].nil?
1368
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
1369
+ @description = args[:description] if args.key?(:description)
1370
+ @id = args[:id] if args.key?(:id)
1371
+ @kind = args[:kind] if args.key?(:kind)
1372
+ @last_attach_timestamp = args[:last_attach_timestamp] if args.key?(:last_attach_timestamp)
1373
+ @last_detach_timestamp = args[:last_detach_timestamp] if args.key?(:last_detach_timestamp)
1374
+ @licenses = args[:licenses] if args.key?(:licenses)
1375
+ @name = args[:name] if args.key?(:name)
1376
+ @options = args[:options] if args.key?(:options)
1377
+ @self_link = args[:self_link] if args.key?(:self_link)
1378
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
1379
+ @source_image = args[:source_image] if args.key?(:source_image)
1380
+ @source_image_id = args[:source_image_id] if args.key?(:source_image_id)
1381
+ @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
1382
+ @source_snapshot_id = args[:source_snapshot_id] if args.key?(:source_snapshot_id)
1383
+ @status = args[:status] if args.key?(:status)
1384
+ @type = args[:type] if args.key?(:type)
1385
+ @users = args[:users] if args.key?(:users)
1386
+ @zone = args[:zone] if args.key?(:zone)
1377
1387
  end
1378
1388
  end
1379
1389
 
@@ -1418,11 +1428,11 @@ module Google
1418
1428
 
1419
1429
  # Update properties of this object
1420
1430
  def update!(**args)
1421
- @id = args[:id] unless args[:id].nil?
1422
- @items = args[:items] unless args[:items].nil?
1423
- @kind = args[:kind] unless args[:kind].nil?
1424
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1425
- @self_link = args[:self_link] unless args[:self_link].nil?
1431
+ @id = args[:id] if args.key?(:id)
1432
+ @items = args[:items] if args.key?(:items)
1433
+ @kind = args[:kind] if args.key?(:kind)
1434
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1435
+ @self_link = args[:self_link] if args.key?(:self_link)
1426
1436
  end
1427
1437
  end
1428
1438
 
@@ -1466,11 +1476,11 @@ module Google
1466
1476
 
1467
1477
  # Update properties of this object
1468
1478
  def update!(**args)
1469
- @id = args[:id] unless args[:id].nil?
1470
- @items = args[:items] unless args[:items].nil?
1471
- @kind = args[:kind] unless args[:kind].nil?
1472
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1473
- @self_link = args[:self_link] unless args[:self_link].nil?
1479
+ @id = args[:id] if args.key?(:id)
1480
+ @items = args[:items] if args.key?(:items)
1481
+ @kind = args[:kind] if args.key?(:kind)
1482
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1483
+ @self_link = args[:self_link] if args.key?(:self_link)
1474
1484
  end
1475
1485
  end
1476
1486
 
@@ -1478,7 +1488,7 @@ module Google
1478
1488
  class MoveDiskRequest
1479
1489
  include Google::Apis::Core::Hashable
1480
1490
 
1481
- # The URL of the destination zone to move the disk to. This can be a full or
1491
+ # The URL of the destination zone to move the disk. This can be a full or
1482
1492
  # partial URL. For example, the following are all valid URLs to a zone:
1483
1493
  # - https://www.googleapis.com/compute/v1/projects/project/zones/zone
1484
1494
  # - projects/project/zones/zone
@@ -1502,12 +1512,12 @@ module Google
1502
1512
 
1503
1513
  # Update properties of this object
1504
1514
  def update!(**args)
1505
- @destination_zone = args[:destination_zone] unless args[:destination_zone].nil?
1506
- @target_disk = args[:target_disk] unless args[:target_disk].nil?
1515
+ @destination_zone = args[:destination_zone] if args.key?(:destination_zone)
1516
+ @target_disk = args[:target_disk] if args.key?(:target_disk)
1507
1517
  end
1508
1518
  end
1509
1519
 
1510
- # A disk type resource.
1520
+ # A DiskType resource.
1511
1521
  class DiskType
1512
1522
  include Google::Apis::Core::Hashable
1513
1523
 
@@ -1569,16 +1579,16 @@ module Google
1569
1579
 
1570
1580
  # Update properties of this object
1571
1581
  def update!(**args)
1572
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
1573
- @default_disk_size_gb = args[:default_disk_size_gb] unless args[:default_disk_size_gb].nil?
1574
- @deprecated = args[:deprecated] unless args[:deprecated].nil?
1575
- @description = args[:description] unless args[:description].nil?
1576
- @id = args[:id] unless args[:id].nil?
1577
- @kind = args[:kind] unless args[:kind].nil?
1578
- @name = args[:name] unless args[:name].nil?
1579
- @self_link = args[:self_link] unless args[:self_link].nil?
1580
- @valid_disk_size = args[:valid_disk_size] unless args[:valid_disk_size].nil?
1581
- @zone = args[:zone] unless args[:zone].nil?
1582
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
1583
+ @default_disk_size_gb = args[:default_disk_size_gb] if args.key?(:default_disk_size_gb)
1584
+ @deprecated = args[:deprecated] if args.key?(:deprecated)
1585
+ @description = args[:description] if args.key?(:description)
1586
+ @id = args[:id] if args.key?(:id)
1587
+ @kind = args[:kind] if args.key?(:kind)
1588
+ @name = args[:name] if args.key?(:name)
1589
+ @self_link = args[:self_link] if args.key?(:self_link)
1590
+ @valid_disk_size = args[:valid_disk_size] if args.key?(:valid_disk_size)
1591
+ @zone = args[:zone] if args.key?(:zone)
1582
1592
  end
1583
1593
  end
1584
1594
 
@@ -1622,15 +1632,15 @@ module Google
1622
1632
 
1623
1633
  # Update properties of this object
1624
1634
  def update!(**args)
1625
- @id = args[:id] unless args[:id].nil?
1626
- @items = args[:items] unless args[:items].nil?
1627
- @kind = args[:kind] unless args[:kind].nil?
1628
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1629
- @self_link = args[:self_link] unless args[:self_link].nil?
1635
+ @id = args[:id] if args.key?(:id)
1636
+ @items = args[:items] if args.key?(:items)
1637
+ @kind = args[:kind] if args.key?(:kind)
1638
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1639
+ @self_link = args[:self_link] if args.key?(:self_link)
1630
1640
  end
1631
1641
  end
1632
1642
 
1633
- # Contains a list of disk type resources.
1643
+ # Contains a list of disk types.
1634
1644
  class DiskTypeList
1635
1645
  include Google::Apis::Core::Hashable
1636
1646
 
@@ -1670,11 +1680,11 @@ module Google
1670
1680
 
1671
1681
  # Update properties of this object
1672
1682
  def update!(**args)
1673
- @id = args[:id] unless args[:id].nil?
1674
- @items = args[:items] unless args[:items].nil?
1675
- @kind = args[:kind] unless args[:kind].nil?
1676
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1677
- @self_link = args[:self_link] unless args[:self_link].nil?
1683
+ @id = args[:id] if args.key?(:id)
1684
+ @items = args[:items] if args.key?(:items)
1685
+ @kind = args[:kind] if args.key?(:kind)
1686
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1687
+ @self_link = args[:self_link] if args.key?(:self_link)
1678
1688
  end
1679
1689
  end
1680
1690
 
@@ -1699,8 +1709,8 @@ module Google
1699
1709
 
1700
1710
  # Update properties of this object
1701
1711
  def update!(**args)
1702
- @disk_types = args[:disk_types] unless args[:disk_types].nil?
1703
- @warning = args[:warning] unless args[:warning].nil?
1712
+ @disk_types = args[:disk_types] if args.key?(:disk_types)
1713
+ @warning = args[:warning] if args.key?(:warning)
1704
1714
  end
1705
1715
 
1706
1716
  # [Output Only] Informational warning which replaces the list of disk types when
@@ -1731,9 +1741,9 @@ module Google
1731
1741
 
1732
1742
  # Update properties of this object
1733
1743
  def update!(**args)
1734
- @code = args[:code] unless args[:code].nil?
1735
- @data = args[:data] unless args[:data].nil?
1736
- @message = args[:message] unless args[:message].nil?
1744
+ @code = args[:code] if args.key?(:code)
1745
+ @data = args[:data] if args.key?(:data)
1746
+ @message = args[:message] if args.key?(:message)
1737
1747
  end
1738
1748
 
1739
1749
  #
@@ -1762,8 +1772,8 @@ module Google
1762
1772
 
1763
1773
  # Update properties of this object
1764
1774
  def update!(**args)
1765
- @key = args[:key] unless args[:key].nil?
1766
- @value = args[:value] unless args[:value].nil?
1775
+ @key = args[:key] if args.key?(:key)
1776
+ @value = args[:value] if args.key?(:value)
1767
1777
  end
1768
1778
  end
1769
1779
  end
@@ -1790,8 +1800,8 @@ module Google
1790
1800
 
1791
1801
  # Update properties of this object
1792
1802
  def update!(**args)
1793
- @disks = args[:disks] unless args[:disks].nil?
1794
- @warning = args[:warning] unless args[:warning].nil?
1803
+ @disks = args[:disks] if args.key?(:disks)
1804
+ @warning = args[:warning] if args.key?(:warning)
1795
1805
  end
1796
1806
 
1797
1807
  # [Output Only] Informational warning which replaces the list of disks when the
@@ -1822,9 +1832,9 @@ module Google
1822
1832
 
1823
1833
  # Update properties of this object
1824
1834
  def update!(**args)
1825
- @code = args[:code] unless args[:code].nil?
1826
- @data = args[:data] unless args[:data].nil?
1827
- @message = args[:message] unless args[:message].nil?
1835
+ @code = args[:code] if args.key?(:code)
1836
+ @data = args[:data] if args.key?(:data)
1837
+ @message = args[:message] if args.key?(:message)
1828
1838
  end
1829
1839
 
1830
1840
  #
@@ -1853,14 +1863,14 @@ module Google
1853
1863
 
1854
1864
  # Update properties of this object
1855
1865
  def update!(**args)
1856
- @key = args[:key] unless args[:key].nil?
1857
- @value = args[:value] unless args[:value].nil?
1866
+ @key = args[:key] if args.key?(:key)
1867
+ @value = args[:value] if args.key?(:value)
1858
1868
  end
1859
1869
  end
1860
1870
  end
1861
1871
  end
1862
1872
 
1863
- # A Firewall resource.
1873
+ # Represents a Firewall resource.
1864
1874
  class Firewall
1865
1875
  include Google::Apis::Core::Hashable
1866
1876
 
@@ -1952,17 +1962,17 @@ module Google
1952
1962
 
1953
1963
  # Update properties of this object
1954
1964
  def update!(**args)
1955
- @allowed = args[:allowed] unless args[:allowed].nil?
1956
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
1957
- @description = args[:description] unless args[:description].nil?
1958
- @id = args[:id] unless args[:id].nil?
1959
- @kind = args[:kind] unless args[:kind].nil?
1960
- @name = args[:name] unless args[:name].nil?
1961
- @network = args[:network] unless args[:network].nil?
1962
- @self_link = args[:self_link] unless args[:self_link].nil?
1963
- @source_ranges = args[:source_ranges] unless args[:source_ranges].nil?
1964
- @source_tags = args[:source_tags] unless args[:source_tags].nil?
1965
- @target_tags = args[:target_tags] unless args[:target_tags].nil?
1965
+ @allowed = args[:allowed] if args.key?(:allowed)
1966
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
1967
+ @description = args[:description] if args.key?(:description)
1968
+ @id = args[:id] if args.key?(:id)
1969
+ @kind = args[:kind] if args.key?(:kind)
1970
+ @name = args[:name] if args.key?(:name)
1971
+ @network = args[:network] if args.key?(:network)
1972
+ @self_link = args[:self_link] if args.key?(:self_link)
1973
+ @source_ranges = args[:source_ranges] if args.key?(:source_ranges)
1974
+ @source_tags = args[:source_tags] if args.key?(:source_tags)
1975
+ @target_tags = args[:target_tags] if args.key?(:target_tags)
1966
1976
  end
1967
1977
 
1968
1978
  #
@@ -1970,9 +1980,9 @@ module Google
1970
1980
  include Google::Apis::Core::Hashable
1971
1981
 
1972
1982
  # The IP protocol that is allowed for this rule. The protocol type is required
1973
- # when creating a firewall. This value can either be one of the following well
1974
- # known protocol strings (tcp, udp, icmp, esp, ah, sctp), or the IP protocol
1975
- # number.
1983
+ # when creating a firewall rule. This value can either be one of the following
1984
+ # well known protocol strings (tcp, udp, icmp, esp, ah, sctp), or the IP
1985
+ # protocol number.
1976
1986
  # Corresponds to the JSON property `IPProtocol`
1977
1987
  # @return [String]
1978
1988
  attr_accessor :ip_protocol
@@ -1991,13 +2001,13 @@ module Google
1991
2001
 
1992
2002
  # Update properties of this object
1993
2003
  def update!(**args)
1994
- @ip_protocol = args[:ip_protocol] unless args[:ip_protocol].nil?
1995
- @ports = args[:ports] unless args[:ports].nil?
2004
+ @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
2005
+ @ports = args[:ports] if args.key?(:ports)
1996
2006
  end
1997
2007
  end
1998
2008
  end
1999
2009
 
2000
- # Contains a list of Firewall resources.
2010
+ # Contains a list of firewalls.
2001
2011
  class FirewallList
2002
2012
  include Google::Apis::Core::Hashable
2003
2013
 
@@ -2038,11 +2048,11 @@ module Google
2038
2048
 
2039
2049
  # Update properties of this object
2040
2050
  def update!(**args)
2041
- @id = args[:id] unless args[:id].nil?
2042
- @items = args[:items] unless args[:items].nil?
2043
- @kind = args[:kind] unless args[:kind].nil?
2044
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
2045
- @self_link = args[:self_link] unless args[:self_link].nil?
2051
+ @id = args[:id] if args.key?(:id)
2052
+ @items = args[:items] if args.key?(:items)
2053
+ @kind = args[:kind] if args.key?(:kind)
2054
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2055
+ @self_link = args[:self_link] if args.key?(:self_link)
2046
2056
  end
2047
2057
  end
2048
2058
 
@@ -2134,17 +2144,17 @@ module Google
2134
2144
 
2135
2145
  # Update properties of this object
2136
2146
  def update!(**args)
2137
- @ip_address = args[:ip_address] unless args[:ip_address].nil?
2138
- @ip_protocol = args[:ip_protocol] unless args[:ip_protocol].nil?
2139
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
2140
- @description = args[:description] unless args[:description].nil?
2141
- @id = args[:id] unless args[:id].nil?
2142
- @kind = args[:kind] unless args[:kind].nil?
2143
- @name = args[:name] unless args[:name].nil?
2144
- @port_range = args[:port_range] unless args[:port_range].nil?
2145
- @region = args[:region] unless args[:region].nil?
2146
- @self_link = args[:self_link] unless args[:self_link].nil?
2147
- @target = args[:target] unless args[:target].nil?
2147
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
2148
+ @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
2149
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
2150
+ @description = args[:description] if args.key?(:description)
2151
+ @id = args[:id] if args.key?(:id)
2152
+ @kind = args[:kind] if args.key?(:kind)
2153
+ @name = args[:name] if args.key?(:name)
2154
+ @port_range = args[:port_range] if args.key?(:port_range)
2155
+ @region = args[:region] if args.key?(:region)
2156
+ @self_link = args[:self_link] if args.key?(:self_link)
2157
+ @target = args[:target] if args.key?(:target)
2148
2158
  end
2149
2159
  end
2150
2160
 
@@ -2163,7 +2173,8 @@ module Google
2163
2173
  # @return [Hash<String,Google::Apis::ComputeV1::ForwardingRulesScopedList>]
2164
2174
  attr_accessor :items
2165
2175
 
2166
- # Type of resource.
2176
+ # [Output Only] Type of resource. Always compute#forwardingRuleAggregatedList
2177
+ # for lists of forwarding rules.
2167
2178
  # Corresponds to the JSON property `kind`
2168
2179
  # @return [String]
2169
2180
  attr_accessor :kind
@@ -2188,11 +2199,11 @@ module Google
2188
2199
 
2189
2200
  # Update properties of this object
2190
2201
  def update!(**args)
2191
- @id = args[:id] unless args[:id].nil?
2192
- @items = args[:items] unless args[:items].nil?
2193
- @kind = args[:kind] unless args[:kind].nil?
2194
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
2195
- @self_link = args[:self_link] unless args[:self_link].nil?
2202
+ @id = args[:id] if args.key?(:id)
2203
+ @items = args[:items] if args.key?(:items)
2204
+ @kind = args[:kind] if args.key?(:kind)
2205
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2206
+ @self_link = args[:self_link] if args.key?(:self_link)
2196
2207
  end
2197
2208
  end
2198
2209
 
@@ -2235,11 +2246,11 @@ module Google
2235
2246
 
2236
2247
  # Update properties of this object
2237
2248
  def update!(**args)
2238
- @id = args[:id] unless args[:id].nil?
2239
- @items = args[:items] unless args[:items].nil?
2240
- @kind = args[:kind] unless args[:kind].nil?
2241
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
2242
- @self_link = args[:self_link] unless args[:self_link].nil?
2249
+ @id = args[:id] if args.key?(:id)
2250
+ @items = args[:items] if args.key?(:items)
2251
+ @kind = args[:kind] if args.key?(:kind)
2252
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2253
+ @self_link = args[:self_link] if args.key?(:self_link)
2243
2254
  end
2244
2255
  end
2245
2256
 
@@ -2264,8 +2275,8 @@ module Google
2264
2275
 
2265
2276
  # Update properties of this object
2266
2277
  def update!(**args)
2267
- @forwarding_rules = args[:forwarding_rules] unless args[:forwarding_rules].nil?
2268
- @warning = args[:warning] unless args[:warning].nil?
2278
+ @forwarding_rules = args[:forwarding_rules] if args.key?(:forwarding_rules)
2279
+ @warning = args[:warning] if args.key?(:warning)
2269
2280
  end
2270
2281
 
2271
2282
  # Informational warning which replaces the list of forwarding rules when the
@@ -2296,9 +2307,9 @@ module Google
2296
2307
 
2297
2308
  # Update properties of this object
2298
2309
  def update!(**args)
2299
- @code = args[:code] unless args[:code].nil?
2300
- @data = args[:data] unless args[:data].nil?
2301
- @message = args[:message] unless args[:message].nil?
2310
+ @code = args[:code] if args.key?(:code)
2311
+ @data = args[:data] if args.key?(:data)
2312
+ @message = args[:message] if args.key?(:message)
2302
2313
  end
2303
2314
 
2304
2315
  #
@@ -2327,14 +2338,19 @@ module Google
2327
2338
 
2328
2339
  # Update properties of this object
2329
2340
  def update!(**args)
2330
- @key = args[:key] unless args[:key].nil?
2331
- @value = args[:value] unless args[:value].nil?
2341
+ @key = args[:key] if args.key?(:key)
2342
+ @value = args[:value] if args.key?(:value)
2332
2343
  end
2333
2344
  end
2334
2345
  end
2335
2346
  end
2336
2347
 
2337
- #
2348
+ # A full or valid partial URL to a health check. For example, the following are
2349
+ # valid URLs:
2350
+ # - https://www.googleapis.com/compute/beta/projects/project-id/global/
2351
+ # httpHealthChecks/health-check
2352
+ # - projects/project-id/global/httpHealthChecks/health-check
2353
+ # - global/httpHealthChecks/health-check
2338
2354
  class HealthCheckReference
2339
2355
  include Google::Apis::Core::Hashable
2340
2356
 
@@ -2349,7 +2365,7 @@ module Google
2349
2365
 
2350
2366
  # Update properties of this object
2351
2367
  def update!(**args)
2352
- @health_check = args[:health_check] unless args[:health_check].nil?
2368
+ @health_check = args[:health_check] if args.key?(:health_check)
2353
2369
  end
2354
2370
  end
2355
2371
 
@@ -2383,10 +2399,10 @@ module Google
2383
2399
 
2384
2400
  # Update properties of this object
2385
2401
  def update!(**args)
2386
- @health_state = args[:health_state] unless args[:health_state].nil?
2387
- @instance = args[:instance] unless args[:instance].nil?
2388
- @ip_address = args[:ip_address] unless args[:ip_address].nil?
2389
- @port = args[:port] unless args[:port].nil?
2402
+ @health_state = args[:health_state] if args.key?(:health_state)
2403
+ @instance = args[:instance] if args.key?(:instance)
2404
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
2405
+ @port = args[:port] if args.key?(:port)
2390
2406
  end
2391
2407
  end
2392
2408
 
@@ -2420,9 +2436,9 @@ module Google
2420
2436
 
2421
2437
  # Update properties of this object
2422
2438
  def update!(**args)
2423
- @description = args[:description] unless args[:description].nil?
2424
- @hosts = args[:hosts] unless args[:hosts].nil?
2425
- @path_matcher = args[:path_matcher] unless args[:path_matcher].nil?
2439
+ @description = args[:description] if args.key?(:description)
2440
+ @hosts = args[:hosts] if args.key?(:hosts)
2441
+ @path_matcher = args[:path_matcher] if args.key?(:path_matcher)
2426
2442
  end
2427
2443
  end
2428
2444
 
@@ -2466,7 +2482,8 @@ module Google
2466
2482
  # @return [String]
2467
2483
  attr_accessor :id
2468
2484
 
2469
- # Type of the resource.
2485
+ # [Output Only] Type of the resource. Always compute#httpHealthCheck for HTTP
2486
+ # health checks.
2470
2487
  # Corresponds to the JSON property `kind`
2471
2488
  # @return [String]
2472
2489
  attr_accessor :kind
@@ -2486,7 +2503,7 @@ module Google
2486
2503
  # @return [Fixnum]
2487
2504
  attr_accessor :port
2488
2505
 
2489
- # The request path of the HTTP health check request. The default value is "/".
2506
+ # The request path of the HTTP health check request. The default value is /.
2490
2507
  # Corresponds to the JSON property `requestPath`
2491
2508
  # @return [String]
2492
2509
  attr_accessor :request_path
@@ -2515,19 +2532,19 @@ module Google
2515
2532
 
2516
2533
  # Update properties of this object
2517
2534
  def update!(**args)
2518
- @check_interval_sec = args[:check_interval_sec] unless args[:check_interval_sec].nil?
2519
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
2520
- @description = args[:description] unless args[:description].nil?
2521
- @healthy_threshold = args[:healthy_threshold] unless args[:healthy_threshold].nil?
2522
- @host = args[:host] unless args[:host].nil?
2523
- @id = args[:id] unless args[:id].nil?
2524
- @kind = args[:kind] unless args[:kind].nil?
2525
- @name = args[:name] unless args[:name].nil?
2526
- @port = args[:port] unless args[:port].nil?
2527
- @request_path = args[:request_path] unless args[:request_path].nil?
2528
- @self_link = args[:self_link] unless args[:self_link].nil?
2529
- @timeout_sec = args[:timeout_sec] unless args[:timeout_sec].nil?
2530
- @unhealthy_threshold = args[:unhealthy_threshold] unless args[:unhealthy_threshold].nil?
2535
+ @check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec)
2536
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
2537
+ @description = args[:description] if args.key?(:description)
2538
+ @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
2539
+ @host = args[:host] if args.key?(:host)
2540
+ @id = args[:id] if args.key?(:id)
2541
+ @kind = args[:kind] if args.key?(:kind)
2542
+ @name = args[:name] if args.key?(:name)
2543
+ @port = args[:port] if args.key?(:port)
2544
+ @request_path = args[:request_path] if args.key?(:request_path)
2545
+ @self_link = args[:self_link] if args.key?(:self_link)
2546
+ @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
2547
+ @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
2531
2548
  end
2532
2549
  end
2533
2550
 
@@ -2570,11 +2587,11 @@ module Google
2570
2587
 
2571
2588
  # Update properties of this object
2572
2589
  def update!(**args)
2573
- @id = args[:id] unless args[:id].nil?
2574
- @items = args[:items] unless args[:items].nil?
2575
- @kind = args[:kind] unless args[:kind].nil?
2576
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
2577
- @self_link = args[:self_link] unless args[:self_link].nil?
2590
+ @id = args[:id] if args.key?(:id)
2591
+ @items = args[:items] if args.key?(:items)
2592
+ @kind = args[:kind] if args.key?(:kind)
2593
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2594
+ @self_link = args[:self_link] if args.key?(:self_link)
2578
2595
  end
2579
2596
  end
2580
2597
 
@@ -2668,19 +2685,19 @@ module Google
2668
2685
 
2669
2686
  # Update properties of this object
2670
2687
  def update!(**args)
2671
- @check_interval_sec = args[:check_interval_sec] unless args[:check_interval_sec].nil?
2672
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
2673
- @description = args[:description] unless args[:description].nil?
2674
- @healthy_threshold = args[:healthy_threshold] unless args[:healthy_threshold].nil?
2675
- @host = args[:host] unless args[:host].nil?
2676
- @id = args[:id] unless args[:id].nil?
2677
- @kind = args[:kind] unless args[:kind].nil?
2678
- @name = args[:name] unless args[:name].nil?
2679
- @port = args[:port] unless args[:port].nil?
2680
- @request_path = args[:request_path] unless args[:request_path].nil?
2681
- @self_link = args[:self_link] unless args[:self_link].nil?
2682
- @timeout_sec = args[:timeout_sec] unless args[:timeout_sec].nil?
2683
- @unhealthy_threshold = args[:unhealthy_threshold] unless args[:unhealthy_threshold].nil?
2688
+ @check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec)
2689
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
2690
+ @description = args[:description] if args.key?(:description)
2691
+ @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
2692
+ @host = args[:host] if args.key?(:host)
2693
+ @id = args[:id] if args.key?(:id)
2694
+ @kind = args[:kind] if args.key?(:kind)
2695
+ @name = args[:name] if args.key?(:name)
2696
+ @port = args[:port] if args.key?(:port)
2697
+ @request_path = args[:request_path] if args.key?(:request_path)
2698
+ @self_link = args[:self_link] if args.key?(:self_link)
2699
+ @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
2700
+ @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
2684
2701
  end
2685
2702
  end
2686
2703
 
@@ -2723,11 +2740,11 @@ module Google
2723
2740
 
2724
2741
  # Update properties of this object
2725
2742
  def update!(**args)
2726
- @id = args[:id] unless args[:id].nil?
2727
- @items = args[:items] unless args[:items].nil?
2728
- @kind = args[:kind] unless args[:kind].nil?
2729
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
2730
- @self_link = args[:self_link] unless args[:self_link].nil?
2743
+ @id = args[:id] if args.key?(:id)
2744
+ @items = args[:items] if args.key?(:items)
2745
+ @kind = args[:kind] if args.key?(:kind)
2746
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2747
+ @self_link = args[:self_link] if args.key?(:self_link)
2731
2748
  end
2732
2749
  end
2733
2750
 
@@ -2835,21 +2852,21 @@ module Google
2835
2852
 
2836
2853
  # Update properties of this object
2837
2854
  def update!(**args)
2838
- @archive_size_bytes = args[:archive_size_bytes] unless args[:archive_size_bytes].nil?
2839
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
2840
- @deprecated = args[:deprecated] unless args[:deprecated].nil?
2841
- @description = args[:description] unless args[:description].nil?
2842
- @disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil?
2843
- @id = args[:id] unless args[:id].nil?
2844
- @kind = args[:kind] unless args[:kind].nil?
2845
- @licenses = args[:licenses] unless args[:licenses].nil?
2846
- @name = args[:name] unless args[:name].nil?
2847
- @raw_disk = args[:raw_disk] unless args[:raw_disk].nil?
2848
- @self_link = args[:self_link] unless args[:self_link].nil?
2849
- @source_disk = args[:source_disk] unless args[:source_disk].nil?
2850
- @source_disk_id = args[:source_disk_id] unless args[:source_disk_id].nil?
2851
- @source_type = args[:source_type] unless args[:source_type].nil?
2852
- @status = args[:status] unless args[:status].nil?
2855
+ @archive_size_bytes = args[:archive_size_bytes] if args.key?(:archive_size_bytes)
2856
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
2857
+ @deprecated = args[:deprecated] if args.key?(:deprecated)
2858
+ @description = args[:description] if args.key?(:description)
2859
+ @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
2860
+ @id = args[:id] if args.key?(:id)
2861
+ @kind = args[:kind] if args.key?(:kind)
2862
+ @licenses = args[:licenses] if args.key?(:licenses)
2863
+ @name = args[:name] if args.key?(:name)
2864
+ @raw_disk = args[:raw_disk] if args.key?(:raw_disk)
2865
+ @self_link = args[:self_link] if args.key?(:self_link)
2866
+ @source_disk = args[:source_disk] if args.key?(:source_disk)
2867
+ @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id)
2868
+ @source_type = args[:source_type] if args.key?(:source_type)
2869
+ @status = args[:status] if args.key?(:status)
2853
2870
  end
2854
2871
 
2855
2872
  # The parameters of the raw disk image.
@@ -2881,14 +2898,14 @@ module Google
2881
2898
 
2882
2899
  # Update properties of this object
2883
2900
  def update!(**args)
2884
- @container_type = args[:container_type] unless args[:container_type].nil?
2885
- @sha1_checksum = args[:sha1_checksum] unless args[:sha1_checksum].nil?
2886
- @source = args[:source] unless args[:source].nil?
2901
+ @container_type = args[:container_type] if args.key?(:container_type)
2902
+ @sha1_checksum = args[:sha1_checksum] if args.key?(:sha1_checksum)
2903
+ @source = args[:source] if args.key?(:source)
2887
2904
  end
2888
2905
  end
2889
2906
  end
2890
2907
 
2891
- # Contains a list of Image resources.
2908
+ # Contains a list of images.
2892
2909
  class ImageList
2893
2910
  include Google::Apis::Core::Hashable
2894
2911
 
@@ -2928,11 +2945,11 @@ module Google
2928
2945
 
2929
2946
  # Update properties of this object
2930
2947
  def update!(**args)
2931
- @id = args[:id] unless args[:id].nil?
2932
- @items = args[:items] unless args[:items].nil?
2933
- @kind = args[:kind] unless args[:kind].nil?
2934
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
2935
- @self_link = args[:self_link] unless args[:self_link].nil?
2948
+ @id = args[:id] if args.key?(:id)
2949
+ @items = args[:items] if args.key?(:items)
2950
+ @kind = args[:kind] if args.key?(:kind)
2951
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2952
+ @self_link = args[:self_link] if args.key?(:self_link)
2936
2953
  end
2937
2954
  end
2938
2955
 
@@ -2982,7 +2999,7 @@ module Google
2982
2999
  attr_accessor :kind
2983
3000
 
2984
3001
  # Full or partial URL of the machine type resource to use for this instance, in
2985
- # the format: zones/zone/machineTypes/ machine-type. This is provided by the
3002
+ # the format: zones/zone/machineTypes/machine-type. This is provided by the
2986
3003
  # client when the instance is created. For example, the following is a valid
2987
3004
  # partial url to a predefined machine type:
2988
3005
  # zones/us-central1-f/machineTypes/n1-standard-1
@@ -3065,24 +3082,24 @@ module Google
3065
3082
 
3066
3083
  # Update properties of this object
3067
3084
  def update!(**args)
3068
- @can_ip_forward = args[:can_ip_forward] unless args[:can_ip_forward].nil?
3069
- @cpu_platform = args[:cpu_platform] unless args[:cpu_platform].nil?
3070
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
3071
- @description = args[:description] unless args[:description].nil?
3072
- @disks = args[:disks] unless args[:disks].nil?
3073
- @id = args[:id] unless args[:id].nil?
3074
- @kind = args[:kind] unless args[:kind].nil?
3075
- @machine_type = args[:machine_type] unless args[:machine_type].nil?
3076
- @metadata = args[:metadata] unless args[:metadata].nil?
3077
- @name = args[:name] unless args[:name].nil?
3078
- @network_interfaces = args[:network_interfaces] unless args[:network_interfaces].nil?
3079
- @scheduling = args[:scheduling] unless args[:scheduling].nil?
3080
- @self_link = args[:self_link] unless args[:self_link].nil?
3081
- @service_accounts = args[:service_accounts] unless args[:service_accounts].nil?
3082
- @status = args[:status] unless args[:status].nil?
3083
- @status_message = args[:status_message] unless args[:status_message].nil?
3084
- @tags = args[:tags] unless args[:tags].nil?
3085
- @zone = args[:zone] unless args[:zone].nil?
3085
+ @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward)
3086
+ @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform)
3087
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
3088
+ @description = args[:description] if args.key?(:description)
3089
+ @disks = args[:disks] if args.key?(:disks)
3090
+ @id = args[:id] if args.key?(:id)
3091
+ @kind = args[:kind] if args.key?(:kind)
3092
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
3093
+ @metadata = args[:metadata] if args.key?(:metadata)
3094
+ @name = args[:name] if args.key?(:name)
3095
+ @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
3096
+ @scheduling = args[:scheduling] if args.key?(:scheduling)
3097
+ @self_link = args[:self_link] if args.key?(:self_link)
3098
+ @service_accounts = args[:service_accounts] if args.key?(:service_accounts)
3099
+ @status = args[:status] if args.key?(:status)
3100
+ @status_message = args[:status_message] if args.key?(:status_message)
3101
+ @tags = args[:tags] if args.key?(:tags)
3102
+ @zone = args[:zone] if args.key?(:zone)
3086
3103
  end
3087
3104
  end
3088
3105
 
@@ -3127,11 +3144,11 @@ module Google
3127
3144
 
3128
3145
  # Update properties of this object
3129
3146
  def update!(**args)
3130
- @id = args[:id] unless args[:id].nil?
3131
- @items = args[:items] unless args[:items].nil?
3132
- @kind = args[:kind] unless args[:kind].nil?
3133
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
3134
- @self_link = args[:self_link] unless args[:self_link].nil?
3147
+ @id = args[:id] if args.key?(:id)
3148
+ @items = args[:items] if args.key?(:items)
3149
+ @kind = args[:kind] if args.key?(:kind)
3150
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3151
+ @self_link = args[:self_link] if args.key?(:self_link)
3135
3152
  end
3136
3153
  end
3137
3154
 
@@ -3185,8 +3202,7 @@ module Google
3185
3202
  # @return [Array<Google::Apis::ComputeV1::NamedPort>]
3186
3203
  attr_accessor :named_ports
3187
3204
 
3188
- # [Output Only] The URL of the network to which all instances in the instance
3189
- # group belong.
3205
+ # The URL of the network to which all instances in the instance group belong.
3190
3206
  # Corresponds to the JSON property `network`
3191
3207
  # @return [String]
3192
3208
  attr_accessor :network
@@ -3201,6 +3217,11 @@ module Google
3201
3217
  # @return [Fixnum]
3202
3218
  attr_accessor :size
3203
3219
 
3220
+ # The URL of the subnetwork to which all instances in the instance group belong.
3221
+ # Corresponds to the JSON property `subnetwork`
3222
+ # @return [String]
3223
+ attr_accessor :subnetwork
3224
+
3204
3225
  # [Output Only] The URL of the zone where the instance group is located.
3205
3226
  # Corresponds to the JSON property `zone`
3206
3227
  # @return [String]
@@ -3212,17 +3233,18 @@ module Google
3212
3233
 
3213
3234
  # Update properties of this object
3214
3235
  def update!(**args)
3215
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
3216
- @description = args[:description] unless args[:description].nil?
3217
- @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
3218
- @id = args[:id] unless args[:id].nil?
3219
- @kind = args[:kind] unless args[:kind].nil?
3220
- @name = args[:name] unless args[:name].nil?
3221
- @named_ports = args[:named_ports] unless args[:named_ports].nil?
3222
- @network = args[:network] unless args[:network].nil?
3223
- @self_link = args[:self_link] unless args[:self_link].nil?
3224
- @size = args[:size] unless args[:size].nil?
3225
- @zone = args[:zone] unless args[:zone].nil?
3236
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
3237
+ @description = args[:description] if args.key?(:description)
3238
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
3239
+ @id = args[:id] if args.key?(:id)
3240
+ @kind = args[:kind] if args.key?(:kind)
3241
+ @name = args[:name] if args.key?(:name)
3242
+ @named_ports = args[:named_ports] if args.key?(:named_ports)
3243
+ @network = args[:network] if args.key?(:network)
3244
+ @self_link = args[:self_link] if args.key?(:self_link)
3245
+ @size = args[:size] if args.key?(:size)
3246
+ @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
3247
+ @zone = args[:zone] if args.key?(:zone)
3226
3248
  end
3227
3249
  end
3228
3250
 
@@ -3267,11 +3289,11 @@ module Google
3267
3289
 
3268
3290
  # Update properties of this object
3269
3291
  def update!(**args)
3270
- @id = args[:id] unless args[:id].nil?
3271
- @items = args[:items] unless args[:items].nil?
3272
- @kind = args[:kind] unless args[:kind].nil?
3273
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
3274
- @self_link = args[:self_link] unless args[:self_link].nil?
3292
+ @id = args[:id] if args.key?(:id)
3293
+ @items = args[:items] if args.key?(:items)
3294
+ @kind = args[:kind] if args.key?(:kind)
3295
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3296
+ @self_link = args[:self_link] if args.key?(:self_link)
3275
3297
  end
3276
3298
  end
3277
3299
 
@@ -3316,16 +3338,15 @@ module Google
3316
3338
 
3317
3339
  # Update properties of this object
3318
3340
  def update!(**args)
3319
- @id = args[:id] unless args[:id].nil?
3320
- @items = args[:items] unless args[:items].nil?
3321
- @kind = args[:kind] unless args[:kind].nil?
3322
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
3323
- @self_link = args[:self_link] unless args[:self_link].nil?
3341
+ @id = args[:id] if args.key?(:id)
3342
+ @items = args[:items] if args.key?(:items)
3343
+ @kind = args[:kind] if args.key?(:kind)
3344
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3345
+ @self_link = args[:self_link] if args.key?(:self_link)
3324
3346
  end
3325
3347
  end
3326
3348
 
3327
- # InstanceGroupManagers
3328
- # Next available tag: 20
3349
+ #
3329
3350
  class InstanceGroupManager
3330
3351
  include Google::Apis::Core::Hashable
3331
3352
 
@@ -3429,21 +3450,21 @@ module Google
3429
3450
 
3430
3451
  # Update properties of this object
3431
3452
  def update!(**args)
3432
- @base_instance_name = args[:base_instance_name] unless args[:base_instance_name].nil?
3433
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
3434
- @current_actions = args[:current_actions] unless args[:current_actions].nil?
3435
- @description = args[:description] unless args[:description].nil?
3436
- @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
3437
- @id = args[:id] unless args[:id].nil?
3438
- @instance_group = args[:instance_group] unless args[:instance_group].nil?
3439
- @instance_template = args[:instance_template] unless args[:instance_template].nil?
3440
- @kind = args[:kind] unless args[:kind].nil?
3441
- @name = args[:name] unless args[:name].nil?
3442
- @named_ports = args[:named_ports] unless args[:named_ports].nil?
3443
- @self_link = args[:self_link] unless args[:self_link].nil?
3444
- @target_pools = args[:target_pools] unless args[:target_pools].nil?
3445
- @target_size = args[:target_size] unless args[:target_size].nil?
3446
- @zone = args[:zone] unless args[:zone].nil?
3453
+ @base_instance_name = args[:base_instance_name] if args.key?(:base_instance_name)
3454
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
3455
+ @current_actions = args[:current_actions] if args.key?(:current_actions)
3456
+ @description = args[:description] if args.key?(:description)
3457
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
3458
+ @id = args[:id] if args.key?(:id)
3459
+ @instance_group = args[:instance_group] if args.key?(:instance_group)
3460
+ @instance_template = args[:instance_template] if args.key?(:instance_template)
3461
+ @kind = args[:kind] if args.key?(:kind)
3462
+ @name = args[:name] if args.key?(:name)
3463
+ @named_ports = args[:named_ports] if args.key?(:named_ports)
3464
+ @self_link = args[:self_link] if args.key?(:self_link)
3465
+ @target_pools = args[:target_pools] if args.key?(:target_pools)
3466
+ @target_size = args[:target_size] if args.key?(:target_size)
3467
+ @zone = args[:zone] if args.key?(:zone)
3447
3468
  end
3448
3469
  end
3449
3470
 
@@ -3505,13 +3526,13 @@ module Google
3505
3526
 
3506
3527
  # Update properties of this object
3507
3528
  def update!(**args)
3508
- @abandoning = args[:abandoning] unless args[:abandoning].nil?
3509
- @creating = args[:creating] unless args[:creating].nil?
3510
- @deleting = args[:deleting] unless args[:deleting].nil?
3511
- @none = args[:none] unless args[:none].nil?
3512
- @recreating = args[:recreating] unless args[:recreating].nil?
3513
- @refreshing = args[:refreshing] unless args[:refreshing].nil?
3514
- @restarting = args[:restarting] unless args[:restarting].nil?
3529
+ @abandoning = args[:abandoning] if args.key?(:abandoning)
3530
+ @creating = args[:creating] if args.key?(:creating)
3531
+ @deleting = args[:deleting] if args.key?(:deleting)
3532
+ @none = args[:none] if args.key?(:none)
3533
+ @recreating = args[:recreating] if args.key?(:recreating)
3534
+ @refreshing = args[:refreshing] if args.key?(:refreshing)
3535
+ @restarting = args[:restarting] if args.key?(:restarting)
3515
3536
  end
3516
3537
  end
3517
3538
 
@@ -3557,11 +3578,11 @@ module Google
3557
3578
 
3558
3579
  # Update properties of this object
3559
3580
  def update!(**args)
3560
- @id = args[:id] unless args[:id].nil?
3561
- @items = args[:items] unless args[:items].nil?
3562
- @kind = args[:kind] unless args[:kind].nil?
3563
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
3564
- @self_link = args[:self_link] unless args[:self_link].nil?
3581
+ @id = args[:id] if args.key?(:id)
3582
+ @items = args[:items] if args.key?(:items)
3583
+ @kind = args[:kind] if args.key?(:kind)
3584
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3585
+ @self_link = args[:self_link] if args.key?(:self_link)
3565
3586
  end
3566
3587
  end
3567
3588
 
@@ -3606,11 +3627,11 @@ module Google
3606
3627
 
3607
3628
  # Update properties of this object
3608
3629
  def update!(**args)
3609
- @id = args[:id] unless args[:id].nil?
3610
- @items = args[:items] unless args[:items].nil?
3611
- @kind = args[:kind] unless args[:kind].nil?
3612
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
3613
- @self_link = args[:self_link] unless args[:self_link].nil?
3630
+ @id = args[:id] if args.key?(:id)
3631
+ @items = args[:items] if args.key?(:items)
3632
+ @kind = args[:kind] if args.key?(:kind)
3633
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3634
+ @self_link = args[:self_link] if args.key?(:self_link)
3614
3635
  end
3615
3636
  end
3616
3637
 
@@ -3629,7 +3650,7 @@ module Google
3629
3650
 
3630
3651
  # Update properties of this object
3631
3652
  def update!(**args)
3632
- @instances = args[:instances] unless args[:instances].nil?
3653
+ @instances = args[:instances] if args.key?(:instances)
3633
3654
  end
3634
3655
  end
3635
3656
 
@@ -3649,7 +3670,7 @@ module Google
3649
3670
 
3650
3671
  # Update properties of this object
3651
3672
  def update!(**args)
3652
- @instances = args[:instances] unless args[:instances].nil?
3673
+ @instances = args[:instances] if args.key?(:instances)
3653
3674
  end
3654
3675
  end
3655
3676
 
@@ -3668,7 +3689,7 @@ module Google
3668
3689
 
3669
3690
  # Update properties of this object
3670
3691
  def update!(**args)
3671
- @managed_instances = args[:managed_instances] unless args[:managed_instances].nil?
3692
+ @managed_instances = args[:managed_instances] if args.key?(:managed_instances)
3672
3693
  end
3673
3694
  end
3674
3695
 
@@ -3687,7 +3708,7 @@ module Google
3687
3708
 
3688
3709
  # Update properties of this object
3689
3710
  def update!(**args)
3690
- @instances = args[:instances] unless args[:instances].nil?
3711
+ @instances = args[:instances] if args.key?(:instances)
3691
3712
  end
3692
3713
  end
3693
3714
 
@@ -3713,8 +3734,8 @@ module Google
3713
3734
 
3714
3735
  # Update properties of this object
3715
3736
  def update!(**args)
3716
- @instance_group_managers = args[:instance_group_managers] unless args[:instance_group_managers].nil?
3717
- @warning = args[:warning] unless args[:warning].nil?
3737
+ @instance_group_managers = args[:instance_group_managers] if args.key?(:instance_group_managers)
3738
+ @warning = args[:warning] if args.key?(:warning)
3718
3739
  end
3719
3740
 
3720
3741
  # [Output Only] The warning that replaces the list of managed instance groups
@@ -3745,9 +3766,9 @@ module Google
3745
3766
 
3746
3767
  # Update properties of this object
3747
3768
  def update!(**args)
3748
- @code = args[:code] unless args[:code].nil?
3749
- @data = args[:data] unless args[:data].nil?
3750
- @message = args[:message] unless args[:message].nil?
3769
+ @code = args[:code] if args.key?(:code)
3770
+ @data = args[:data] if args.key?(:data)
3771
+ @message = args[:message] if args.key?(:message)
3751
3772
  end
3752
3773
 
3753
3774
  #
@@ -3776,8 +3797,8 @@ module Google
3776
3797
 
3777
3798
  # Update properties of this object
3778
3799
  def update!(**args)
3779
- @key = args[:key] unless args[:key].nil?
3780
- @value = args[:value] unless args[:value].nil?
3800
+ @key = args[:key] if args.key?(:key)
3801
+ @value = args[:value] if args.key?(:value)
3781
3802
  end
3782
3803
  end
3783
3804
  end
@@ -3800,7 +3821,7 @@ module Google
3800
3821
 
3801
3822
  # Update properties of this object
3802
3823
  def update!(**args)
3803
- @instance_template = args[:instance_template] unless args[:instance_template].nil?
3824
+ @instance_template = args[:instance_template] if args.key?(:instance_template)
3804
3825
  end
3805
3826
  end
3806
3827
 
@@ -3831,8 +3852,8 @@ module Google
3831
3852
 
3832
3853
  # Update properties of this object
3833
3854
  def update!(**args)
3834
- @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
3835
- @target_pools = args[:target_pools] unless args[:target_pools].nil?
3855
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
3856
+ @target_pools = args[:target_pools] if args.key?(:target_pools)
3836
3857
  end
3837
3858
  end
3838
3859
 
@@ -3851,7 +3872,7 @@ module Google
3851
3872
 
3852
3873
  # Update properties of this object
3853
3874
  def update!(**args)
3854
- @instances = args[:instances] unless args[:instances].nil?
3875
+ @instances = args[:instances] if args.key?(:instances)
3855
3876
  end
3856
3877
  end
3857
3878
 
@@ -3898,11 +3919,11 @@ module Google
3898
3919
 
3899
3920
  # Update properties of this object
3900
3921
  def update!(**args)
3901
- @id = args[:id] unless args[:id].nil?
3902
- @items = args[:items] unless args[:items].nil?
3903
- @kind = args[:kind] unless args[:kind].nil?
3904
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
3905
- @self_link = args[:self_link] unless args[:self_link].nil?
3922
+ @id = args[:id] if args.key?(:id)
3923
+ @items = args[:items] if args.key?(:items)
3924
+ @kind = args[:kind] if args.key?(:kind)
3925
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3926
+ @self_link = args[:self_link] if args.key?(:self_link)
3906
3927
  end
3907
3928
  end
3908
3929
 
@@ -3923,7 +3944,7 @@ module Google
3923
3944
 
3924
3945
  # Update properties of this object
3925
3946
  def update!(**args)
3926
- @instance_state = args[:instance_state] unless args[:instance_state].nil?
3947
+ @instance_state = args[:instance_state] if args.key?(:instance_state)
3927
3948
  end
3928
3949
  end
3929
3950
 
@@ -3942,7 +3963,7 @@ module Google
3942
3963
 
3943
3964
  # Update properties of this object
3944
3965
  def update!(**args)
3945
- @instances = args[:instances] unless args[:instances].nil?
3966
+ @instances = args[:instances] if args.key?(:instances)
3946
3967
  end
3947
3968
  end
3948
3969
 
@@ -3967,8 +3988,8 @@ module Google
3967
3988
 
3968
3989
  # Update properties of this object
3969
3990
  def update!(**args)
3970
- @instance_groups = args[:instance_groups] unless args[:instance_groups].nil?
3971
- @warning = args[:warning] unless args[:warning].nil?
3991
+ @instance_groups = args[:instance_groups] if args.key?(:instance_groups)
3992
+ @warning = args[:warning] if args.key?(:warning)
3972
3993
  end
3973
3994
 
3974
3995
  # [Output Only] An informational warning that replaces the list of instance
@@ -3999,9 +4020,9 @@ module Google
3999
4020
 
4000
4021
  # Update properties of this object
4001
4022
  def update!(**args)
4002
- @code = args[:code] unless args[:code].nil?
4003
- @data = args[:data] unless args[:data].nil?
4004
- @message = args[:message] unless args[:message].nil?
4023
+ @code = args[:code] if args.key?(:code)
4024
+ @data = args[:data] if args.key?(:data)
4025
+ @message = args[:message] if args.key?(:message)
4005
4026
  end
4006
4027
 
4007
4028
  #
@@ -4030,8 +4051,8 @@ module Google
4030
4051
 
4031
4052
  # Update properties of this object
4032
4053
  def update!(**args)
4033
- @key = args[:key] unless args[:key].nil?
4034
- @value = args[:value] unless args[:value].nil?
4054
+ @key = args[:key] if args.key?(:key)
4055
+ @value = args[:value] if args.key?(:value)
4035
4056
  end
4036
4057
  end
4037
4058
  end
@@ -4062,12 +4083,12 @@ module Google
4062
4083
 
4063
4084
  # Update properties of this object
4064
4085
  def update!(**args)
4065
- @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
4066
- @named_ports = args[:named_ports] unless args[:named_ports].nil?
4086
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
4087
+ @named_ports = args[:named_ports] if args.key?(:named_ports)
4067
4088
  end
4068
4089
  end
4069
4090
 
4070
- # Contains a list of instance resources.
4091
+ # Contains a list of instances.
4071
4092
  class InstanceList
4072
4093
  include Google::Apis::Core::Hashable
4073
4094
 
@@ -4077,7 +4098,7 @@ module Google
4077
4098
  # @return [String]
4078
4099
  attr_accessor :id
4079
4100
 
4080
- # [Output Only] A list of Instance resources.
4101
+ # [Output Only] A list of instances.
4081
4102
  # Corresponds to the JSON property `items`
4082
4103
  # @return [Array<Google::Apis::ComputeV1::Instance>]
4083
4104
  attr_accessor :items
@@ -4108,11 +4129,11 @@ module Google
4108
4129
 
4109
4130
  # Update properties of this object
4110
4131
  def update!(**args)
4111
- @id = args[:id] unless args[:id].nil?
4112
- @items = args[:items] unless args[:items].nil?
4113
- @kind = args[:kind] unless args[:kind].nil?
4114
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
4115
- @self_link = args[:self_link] unless args[:self_link].nil?
4132
+ @id = args[:id] if args.key?(:id)
4133
+ @items = args[:items] if args.key?(:items)
4134
+ @kind = args[:kind] if args.key?(:kind)
4135
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4136
+ @self_link = args[:self_link] if args.key?(:self_link)
4116
4137
  end
4117
4138
  end
4118
4139
 
@@ -4120,7 +4141,7 @@ module Google
4120
4141
  class MoveInstanceRequest
4121
4142
  include Google::Apis::Core::Hashable
4122
4143
 
4123
- # The URL of the destination zone to move the instance to. This can be a full or
4144
+ # The URL of the destination zone to move the instance. This can be a full or
4124
4145
  # partial URL. For example, the following are all valid URLs to a zone:
4125
4146
  # - https://www.googleapis.com/compute/v1/projects/project/zones/zone
4126
4147
  # - projects/project/zones/zone
@@ -4145,8 +4166,8 @@ module Google
4145
4166
 
4146
4167
  # Update properties of this object
4147
4168
  def update!(**args)
4148
- @destination_zone = args[:destination_zone] unless args[:destination_zone].nil?
4149
- @target_instance = args[:target_instance] unless args[:target_instance].nil?
4169
+ @destination_zone = args[:destination_zone] if args.key?(:destination_zone)
4170
+ @target_instance = args[:target_instance] if args.key?(:target_instance)
4150
4171
  end
4151
4172
  end
4152
4173
 
@@ -4215,15 +4236,15 @@ module Google
4215
4236
 
4216
4237
  # Update properties of this object
4217
4238
  def update!(**args)
4218
- @can_ip_forward = args[:can_ip_forward] unless args[:can_ip_forward].nil?
4219
- @description = args[:description] unless args[:description].nil?
4220
- @disks = args[:disks] unless args[:disks].nil?
4221
- @machine_type = args[:machine_type] unless args[:machine_type].nil?
4222
- @metadata = args[:metadata] unless args[:metadata].nil?
4223
- @network_interfaces = args[:network_interfaces] unless args[:network_interfaces].nil?
4224
- @scheduling = args[:scheduling] unless args[:scheduling].nil?
4225
- @service_accounts = args[:service_accounts] unless args[:service_accounts].nil?
4226
- @tags = args[:tags] unless args[:tags].nil?
4239
+ @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward)
4240
+ @description = args[:description] if args.key?(:description)
4241
+ @disks = args[:disks] if args.key?(:disks)
4242
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
4243
+ @metadata = args[:metadata] if args.key?(:metadata)
4244
+ @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
4245
+ @scheduling = args[:scheduling] if args.key?(:scheduling)
4246
+ @service_accounts = args[:service_accounts] if args.key?(:service_accounts)
4247
+ @tags = args[:tags] if args.key?(:tags)
4227
4248
  end
4228
4249
  end
4229
4250
 
@@ -4242,7 +4263,7 @@ module Google
4242
4263
 
4243
4264
  # Update properties of this object
4244
4265
  def update!(**args)
4245
- @instance = args[:instance] unless args[:instance].nil?
4266
+ @instance = args[:instance] if args.key?(:instance)
4246
4267
  end
4247
4268
  end
4248
4269
 
@@ -4300,13 +4321,13 @@ module Google
4300
4321
 
4301
4322
  # Update properties of this object
4302
4323
  def update!(**args)
4303
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
4304
- @description = args[:description] unless args[:description].nil?
4305
- @id = args[:id] unless args[:id].nil?
4306
- @kind = args[:kind] unless args[:kind].nil?
4307
- @name = args[:name] unless args[:name].nil?
4308
- @properties = args[:properties] unless args[:properties].nil?
4309
- @self_link = args[:self_link] unless args[:self_link].nil?
4324
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
4325
+ @description = args[:description] if args.key?(:description)
4326
+ @id = args[:id] if args.key?(:id)
4327
+ @kind = args[:kind] if args.key?(:kind)
4328
+ @name = args[:name] if args.key?(:name)
4329
+ @properties = args[:properties] if args.key?(:properties)
4330
+ @self_link = args[:self_link] if args.key?(:self_link)
4310
4331
  end
4311
4332
  end
4312
4333
 
@@ -4352,11 +4373,11 @@ module Google
4352
4373
 
4353
4374
  # Update properties of this object
4354
4375
  def update!(**args)
4355
- @id = args[:id] unless args[:id].nil?
4356
- @items = args[:items] unless args[:items].nil?
4357
- @kind = args[:kind] unless args[:kind].nil?
4358
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
4359
- @self_link = args[:self_link] unless args[:self_link].nil?
4376
+ @id = args[:id] if args.key?(:id)
4377
+ @items = args[:items] if args.key?(:items)
4378
+ @kind = args[:kind] if args.key?(:kind)
4379
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4380
+ @self_link = args[:self_link] if args.key?(:self_link)
4360
4381
  end
4361
4382
  end
4362
4383
 
@@ -4385,9 +4406,9 @@ module Google
4385
4406
 
4386
4407
  # Update properties of this object
4387
4408
  def update!(**args)
4388
- @instance = args[:instance] unless args[:instance].nil?
4389
- @named_ports = args[:named_ports] unless args[:named_ports].nil?
4390
- @status = args[:status] unless args[:status].nil?
4409
+ @instance = args[:instance] if args.key?(:instance)
4410
+ @named_ports = args[:named_ports] if args.key?(:named_ports)
4411
+ @status = args[:status] if args.key?(:status)
4391
4412
  end
4392
4413
  end
4393
4414
 
@@ -4412,8 +4433,8 @@ module Google
4412
4433
 
4413
4434
  # Update properties of this object
4414
4435
  def update!(**args)
4415
- @instances = args[:instances] unless args[:instances].nil?
4416
- @warning = args[:warning] unless args[:warning].nil?
4436
+ @instances = args[:instances] if args.key?(:instances)
4437
+ @warning = args[:warning] if args.key?(:warning)
4417
4438
  end
4418
4439
 
4419
4440
  # [Output Only] Informational warning which replaces the list of instances when
@@ -4444,9 +4465,9 @@ module Google
4444
4465
 
4445
4466
  # Update properties of this object
4446
4467
  def update!(**args)
4447
- @code = args[:code] unless args[:code].nil?
4448
- @data = args[:data] unless args[:data].nil?
4449
- @message = args[:message] unless args[:message].nil?
4468
+ @code = args[:code] if args.key?(:code)
4469
+ @data = args[:data] if args.key?(:data)
4470
+ @message = args[:message] if args.key?(:message)
4450
4471
  end
4451
4472
 
4452
4473
  #
@@ -4475,13 +4496,34 @@ module Google
4475
4496
 
4476
4497
  # Update properties of this object
4477
4498
  def update!(**args)
4478
- @key = args[:key] unless args[:key].nil?
4479
- @value = args[:value] unless args[:value].nil?
4499
+ @key = args[:key] if args.key?(:key)
4500
+ @value = args[:value] if args.key?(:value)
4480
4501
  end
4481
4502
  end
4482
4503
  end
4483
4504
  end
4484
4505
 
4506
+ #
4507
+ class InstancesSetMachineTypeRequest
4508
+ include Google::Apis::Core::Hashable
4509
+
4510
+ # Full or partial URL of the machine type resource. See Machine Types for a full
4511
+ # list of machine types. For example: zones/us-central1-f/machineTypes/n1-
4512
+ # standard-1
4513
+ # Corresponds to the JSON property `machineType`
4514
+ # @return [String]
4515
+ attr_accessor :machine_type
4516
+
4517
+ def initialize(**args)
4518
+ update!(**args)
4519
+ end
4520
+
4521
+ # Update properties of this object
4522
+ def update!(**args)
4523
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
4524
+ end
4525
+ end
4526
+
4485
4527
  # A license resource.
4486
4528
  class License
4487
4529
  include Google::Apis::Core::Hashable
@@ -4515,10 +4557,10 @@ module Google
4515
4557
 
4516
4558
  # Update properties of this object
4517
4559
  def update!(**args)
4518
- @charges_use_fee = args[:charges_use_fee] unless args[:charges_use_fee].nil?
4519
- @kind = args[:kind] unless args[:kind].nil?
4520
- @name = args[:name] unless args[:name].nil?
4521
- @self_link = args[:self_link] unless args[:self_link].nil?
4560
+ @charges_use_fee = args[:charges_use_fee] if args.key?(:charges_use_fee)
4561
+ @kind = args[:kind] if args.key?(:kind)
4562
+ @name = args[:name] if args.key?(:name)
4563
+ @self_link = args[:self_link] if args.key?(:self_link)
4522
4564
  end
4523
4565
  end
4524
4566
 
@@ -4607,20 +4649,20 @@ module Google
4607
4649
 
4608
4650
  # Update properties of this object
4609
4651
  def update!(**args)
4610
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
4611
- @deprecated = args[:deprecated] unless args[:deprecated].nil?
4612
- @description = args[:description] unless args[:description].nil?
4613
- @guest_cpus = args[:guest_cpus] unless args[:guest_cpus].nil?
4614
- @id = args[:id] unless args[:id].nil?
4615
- @image_space_gb = args[:image_space_gb] unless args[:image_space_gb].nil?
4616
- @kind = args[:kind] unless args[:kind].nil?
4617
- @maximum_persistent_disks = args[:maximum_persistent_disks] unless args[:maximum_persistent_disks].nil?
4618
- @maximum_persistent_disks_size_gb = args[:maximum_persistent_disks_size_gb] unless args[:maximum_persistent_disks_size_gb].nil?
4619
- @memory_mb = args[:memory_mb] unless args[:memory_mb].nil?
4620
- @name = args[:name] unless args[:name].nil?
4621
- @scratch_disks = args[:scratch_disks] unless args[:scratch_disks].nil?
4622
- @self_link = args[:self_link] unless args[:self_link].nil?
4623
- @zone = args[:zone] unless args[:zone].nil?
4652
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
4653
+ @deprecated = args[:deprecated] if args.key?(:deprecated)
4654
+ @description = args[:description] if args.key?(:description)
4655
+ @guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus)
4656
+ @id = args[:id] if args.key?(:id)
4657
+ @image_space_gb = args[:image_space_gb] if args.key?(:image_space_gb)
4658
+ @kind = args[:kind] if args.key?(:kind)
4659
+ @maximum_persistent_disks = args[:maximum_persistent_disks] if args.key?(:maximum_persistent_disks)
4660
+ @maximum_persistent_disks_size_gb = args[:maximum_persistent_disks_size_gb] if args.key?(:maximum_persistent_disks_size_gb)
4661
+ @memory_mb = args[:memory_mb] if args.key?(:memory_mb)
4662
+ @name = args[:name] if args.key?(:name)
4663
+ @scratch_disks = args[:scratch_disks] if args.key?(:scratch_disks)
4664
+ @self_link = args[:self_link] if args.key?(:self_link)
4665
+ @zone = args[:zone] if args.key?(:zone)
4624
4666
  end
4625
4667
 
4626
4668
  #
@@ -4638,7 +4680,7 @@ module Google
4638
4680
 
4639
4681
  # Update properties of this object
4640
4682
  def update!(**args)
4641
- @disk_gb = args[:disk_gb] unless args[:disk_gb].nil?
4683
+ @disk_gb = args[:disk_gb] if args.key?(:disk_gb)
4642
4684
  end
4643
4685
  end
4644
4686
  end
@@ -4684,15 +4726,15 @@ module Google
4684
4726
 
4685
4727
  # Update properties of this object
4686
4728
  def update!(**args)
4687
- @id = args[:id] unless args[:id].nil?
4688
- @items = args[:items] unless args[:items].nil?
4689
- @kind = args[:kind] unless args[:kind].nil?
4690
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
4691
- @self_link = args[:self_link] unless args[:self_link].nil?
4729
+ @id = args[:id] if args.key?(:id)
4730
+ @items = args[:items] if args.key?(:items)
4731
+ @kind = args[:kind] if args.key?(:kind)
4732
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4733
+ @self_link = args[:self_link] if args.key?(:self_link)
4692
4734
  end
4693
4735
  end
4694
4736
 
4695
- # Contains a list of Machine Type resources.
4737
+ # Contains a list of machine types.
4696
4738
  class MachineTypeList
4697
4739
  include Google::Apis::Core::Hashable
4698
4740
 
@@ -4733,11 +4775,11 @@ module Google
4733
4775
 
4734
4776
  # Update properties of this object
4735
4777
  def update!(**args)
4736
- @id = args[:id] unless args[:id].nil?
4737
- @items = args[:items] unless args[:items].nil?
4738
- @kind = args[:kind] unless args[:kind].nil?
4739
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
4740
- @self_link = args[:self_link] unless args[:self_link].nil?
4778
+ @id = args[:id] if args.key?(:id)
4779
+ @items = args[:items] if args.key?(:items)
4780
+ @kind = args[:kind] if args.key?(:kind)
4781
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4782
+ @self_link = args[:self_link] if args.key?(:self_link)
4741
4783
  end
4742
4784
  end
4743
4785
 
@@ -4762,8 +4804,8 @@ module Google
4762
4804
 
4763
4805
  # Update properties of this object
4764
4806
  def update!(**args)
4765
- @machine_types = args[:machine_types] unless args[:machine_types].nil?
4766
- @warning = args[:warning] unless args[:warning].nil?
4807
+ @machine_types = args[:machine_types] if args.key?(:machine_types)
4808
+ @warning = args[:warning] if args.key?(:warning)
4767
4809
  end
4768
4810
 
4769
4811
  # [Output Only] An informational warning that appears when the machine types
@@ -4794,9 +4836,9 @@ module Google
4794
4836
 
4795
4837
  # Update properties of this object
4796
4838
  def update!(**args)
4797
- @code = args[:code] unless args[:code].nil?
4798
- @data = args[:data] unless args[:data].nil?
4799
- @message = args[:message] unless args[:message].nil?
4839
+ @code = args[:code] if args.key?(:code)
4840
+ @data = args[:data] if args.key?(:data)
4841
+ @message = args[:message] if args.key?(:message)
4800
4842
  end
4801
4843
 
4802
4844
  #
@@ -4825,8 +4867,8 @@ module Google
4825
4867
 
4826
4868
  # Update properties of this object
4827
4869
  def update!(**args)
4828
- @key = args[:key] unless args[:key].nil?
4829
- @value = args[:value] unless args[:value].nil?
4870
+ @key = args[:key] if args.key?(:key)
4871
+ @value = args[:value] if args.key?(:value)
4830
4872
  end
4831
4873
  end
4832
4874
  end
@@ -4888,11 +4930,11 @@ module Google
4888
4930
 
4889
4931
  # Update properties of this object
4890
4932
  def update!(**args)
4891
- @current_action = args[:current_action] unless args[:current_action].nil?
4892
- @id = args[:id] unless args[:id].nil?
4893
- @instance = args[:instance] unless args[:instance].nil?
4894
- @instance_status = args[:instance_status] unless args[:instance_status].nil?
4895
- @last_attempt = args[:last_attempt] unless args[:last_attempt].nil?
4933
+ @current_action = args[:current_action] if args.key?(:current_action)
4934
+ @id = args[:id] if args.key?(:id)
4935
+ @instance = args[:instance] if args.key?(:instance)
4936
+ @instance_status = args[:instance_status] if args.key?(:instance_status)
4937
+ @last_attempt = args[:last_attempt] if args.key?(:last_attempt)
4896
4938
  end
4897
4939
  end
4898
4940
 
@@ -4912,7 +4954,7 @@ module Google
4912
4954
 
4913
4955
  # Update properties of this object
4914
4956
  def update!(**args)
4915
- @errors = args[:errors] unless args[:errors].nil?
4957
+ @errors = args[:errors] if args.key?(:errors)
4916
4958
  end
4917
4959
 
4918
4960
  # [Output Only] Encountered errors during the last attempt to create or delete
@@ -4931,7 +4973,7 @@ module Google
4931
4973
 
4932
4974
  # Update properties of this object
4933
4975
  def update!(**args)
4934
- @errors = args[:errors] unless args[:errors].nil?
4976
+ @errors = args[:errors] if args.key?(:errors)
4935
4977
  end
4936
4978
 
4937
4979
  #
@@ -4960,9 +5002,9 @@ module Google
4960
5002
 
4961
5003
  # Update properties of this object
4962
5004
  def update!(**args)
4963
- @code = args[:code] unless args[:code].nil?
4964
- @location = args[:location] unless args[:location].nil?
4965
- @message = args[:message] unless args[:message].nil?
5005
+ @code = args[:code] if args.key?(:code)
5006
+ @location = args[:location] if args.key?(:location)
5007
+ @message = args[:message] if args.key?(:message)
4966
5008
  end
4967
5009
  end
4968
5010
  end
@@ -4998,9 +5040,9 @@ module Google
4998
5040
 
4999
5041
  # Update properties of this object
5000
5042
  def update!(**args)
5001
- @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
5002
- @items = args[:items] unless args[:items].nil?
5003
- @kind = args[:kind] unless args[:kind].nil?
5043
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
5044
+ @items = args[:items] if args.key?(:items)
5045
+ @kind = args[:kind] if args.key?(:kind)
5004
5046
  end
5005
5047
 
5006
5048
  #
@@ -5029,8 +5071,8 @@ module Google
5029
5071
 
5030
5072
  # Update properties of this object
5031
5073
  def update!(**args)
5032
- @key = args[:key] unless args[:key].nil?
5033
- @value = args[:value] unless args[:value].nil?
5074
+ @key = args[:key] if args.key?(:key)
5075
+ @value = args[:value] if args.key?(:value)
5034
5076
  end
5035
5077
  end
5036
5078
  end
@@ -5056,12 +5098,13 @@ module Google
5056
5098
 
5057
5099
  # Update properties of this object
5058
5100
  def update!(**args)
5059
- @name = args[:name] unless args[:name].nil?
5060
- @port = args[:port] unless args[:port].nil?
5101
+ @name = args[:name] if args.key?(:name)
5102
+ @port = args[:port] if args.key?(:port)
5061
5103
  end
5062
5104
  end
5063
5105
 
5064
- # A network resource.
5106
+ # Represents a Network resource. Read Networks and Firewalls for more
5107
+ # information.
5065
5108
  class Network
5066
5109
  include Google::Apis::Core::Hashable
5067
5110
 
@@ -5072,6 +5115,15 @@ module Google
5072
5115
  # @return [String]
5073
5116
  attr_accessor :i_pv4_range
5074
5117
 
5118
+ # When set to true, the network is created in "auto subnet mode". When set to
5119
+ # false, the network is in "custom subnet mode".
5120
+ # In "auto subnet mode", a newly created network is assigned the default CIDR of
5121
+ # 10.128.0.0/9 and it automatically creates one subnetwork per region.
5122
+ # Corresponds to the JSON property `autoCreateSubnetworks`
5123
+ # @return [Boolean]
5124
+ attr_accessor :auto_create_subnetworks
5125
+ alias_method :auto_create_subnetworks?, :auto_create_subnetworks
5126
+
5075
5127
  # [Output Only] Creation timestamp in RFC3339 text format.
5076
5128
  # Corresponds to the JSON property `creationTimestamp`
5077
5129
  # @return [String]
@@ -5116,20 +5168,28 @@ module Google
5116
5168
  # @return [String]
5117
5169
  attr_accessor :self_link
5118
5170
 
5171
+ # [Output Only] Server-defined fully-qualified URLs for all subnetworks in this
5172
+ # network.
5173
+ # Corresponds to the JSON property `subnetworks`
5174
+ # @return [Array<String>]
5175
+ attr_accessor :subnetworks
5176
+
5119
5177
  def initialize(**args)
5120
5178
  update!(**args)
5121
5179
  end
5122
5180
 
5123
5181
  # Update properties of this object
5124
5182
  def update!(**args)
5125
- @i_pv4_range = args[:i_pv4_range] unless args[:i_pv4_range].nil?
5126
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
5127
- @description = args[:description] unless args[:description].nil?
5128
- @gateway_i_pv4 = args[:gateway_i_pv4] unless args[:gateway_i_pv4].nil?
5129
- @id = args[:id] unless args[:id].nil?
5130
- @kind = args[:kind] unless args[:kind].nil?
5131
- @name = args[:name] unless args[:name].nil?
5132
- @self_link = args[:self_link] unless args[:self_link].nil?
5183
+ @i_pv4_range = args[:i_pv4_range] if args.key?(:i_pv4_range)
5184
+ @auto_create_subnetworks = args[:auto_create_subnetworks] if args.key?(:auto_create_subnetworks)
5185
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
5186
+ @description = args[:description] if args.key?(:description)
5187
+ @gateway_i_pv4 = args[:gateway_i_pv4] if args.key?(:gateway_i_pv4)
5188
+ @id = args[:id] if args.key?(:id)
5189
+ @kind = args[:kind] if args.key?(:kind)
5190
+ @name = args[:name] if args.key?(:name)
5191
+ @self_link = args[:self_link] if args.key?(:self_link)
5192
+ @subnetworks = args[:subnetworks] if args.key?(:subnetworks)
5133
5193
  end
5134
5194
  end
5135
5195
 
@@ -5170,20 +5230,34 @@ module Google
5170
5230
  # @return [String]
5171
5231
  attr_accessor :network_ip
5172
5232
 
5233
+ # The URL of the Subnetwork resource for this instance. If the network resource
5234
+ # is in legacy mode, do not provide this property. If the network is in auto
5235
+ # subnet mode, providing the subnetwork is optional. If the network is in custom
5236
+ # subnet mode, then this field should be specified. If you specify this property,
5237
+ # you can specify the subnetwork as a full or partial URL. For example, the
5238
+ # following are all valid URLs:
5239
+ # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/
5240
+ # subnetworks/subnetwork
5241
+ # - zones/zone/subnetworks/subnetwork
5242
+ # Corresponds to the JSON property `subnetwork`
5243
+ # @return [String]
5244
+ attr_accessor :subnetwork
5245
+
5173
5246
  def initialize(**args)
5174
5247
  update!(**args)
5175
5248
  end
5176
5249
 
5177
5250
  # Update properties of this object
5178
5251
  def update!(**args)
5179
- @access_configs = args[:access_configs] unless args[:access_configs].nil?
5180
- @name = args[:name] unless args[:name].nil?
5181
- @network = args[:network] unless args[:network].nil?
5182
- @network_ip = args[:network_ip] unless args[:network_ip].nil?
5252
+ @access_configs = args[:access_configs] if args.key?(:access_configs)
5253
+ @name = args[:name] if args.key?(:name)
5254
+ @network = args[:network] if args.key?(:network)
5255
+ @network_ip = args[:network_ip] if args.key?(:network_ip)
5256
+ @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
5183
5257
  end
5184
5258
  end
5185
5259
 
5186
- # Contains a list of Network resources.
5260
+ # Contains a list of networks.
5187
5261
  class NetworkList
5188
5262
  include Google::Apis::Core::Hashable
5189
5263
 
@@ -5224,11 +5298,11 @@ module Google
5224
5298
 
5225
5299
  # Update properties of this object
5226
5300
  def update!(**args)
5227
- @id = args[:id] unless args[:id].nil?
5228
- @items = args[:items] unless args[:items].nil?
5229
- @kind = args[:kind] unless args[:kind].nil?
5230
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
5231
- @self_link = args[:self_link] unless args[:self_link].nil?
5301
+ @id = args[:id] if args.key?(:id)
5302
+ @items = args[:items] if args.key?(:items)
5303
+ @kind = args[:kind] if args.key?(:kind)
5304
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5305
+ @self_link = args[:self_link] if args.key?(:self_link)
5232
5306
  end
5233
5307
  end
5234
5308
 
@@ -5236,7 +5310,7 @@ module Google
5236
5310
  class Operation
5237
5311
  include Google::Apis::Core::Hashable
5238
5312
 
5239
- # [Output Only] A unique client ID generated by the server.
5313
+ # [Output Only] Reserved for future use.
5240
5314
  # Corresponds to the JSON property `clientOperationId`
5241
5315
  # @return [String]
5242
5316
  attr_accessor :client_operation_id
@@ -5300,7 +5374,8 @@ module Google
5300
5374
  # @return [String]
5301
5375
  attr_accessor :name
5302
5376
 
5303
- # [Output Only] The type of operation, which can be insert, update, or delete.
5377
+ # [Output Only] The type of operation, such as insert, update, or delete, and so
5378
+ # on.
5304
5379
  # Corresponds to the JSON property `operationType`
5305
5380
  # @return [String]
5306
5381
  attr_accessor :operation_type
@@ -5313,8 +5388,8 @@ module Google
5313
5388
  # @return [Fixnum]
5314
5389
  attr_accessor :progress
5315
5390
 
5316
- # [Output Only] URL of the region where the operation resides. Only available
5317
- # when performing regional operations.
5391
+ # [Output Only] The URL of the region where the operation resides. Only
5392
+ # available when performing regional operations.
5318
5393
  # Corresponds to the JSON property `region`
5319
5394
  # @return [String]
5320
5395
  attr_accessor :region
@@ -5348,7 +5423,7 @@ module Google
5348
5423
  # @return [String]
5349
5424
  attr_accessor :target_id
5350
5425
 
5351
- # [Output Only] The URL of the resource that the operation is modifying.
5426
+ # [Output Only] The URL of the resource that the operation modifies.
5352
5427
  # Corresponds to the JSON property `targetLink`
5353
5428
  # @return [String]
5354
5429
  attr_accessor :target_link
@@ -5364,8 +5439,8 @@ module Google
5364
5439
  # @return [Array<Google::Apis::ComputeV1::Operation::Warning>]
5365
5440
  attr_accessor :warnings
5366
5441
 
5367
- # [Output Only] URL of the zone where the operation resides. Only available when
5368
- # performing per-zone operations.
5442
+ # [Output Only] The URL of the zone where the operation resides. Only available
5443
+ # when performing per-zone operations.
5369
5444
  # Corresponds to the JSON property `zone`
5370
5445
  # @return [String]
5371
5446
  attr_accessor :zone
@@ -5376,29 +5451,29 @@ module Google
5376
5451
 
5377
5452
  # Update properties of this object
5378
5453
  def update!(**args)
5379
- @client_operation_id = args[:client_operation_id] unless args[:client_operation_id].nil?
5380
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
5381
- @description = args[:description] unless args[:description].nil?
5382
- @end_time = args[:end_time] unless args[:end_time].nil?
5383
- @error = args[:error] unless args[:error].nil?
5384
- @http_error_message = args[:http_error_message] unless args[:http_error_message].nil?
5385
- @http_error_status_code = args[:http_error_status_code] unless args[:http_error_status_code].nil?
5386
- @id = args[:id] unless args[:id].nil?
5387
- @insert_time = args[:insert_time] unless args[:insert_time].nil?
5388
- @kind = args[:kind] unless args[:kind].nil?
5389
- @name = args[:name] unless args[:name].nil?
5390
- @operation_type = args[:operation_type] unless args[:operation_type].nil?
5391
- @progress = args[:progress] unless args[:progress].nil?
5392
- @region = args[:region] unless args[:region].nil?
5393
- @self_link = args[:self_link] unless args[:self_link].nil?
5394
- @start_time = args[:start_time] unless args[:start_time].nil?
5395
- @status = args[:status] unless args[:status].nil?
5396
- @status_message = args[:status_message] unless args[:status_message].nil?
5397
- @target_id = args[:target_id] unless args[:target_id].nil?
5398
- @target_link = args[:target_link] unless args[:target_link].nil?
5399
- @user = args[:user] unless args[:user].nil?
5400
- @warnings = args[:warnings] unless args[:warnings].nil?
5401
- @zone = args[:zone] unless args[:zone].nil?
5454
+ @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
5455
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
5456
+ @description = args[:description] if args.key?(:description)
5457
+ @end_time = args[:end_time] if args.key?(:end_time)
5458
+ @error = args[:error] if args.key?(:error)
5459
+ @http_error_message = args[:http_error_message] if args.key?(:http_error_message)
5460
+ @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code)
5461
+ @id = args[:id] if args.key?(:id)
5462
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
5463
+ @kind = args[:kind] if args.key?(:kind)
5464
+ @name = args[:name] if args.key?(:name)
5465
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
5466
+ @progress = args[:progress] if args.key?(:progress)
5467
+ @region = args[:region] if args.key?(:region)
5468
+ @self_link = args[:self_link] if args.key?(:self_link)
5469
+ @start_time = args[:start_time] if args.key?(:start_time)
5470
+ @status = args[:status] if args.key?(:status)
5471
+ @status_message = args[:status_message] if args.key?(:status_message)
5472
+ @target_id = args[:target_id] if args.key?(:target_id)
5473
+ @target_link = args[:target_link] if args.key?(:target_link)
5474
+ @user = args[:user] if args.key?(:user)
5475
+ @warnings = args[:warnings] if args.key?(:warnings)
5476
+ @zone = args[:zone] if args.key?(:zone)
5402
5477
  end
5403
5478
 
5404
5479
  # [Output Only] If errors are generated during processing of the operation, this
@@ -5417,7 +5492,7 @@ module Google
5417
5492
 
5418
5493
  # Update properties of this object
5419
5494
  def update!(**args)
5420
- @errors = args[:errors] unless args[:errors].nil?
5495
+ @errors = args[:errors] if args.key?(:errors)
5421
5496
  end
5422
5497
 
5423
5498
  #
@@ -5446,9 +5521,9 @@ module Google
5446
5521
 
5447
5522
  # Update properties of this object
5448
5523
  def update!(**args)
5449
- @code = args[:code] unless args[:code].nil?
5450
- @location = args[:location] unless args[:location].nil?
5451
- @message = args[:message] unless args[:message].nil?
5524
+ @code = args[:code] if args.key?(:code)
5525
+ @location = args[:location] if args.key?(:location)
5526
+ @message = args[:message] if args.key?(:message)
5452
5527
  end
5453
5528
  end
5454
5529
  end
@@ -5480,9 +5555,9 @@ module Google
5480
5555
 
5481
5556
  # Update properties of this object
5482
5557
  def update!(**args)
5483
- @code = args[:code] unless args[:code].nil?
5484
- @data = args[:data] unless args[:data].nil?
5485
- @message = args[:message] unless args[:message].nil?
5558
+ @code = args[:code] if args.key?(:code)
5559
+ @data = args[:data] if args.key?(:data)
5560
+ @message = args[:message] if args.key?(:message)
5486
5561
  end
5487
5562
 
5488
5563
  #
@@ -5511,8 +5586,8 @@ module Google
5511
5586
 
5512
5587
  # Update properties of this object
5513
5588
  def update!(**args)
5514
- @key = args[:key] unless args[:key].nil?
5515
- @value = args[:value] unless args[:value].nil?
5589
+ @key = args[:key] if args.key?(:key)
5590
+ @value = args[:value] if args.key?(:value)
5516
5591
  end
5517
5592
  end
5518
5593
  end
@@ -5559,11 +5634,11 @@ module Google
5559
5634
 
5560
5635
  # Update properties of this object
5561
5636
  def update!(**args)
5562
- @id = args[:id] unless args[:id].nil?
5563
- @items = args[:items] unless args[:items].nil?
5564
- @kind = args[:kind] unless args[:kind].nil?
5565
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
5566
- @self_link = args[:self_link] unless args[:self_link].nil?
5637
+ @id = args[:id] if args.key?(:id)
5638
+ @items = args[:items] if args.key?(:items)
5639
+ @kind = args[:kind] if args.key?(:kind)
5640
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5641
+ @self_link = args[:self_link] if args.key?(:self_link)
5567
5642
  end
5568
5643
  end
5569
5644
 
@@ -5577,7 +5652,7 @@ module Google
5577
5652
  # @return [String]
5578
5653
  attr_accessor :id
5579
5654
 
5580
- # [Output Only] The Operation resources.
5655
+ # [Output Only] A list of Operation resources.
5581
5656
  # Corresponds to the JSON property `items`
5582
5657
  # @return [Array<Google::Apis::ComputeV1::Operation>]
5583
5658
  attr_accessor :items
@@ -5608,11 +5683,11 @@ module Google
5608
5683
 
5609
5684
  # Update properties of this object
5610
5685
  def update!(**args)
5611
- @id = args[:id] unless args[:id].nil?
5612
- @items = args[:items] unless args[:items].nil?
5613
- @kind = args[:kind] unless args[:kind].nil?
5614
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
5615
- @self_link = args[:self_link] unless args[:self_link].nil?
5686
+ @id = args[:id] if args.key?(:id)
5687
+ @items = args[:items] if args.key?(:items)
5688
+ @kind = args[:kind] if args.key?(:kind)
5689
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5690
+ @self_link = args[:self_link] if args.key?(:self_link)
5616
5691
  end
5617
5692
  end
5618
5693
 
@@ -5637,8 +5712,8 @@ module Google
5637
5712
 
5638
5713
  # Update properties of this object
5639
5714
  def update!(**args)
5640
- @operations = args[:operations] unless args[:operations].nil?
5641
- @warning = args[:warning] unless args[:warning].nil?
5715
+ @operations = args[:operations] if args.key?(:operations)
5716
+ @warning = args[:warning] if args.key?(:warning)
5642
5717
  end
5643
5718
 
5644
5719
  # [Output Only] Informational warning which replaces the list of operations when
@@ -5669,9 +5744,9 @@ module Google
5669
5744
 
5670
5745
  # Update properties of this object
5671
5746
  def update!(**args)
5672
- @code = args[:code] unless args[:code].nil?
5673
- @data = args[:data] unless args[:data].nil?
5674
- @message = args[:message] unless args[:message].nil?
5747
+ @code = args[:code] if args.key?(:code)
5748
+ @data = args[:data] if args.key?(:data)
5749
+ @message = args[:message] if args.key?(:message)
5675
5750
  end
5676
5751
 
5677
5752
  #
@@ -5700,8 +5775,8 @@ module Google
5700
5775
 
5701
5776
  # Update properties of this object
5702
5777
  def update!(**args)
5703
- @key = args[:key] unless args[:key].nil?
5704
- @value = args[:value] unless args[:value].nil?
5778
+ @key = args[:key] if args.key?(:key)
5779
+ @value = args[:value] if args.key?(:value)
5705
5780
  end
5706
5781
  end
5707
5782
  end
@@ -5747,10 +5822,10 @@ module Google
5747
5822
 
5748
5823
  # Update properties of this object
5749
5824
  def update!(**args)
5750
- @default_service = args[:default_service] unless args[:default_service].nil?
5751
- @description = args[:description] unless args[:description].nil?
5752
- @name = args[:name] unless args[:name].nil?
5753
- @path_rules = args[:path_rules] unless args[:path_rules].nil?
5825
+ @default_service = args[:default_service] if args.key?(:default_service)
5826
+ @description = args[:description] if args.key?(:description)
5827
+ @name = args[:name] if args.key?(:name)
5828
+ @path_rules = args[:path_rules] if args.key?(:path_rules)
5754
5829
  end
5755
5830
  end
5756
5831
 
@@ -5778,12 +5853,12 @@ module Google
5778
5853
 
5779
5854
  # Update properties of this object
5780
5855
  def update!(**args)
5781
- @paths = args[:paths] unless args[:paths].nil?
5782
- @service = args[:service] unless args[:service].nil?
5856
+ @paths = args[:paths] if args.key?(:paths)
5857
+ @service = args[:service] if args.key?(:service)
5783
5858
  end
5784
5859
  end
5785
5860
 
5786
- # A Project resource. Projects can only be created in the Google Developers
5861
+ # A Project resource. Projects can only be created in the Google Cloud Platform
5787
5862
  # Console. Unless marked otherwise, values can only be modified in the console.
5788
5863
  class Project
5789
5864
  include Google::Apis::Core::Hashable
@@ -5848,16 +5923,16 @@ module Google
5848
5923
 
5849
5924
  # Update properties of this object
5850
5925
  def update!(**args)
5851
- @common_instance_metadata = args[:common_instance_metadata] unless args[:common_instance_metadata].nil?
5852
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
5853
- @description = args[:description] unless args[:description].nil?
5854
- @enabled_features = args[:enabled_features] unless args[:enabled_features].nil?
5855
- @id = args[:id] unless args[:id].nil?
5856
- @kind = args[:kind] unless args[:kind].nil?
5857
- @name = args[:name] unless args[:name].nil?
5858
- @quotas = args[:quotas] unless args[:quotas].nil?
5859
- @self_link = args[:self_link] unless args[:self_link].nil?
5860
- @usage_export_location = args[:usage_export_location] unless args[:usage_export_location].nil?
5926
+ @common_instance_metadata = args[:common_instance_metadata] if args.key?(:common_instance_metadata)
5927
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
5928
+ @description = args[:description] if args.key?(:description)
5929
+ @enabled_features = args[:enabled_features] if args.key?(:enabled_features)
5930
+ @id = args[:id] if args.key?(:id)
5931
+ @kind = args[:kind] if args.key?(:kind)
5932
+ @name = args[:name] if args.key?(:name)
5933
+ @quotas = args[:quotas] if args.key?(:quotas)
5934
+ @self_link = args[:self_link] if args.key?(:self_link)
5935
+ @usage_export_location = args[:usage_export_location] if args.key?(:usage_export_location)
5861
5936
  end
5862
5937
  end
5863
5938
 
@@ -5886,9 +5961,9 @@ module Google
5886
5961
 
5887
5962
  # Update properties of this object
5888
5963
  def update!(**args)
5889
- @limit = args[:limit] unless args[:limit].nil?
5890
- @metric = args[:metric] unless args[:metric].nil?
5891
- @usage = args[:usage] unless args[:usage].nil?
5964
+ @limit = args[:limit] if args.key?(:limit)
5965
+ @metric = args[:metric] if args.key?(:metric)
5966
+ @usage = args[:usage] if args.key?(:usage)
5892
5967
  end
5893
5968
  end
5894
5969
 
@@ -5954,16 +6029,16 @@ module Google
5954
6029
 
5955
6030
  # Update properties of this object
5956
6031
  def update!(**args)
5957
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
5958
- @deprecated = args[:deprecated] unless args[:deprecated].nil?
5959
- @description = args[:description] unless args[:description].nil?
5960
- @id = args[:id] unless args[:id].nil?
5961
- @kind = args[:kind] unless args[:kind].nil?
5962
- @name = args[:name] unless args[:name].nil?
5963
- @quotas = args[:quotas] unless args[:quotas].nil?
5964
- @self_link = args[:self_link] unless args[:self_link].nil?
5965
- @status = args[:status] unless args[:status].nil?
5966
- @zones = args[:zones] unless args[:zones].nil?
6032
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
6033
+ @deprecated = args[:deprecated] if args.key?(:deprecated)
6034
+ @description = args[:description] if args.key?(:description)
6035
+ @id = args[:id] if args.key?(:id)
6036
+ @kind = args[:kind] if args.key?(:kind)
6037
+ @name = args[:name] if args.key?(:name)
6038
+ @quotas = args[:quotas] if args.key?(:quotas)
6039
+ @self_link = args[:self_link] if args.key?(:self_link)
6040
+ @status = args[:status] if args.key?(:status)
6041
+ @zones = args[:zones] if args.key?(:zones)
5967
6042
  end
5968
6043
  end
5969
6044
 
@@ -6007,11 +6082,11 @@ module Google
6007
6082
 
6008
6083
  # Update properties of this object
6009
6084
  def update!(**args)
6010
- @id = args[:id] unless args[:id].nil?
6011
- @items = args[:items] unless args[:items].nil?
6012
- @kind = args[:kind] unless args[:kind].nil?
6013
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
6014
- @self_link = args[:self_link] unless args[:self_link].nil?
6085
+ @id = args[:id] if args.key?(:id)
6086
+ @items = args[:items] if args.key?(:items)
6087
+ @kind = args[:kind] if args.key?(:kind)
6088
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
6089
+ @self_link = args[:self_link] if args.key?(:self_link)
6015
6090
  end
6016
6091
  end
6017
6092
 
@@ -6030,23 +6105,24 @@ module Google
6030
6105
 
6031
6106
  # Update properties of this object
6032
6107
  def update!(**args)
6033
- @group = args[:group] unless args[:group].nil?
6108
+ @group = args[:group] if args.key?(:group)
6034
6109
  end
6035
6110
  end
6036
6111
 
6037
- # The route resource. A Route is a rule that specifies how certain packets
6038
- # should be handled by the virtual network. Routes are associated with instances
6039
- # by tags and the set of Routes for a particular instance is called its routing
6040
- # table. For each packet leaving a instance, the system searches that instance's
6041
- # routing table for a single best matching Route. Routes match packets by
6112
+ # Represents a Routes resource. A route specifies how certain packets should be
6113
+ # handled by the network. Routes are associated with instances by tags and the
6114
+ # set of routes for a particular instance is called its routing table.
6115
+ # For each packet leaving a instance, the system searches that instance's
6116
+ # routing table for a single best matching route. Routes match packets by
6042
6117
  # destination IP address, preferring smaller or more specific ranges over larger
6043
- # ones. If there is a tie, the system selects the Route with the smallest
6118
+ # ones. If there is a tie, the system selects the route with the smallest
6044
6119
  # priority value. If there is still a tie, it uses the layer three and four
6045
6120
  # packet headers to select just one of the remaining matching Routes. The packet
6046
- # is then forwarded as specified by the nextHop field of the winning Route --
6121
+ # is then forwarded as specified by the nextHop field of the winning route -
6047
6122
  # either to another instance destination, a instance gateway or a Google Compute
6048
- # Engien-operated gateway. Packets that do not match any Route in the sending
6049
- # instance's routing table are dropped.
6123
+ # Engine-operated gateway.
6124
+ # Packets that do not match any route in the sending instance's routing table
6125
+ # are dropped.
6050
6126
  class Route
6051
6127
  include Google::Apis::Core::Hashable
6052
6128
 
@@ -6151,22 +6227,22 @@ module Google
6151
6227
 
6152
6228
  # Update properties of this object
6153
6229
  def update!(**args)
6154
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
6155
- @description = args[:description] unless args[:description].nil?
6156
- @dest_range = args[:dest_range] unless args[:dest_range].nil?
6157
- @id = args[:id] unless args[:id].nil?
6158
- @kind = args[:kind] unless args[:kind].nil?
6159
- @name = args[:name] unless args[:name].nil?
6160
- @network = args[:network] unless args[:network].nil?
6161
- @next_hop_gateway = args[:next_hop_gateway] unless args[:next_hop_gateway].nil?
6162
- @next_hop_instance = args[:next_hop_instance] unless args[:next_hop_instance].nil?
6163
- @next_hop_ip = args[:next_hop_ip] unless args[:next_hop_ip].nil?
6164
- @next_hop_network = args[:next_hop_network] unless args[:next_hop_network].nil?
6165
- @next_hop_vpn_tunnel = args[:next_hop_vpn_tunnel] unless args[:next_hop_vpn_tunnel].nil?
6166
- @priority = args[:priority] unless args[:priority].nil?
6167
- @self_link = args[:self_link] unless args[:self_link].nil?
6168
- @tags = args[:tags] unless args[:tags].nil?
6169
- @warnings = args[:warnings] unless args[:warnings].nil?
6230
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
6231
+ @description = args[:description] if args.key?(:description)
6232
+ @dest_range = args[:dest_range] if args.key?(:dest_range)
6233
+ @id = args[:id] if args.key?(:id)
6234
+ @kind = args[:kind] if args.key?(:kind)
6235
+ @name = args[:name] if args.key?(:name)
6236
+ @network = args[:network] if args.key?(:network)
6237
+ @next_hop_gateway = args[:next_hop_gateway] if args.key?(:next_hop_gateway)
6238
+ @next_hop_instance = args[:next_hop_instance] if args.key?(:next_hop_instance)
6239
+ @next_hop_ip = args[:next_hop_ip] if args.key?(:next_hop_ip)
6240
+ @next_hop_network = args[:next_hop_network] if args.key?(:next_hop_network)
6241
+ @next_hop_vpn_tunnel = args[:next_hop_vpn_tunnel] if args.key?(:next_hop_vpn_tunnel)
6242
+ @priority = args[:priority] if args.key?(:priority)
6243
+ @self_link = args[:self_link] if args.key?(:self_link)
6244
+ @tags = args[:tags] if args.key?(:tags)
6245
+ @warnings = args[:warnings] if args.key?(:warnings)
6170
6246
  end
6171
6247
 
6172
6248
  #
@@ -6196,9 +6272,9 @@ module Google
6196
6272
 
6197
6273
  # Update properties of this object
6198
6274
  def update!(**args)
6199
- @code = args[:code] unless args[:code].nil?
6200
- @data = args[:data] unless args[:data].nil?
6201
- @message = args[:message] unless args[:message].nil?
6275
+ @code = args[:code] if args.key?(:code)
6276
+ @data = args[:data] if args.key?(:data)
6277
+ @message = args[:message] if args.key?(:message)
6202
6278
  end
6203
6279
 
6204
6280
  #
@@ -6227,8 +6303,8 @@ module Google
6227
6303
 
6228
6304
  # Update properties of this object
6229
6305
  def update!(**args)
6230
- @key = args[:key] unless args[:key].nil?
6231
- @value = args[:value] unless args[:value].nil?
6306
+ @key = args[:key] if args.key?(:key)
6307
+ @value = args[:value] if args.key?(:value)
6232
6308
  end
6233
6309
  end
6234
6310
  end
@@ -6273,11 +6349,11 @@ module Google
6273
6349
 
6274
6350
  # Update properties of this object
6275
6351
  def update!(**args)
6276
- @id = args[:id] unless args[:id].nil?
6277
- @items = args[:items] unless args[:items].nil?
6278
- @kind = args[:kind] unless args[:kind].nil?
6279
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
6280
- @self_link = args[:self_link] unless args[:self_link].nil?
6352
+ @id = args[:id] if args.key?(:id)
6353
+ @items = args[:items] if args.key?(:items)
6354
+ @kind = args[:kind] if args.key?(:kind)
6355
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
6356
+ @self_link = args[:self_link] if args.key?(:self_link)
6281
6357
  end
6282
6358
  end
6283
6359
 
@@ -6297,7 +6373,7 @@ module Google
6297
6373
  # Defines the maintenance behavior for this instance. For standard instances,
6298
6374
  # the default behavior is MIGRATE. For preemptible instances, the default and
6299
6375
  # only possible behavior is TERMINATE. For more information, see Setting
6300
- # maintenance behavior.
6376
+ # Instance Scheduling Options.
6301
6377
  # Corresponds to the JSON property `onHostMaintenance`
6302
6378
  # @return [String]
6303
6379
  attr_accessor :on_host_maintenance
@@ -6314,9 +6390,9 @@ module Google
6314
6390
 
6315
6391
  # Update properties of this object
6316
6392
  def update!(**args)
6317
- @automatic_restart = args[:automatic_restart] unless args[:automatic_restart].nil?
6318
- @on_host_maintenance = args[:on_host_maintenance] unless args[:on_host_maintenance].nil?
6319
- @preemptible = args[:preemptible] unless args[:preemptible].nil?
6393
+ @automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart)
6394
+ @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance)
6395
+ @preemptible = args[:preemptible] if args.key?(:preemptible)
6320
6396
  end
6321
6397
  end
6322
6398
 
@@ -6346,9 +6422,9 @@ module Google
6346
6422
 
6347
6423
  # Update properties of this object
6348
6424
  def update!(**args)
6349
- @contents = args[:contents] unless args[:contents].nil?
6350
- @kind = args[:kind] unless args[:kind].nil?
6351
- @self_link = args[:self_link] unless args[:self_link].nil?
6425
+ @contents = args[:contents] if args.key?(:contents)
6426
+ @kind = args[:kind] if args.key?(:kind)
6427
+ @self_link = args[:self_link] if args.key?(:self_link)
6352
6428
  end
6353
6429
  end
6354
6430
 
@@ -6372,8 +6448,8 @@ module Google
6372
6448
 
6373
6449
  # Update properties of this object
6374
6450
  def update!(**args)
6375
- @email = args[:email] unless args[:email].nil?
6376
- @scopes = args[:scopes] unless args[:scopes].nil?
6451
+ @email = args[:email] if args.key?(:email)
6452
+ @scopes = args[:scopes] if args.key?(:scopes)
6377
6453
  end
6378
6454
  end
6379
6455
 
@@ -6409,7 +6485,9 @@ module Google
6409
6485
  # @return [String]
6410
6486
  attr_accessor :kind
6411
6487
 
6412
- # Public visible licenses.
6488
+ # [Output Only] A list of public visible licenses that apply to this snapshot.
6489
+ # This can be because the original image had licenses attached (such as a
6490
+ # Windows image).
6413
6491
  # Corresponds to the JSON property `licenses`
6414
6492
  # @return [Array<String>]
6415
6493
  attr_accessor :licenses
@@ -6441,7 +6519,8 @@ module Google
6441
6519
  # @return [String]
6442
6520
  attr_accessor :source_disk_id
6443
6521
 
6444
- # [Output Only] The status of the snapshot.
6522
+ # [Output Only] The status of the snapshot. This can be CREATING, DELETING,
6523
+ # FAILED, READY, or UPLOADING.
6445
6524
  # Corresponds to the JSON property `status`
6446
6525
  # @return [String]
6447
6526
  attr_accessor :status
@@ -6454,7 +6533,9 @@ module Google
6454
6533
  attr_accessor :storage_bytes
6455
6534
 
6456
6535
  # [Output Only] An indicator whether storageBytes is in a stable state or it is
6457
- # being adjusted as a result of shared storage reallocation.
6536
+ # being adjusted as a result of shared storage reallocation. This status can
6537
+ # either be UPDATING, meaning the size of the snapshot is being updated, or
6538
+ # UP_TO_DATE, meaning the size of the snapshot is up-to-date.
6458
6539
  # Corresponds to the JSON property `storageBytesStatus`
6459
6540
  # @return [String]
6460
6541
  attr_accessor :storage_bytes_status
@@ -6465,19 +6546,19 @@ module Google
6465
6546
 
6466
6547
  # Update properties of this object
6467
6548
  def update!(**args)
6468
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
6469
- @description = args[:description] unless args[:description].nil?
6470
- @disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil?
6471
- @id = args[:id] unless args[:id].nil?
6472
- @kind = args[:kind] unless args[:kind].nil?
6473
- @licenses = args[:licenses] unless args[:licenses].nil?
6474
- @name = args[:name] unless args[:name].nil?
6475
- @self_link = args[:self_link] unless args[:self_link].nil?
6476
- @source_disk = args[:source_disk] unless args[:source_disk].nil?
6477
- @source_disk_id = args[:source_disk_id] unless args[:source_disk_id].nil?
6478
- @status = args[:status] unless args[:status].nil?
6479
- @storage_bytes = args[:storage_bytes] unless args[:storage_bytes].nil?
6480
- @storage_bytes_status = args[:storage_bytes_status] unless args[:storage_bytes_status].nil?
6549
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
6550
+ @description = args[:description] if args.key?(:description)
6551
+ @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
6552
+ @id = args[:id] if args.key?(:id)
6553
+ @kind = args[:kind] if args.key?(:kind)
6554
+ @licenses = args[:licenses] if args.key?(:licenses)
6555
+ @name = args[:name] if args.key?(:name)
6556
+ @self_link = args[:self_link] if args.key?(:self_link)
6557
+ @source_disk = args[:source_disk] if args.key?(:source_disk)
6558
+ @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id)
6559
+ @status = args[:status] if args.key?(:status)
6560
+ @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes)
6561
+ @storage_bytes_status = args[:storage_bytes_status] if args.key?(:storage_bytes_status)
6481
6562
  end
6482
6563
  end
6483
6564
 
@@ -6521,11 +6602,11 @@ module Google
6521
6602
 
6522
6603
  # Update properties of this object
6523
6604
  def update!(**args)
6524
- @id = args[:id] unless args[:id].nil?
6525
- @items = args[:items] unless args[:items].nil?
6526
- @kind = args[:kind] unless args[:kind].nil?
6527
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
6528
- @self_link = args[:self_link] unless args[:self_link].nil?
6605
+ @id = args[:id] if args.key?(:id)
6606
+ @items = args[:items] if args.key?(:items)
6607
+ @kind = args[:kind] if args.key?(:kind)
6608
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
6609
+ @self_link = args[:self_link] if args.key?(:self_link)
6529
6610
  end
6530
6611
  end
6531
6612
 
@@ -6592,14 +6673,14 @@ module Google
6592
6673
 
6593
6674
  # Update properties of this object
6594
6675
  def update!(**args)
6595
- @certificate = args[:certificate] unless args[:certificate].nil?
6596
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
6597
- @description = args[:description] unless args[:description].nil?
6598
- @id = args[:id] unless args[:id].nil?
6599
- @kind = args[:kind] unless args[:kind].nil?
6600
- @name = args[:name] unless args[:name].nil?
6601
- @private_key = args[:private_key] unless args[:private_key].nil?
6602
- @self_link = args[:self_link] unless args[:self_link].nil?
6676
+ @certificate = args[:certificate] if args.key?(:certificate)
6677
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
6678
+ @description = args[:description] if args.key?(:description)
6679
+ @id = args[:id] if args.key?(:id)
6680
+ @kind = args[:kind] if args.key?(:kind)
6681
+ @name = args[:name] if args.key?(:name)
6682
+ @private_key = args[:private_key] if args.key?(:private_key)
6683
+ @self_link = args[:self_link] if args.key?(:self_link)
6603
6684
  end
6604
6685
  end
6605
6686
 
@@ -6642,11 +6723,284 @@ module Google
6642
6723
 
6643
6724
  # Update properties of this object
6644
6725
  def update!(**args)
6645
- @id = args[:id] unless args[:id].nil?
6646
- @items = args[:items] unless args[:items].nil?
6647
- @kind = args[:kind] unless args[:kind].nil?
6648
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
6649
- @self_link = args[:self_link] unless args[:self_link].nil?
6726
+ @id = args[:id] if args.key?(:id)
6727
+ @items = args[:items] if args.key?(:items)
6728
+ @kind = args[:kind] if args.key?(:kind)
6729
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
6730
+ @self_link = args[:self_link] if args.key?(:self_link)
6731
+ end
6732
+ end
6733
+
6734
+ # A Subnetwork resource.
6735
+ class Subnetwork
6736
+ include Google::Apis::Core::Hashable
6737
+
6738
+ # [Output Only] Creation timestamp in RFC3339 text format.
6739
+ # Corresponds to the JSON property `creationTimestamp`
6740
+ # @return [String]
6741
+ attr_accessor :creation_timestamp
6742
+
6743
+ # An optional description of this resource. Provide this property when you
6744
+ # create the resource.
6745
+ # Corresponds to the JSON property `description`
6746
+ # @return [String]
6747
+ attr_accessor :description
6748
+
6749
+ # [Output Only] The gateway address for default routes to reach destination
6750
+ # addresses outside this subnetwork.
6751
+ # Corresponds to the JSON property `gatewayAddress`
6752
+ # @return [String]
6753
+ attr_accessor :gateway_address
6754
+
6755
+ # [Output Only] The unique identifier for the resource. This identifier is
6756
+ # defined by the server.
6757
+ # Corresponds to the JSON property `id`
6758
+ # @return [String]
6759
+ attr_accessor :id
6760
+
6761
+ # The range of internal addresses that are owned by this subnetwork. Provide
6762
+ # this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.
6763
+ # 168.0.0/16. Ranges must be unique and non-overlapping within a network.
6764
+ # Corresponds to the JSON property `ipCidrRange`
6765
+ # @return [String]
6766
+ attr_accessor :ip_cidr_range
6767
+
6768
+ # [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork
6769
+ # resources.
6770
+ # Corresponds to the JSON property `kind`
6771
+ # @return [String]
6772
+ attr_accessor :kind
6773
+
6774
+ # The name of the resource, provided by the client when initially creating the
6775
+ # resource. The name must be 1-63 characters long, and comply with RFC1035.
6776
+ # Specifically, the name must be 1-63 characters long and match the regular
6777
+ # expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be
6778
+ # a lowercase letter, and all following characters must be a dash, lowercase
6779
+ # letter, or digit, except the last character, which cannot be a dash.
6780
+ # Corresponds to the JSON property `name`
6781
+ # @return [String]
6782
+ attr_accessor :name
6783
+
6784
+ # The URL of the network to which this subnetwork belongs, provided by the
6785
+ # client when initially creating the subnetwork. Only networks that are in the
6786
+ # distributed mode can have subnetworks.
6787
+ # Corresponds to the JSON property `network`
6788
+ # @return [String]
6789
+ attr_accessor :network
6790
+
6791
+ # [Output Only] URL of the region where the Subnetwork resides.
6792
+ # Corresponds to the JSON property `region`
6793
+ # @return [String]
6794
+ attr_accessor :region
6795
+
6796
+ # [Output Only] Server-defined URL for the resource.
6797
+ # Corresponds to the JSON property `selfLink`
6798
+ # @return [String]
6799
+ attr_accessor :self_link
6800
+
6801
+ def initialize(**args)
6802
+ update!(**args)
6803
+ end
6804
+
6805
+ # Update properties of this object
6806
+ def update!(**args)
6807
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
6808
+ @description = args[:description] if args.key?(:description)
6809
+ @gateway_address = args[:gateway_address] if args.key?(:gateway_address)
6810
+ @id = args[:id] if args.key?(:id)
6811
+ @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
6812
+ @kind = args[:kind] if args.key?(:kind)
6813
+ @name = args[:name] if args.key?(:name)
6814
+ @network = args[:network] if args.key?(:network)
6815
+ @region = args[:region] if args.key?(:region)
6816
+ @self_link = args[:self_link] if args.key?(:self_link)
6817
+ end
6818
+ end
6819
+
6820
+ #
6821
+ class SubnetworkAggregatedList
6822
+ include Google::Apis::Core::Hashable
6823
+
6824
+ # [Output Only] The unique identifier for the resource. This identifier is
6825
+ # defined by the server.
6826
+ # Corresponds to the JSON property `id`
6827
+ # @return [String]
6828
+ attr_accessor :id
6829
+
6830
+ # [Output] A map of scoped Subnetwork lists.
6831
+ # Corresponds to the JSON property `items`
6832
+ # @return [Hash<String,Google::Apis::ComputeV1::SubnetworksScopedList>]
6833
+ attr_accessor :items
6834
+
6835
+ # [Output Only] Type of resource. Always compute#subnetworkAggregatedList for
6836
+ # aggregated lists of subnetworks.
6837
+ # Corresponds to the JSON property `kind`
6838
+ # @return [String]
6839
+ attr_accessor :kind
6840
+
6841
+ # [Output Only] This token allows you to get the next page of results for list
6842
+ # requests. If the number of results is larger than maxResults, use the
6843
+ # nextPageToken as a value for the query parameter pageToken in the next list
6844
+ # request. Subsequent list requests will have their own nextPageToken to
6845
+ # continue paging through the results.
6846
+ # Corresponds to the JSON property `nextPageToken`
6847
+ # @return [String]
6848
+ attr_accessor :next_page_token
6849
+
6850
+ # [Output Only] Server-defined URL for this resource.
6851
+ # Corresponds to the JSON property `selfLink`
6852
+ # @return [String]
6853
+ attr_accessor :self_link
6854
+
6855
+ def initialize(**args)
6856
+ update!(**args)
6857
+ end
6858
+
6859
+ # Update properties of this object
6860
+ def update!(**args)
6861
+ @id = args[:id] if args.key?(:id)
6862
+ @items = args[:items] if args.key?(:items)
6863
+ @kind = args[:kind] if args.key?(:kind)
6864
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
6865
+ @self_link = args[:self_link] if args.key?(:self_link)
6866
+ end
6867
+ end
6868
+
6869
+ # Contains a list of Subnetwork resources.
6870
+ class SubnetworkList
6871
+ include Google::Apis::Core::Hashable
6872
+
6873
+ # [Output Only] The unique identifier for the resource. This identifier is
6874
+ # defined by the server.
6875
+ # Corresponds to the JSON property `id`
6876
+ # @return [String]
6877
+ attr_accessor :id
6878
+
6879
+ # The Subnetwork resources.
6880
+ # Corresponds to the JSON property `items`
6881
+ # @return [Array<Google::Apis::ComputeV1::Subnetwork>]
6882
+ attr_accessor :items
6883
+
6884
+ # [Output Only] Type of resource. Always compute#subnetworkList for lists of
6885
+ # subnetworks.
6886
+ # Corresponds to the JSON property `kind`
6887
+ # @return [String]
6888
+ attr_accessor :kind
6889
+
6890
+ # [Output Only] This token allows you to get the next page of results for list
6891
+ # requests. If the number of results is larger than maxResults, use the
6892
+ # nextPageToken as a value for the query parameter pageToken in the next list
6893
+ # request. Subsequent list requests will have their own nextPageToken to
6894
+ # continue paging through the results.
6895
+ # Corresponds to the JSON property `nextPageToken`
6896
+ # @return [String]
6897
+ attr_accessor :next_page_token
6898
+
6899
+ # [Output Only] Server-defined URL for this resource.
6900
+ # Corresponds to the JSON property `selfLink`
6901
+ # @return [String]
6902
+ attr_accessor :self_link
6903
+
6904
+ def initialize(**args)
6905
+ update!(**args)
6906
+ end
6907
+
6908
+ # Update properties of this object
6909
+ def update!(**args)
6910
+ @id = args[:id] if args.key?(:id)
6911
+ @items = args[:items] if args.key?(:items)
6912
+ @kind = args[:kind] if args.key?(:kind)
6913
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
6914
+ @self_link = args[:self_link] if args.key?(:self_link)
6915
+ end
6916
+ end
6917
+
6918
+ #
6919
+ class SubnetworksScopedList
6920
+ include Google::Apis::Core::Hashable
6921
+
6922
+ # List of subnetworks contained in this scope.
6923
+ # Corresponds to the JSON property `subnetworks`
6924
+ # @return [Array<Google::Apis::ComputeV1::Subnetwork>]
6925
+ attr_accessor :subnetworks
6926
+
6927
+ # An informational warning that appears when the list of addresses is empty.
6928
+ # Corresponds to the JSON property `warning`
6929
+ # @return [Google::Apis::ComputeV1::SubnetworksScopedList::Warning]
6930
+ attr_accessor :warning
6931
+
6932
+ def initialize(**args)
6933
+ update!(**args)
6934
+ end
6935
+
6936
+ # Update properties of this object
6937
+ def update!(**args)
6938
+ @subnetworks = args[:subnetworks] if args.key?(:subnetworks)
6939
+ @warning = args[:warning] if args.key?(:warning)
6940
+ end
6941
+
6942
+ # An informational warning that appears when the list of addresses is empty.
6943
+ class Warning
6944
+ include Google::Apis::Core::Hashable
6945
+
6946
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
6947
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
6948
+ # Corresponds to the JSON property `code`
6949
+ # @return [String]
6950
+ attr_accessor :code
6951
+
6952
+ # [Output Only] Metadata about this warning in key: value format. For example:
6953
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
6954
+ # Corresponds to the JSON property `data`
6955
+ # @return [Array<Google::Apis::ComputeV1::SubnetworksScopedList::Warning::Datum>]
6956
+ attr_accessor :data
6957
+
6958
+ # [Output Only] A human-readable description of the warning code.
6959
+ # Corresponds to the JSON property `message`
6960
+ # @return [String]
6961
+ attr_accessor :message
6962
+
6963
+ def initialize(**args)
6964
+ update!(**args)
6965
+ end
6966
+
6967
+ # Update properties of this object
6968
+ def update!(**args)
6969
+ @code = args[:code] if args.key?(:code)
6970
+ @data = args[:data] if args.key?(:data)
6971
+ @message = args[:message] if args.key?(:message)
6972
+ end
6973
+
6974
+ #
6975
+ class Datum
6976
+ include Google::Apis::Core::Hashable
6977
+
6978
+ # [Output Only] A key that provides more detail on the warning being returned.
6979
+ # For example, for warnings where there are no results in a list request for a
6980
+ # particular zone, this key might be scope and the key value might be the zone
6981
+ # name. Other examples might be a key indicating a deprecated resource, and a
6982
+ # suggested replacement, or a warning about invalid network settings (for
6983
+ # example, if an instance attempts to perform IP forwarding but is not enabled
6984
+ # for IP forwarding).
6985
+ # Corresponds to the JSON property `key`
6986
+ # @return [String]
6987
+ attr_accessor :key
6988
+
6989
+ # [Output Only] A warning data value corresponding to the key.
6990
+ # Corresponds to the JSON property `value`
6991
+ # @return [String]
6992
+ attr_accessor :value
6993
+
6994
+ def initialize(**args)
6995
+ update!(**args)
6996
+ end
6997
+
6998
+ # Update properties of this object
6999
+ def update!(**args)
7000
+ @key = args[:key] if args.key?(:key)
7001
+ @value = args[:value] if args.key?(:value)
7002
+ end
7003
+ end
6650
7004
  end
6651
7005
  end
6652
7006
 
@@ -6676,8 +7030,8 @@ module Google
6676
7030
 
6677
7031
  # Update properties of this object
6678
7032
  def update!(**args)
6679
- @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
6680
- @items = args[:items] unless args[:items].nil?
7033
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
7034
+ @items = args[:items] if args.key?(:items)
6681
7035
  end
6682
7036
  end
6683
7037
 
@@ -6735,13 +7089,13 @@ module Google
6735
7089
 
6736
7090
  # Update properties of this object
6737
7091
  def update!(**args)
6738
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
6739
- @description = args[:description] unless args[:description].nil?
6740
- @id = args[:id] unless args[:id].nil?
6741
- @kind = args[:kind] unless args[:kind].nil?
6742
- @name = args[:name] unless args[:name].nil?
6743
- @self_link = args[:self_link] unless args[:self_link].nil?
6744
- @url_map = args[:url_map] unless args[:url_map].nil?
7092
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
7093
+ @description = args[:description] if args.key?(:description)
7094
+ @id = args[:id] if args.key?(:id)
7095
+ @kind = args[:kind] if args.key?(:kind)
7096
+ @name = args[:name] if args.key?(:name)
7097
+ @self_link = args[:self_link] if args.key?(:self_link)
7098
+ @url_map = args[:url_map] if args.key?(:url_map)
6745
7099
  end
6746
7100
  end
6747
7101
 
@@ -6760,7 +7114,7 @@ module Google
6760
7114
  # @return [Array<Google::Apis::ComputeV1::TargetHttpProxy>]
6761
7115
  attr_accessor :items
6762
7116
 
6763
- # Type of resource. Always compute#targetHttpProxyList for lists of Target HTTP
7117
+ # Type of resource. Always compute#targetHttpProxyList for lists of target HTTP
6764
7118
  # proxies.
6765
7119
  # Corresponds to the JSON property `kind`
6766
7120
  # @return [String]
@@ -6786,11 +7140,11 @@ module Google
6786
7140
 
6787
7141
  # Update properties of this object
6788
7142
  def update!(**args)
6789
- @id = args[:id] unless args[:id].nil?
6790
- @items = args[:items] unless args[:items].nil?
6791
- @kind = args[:kind] unless args[:kind].nil?
6792
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
6793
- @self_link = args[:self_link] unless args[:self_link].nil?
7143
+ @id = args[:id] if args.key?(:id)
7144
+ @items = args[:items] if args.key?(:items)
7145
+ @kind = args[:kind] if args.key?(:kind)
7146
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
7147
+ @self_link = args[:self_link] if args.key?(:self_link)
6794
7148
  end
6795
7149
  end
6796
7150
 
@@ -6799,7 +7153,7 @@ module Google
6799
7153
  include Google::Apis::Core::Hashable
6800
7154
 
6801
7155
  # New set of URLs to SslCertificate resources to associate with this
6802
- # TargetHttpProxy. Currently exactly one ssl certificate must be specified.
7156
+ # TargetHttpProxy. Currently exactly one SSL certificate must be specified.
6803
7157
  # Corresponds to the JSON property `sslCertificates`
6804
7158
  # @return [Array<String>]
6805
7159
  attr_accessor :ssl_certificates
@@ -6810,7 +7164,7 @@ module Google
6810
7164
 
6811
7165
  # Update properties of this object
6812
7166
  def update!(**args)
6813
- @ssl_certificates = args[:ssl_certificates] unless args[:ssl_certificates].nil?
7167
+ @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates)
6814
7168
  end
6815
7169
  end
6816
7170
 
@@ -6857,14 +7211,18 @@ module Google
6857
7211
  attr_accessor :self_link
6858
7212
 
6859
7213
  # URLs to SslCertificate resources that are used to authenticate connections
6860
- # between users and the load balancer. Currently exactly one SSL certificate
7214
+ # between users and the load balancer. Currently, exactly one SSL certificate
6861
7215
  # must be specified.
6862
7216
  # Corresponds to the JSON property `sslCertificates`
6863
7217
  # @return [Array<String>]
6864
7218
  attr_accessor :ssl_certificates
6865
7219
 
6866
- # URL to the UrlMap resource that defines the mapping from URL to the
6867
- # BackendService.
7220
+ # A fully-qualified or valid partial URL to the UrlMap resource that defines the
7221
+ # mapping from URL to the BackendService. For example, the following are all
7222
+ # valid URLs for specifying a URL map:
7223
+ # - https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map
7224
+ # - projects/project/global/urlMaps/url-map
7225
+ # - global/urlMaps/url-map
6868
7226
  # Corresponds to the JSON property `urlMap`
6869
7227
  # @return [String]
6870
7228
  attr_accessor :url_map
@@ -6875,14 +7233,14 @@ module Google
6875
7233
 
6876
7234
  # Update properties of this object
6877
7235
  def update!(**args)
6878
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
6879
- @description = args[:description] unless args[:description].nil?
6880
- @id = args[:id] unless args[:id].nil?
6881
- @kind = args[:kind] unless args[:kind].nil?
6882
- @name = args[:name] unless args[:name].nil?
6883
- @self_link = args[:self_link] unless args[:self_link].nil?
6884
- @ssl_certificates = args[:ssl_certificates] unless args[:ssl_certificates].nil?
6885
- @url_map = args[:url_map] unless args[:url_map].nil?
7236
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
7237
+ @description = args[:description] if args.key?(:description)
7238
+ @id = args[:id] if args.key?(:id)
7239
+ @kind = args[:kind] if args.key?(:kind)
7240
+ @name = args[:name] if args.key?(:name)
7241
+ @self_link = args[:self_link] if args.key?(:self_link)
7242
+ @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates)
7243
+ @url_map = args[:url_map] if args.key?(:url_map)
6886
7244
  end
6887
7245
  end
6888
7246
 
@@ -6926,11 +7284,11 @@ module Google
6926
7284
 
6927
7285
  # Update properties of this object
6928
7286
  def update!(**args)
6929
- @id = args[:id] unless args[:id].nil?
6930
- @items = args[:items] unless args[:items].nil?
6931
- @kind = args[:kind] unless args[:kind].nil?
6932
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
6933
- @self_link = args[:self_link] unless args[:self_link].nil?
7287
+ @id = args[:id] if args.key?(:id)
7288
+ @items = args[:items] if args.key?(:items)
7289
+ @kind = args[:kind] if args.key?(:kind)
7290
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
7291
+ @self_link = args[:self_link] if args.key?(:self_link)
6934
7292
  end
6935
7293
  end
6936
7294
 
@@ -6956,7 +7314,14 @@ module Google
6956
7314
  # @return [String]
6957
7315
  attr_accessor :id
6958
7316
 
6959
- # The URL to the instance that terminates the relevant traffic.
7317
+ # A URL to the virtual machine instance that handles traffic for this target
7318
+ # instance. When creating a target instance, you can provide the fully-qualified
7319
+ # URL or a valid partial URL to the desired virtual machine. For example, the
7320
+ # following are all valid URLs:
7321
+ # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/
7322
+ # instance
7323
+ # - projects/project/zones/zone/instances/instance
7324
+ # - zones/zone/instances/instance
6960
7325
  # Corresponds to the JSON property `instance`
6961
7326
  # @return [String]
6962
7327
  attr_accessor :instance
@@ -6999,15 +7364,15 @@ module Google
6999
7364
 
7000
7365
  # Update properties of this object
7001
7366
  def update!(**args)
7002
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
7003
- @description = args[:description] unless args[:description].nil?
7004
- @id = args[:id] unless args[:id].nil?
7005
- @instance = args[:instance] unless args[:instance].nil?
7006
- @kind = args[:kind] unless args[:kind].nil?
7007
- @name = args[:name] unless args[:name].nil?
7008
- @nat_policy = args[:nat_policy] unless args[:nat_policy].nil?
7009
- @self_link = args[:self_link] unless args[:self_link].nil?
7010
- @zone = args[:zone] unless args[:zone].nil?
7367
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
7368
+ @description = args[:description] if args.key?(:description)
7369
+ @id = args[:id] if args.key?(:id)
7370
+ @instance = args[:instance] if args.key?(:instance)
7371
+ @kind = args[:kind] if args.key?(:kind)
7372
+ @name = args[:name] if args.key?(:name)
7373
+ @nat_policy = args[:nat_policy] if args.key?(:nat_policy)
7374
+ @self_link = args[:self_link] if args.key?(:self_link)
7375
+ @zone = args[:zone] if args.key?(:zone)
7011
7376
  end
7012
7377
  end
7013
7378
 
@@ -7050,11 +7415,11 @@ module Google
7050
7415
 
7051
7416
  # Update properties of this object
7052
7417
  def update!(**args)
7053
- @id = args[:id] unless args[:id].nil?
7054
- @items = args[:items] unless args[:items].nil?
7055
- @kind = args[:kind] unless args[:kind].nil?
7056
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
7057
- @self_link = args[:self_link] unless args[:self_link].nil?
7418
+ @id = args[:id] if args.key?(:id)
7419
+ @items = args[:items] if args.key?(:items)
7420
+ @kind = args[:kind] if args.key?(:kind)
7421
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
7422
+ @self_link = args[:self_link] if args.key?(:self_link)
7058
7423
  end
7059
7424
  end
7060
7425
 
@@ -7098,11 +7463,11 @@ module Google
7098
7463
 
7099
7464
  # Update properties of this object
7100
7465
  def update!(**args)
7101
- @id = args[:id] unless args[:id].nil?
7102
- @items = args[:items] unless args[:items].nil?
7103
- @kind = args[:kind] unless args[:kind].nil?
7104
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
7105
- @self_link = args[:self_link] unless args[:self_link].nil?
7466
+ @id = args[:id] if args.key?(:id)
7467
+ @items = args[:items] if args.key?(:items)
7468
+ @kind = args[:kind] if args.key?(:kind)
7469
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
7470
+ @self_link = args[:self_link] if args.key?(:self_link)
7106
7471
  end
7107
7472
  end
7108
7473
 
@@ -7127,8 +7492,8 @@ module Google
7127
7492
 
7128
7493
  # Update properties of this object
7129
7494
  def update!(**args)
7130
- @target_instances = args[:target_instances] unless args[:target_instances].nil?
7131
- @warning = args[:warning] unless args[:warning].nil?
7495
+ @target_instances = args[:target_instances] if args.key?(:target_instances)
7496
+ @warning = args[:warning] if args.key?(:warning)
7132
7497
  end
7133
7498
 
7134
7499
  # Informational warning which replaces the list of addresses when the list is
@@ -7159,9 +7524,9 @@ module Google
7159
7524
 
7160
7525
  # Update properties of this object
7161
7526
  def update!(**args)
7162
- @code = args[:code] unless args[:code].nil?
7163
- @data = args[:data] unless args[:data].nil?
7164
- @message = args[:message] unless args[:message].nil?
7527
+ @code = args[:code] if args.key?(:code)
7528
+ @data = args[:data] if args.key?(:data)
7529
+ @message = args[:message] if args.key?(:message)
7165
7530
  end
7166
7531
 
7167
7532
  #
@@ -7190,15 +7555,15 @@ module Google
7190
7555
 
7191
7556
  # Update properties of this object
7192
7557
  def update!(**args)
7193
- @key = args[:key] unless args[:key].nil?
7194
- @value = args[:value] unless args[:value].nil?
7558
+ @key = args[:key] if args.key?(:key)
7559
+ @value = args[:value] if args.key?(:value)
7195
7560
  end
7196
7561
  end
7197
7562
  end
7198
7563
  end
7199
7564
 
7200
7565
  # A TargetPool resource. This resource defines a pool of instances, associated
7201
- # HttpHealthCheck resources, and the fallback TargetPool.
7566
+ # HttpHealthCheck resources, and the fallback target pool.
7202
7567
  class TargetPool
7203
7568
  include Google::Apis::Core::Hashable
7204
7569
 
@@ -7257,8 +7622,8 @@ module Google
7257
7622
  # @return [String]
7258
7623
  attr_accessor :id
7259
7624
 
7260
- # A list of resource URLs to the member virtual machines serving this pool. They
7261
- # must live in zones contained in the same region as this pool.
7625
+ # A list of resource URLs to the virtual machine instances serving this pool.
7626
+ # They must live in zones contained in the same region as this pool.
7262
7627
  # Corresponds to the JSON property `instances`
7263
7628
  # @return [Array<String>]
7264
7629
  attr_accessor :instances
@@ -7304,18 +7669,18 @@ module Google
7304
7669
 
7305
7670
  # Update properties of this object
7306
7671
  def update!(**args)
7307
- @backup_pool = args[:backup_pool] unless args[:backup_pool].nil?
7308
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
7309
- @description = args[:description] unless args[:description].nil?
7310
- @failover_ratio = args[:failover_ratio] unless args[:failover_ratio].nil?
7311
- @health_checks = args[:health_checks] unless args[:health_checks].nil?
7312
- @id = args[:id] unless args[:id].nil?
7313
- @instances = args[:instances] unless args[:instances].nil?
7314
- @kind = args[:kind] unless args[:kind].nil?
7315
- @name = args[:name] unless args[:name].nil?
7316
- @region = args[:region] unless args[:region].nil?
7317
- @self_link = args[:self_link] unless args[:self_link].nil?
7318
- @session_affinity = args[:session_affinity] unless args[:session_affinity].nil?
7672
+ @backup_pool = args[:backup_pool] if args.key?(:backup_pool)
7673
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
7674
+ @description = args[:description] if args.key?(:description)
7675
+ @failover_ratio = args[:failover_ratio] if args.key?(:failover_ratio)
7676
+ @health_checks = args[:health_checks] if args.key?(:health_checks)
7677
+ @id = args[:id] if args.key?(:id)
7678
+ @instances = args[:instances] if args.key?(:instances)
7679
+ @kind = args[:kind] if args.key?(:kind)
7680
+ @name = args[:name] if args.key?(:name)
7681
+ @region = args[:region] if args.key?(:region)
7682
+ @self_link = args[:self_link] if args.key?(:self_link)
7683
+ @session_affinity = args[:session_affinity] if args.key?(:session_affinity)
7319
7684
  end
7320
7685
  end
7321
7686
 
@@ -7328,12 +7693,13 @@ module Google
7328
7693
  # @return [String]
7329
7694
  attr_accessor :id
7330
7695
 
7331
- # A map of scoped target pool lists.
7696
+ # [Output Only] A map of scoped target pool lists.
7332
7697
  # Corresponds to the JSON property `items`
7333
7698
  # @return [Hash<String,Google::Apis::ComputeV1::TargetPoolsScopedList>]
7334
7699
  attr_accessor :items
7335
7700
 
7336
- # Type of resource.
7701
+ # [Output Only] Type of resource. Always compute#targetPoolAggregatedList for
7702
+ # aggregated lists of target pools.
7337
7703
  # Corresponds to the JSON property `kind`
7338
7704
  # @return [String]
7339
7705
  attr_accessor :kind
@@ -7358,11 +7724,11 @@ module Google
7358
7724
 
7359
7725
  # Update properties of this object
7360
7726
  def update!(**args)
7361
- @id = args[:id] unless args[:id].nil?
7362
- @items = args[:items] unless args[:items].nil?
7363
- @kind = args[:kind] unless args[:kind].nil?
7364
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
7365
- @self_link = args[:self_link] unless args[:self_link].nil?
7727
+ @id = args[:id] if args.key?(:id)
7728
+ @items = args[:items] if args.key?(:items)
7729
+ @kind = args[:kind] if args.key?(:kind)
7730
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
7731
+ @self_link = args[:self_link] if args.key?(:self_link)
7366
7732
  end
7367
7733
  end
7368
7734
 
@@ -7375,7 +7741,8 @@ module Google
7375
7741
  # @return [Array<Google::Apis::ComputeV1::HealthStatus>]
7376
7742
  attr_accessor :health_status
7377
7743
 
7378
- # Type of resource.
7744
+ # [Output Only] Type of resource. Always compute#targetPoolInstanceHealth when
7745
+ # checking the health of an instance.
7379
7746
  # Corresponds to the JSON property `kind`
7380
7747
  # @return [String]
7381
7748
  attr_accessor :kind
@@ -7386,8 +7753,8 @@ module Google
7386
7753
 
7387
7754
  # Update properties of this object
7388
7755
  def update!(**args)
7389
- @health_status = args[:health_status] unless args[:health_status].nil?
7390
- @kind = args[:kind] unless args[:kind].nil?
7756
+ @health_status = args[:health_status] if args.key?(:health_status)
7757
+ @kind = args[:kind] if args.key?(:kind)
7391
7758
  end
7392
7759
  end
7393
7760
 
@@ -7405,7 +7772,8 @@ module Google
7405
7772
  # @return [Array<Google::Apis::ComputeV1::TargetPool>]
7406
7773
  attr_accessor :items
7407
7774
 
7408
- # Type of resource.
7775
+ # [Output Only] Type of resource. Always compute#targetPoolList for lists of
7776
+ # target pools.
7409
7777
  # Corresponds to the JSON property `kind`
7410
7778
  # @return [String]
7411
7779
  attr_accessor :kind
@@ -7430,11 +7798,11 @@ module Google
7430
7798
 
7431
7799
  # Update properties of this object
7432
7800
  def update!(**args)
7433
- @id = args[:id] unless args[:id].nil?
7434
- @items = args[:items] unless args[:items].nil?
7435
- @kind = args[:kind] unless args[:kind].nil?
7436
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
7437
- @self_link = args[:self_link] unless args[:self_link].nil?
7801
+ @id = args[:id] if args.key?(:id)
7802
+ @items = args[:items] if args.key?(:items)
7803
+ @kind = args[:kind] if args.key?(:kind)
7804
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
7805
+ @self_link = args[:self_link] if args.key?(:self_link)
7438
7806
  end
7439
7807
  end
7440
7808
 
@@ -7442,7 +7810,7 @@ module Google
7442
7810
  class AddTargetPoolsHealthCheckRequest
7443
7811
  include Google::Apis::Core::Hashable
7444
7812
 
7445
- # Health check URLs to be added to targetPool.
7813
+ # A list of HttpHealthCheck resources to add to the target pool.
7446
7814
  # Corresponds to the JSON property `healthChecks`
7447
7815
  # @return [Array<Google::Apis::ComputeV1::HealthCheckReference>]
7448
7816
  attr_accessor :health_checks
@@ -7453,7 +7821,7 @@ module Google
7453
7821
 
7454
7822
  # Update properties of this object
7455
7823
  def update!(**args)
7456
- @health_checks = args[:health_checks] unless args[:health_checks].nil?
7824
+ @health_checks = args[:health_checks] if args.key?(:health_checks)
7457
7825
  end
7458
7826
  end
7459
7827
 
@@ -7461,7 +7829,12 @@ module Google
7461
7829
  class AddTargetPoolsInstanceRequest
7462
7830
  include Google::Apis::Core::Hashable
7463
7831
 
7464
- # URLs of the instances to be added to targetPool.
7832
+ # A full or partial URL to an instance to add to this target pool. This can be a
7833
+ # full or partial URL. For example, the following are valid URLs:
7834
+ # - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/
7835
+ # instances/instance-name
7836
+ # - projects/project-id/zones/zone/instances/instance-name
7837
+ # - zones/zone/instances/instance-name
7465
7838
  # Corresponds to the JSON property `instances`
7466
7839
  # @return [Array<Google::Apis::ComputeV1::InstanceReference>]
7467
7840
  attr_accessor :instances
@@ -7472,7 +7845,7 @@ module Google
7472
7845
 
7473
7846
  # Update properties of this object
7474
7847
  def update!(**args)
7475
- @instances = args[:instances] unless args[:instances].nil?
7848
+ @instances = args[:instances] if args.key?(:instances)
7476
7849
  end
7477
7850
  end
7478
7851
 
@@ -7480,7 +7853,12 @@ module Google
7480
7853
  class RemoveTargetPoolsHealthCheckRequest
7481
7854
  include Google::Apis::Core::Hashable
7482
7855
 
7483
- # Health check URLs to be removed from targetPool.
7856
+ # Health check URL to be removed. This can be a full or valid partial URL. For
7857
+ # example, the following are valid URLs:
7858
+ # - https://www.googleapis.com/compute/beta/projects/project/global/
7859
+ # httpHealthChecks/health-check
7860
+ # - projects/project/global/httpHealthChecks/health-check
7861
+ # - global/httpHealthChecks/health-check
7484
7862
  # Corresponds to the JSON property `healthChecks`
7485
7863
  # @return [Array<Google::Apis::ComputeV1::HealthCheckReference>]
7486
7864
  attr_accessor :health_checks
@@ -7491,7 +7869,7 @@ module Google
7491
7869
 
7492
7870
  # Update properties of this object
7493
7871
  def update!(**args)
7494
- @health_checks = args[:health_checks] unless args[:health_checks].nil?
7872
+ @health_checks = args[:health_checks] if args.key?(:health_checks)
7495
7873
  end
7496
7874
  end
7497
7875
 
@@ -7499,7 +7877,7 @@ module Google
7499
7877
  class RemoveTargetPoolsInstanceRequest
7500
7878
  include Google::Apis::Core::Hashable
7501
7879
 
7502
- # URLs of the instances to be removed from targetPool.
7880
+ # URLs of the instances to be removed from target pool.
7503
7881
  # Corresponds to the JSON property `instances`
7504
7882
  # @return [Array<Google::Apis::ComputeV1::InstanceReference>]
7505
7883
  attr_accessor :instances
@@ -7510,7 +7888,7 @@ module Google
7510
7888
 
7511
7889
  # Update properties of this object
7512
7890
  def update!(**args)
7513
- @instances = args[:instances] unless args[:instances].nil?
7891
+ @instances = args[:instances] if args.key?(:instances)
7514
7892
  end
7515
7893
  end
7516
7894
 
@@ -7535,8 +7913,8 @@ module Google
7535
7913
 
7536
7914
  # Update properties of this object
7537
7915
  def update!(**args)
7538
- @target_pools = args[:target_pools] unless args[:target_pools].nil?
7539
- @warning = args[:warning] unless args[:warning].nil?
7916
+ @target_pools = args[:target_pools] if args.key?(:target_pools)
7917
+ @warning = args[:warning] if args.key?(:warning)
7540
7918
  end
7541
7919
 
7542
7920
  # Informational warning which replaces the list of addresses when the list is
@@ -7567,9 +7945,9 @@ module Google
7567
7945
 
7568
7946
  # Update properties of this object
7569
7947
  def update!(**args)
7570
- @code = args[:code] unless args[:code].nil?
7571
- @data = args[:data] unless args[:data].nil?
7572
- @message = args[:message] unless args[:message].nil?
7948
+ @code = args[:code] if args.key?(:code)
7949
+ @data = args[:data] if args.key?(:data)
7950
+ @message = args[:message] if args.key?(:message)
7573
7951
  end
7574
7952
 
7575
7953
  #
@@ -7598,8 +7976,8 @@ module Google
7598
7976
 
7599
7977
  # Update properties of this object
7600
7978
  def update!(**args)
7601
- @key = args[:key] unless args[:key].nil?
7602
- @value = args[:value] unless args[:value].nil?
7979
+ @key = args[:key] if args.key?(:key)
7980
+ @value = args[:value] if args.key?(:value)
7603
7981
  end
7604
7982
  end
7605
7983
  end
@@ -7620,11 +7998,11 @@ module Google
7620
7998
 
7621
7999
  # Update properties of this object
7622
8000
  def update!(**args)
7623
- @target = args[:target] unless args[:target].nil?
8001
+ @target = args[:target] if args.key?(:target)
7624
8002
  end
7625
8003
  end
7626
8004
 
7627
- #
8005
+ # Represents a Target VPN gateway resource.
7628
8006
  class TargetVpnGateway
7629
8007
  include Google::Apis::Core::Hashable
7630
8008
 
@@ -7690,7 +8068,7 @@ module Google
7690
8068
  attr_accessor :status
7691
8069
 
7692
8070
  # [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created
7693
- # using compute.vpntunnels.insert and associated to a VPN gateway.
8071
+ # using compute.vpntunnels.insert method and associated to a VPN gateway.
7694
8072
  # Corresponds to the JSON property `tunnels`
7695
8073
  # @return [Array<String>]
7696
8074
  attr_accessor :tunnels
@@ -7701,17 +8079,17 @@ module Google
7701
8079
 
7702
8080
  # Update properties of this object
7703
8081
  def update!(**args)
7704
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
7705
- @description = args[:description] unless args[:description].nil?
7706
- @forwarding_rules = args[:forwarding_rules] unless args[:forwarding_rules].nil?
7707
- @id = args[:id] unless args[:id].nil?
7708
- @kind = args[:kind] unless args[:kind].nil?
7709
- @name = args[:name] unless args[:name].nil?
7710
- @network = args[:network] unless args[:network].nil?
7711
- @region = args[:region] unless args[:region].nil?
7712
- @self_link = args[:self_link] unless args[:self_link].nil?
7713
- @status = args[:status] unless args[:status].nil?
7714
- @tunnels = args[:tunnels] unless args[:tunnels].nil?
8082
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
8083
+ @description = args[:description] if args.key?(:description)
8084
+ @forwarding_rules = args[:forwarding_rules] if args.key?(:forwarding_rules)
8085
+ @id = args[:id] if args.key?(:id)
8086
+ @kind = args[:kind] if args.key?(:kind)
8087
+ @name = args[:name] if args.key?(:name)
8088
+ @network = args[:network] if args.key?(:network)
8089
+ @region = args[:region] if args.key?(:region)
8090
+ @self_link = args[:self_link] if args.key?(:self_link)
8091
+ @status = args[:status] if args.key?(:status)
8092
+ @tunnels = args[:tunnels] if args.key?(:tunnels)
7715
8093
  end
7716
8094
  end
7717
8095
 
@@ -7756,11 +8134,11 @@ module Google
7756
8134
 
7757
8135
  # Update properties of this object
7758
8136
  def update!(**args)
7759
- @id = args[:id] unless args[:id].nil?
7760
- @items = args[:items] unless args[:items].nil?
7761
- @kind = args[:kind] unless args[:kind].nil?
7762
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
7763
- @self_link = args[:self_link] unless args[:self_link].nil?
8137
+ @id = args[:id] if args.key?(:id)
8138
+ @items = args[:items] if args.key?(:items)
8139
+ @kind = args[:kind] if args.key?(:kind)
8140
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8141
+ @self_link = args[:self_link] if args.key?(:self_link)
7764
8142
  end
7765
8143
  end
7766
8144
 
@@ -7805,11 +8183,11 @@ module Google
7805
8183
 
7806
8184
  # Update properties of this object
7807
8185
  def update!(**args)
7808
- @id = args[:id] unless args[:id].nil?
7809
- @items = args[:items] unless args[:items].nil?
7810
- @kind = args[:kind] unless args[:kind].nil?
7811
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
7812
- @self_link = args[:self_link] unless args[:self_link].nil?
8186
+ @id = args[:id] if args.key?(:id)
8187
+ @items = args[:items] if args.key?(:items)
8188
+ @kind = args[:kind] if args.key?(:kind)
8189
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8190
+ @self_link = args[:self_link] if args.key?(:self_link)
7813
8191
  end
7814
8192
  end
7815
8193
 
@@ -7834,8 +8212,8 @@ module Google
7834
8212
 
7835
8213
  # Update properties of this object
7836
8214
  def update!(**args)
7837
- @target_vpn_gateways = args[:target_vpn_gateways] unless args[:target_vpn_gateways].nil?
7838
- @warning = args[:warning] unless args[:warning].nil?
8215
+ @target_vpn_gateways = args[:target_vpn_gateways] if args.key?(:target_vpn_gateways)
8216
+ @warning = args[:warning] if args.key?(:warning)
7839
8217
  end
7840
8218
 
7841
8219
  # [Output Only] Informational warning which replaces the list of addresses when
@@ -7866,9 +8244,9 @@ module Google
7866
8244
 
7867
8245
  # Update properties of this object
7868
8246
  def update!(**args)
7869
- @code = args[:code] unless args[:code].nil?
7870
- @data = args[:data] unless args[:data].nil?
7871
- @message = args[:message] unless args[:message].nil?
8247
+ @code = args[:code] if args.key?(:code)
8248
+ @data = args[:data] if args.key?(:data)
8249
+ @message = args[:message] if args.key?(:message)
7872
8250
  end
7873
8251
 
7874
8252
  #
@@ -7897,8 +8275,8 @@ module Google
7897
8275
 
7898
8276
  # Update properties of this object
7899
8277
  def update!(**args)
7900
- @key = args[:key] unless args[:key].nil?
7901
- @value = args[:value] unless args[:value].nil?
8278
+ @key = args[:key] if args.key?(:key)
8279
+ @value = args[:value] if args.key?(:value)
7902
8280
  end
7903
8281
  end
7904
8282
  end
@@ -7934,10 +8312,10 @@ module Google
7934
8312
 
7935
8313
  # Update properties of this object
7936
8314
  def update!(**args)
7937
- @actual_service = args[:actual_service] unless args[:actual_service].nil?
7938
- @expected_service = args[:expected_service] unless args[:expected_service].nil?
7939
- @host = args[:host] unless args[:host].nil?
7940
- @path = args[:path] unless args[:path].nil?
8315
+ @actual_service = args[:actual_service] if args.key?(:actual_service)
8316
+ @expected_service = args[:expected_service] if args.key?(:expected_service)
8317
+ @host = args[:host] if args.key?(:host)
8318
+ @path = args[:path] if args.key?(:path)
7941
8319
  end
7942
8320
  end
7943
8321
 
@@ -8019,17 +8397,17 @@ module Google
8019
8397
 
8020
8398
  # Update properties of this object
8021
8399
  def update!(**args)
8022
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
8023
- @default_service = args[:default_service] unless args[:default_service].nil?
8024
- @description = args[:description] unless args[:description].nil?
8025
- @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
8026
- @host_rules = args[:host_rules] unless args[:host_rules].nil?
8027
- @id = args[:id] unless args[:id].nil?
8028
- @kind = args[:kind] unless args[:kind].nil?
8029
- @name = args[:name] unless args[:name].nil?
8030
- @path_matchers = args[:path_matchers] unless args[:path_matchers].nil?
8031
- @self_link = args[:self_link] unless args[:self_link].nil?
8032
- @tests = args[:tests] unless args[:tests].nil?
8400
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
8401
+ @default_service = args[:default_service] if args.key?(:default_service)
8402
+ @description = args[:description] if args.key?(:description)
8403
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
8404
+ @host_rules = args[:host_rules] if args.key?(:host_rules)
8405
+ @id = args[:id] if args.key?(:id)
8406
+ @kind = args[:kind] if args.key?(:kind)
8407
+ @name = args[:name] if args.key?(:name)
8408
+ @path_matchers = args[:path_matchers] if args.key?(:path_matchers)
8409
+ @self_link = args[:self_link] if args.key?(:self_link)
8410
+ @tests = args[:tests] if args.key?(:tests)
8033
8411
  end
8034
8412
  end
8035
8413
 
@@ -8072,11 +8450,11 @@ module Google
8072
8450
 
8073
8451
  # Update properties of this object
8074
8452
  def update!(**args)
8075
- @id = args[:id] unless args[:id].nil?
8076
- @items = args[:items] unless args[:items].nil?
8077
- @kind = args[:kind] unless args[:kind].nil?
8078
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
8079
- @self_link = args[:self_link] unless args[:self_link].nil?
8453
+ @id = args[:id] if args.key?(:id)
8454
+ @items = args[:items] if args.key?(:items)
8455
+ @kind = args[:kind] if args.key?(:kind)
8456
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8457
+ @self_link = args[:self_link] if args.key?(:self_link)
8080
8458
  end
8081
8459
  end
8082
8460
 
@@ -8095,7 +8473,7 @@ module Google
8095
8473
 
8096
8474
  # Update properties of this object
8097
8475
  def update!(**args)
8098
- @url_map = args[:url_map] unless args[:url_map].nil?
8476
+ @url_map = args[:url_map] if args.key?(:url_map)
8099
8477
  end
8100
8478
  end
8101
8479
 
@@ -8129,10 +8507,10 @@ module Google
8129
8507
 
8130
8508
  # Update properties of this object
8131
8509
  def update!(**args)
8132
- @description = args[:description] unless args[:description].nil?
8133
- @host = args[:host] unless args[:host].nil?
8134
- @path = args[:path] unless args[:path].nil?
8135
- @service = args[:service] unless args[:service].nil?
8510
+ @description = args[:description] if args.key?(:description)
8511
+ @host = args[:host] if args.key?(:host)
8512
+ @path = args[:path] if args.key?(:path)
8513
+ @service = args[:service] if args.key?(:service)
8136
8514
  end
8137
8515
  end
8138
8516
 
@@ -8170,10 +8548,10 @@ module Google
8170
8548
 
8171
8549
  # Update properties of this object
8172
8550
  def update!(**args)
8173
- @load_errors = args[:load_errors] unless args[:load_errors].nil?
8174
- @load_succeeded = args[:load_succeeded] unless args[:load_succeeded].nil?
8175
- @test_failures = args[:test_failures] unless args[:test_failures].nil?
8176
- @test_passed = args[:test_passed] unless args[:test_passed].nil?
8551
+ @load_errors = args[:load_errors] if args.key?(:load_errors)
8552
+ @load_succeeded = args[:load_succeeded] if args.key?(:load_succeeded)
8553
+ @test_failures = args[:test_failures] if args.key?(:test_failures)
8554
+ @test_passed = args[:test_passed] if args.key?(:test_passed)
8177
8555
  end
8178
8556
  end
8179
8557
 
@@ -8194,7 +8572,7 @@ module Google
8194
8572
 
8195
8573
  # Update properties of this object
8196
8574
  def update!(**args)
8197
- @resource = args[:resource] unless args[:resource].nil?
8575
+ @resource = args[:resource] if args.key?(:resource)
8198
8576
  end
8199
8577
  end
8200
8578
 
@@ -8213,7 +8591,7 @@ module Google
8213
8591
 
8214
8592
  # Update properties of this object
8215
8593
  def update!(**args)
8216
- @result = args[:result] unless args[:result].nil?
8594
+ @result = args[:result] if args.key?(:result)
8217
8595
  end
8218
8596
  end
8219
8597
 
@@ -8246,8 +8624,8 @@ module Google
8246
8624
 
8247
8625
  # Update properties of this object
8248
8626
  def update!(**args)
8249
- @bucket_name = args[:bucket_name] unless args[:bucket_name].nil?
8250
- @report_name_prefix = args[:report_name_prefix] unless args[:report_name_prefix].nil?
8627
+ @bucket_name = args[:bucket_name] if args.key?(:bucket_name)
8628
+ @report_name_prefix = args[:report_name_prefix] if args.key?(:report_name_prefix)
8251
8629
  end
8252
8630
  end
8253
8631
 
@@ -8288,6 +8666,13 @@ module Google
8288
8666
  # @return [String]
8289
8667
  attr_accessor :kind
8290
8668
 
8669
+ # Local traffic selector to use when establishing the VPN tunnel with peer VPN
8670
+ # gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/
8671
+ # 16. The ranges should be disjoint.
8672
+ # Corresponds to the JSON property `localTrafficSelector`
8673
+ # @return [Array<String>]
8674
+ attr_accessor :local_traffic_selector
8675
+
8291
8676
  # Name of the resource; provided by the client when the resource is created. The
8292
8677
  # name must be 1-63 characters long, and comply with RFC1035. Specifically, the
8293
8678
  # name must be 1-63 characters long and match the regular expression [a-z]([-a-
@@ -8341,20 +8726,21 @@ module Google
8341
8726
 
8342
8727
  # Update properties of this object
8343
8728
  def update!(**args)
8344
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
8345
- @description = args[:description] unless args[:description].nil?
8346
- @detailed_status = args[:detailed_status] unless args[:detailed_status].nil?
8347
- @id = args[:id] unless args[:id].nil?
8348
- @ike_version = args[:ike_version] unless args[:ike_version].nil?
8349
- @kind = args[:kind] unless args[:kind].nil?
8350
- @name = args[:name] unless args[:name].nil?
8351
- @peer_ip = args[:peer_ip] unless args[:peer_ip].nil?
8352
- @region = args[:region] unless args[:region].nil?
8353
- @self_link = args[:self_link] unless args[:self_link].nil?
8354
- @shared_secret = args[:shared_secret] unless args[:shared_secret].nil?
8355
- @shared_secret_hash = args[:shared_secret_hash] unless args[:shared_secret_hash].nil?
8356
- @status = args[:status] unless args[:status].nil?
8357
- @target_vpn_gateway = args[:target_vpn_gateway] unless args[:target_vpn_gateway].nil?
8729
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
8730
+ @description = args[:description] if args.key?(:description)
8731
+ @detailed_status = args[:detailed_status] if args.key?(:detailed_status)
8732
+ @id = args[:id] if args.key?(:id)
8733
+ @ike_version = args[:ike_version] if args.key?(:ike_version)
8734
+ @kind = args[:kind] if args.key?(:kind)
8735
+ @local_traffic_selector = args[:local_traffic_selector] if args.key?(:local_traffic_selector)
8736
+ @name = args[:name] if args.key?(:name)
8737
+ @peer_ip = args[:peer_ip] if args.key?(:peer_ip)
8738
+ @region = args[:region] if args.key?(:region)
8739
+ @self_link = args[:self_link] if args.key?(:self_link)
8740
+ @shared_secret = args[:shared_secret] if args.key?(:shared_secret)
8741
+ @shared_secret_hash = args[:shared_secret_hash] if args.key?(:shared_secret_hash)
8742
+ @status = args[:status] if args.key?(:status)
8743
+ @target_vpn_gateway = args[:target_vpn_gateway] if args.key?(:target_vpn_gateway)
8358
8744
  end
8359
8745
  end
8360
8746
 
@@ -8398,11 +8784,11 @@ module Google
8398
8784
 
8399
8785
  # Update properties of this object
8400
8786
  def update!(**args)
8401
- @id = args[:id] unless args[:id].nil?
8402
- @items = args[:items] unless args[:items].nil?
8403
- @kind = args[:kind] unless args[:kind].nil?
8404
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
8405
- @self_link = args[:self_link] unless args[:self_link].nil?
8787
+ @id = args[:id] if args.key?(:id)
8788
+ @items = args[:items] if args.key?(:items)
8789
+ @kind = args[:kind] if args.key?(:kind)
8790
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8791
+ @self_link = args[:self_link] if args.key?(:self_link)
8406
8792
  end
8407
8793
  end
8408
8794
 
@@ -8446,11 +8832,11 @@ module Google
8446
8832
 
8447
8833
  # Update properties of this object
8448
8834
  def update!(**args)
8449
- @id = args[:id] unless args[:id].nil?
8450
- @items = args[:items] unless args[:items].nil?
8451
- @kind = args[:kind] unless args[:kind].nil?
8452
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
8453
- @self_link = args[:self_link] unless args[:self_link].nil?
8835
+ @id = args[:id] if args.key?(:id)
8836
+ @items = args[:items] if args.key?(:items)
8837
+ @kind = args[:kind] if args.key?(:kind)
8838
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8839
+ @self_link = args[:self_link] if args.key?(:self_link)
8454
8840
  end
8455
8841
  end
8456
8842
 
@@ -8475,8 +8861,8 @@ module Google
8475
8861
 
8476
8862
  # Update properties of this object
8477
8863
  def update!(**args)
8478
- @vpn_tunnels = args[:vpn_tunnels] unless args[:vpn_tunnels].nil?
8479
- @warning = args[:warning] unless args[:warning].nil?
8864
+ @vpn_tunnels = args[:vpn_tunnels] if args.key?(:vpn_tunnels)
8865
+ @warning = args[:warning] if args.key?(:warning)
8480
8866
  end
8481
8867
 
8482
8868
  # Informational warning which replaces the list of addresses when the list is
@@ -8507,9 +8893,9 @@ module Google
8507
8893
 
8508
8894
  # Update properties of this object
8509
8895
  def update!(**args)
8510
- @code = args[:code] unless args[:code].nil?
8511
- @data = args[:data] unless args[:data].nil?
8512
- @message = args[:message] unless args[:message].nil?
8896
+ @code = args[:code] if args.key?(:code)
8897
+ @data = args[:data] if args.key?(:data)
8898
+ @message = args[:message] if args.key?(:message)
8513
8899
  end
8514
8900
 
8515
8901
  #
@@ -8538,8 +8924,8 @@ module Google
8538
8924
 
8539
8925
  # Update properties of this object
8540
8926
  def update!(**args)
8541
- @key = args[:key] unless args[:key].nil?
8542
- @value = args[:value] unless args[:value].nil?
8927
+ @key = args[:key] if args.key?(:key)
8928
+ @value = args[:value] if args.key?(:value)
8543
8929
  end
8544
8930
  end
8545
8931
  end
@@ -8608,16 +8994,16 @@ module Google
8608
8994
 
8609
8995
  # Update properties of this object
8610
8996
  def update!(**args)
8611
- @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
8612
- @deprecated = args[:deprecated] unless args[:deprecated].nil?
8613
- @description = args[:description] unless args[:description].nil?
8614
- @id = args[:id] unless args[:id].nil?
8615
- @kind = args[:kind] unless args[:kind].nil?
8616
- @maintenance_windows = args[:maintenance_windows] unless args[:maintenance_windows].nil?
8617
- @name = args[:name] unless args[:name].nil?
8618
- @region = args[:region] unless args[:region].nil?
8619
- @self_link = args[:self_link] unless args[:self_link].nil?
8620
- @status = args[:status] unless args[:status].nil?
8997
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
8998
+ @deprecated = args[:deprecated] if args.key?(:deprecated)
8999
+ @description = args[:description] if args.key?(:description)
9000
+ @id = args[:id] if args.key?(:id)
9001
+ @kind = args[:kind] if args.key?(:kind)
9002
+ @maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows)
9003
+ @name = args[:name] if args.key?(:name)
9004
+ @region = args[:region] if args.key?(:region)
9005
+ @self_link = args[:self_link] if args.key?(:self_link)
9006
+ @status = args[:status] if args.key?(:status)
8621
9007
  end
8622
9008
 
8623
9009
  #
@@ -8650,10 +9036,10 @@ module Google
8650
9036
 
8651
9037
  # Update properties of this object
8652
9038
  def update!(**args)
8653
- @begin_time = args[:begin_time] unless args[:begin_time].nil?
8654
- @description = args[:description] unless args[:description].nil?
8655
- @end_time = args[:end_time] unless args[:end_time].nil?
8656
- @name = args[:name] unless args[:name].nil?
9039
+ @begin_time = args[:begin_time] if args.key?(:begin_time)
9040
+ @description = args[:description] if args.key?(:description)
9041
+ @end_time = args[:end_time] if args.key?(:end_time)
9042
+ @name = args[:name] if args.key?(:name)
8657
9043
  end
8658
9044
  end
8659
9045
  end
@@ -8697,11 +9083,11 @@ module Google
8697
9083
 
8698
9084
  # Update properties of this object
8699
9085
  def update!(**args)
8700
- @id = args[:id] unless args[:id].nil?
8701
- @items = args[:items] unless args[:items].nil?
8702
- @kind = args[:kind] unless args[:kind].nil?
8703
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
8704
- @self_link = args[:self_link] unless args[:self_link].nil?
9086
+ @id = args[:id] if args.key?(:id)
9087
+ @items = args[:items] if args.key?(:items)
9088
+ @kind = args[:kind] if args.key?(:kind)
9089
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
9090
+ @self_link = args[:self_link] if args.key?(:self_link)
8705
9091
  end
8706
9092
  end
8707
9093
  end