google-api-client 0.9.pre1 → 0.9.pre2

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 (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +4 -3
  4. data/api_names.yaml +42 -0
  5. data/api_names_out.yaml +977 -651
  6. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  7. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  8. data/generated/google/apis/adsense_v1_4.rb +1 -1
  9. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  10. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -24
  11. data/generated/google/apis/androidenterprise_v1/service.rb +11 -6
  12. data/generated/google/apis/androidenterprise_v1.rb +2 -1
  13. data/generated/google/apis/appstate_v1.rb +1 -1
  14. data/generated/google/apis/autoscaler_v1beta2.rb +1 -1
  15. data/generated/google/apis/bigquery_v2/classes.rb +34 -0
  16. data/generated/google/apis/bigquery_v2/representations.rb +14 -0
  17. data/generated/google/apis/bigquery_v2/service.rb +2 -2
  18. data/generated/google/apis/bigquery_v2.rb +1 -1
  19. data/generated/google/apis/calendar_v3/classes.rb +8 -0
  20. data/generated/google/apis/calendar_v3/representations.rb +1 -0
  21. data/generated/google/apis/calendar_v3.rb +1 -1
  22. data/generated/google/apis/civicinfo_v2/classes.rb +61 -0
  23. data/generated/google/apis/civicinfo_v2/representations.rb +8 -0
  24. data/generated/google/apis/civicinfo_v2.rb +1 -1
  25. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  26. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  27. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  28. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  29. data/generated/google/apis/cloudmonitoring_v2beta2.rb +4 -1
  30. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +20 -19
  31. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +34 -34
  32. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +2 -5
  33. data/generated/google/apis/compute_v1/classes.rb +2638 -1136
  34. data/generated/google/apis/compute_v1/representations.rb +580 -0
  35. data/generated/google/apis/compute_v1/service.rb +2448 -305
  36. data/generated/google/apis/compute_v1.rb +1 -1
  37. data/generated/google/apis/container_v1/classes.rb +438 -0
  38. data/generated/google/apis/container_v1/representations.rb +163 -0
  39. data/generated/google/apis/container_v1/service.rb +346 -0
  40. data/generated/google/apis/container_v1.rb +35 -0
  41. data/generated/google/apis/container_v1beta1.rb +1 -1
  42. data/generated/google/apis/content_v2/service.rb +48 -12
  43. data/generated/google/apis/content_v2.rb +1 -1
  44. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +13 -9
  45. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +110 -15
  46. data/generated/google/apis/deploymentmanager_v2beta2.rb +1 -1
  47. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  48. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  49. data/generated/google/apis/dns_v1/service.rb +4 -1
  50. data/generated/google/apis/dns_v1.rb +1 -1
  51. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  52. data/generated/google/apis/drive_v2.rb +1 -1
  53. data/generated/google/apis/fitness_v1/classes.rb +65 -2
  54. data/generated/google/apis/fitness_v1/representations.rb +27 -0
  55. data/generated/google/apis/fitness_v1.rb +1 -1
  56. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  57. data/generated/google/apis/games_v1.rb +1 -1
  58. data/generated/google/apis/genomics_v1/classes.rb +2287 -0
  59. data/generated/google/apis/genomics_v1/representations.rb +796 -0
  60. data/generated/google/apis/genomics_v1/service.rb +1520 -0
  61. data/generated/google/apis/genomics_v1.rb +47 -0
  62. data/generated/google/apis/genomics_v1beta2/service.rb +36 -0
  63. data/generated/google/apis/genomics_v1beta2.rb +1 -1
  64. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  65. data/generated/google/apis/mapsengine_v1.rb +1 -1
  66. data/generated/google/apis/oauth2_v2.rb +1 -1
  67. data/generated/google/apis/plus_domains_v1.rb +1 -1
  68. data/generated/google/apis/plus_v1.rb +1 -1
  69. data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
  70. data/generated/google/apis/pubsub_v1beta2/classes.rb +42 -42
  71. data/generated/google/apis/pubsub_v1beta2/service.rb +26 -22
  72. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  73. data/generated/google/apis/replicapool_v1beta2/classes.rb +10 -0
  74. data/generated/google/apis/replicapool_v1beta2/representations.rb +1 -0
  75. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  76. data/generated/google/apis/resourceviews_v1beta2.rb +1 -1
  77. data/generated/google/apis/storage_v1/classes.rb +4 -2
  78. data/generated/google/apis/storage_v1.rb +1 -1
  79. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  80. data/generated/google/apis/youtube_v3/classes.rb +3 -3
  81. data/generated/google/apis/youtube_v3/representations.rb +1 -1
  82. data/generated/google/apis/youtube_v3/service.rb +78 -0
  83. data/generated/google/apis/youtube_v3.rb +1 -1
  84. data/google-api-client.gemspec +0 -1
  85. data/lib/google/api_client/auth/installed_app.rb +6 -4
  86. data/lib/google/api_client/auth/key_utils.rb +93 -0
  87. data/lib/google/apis/core/api_command.rb +12 -5
  88. data/lib/google/apis/core/http_command.rb +17 -7
  89. data/lib/google/apis/core/json_representation.rb +6 -2
  90. data/lib/google/apis/errors.rb +9 -2
  91. data/lib/google/apis/version.rb +1 -1
  92. data/script/generate +4 -3
  93. data/spec/google/apis/core/http_command_spec.rb +20 -0
  94. data/spec/google/apis/core/json_representation_spec.rb +1 -1
  95. metadata +15 -16
@@ -56,12 +56,31 @@ module Google
56
56
  # @param [String] project
57
57
  # Project ID for this request.
58
58
  # @param [String] filter
59
- # Filter expression for filtering listed resources.
59
+ # Sets a filter expression for filtering listed resources, in the form filter=`
60
+ # expression`. Your `expression` must contain the following:
61
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
62
+ #
63
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
64
+ # be valid for the type of resource being filtered. Only atomic field types are
65
+ # supported (string, number, boolean). Array and object fields are not currently
66
+ # supported.
67
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
68
+ # equals).
69
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
70
+ # must be valid for the type of field (string, number, boolean). For string
71
+ # fields, the literal value is interpreted as a regular expression using RE2
72
+ # syntax. The literal value must match the entire field. For example, you can
73
+ # filter by the name of a resource:
74
+ # filter=name ne example-instance
75
+ # The above filter returns only results whose name field does not equal example-
76
+ # instance. You can also enclose your literal string in single, double, or no
77
+ # quotes.
60
78
  # @param [Fixnum] max_results
61
79
  # Maximum count of results to be returned.
62
80
  # @param [String] page_token
63
- # Tag returned by a previous list request when that list was truncated to
64
- # maxResults. Used to continue a previous list request.
81
+ # Specifies a page token to use. Use this parameter if you want to list the next
82
+ # page of results. Set pageToken to the nextPageToken returned by a previous
83
+ # list request.
65
84
  # @param [String] fields
66
85
  # Selector specifying which fields to include in a partial response.
67
86
  # @param [String] quota_user
@@ -231,12 +250,31 @@ module Google
231
250
  # @param [String] region
232
251
  # The name of the region for this request.
233
252
  # @param [String] filter
234
- # Filter expression for filtering listed resources.
253
+ # Sets a filter expression for filtering listed resources, in the form filter=`
254
+ # expression`. Your `expression` must contain the following:
255
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
256
+ #
257
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
258
+ # be valid for the type of resource being filtered. Only atomic field types are
259
+ # supported (string, number, boolean). Array and object fields are not currently
260
+ # supported.
261
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
262
+ # equals).
263
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
264
+ # must be valid for the type of field (string, number, boolean). For string
265
+ # fields, the literal value is interpreted as a regular expression using RE2
266
+ # syntax. The literal value must match the entire field. For example, you can
267
+ # filter by the name of a resource:
268
+ # filter=name ne example-instance
269
+ # The above filter returns only results whose name field does not equal example-
270
+ # instance. You can also enclose your literal string in single, double, or no
271
+ # quotes.
235
272
  # @param [Fixnum] max_results
236
273
  # Maximum count of results to be returned.
237
274
  # @param [String] page_token
238
- # Tag returned by a previous list request when that list was truncated to
239
- # maxResults. Used to continue a previous list request.
275
+ # Specifies a page token to use. Use this parameter if you want to list the next
276
+ # page of results. Set pageToken to the nextPageToken returned by a previous
277
+ # list request.
240
278
  # @param [String] fields
241
279
  # Selector specifying which fields to include in a partial response.
242
280
  # @param [String] quota_user
@@ -274,6 +312,358 @@ module Google
274
312
  execute_or_queue_command(command, &block)
275
313
  end
276
314
 
315
+ # Retrieves the list of autoscalers grouped by scope.
316
+ # @param [String] project
317
+ # Name of the project scoping this request.
318
+ # @param [String] filter
319
+ # Sets a filter expression for filtering listed resources, in the form filter=`
320
+ # expression`. Your `expression` must contain the following:
321
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
322
+ #
323
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
324
+ # be valid for the type of resource being filtered. Only atomic field types are
325
+ # supported (string, number, boolean). Array and object fields are not currently
326
+ # supported.
327
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
328
+ # equals).
329
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
330
+ # must be valid for the type of field (string, number, boolean). For string
331
+ # fields, the literal value is interpreted as a regular expression using RE2
332
+ # syntax. The literal value must match the entire field. For example, you can
333
+ # filter by the name of a resource:
334
+ # filter=name ne example-instance
335
+ # The above filter returns only results whose name field does not equal example-
336
+ # instance. You can also enclose your literal string in single, double, or no
337
+ # quotes.
338
+ # @param [Fixnum] max_results
339
+ # Maximum count of results to be returned.
340
+ # @param [String] page_token
341
+ # Specifies a page token to use. Use this parameter if you want to list the next
342
+ # page of results. Set pageToken to the nextPageToken returned by a previous
343
+ # list request.
344
+ # @param [String] fields
345
+ # Selector specifying which fields to include in a partial response.
346
+ # @param [String] quota_user
347
+ # Available to use for quota purposes for server-side applications. Can be any
348
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
349
+ # Overrides userIp if both are provided.
350
+ # @param [String] user_ip
351
+ # IP address of the site where the request originates. Use this if you want to
352
+ # enforce per-user limits.
353
+ # @param [Google::Apis::RequestOptions] options
354
+ # Request-specific options
355
+ #
356
+ # @yield [result, err] Result & error if block supplied
357
+ # @yieldparam result [Google::Apis::ComputeV1::AutoscalerAggregatedList] parsed result object
358
+ # @yieldparam err [StandardError] error object if request failed
359
+ #
360
+ # @return [Google::Apis::ComputeV1::AutoscalerAggregatedList]
361
+ #
362
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
363
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
364
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
365
+ def aggregated_list_autoscaler(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
366
+ path = '{project}/aggregated/autoscalers'
367
+ command = make_simple_command(:get, path, options)
368
+ command.response_representation = Google::Apis::ComputeV1::AutoscalerAggregatedList::Representation
369
+ command.response_class = Google::Apis::ComputeV1::AutoscalerAggregatedList
370
+ command.params['project'] = project unless project.nil?
371
+ command.query['filter'] = filter unless filter.nil?
372
+ command.query['maxResults'] = max_results unless max_results.nil?
373
+ command.query['pageToken'] = page_token unless page_token.nil?
374
+ command.query['fields'] = fields unless fields.nil?
375
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
376
+ command.query['userIp'] = user_ip unless user_ip.nil?
377
+ execute_or_queue_command(command, &block)
378
+ end
379
+
380
+ # Deletes the specified autoscaler resource.
381
+ # @param [String] project
382
+ # Name of the project scoping this request.
383
+ # @param [String] zone
384
+ # Name of the zone scoping this request.
385
+ # @param [String] autoscaler
386
+ # Name of the persistent autoscaler resource to delete.
387
+ # @param [String] fields
388
+ # Selector specifying which fields to include in a partial response.
389
+ # @param [String] quota_user
390
+ # Available to use for quota purposes for server-side applications. Can be any
391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
392
+ # Overrides userIp if both are provided.
393
+ # @param [String] user_ip
394
+ # IP address of the site where the request originates. Use this if you want to
395
+ # enforce per-user limits.
396
+ # @param [Google::Apis::RequestOptions] options
397
+ # Request-specific options
398
+ #
399
+ # @yield [result, err] Result & error if block supplied
400
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
401
+ # @yieldparam err [StandardError] error object if request failed
402
+ #
403
+ # @return [Google::Apis::ComputeV1::Operation]
404
+ #
405
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
406
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
407
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
408
+ def delete_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
409
+ path = '{project}/zones/{zone}/autoscalers/{autoscaler}'
410
+ command = make_simple_command(:delete, path, options)
411
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
412
+ command.response_class = Google::Apis::ComputeV1::Operation
413
+ command.params['project'] = project unless project.nil?
414
+ command.params['zone'] = zone unless zone.nil?
415
+ command.params['autoscaler'] = autoscaler unless autoscaler.nil?
416
+ command.query['fields'] = fields unless fields.nil?
417
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
418
+ command.query['userIp'] = user_ip unless user_ip.nil?
419
+ execute_or_queue_command(command, &block)
420
+ end
421
+
422
+ # Returns the specified autoscaler resource.
423
+ # @param [String] project
424
+ # Name of the project scoping this request.
425
+ # @param [String] zone
426
+ # Name of the zone scoping this request.
427
+ # @param [String] autoscaler
428
+ # Name of the persistent autoscaler resource to return.
429
+ # @param [String] fields
430
+ # Selector specifying which fields to include in a partial response.
431
+ # @param [String] quota_user
432
+ # Available to use for quota purposes for server-side applications. Can be any
433
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
434
+ # Overrides userIp if both are provided.
435
+ # @param [String] user_ip
436
+ # IP address of the site where the request originates. Use this if you want to
437
+ # enforce per-user limits.
438
+ # @param [Google::Apis::RequestOptions] options
439
+ # Request-specific options
440
+ #
441
+ # @yield [result, err] Result & error if block supplied
442
+ # @yieldparam result [Google::Apis::ComputeV1::Autoscaler] parsed result object
443
+ # @yieldparam err [StandardError] error object if request failed
444
+ #
445
+ # @return [Google::Apis::ComputeV1::Autoscaler]
446
+ #
447
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
448
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
449
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
450
+ def get_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
451
+ path = '{project}/zones/{zone}/autoscalers/{autoscaler}'
452
+ command = make_simple_command(:get, path, options)
453
+ command.response_representation = Google::Apis::ComputeV1::Autoscaler::Representation
454
+ command.response_class = Google::Apis::ComputeV1::Autoscaler
455
+ command.params['project'] = project unless project.nil?
456
+ command.params['zone'] = zone unless zone.nil?
457
+ command.params['autoscaler'] = autoscaler unless autoscaler.nil?
458
+ command.query['fields'] = fields unless fields.nil?
459
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
460
+ command.query['userIp'] = user_ip unless user_ip.nil?
461
+ execute_or_queue_command(command, &block)
462
+ end
463
+
464
+ # Creates an autoscaler resource in the specified project using the data
465
+ # included in the request.
466
+ # @param [String] project
467
+ # Name of the project scoping this request.
468
+ # @param [String] zone
469
+ # Name of the zone scoping this request.
470
+ # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
471
+ # @param [String] fields
472
+ # Selector specifying which fields to include in a partial response.
473
+ # @param [String] quota_user
474
+ # Available to use for quota purposes for server-side applications. Can be any
475
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
476
+ # Overrides userIp if both are provided.
477
+ # @param [String] user_ip
478
+ # IP address of the site where the request originates. Use this if you want to
479
+ # enforce per-user limits.
480
+ # @param [Google::Apis::RequestOptions] options
481
+ # Request-specific options
482
+ #
483
+ # @yield [result, err] Result & error if block supplied
484
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
485
+ # @yieldparam err [StandardError] error object if request failed
486
+ #
487
+ # @return [Google::Apis::ComputeV1::Operation]
488
+ #
489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
492
+ def insert_autoscaler(project, zone, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
493
+ path = '{project}/zones/{zone}/autoscalers'
494
+ command = make_simple_command(:post, path, options)
495
+ command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
496
+ command.request_object = autoscaler_object
497
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
498
+ command.response_class = Google::Apis::ComputeV1::Operation
499
+ command.params['project'] = project unless project.nil?
500
+ command.params['zone'] = zone unless zone.nil?
501
+ command.query['fields'] = fields unless fields.nil?
502
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
503
+ command.query['userIp'] = user_ip unless user_ip.nil?
504
+ execute_or_queue_command(command, &block)
505
+ end
506
+
507
+ # Retrieves the list of autoscaler resources contained within the specified zone.
508
+ # @param [String] project
509
+ # Name of the project scoping this request.
510
+ # @param [String] zone
511
+ # Name of the zone scoping this request.
512
+ # @param [String] filter
513
+ # Sets a filter expression for filtering listed resources, in the form filter=`
514
+ # expression`. Your `expression` must contain the following:
515
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
516
+ #
517
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
518
+ # be valid for the type of resource being filtered. Only atomic field types are
519
+ # supported (string, number, boolean). Array and object fields are not currently
520
+ # supported.
521
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
522
+ # equals).
523
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
524
+ # must be valid for the type of field (string, number, boolean). For string
525
+ # fields, the literal value is interpreted as a regular expression using RE2
526
+ # syntax. The literal value must match the entire field. For example, you can
527
+ # filter by the name of a resource:
528
+ # filter=name ne example-instance
529
+ # The above filter returns only results whose name field does not equal example-
530
+ # instance. You can also enclose your literal string in single, double, or no
531
+ # quotes.
532
+ # @param [Fixnum] max_results
533
+ # Maximum count of results to be returned.
534
+ # @param [String] page_token
535
+ # Specifies a page token to use. Use this parameter if you want to list the next
536
+ # page of results. Set pageToken to the nextPageToken returned by a previous
537
+ # list request.
538
+ # @param [String] fields
539
+ # Selector specifying which fields to include in a partial response.
540
+ # @param [String] quota_user
541
+ # Available to use for quota purposes for server-side applications. Can be any
542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
543
+ # Overrides userIp if both are provided.
544
+ # @param [String] user_ip
545
+ # IP address of the site where the request originates. Use this if you want to
546
+ # enforce per-user limits.
547
+ # @param [Google::Apis::RequestOptions] options
548
+ # Request-specific options
549
+ #
550
+ # @yield [result, err] Result & error if block supplied
551
+ # @yieldparam result [Google::Apis::ComputeV1::AutoscalerList] parsed result object
552
+ # @yieldparam err [StandardError] error object if request failed
553
+ #
554
+ # @return [Google::Apis::ComputeV1::AutoscalerList]
555
+ #
556
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
557
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
558
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
559
+ def list_autoscalers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
560
+ path = '{project}/zones/{zone}/autoscalers'
561
+ command = make_simple_command(:get, path, options)
562
+ command.response_representation = Google::Apis::ComputeV1::AutoscalerList::Representation
563
+ command.response_class = Google::Apis::ComputeV1::AutoscalerList
564
+ command.params['project'] = project unless project.nil?
565
+ command.params['zone'] = zone unless zone.nil?
566
+ command.query['filter'] = filter unless filter.nil?
567
+ command.query['maxResults'] = max_results unless max_results.nil?
568
+ command.query['pageToken'] = page_token unless page_token.nil?
569
+ command.query['fields'] = fields unless fields.nil?
570
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
571
+ command.query['userIp'] = user_ip unless user_ip.nil?
572
+ execute_or_queue_command(command, &block)
573
+ end
574
+
575
+ # Updates an autoscaler resource in the specified project using the data
576
+ # included in the request. This method supports patch semantics.
577
+ # @param [String] project
578
+ # Name of the project scoping this request.
579
+ # @param [String] zone
580
+ # Name of the zone scoping this request.
581
+ # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
582
+ # @param [String] autoscaler
583
+ # Name of the autoscaler resource to update.
584
+ # @param [String] fields
585
+ # Selector specifying which fields to include in a partial response.
586
+ # @param [String] quota_user
587
+ # Available to use for quota purposes for server-side applications. Can be any
588
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
589
+ # Overrides userIp if both are provided.
590
+ # @param [String] user_ip
591
+ # IP address of the site where the request originates. Use this if you want to
592
+ # enforce per-user limits.
593
+ # @param [Google::Apis::RequestOptions] options
594
+ # Request-specific options
595
+ #
596
+ # @yield [result, err] Result & error if block supplied
597
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
598
+ # @yieldparam err [StandardError] error object if request failed
599
+ #
600
+ # @return [Google::Apis::ComputeV1::Operation]
601
+ #
602
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
603
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
604
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
605
+ def patch_autoscaler(project, zone, autoscaler_object = nil, autoscaler: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
606
+ path = '{project}/zones/{zone}/autoscalers'
607
+ command = make_simple_command(:patch, path, options)
608
+ command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
609
+ command.request_object = autoscaler_object
610
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
611
+ command.response_class = Google::Apis::ComputeV1::Operation
612
+ command.params['project'] = project unless project.nil?
613
+ command.params['zone'] = zone unless zone.nil?
614
+ command.query['autoscaler'] = autoscaler unless autoscaler.nil?
615
+ command.query['fields'] = fields unless fields.nil?
616
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
617
+ command.query['userIp'] = user_ip unless user_ip.nil?
618
+ execute_or_queue_command(command, &block)
619
+ end
620
+
621
+ # Updates an autoscaler resource in the specified project using the data
622
+ # included in the request.
623
+ # @param [String] project
624
+ # Name of the project scoping this request.
625
+ # @param [String] zone
626
+ # Name of the zone scoping this request.
627
+ # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
628
+ # @param [String] autoscaler
629
+ # Name of the autoscaler resource to update.
630
+ # @param [String] fields
631
+ # Selector specifying which fields to include in a partial response.
632
+ # @param [String] quota_user
633
+ # Available to use for quota purposes for server-side applications. Can be any
634
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
635
+ # Overrides userIp if both are provided.
636
+ # @param [String] user_ip
637
+ # IP address of the site where the request originates. Use this if you want to
638
+ # enforce per-user limits.
639
+ # @param [Google::Apis::RequestOptions] options
640
+ # Request-specific options
641
+ #
642
+ # @yield [result, err] Result & error if block supplied
643
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
644
+ # @yieldparam err [StandardError] error object if request failed
645
+ #
646
+ # @return [Google::Apis::ComputeV1::Operation]
647
+ #
648
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
649
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
650
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
651
+ def update_autoscaler(project, zone, autoscaler_object = nil, autoscaler: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
652
+ path = '{project}/zones/{zone}/autoscalers'
653
+ command = make_simple_command(:put, path, options)
654
+ command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
655
+ command.request_object = autoscaler_object
656
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
657
+ command.response_class = Google::Apis::ComputeV1::Operation
658
+ command.params['project'] = project unless project.nil?
659
+ command.params['zone'] = zone unless zone.nil?
660
+ command.query['autoscaler'] = autoscaler unless autoscaler.nil?
661
+ command.query['fields'] = fields unless fields.nil?
662
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
663
+ command.query['userIp'] = user_ip unless user_ip.nil?
664
+ execute_or_queue_command(command, &block)
665
+ end
666
+
277
667
  # Deletes the specified BackendService resource.
278
668
  # @param [String] project
279
669
  # Name of the project scoping this request.
@@ -438,12 +828,31 @@ module Google
438
828
  # @param [String] project
439
829
  # Name of the project scoping this request.
440
830
  # @param [String] filter
441
- # Filter expression for filtering listed resources.
831
+ # Sets a filter expression for filtering listed resources, in the form filter=`
832
+ # expression`. Your `expression` must contain the following:
833
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
834
+ #
835
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
836
+ # be valid for the type of resource being filtered. Only atomic field types are
837
+ # supported (string, number, boolean). Array and object fields are not currently
838
+ # supported.
839
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
840
+ # equals).
841
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
842
+ # must be valid for the type of field (string, number, boolean). For string
843
+ # fields, the literal value is interpreted as a regular expression using RE2
844
+ # syntax. The literal value must match the entire field. For example, you can
845
+ # filter by the name of a resource:
846
+ # filter=name ne example-instance
847
+ # The above filter returns only results whose name field does not equal example-
848
+ # instance. You can also enclose your literal string in single, double, or no
849
+ # quotes.
442
850
  # @param [Fixnum] max_results
443
851
  # Maximum count of results to be returned.
444
852
  # @param [String] page_token
445
- # Tag returned by a previous list request when that list was truncated to
446
- # maxResults. Used to continue a previous list request.
853
+ # Specifies a page token to use. Use this parameter if you want to list the next
854
+ # page of results. Set pageToken to the nextPageToken returned by a previous
855
+ # list request.
447
856
  # @param [String] fields
448
857
  # Selector specifying which fields to include in a partial response.
449
858
  # @param [String] quota_user
@@ -569,12 +978,31 @@ module Google
569
978
  # @param [String] project
570
979
  # Project ID for this request.
571
980
  # @param [String] filter
572
- # Filter expression for filtering listed resources.
981
+ # Sets a filter expression for filtering listed resources, in the form filter=`
982
+ # expression`. Your `expression` must contain the following:
983
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
984
+ #
985
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
986
+ # be valid for the type of resource being filtered. Only atomic field types are
987
+ # supported (string, number, boolean). Array and object fields are not currently
988
+ # supported.
989
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
990
+ # equals).
991
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
992
+ # must be valid for the type of field (string, number, boolean). For string
993
+ # fields, the literal value is interpreted as a regular expression using RE2
994
+ # syntax. The literal value must match the entire field. For example, you can
995
+ # filter by the name of a resource:
996
+ # filter=name ne example-instance
997
+ # The above filter returns only results whose name field does not equal example-
998
+ # instance. You can also enclose your literal string in single, double, or no
999
+ # quotes.
573
1000
  # @param [Fixnum] max_results
574
1001
  # Maximum count of results to be returned.
575
1002
  # @param [String] page_token
576
- # Tag returned by a previous list request when that list was truncated to
577
- # maxResults. Used to continue a previous list request.
1003
+ # Specifies a page token to use. Use this parameter if you want to list the next
1004
+ # page of results. Set pageToken to the nextPageToken returned by a previous
1005
+ # list request.
578
1006
  # @param [String] fields
579
1007
  # Selector specifying which fields to include in a partial response.
580
1008
  # @param [String] quota_user
@@ -659,12 +1087,31 @@ module Google
659
1087
  # @param [String] zone
660
1088
  # The name of the zone for this request.
661
1089
  # @param [String] filter
662
- # Filter expression for filtering listed resources.
1090
+ # Sets a filter expression for filtering listed resources, in the form filter=`
1091
+ # expression`. Your `expression` must contain the following:
1092
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
1093
+ #
1094
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
1095
+ # be valid for the type of resource being filtered. Only atomic field types are
1096
+ # supported (string, number, boolean). Array and object fields are not currently
1097
+ # supported.
1098
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
1099
+ # equals).
1100
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
1101
+ # must be valid for the type of field (string, number, boolean). For string
1102
+ # fields, the literal value is interpreted as a regular expression using RE2
1103
+ # syntax. The literal value must match the entire field. For example, you can
1104
+ # filter by the name of a resource:
1105
+ # filter=name ne example-instance
1106
+ # The above filter returns only results whose name field does not equal example-
1107
+ # instance. You can also enclose your literal string in single, double, or no
1108
+ # quotes.
663
1109
  # @param [Fixnum] max_results
664
1110
  # Maximum count of results to be returned.
665
1111
  # @param [String] page_token
666
- # Tag returned by a previous list request when that list was truncated to
667
- # maxResults. Used to continue a previous list request.
1112
+ # Specifies a page token to use. Use this parameter if you want to list the next
1113
+ # page of results. Set pageToken to the nextPageToken returned by a previous
1114
+ # list request.
668
1115
  # @param [String] fields
669
1116
  # Selector specifying which fields to include in a partial response.
670
1117
  # @param [String] quota_user
@@ -706,12 +1153,31 @@ module Google
706
1153
  # @param [String] project
707
1154
  # Project ID for this request.
708
1155
  # @param [String] filter
709
- # Filter expression for filtering listed resources.
1156
+ # Sets a filter expression for filtering listed resources, in the form filter=`
1157
+ # expression`. Your `expression` must contain the following:
1158
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
1159
+ #
1160
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
1161
+ # be valid for the type of resource being filtered. Only atomic field types are
1162
+ # supported (string, number, boolean). Array and object fields are not currently
1163
+ # supported.
1164
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
1165
+ # equals).
1166
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
1167
+ # must be valid for the type of field (string, number, boolean). For string
1168
+ # fields, the literal value is interpreted as a regular expression using RE2
1169
+ # syntax. The literal value must match the entire field. For example, you can
1170
+ # filter by the name of a resource:
1171
+ # filter=name ne example-instance
1172
+ # The above filter returns only results whose name field does not equal example-
1173
+ # instance. You can also enclose your literal string in single, double, or no
1174
+ # quotes.
710
1175
  # @param [Fixnum] max_results
711
1176
  # Maximum count of results to be returned.
712
1177
  # @param [String] page_token
713
- # Tag returned by a previous list request when that list was truncated to
714
- # maxResults. Used to continue a previous list request.
1178
+ # Specifies a page token to use. Use this parameter if you want to list the next
1179
+ # page of results. Set pageToken to the nextPageToken returned by a previous
1180
+ # list request.
715
1181
  # @param [String] fields
716
1182
  # Selector specifying which fields to include in a partial response.
717
1183
  # @param [String] quota_user
@@ -793,7 +1259,9 @@ module Google
793
1259
  execute_or_queue_command(command, &block)
794
1260
  end
795
1261
 
796
- # Deletes the specified persistent disk.
1262
+ # Deletes the specified persistent disk. Deleting a disk removes its data
1263
+ # permanently and is irreversible. However, deleting a disk does not delete any
1264
+ # snapshots previously made from the disk. You must separately delete snapshots.
797
1265
  # @param [String] project
798
1266
  # Project ID for this request.
799
1267
  # @param [String] zone
@@ -929,12 +1397,31 @@ module Google
929
1397
  # @param [String] zone
930
1398
  # The name of the zone for this request.
931
1399
  # @param [String] filter
932
- # Filter expression for filtering listed resources.
1400
+ # Sets a filter expression for filtering listed resources, in the form filter=`
1401
+ # expression`. Your `expression` must contain the following:
1402
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
1403
+ #
1404
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
1405
+ # be valid for the type of resource being filtered. Only atomic field types are
1406
+ # supported (string, number, boolean). Array and object fields are not currently
1407
+ # supported.
1408
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
1409
+ # equals).
1410
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
1411
+ # must be valid for the type of field (string, number, boolean). For string
1412
+ # fields, the literal value is interpreted as a regular expression using RE2
1413
+ # syntax. The literal value must match the entire field. For example, you can
1414
+ # filter by the name of a resource:
1415
+ # filter=name ne example-instance
1416
+ # The above filter returns only results whose name field does not equal example-
1417
+ # instance. You can also enclose your literal string in single, double, or no
1418
+ # quotes.
933
1419
  # @param [Fixnum] max_results
934
1420
  # Maximum count of results to be returned.
935
1421
  # @param [String] page_token
936
- # Tag returned by a previous list request when that list was truncated to
937
- # maxResults. Used to continue a previous list request.
1422
+ # Specifies a page token to use. Use this parameter if you want to list the next
1423
+ # page of results. Set pageToken to the nextPageToken returned by a previous
1424
+ # list request.
938
1425
  # @param [String] fields
939
1426
  # Selector specifying which fields to include in a partial response.
940
1427
  # @param [String] quota_user
@@ -1094,12 +1581,31 @@ module Google
1094
1581
  # @param [String] project
1095
1582
  # Project ID for this request.
1096
1583
  # @param [String] filter
1097
- # Filter expression for filtering listed resources.
1584
+ # Sets a filter expression for filtering listed resources, in the form filter=`
1585
+ # expression`. Your `expression` must contain the following:
1586
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
1587
+ #
1588
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
1589
+ # be valid for the type of resource being filtered. Only atomic field types are
1590
+ # supported (string, number, boolean). Array and object fields are not currently
1591
+ # supported.
1592
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
1593
+ # equals).
1594
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
1595
+ # must be valid for the type of field (string, number, boolean). For string
1596
+ # fields, the literal value is interpreted as a regular expression using RE2
1597
+ # syntax. The literal value must match the entire field. For example, you can
1598
+ # filter by the name of a resource:
1599
+ # filter=name ne example-instance
1600
+ # The above filter returns only results whose name field does not equal example-
1601
+ # instance. You can also enclose your literal string in single, double, or no
1602
+ # quotes.
1098
1603
  # @param [Fixnum] max_results
1099
1604
  # Maximum count of results to be returned.
1100
1605
  # @param [String] page_token
1101
- # Tag returned by a previous list request when that list was truncated to
1102
- # maxResults. Used to continue a previous list request.
1606
+ # Specifies a page token to use. Use this parameter if you want to list the next
1607
+ # page of results. Set pageToken to the nextPageToken returned by a previous
1608
+ # list request.
1103
1609
  # @param [String] fields
1104
1610
  # Selector specifying which fields to include in a partial response.
1105
1611
  # @param [String] quota_user
@@ -1225,12 +1731,31 @@ module Google
1225
1731
  # @param [String] project
1226
1732
  # Name of the project scoping this request.
1227
1733
  # @param [String] filter
1228
- # Filter expression for filtering listed resources.
1734
+ # Sets a filter expression for filtering listed resources, in the form filter=`
1735
+ # expression`. Your `expression` must contain the following:
1736
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
1737
+ #
1738
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
1739
+ # be valid for the type of resource being filtered. Only atomic field types are
1740
+ # supported (string, number, boolean). Array and object fields are not currently
1741
+ # supported.
1742
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
1743
+ # equals).
1744
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
1745
+ # must be valid for the type of field (string, number, boolean). For string
1746
+ # fields, the literal value is interpreted as a regular expression using RE2
1747
+ # syntax. The literal value must match the entire field. For example, you can
1748
+ # filter by the name of a resource:
1749
+ # filter=name ne example-instance
1750
+ # The above filter returns only results whose name field does not equal example-
1751
+ # instance. You can also enclose your literal string in single, double, or no
1752
+ # quotes.
1229
1753
  # @param [Fixnum] max_results
1230
1754
  # Maximum count of results to be returned.
1231
1755
  # @param [String] page_token
1232
- # Tag returned by a previous list request when that list was truncated to
1233
- # maxResults. Used to continue a previous list request.
1756
+ # Specifies a page token to use. Use this parameter if you want to list the next
1757
+ # page of results. Set pageToken to the nextPageToken returned by a previous
1758
+ # list request.
1234
1759
  # @param [String] fields
1235
1760
  # Selector specifying which fields to include in a partial response.
1236
1761
  # @param [String] quota_user
@@ -1401,12 +1926,31 @@ module Google
1401
1926
  # @param [String] region
1402
1927
  # Name of the region scoping this request.
1403
1928
  # @param [String] filter
1404
- # Filter expression for filtering listed resources.
1929
+ # Sets a filter expression for filtering listed resources, in the form filter=`
1930
+ # expression`. Your `expression` must contain the following:
1931
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
1932
+ #
1933
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
1934
+ # be valid for the type of resource being filtered. Only atomic field types are
1935
+ # supported (string, number, boolean). Array and object fields are not currently
1936
+ # supported.
1937
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
1938
+ # equals).
1939
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
1940
+ # must be valid for the type of field (string, number, boolean). For string
1941
+ # fields, the literal value is interpreted as a regular expression using RE2
1942
+ # syntax. The literal value must match the entire field. For example, you can
1943
+ # filter by the name of a resource:
1944
+ # filter=name ne example-instance
1945
+ # The above filter returns only results whose name field does not equal example-
1946
+ # instance. You can also enclose your literal string in single, double, or no
1947
+ # quotes.
1405
1948
  # @param [Fixnum] max_results
1406
1949
  # Maximum count of results to be returned.
1407
1950
  # @param [String] page_token
1408
- # Tag returned by a previous list request when that list was truncated to
1409
- # maxResults. Used to continue a previous list request.
1951
+ # Specifies a page token to use. Use this parameter if you want to list the next
1952
+ # page of results. Set pageToken to the nextPageToken returned by a previous
1953
+ # list request.
1410
1954
  # @param [String] fields
1411
1955
  # Selector specifying which fields to include in a partial response.
1412
1956
  # @param [String] quota_user
@@ -1611,12 +2155,31 @@ module Google
1611
2155
  # @param [String] project
1612
2156
  # Project ID for this request.
1613
2157
  # @param [String] filter
1614
- # Filter expression for filtering listed resources.
2158
+ # Sets a filter expression for filtering listed resources, in the form filter=`
2159
+ # expression`. Your `expression` must contain the following:
2160
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
2161
+ #
2162
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
2163
+ # be valid for the type of resource being filtered. Only atomic field types are
2164
+ # supported (string, number, boolean). Array and object fields are not currently
2165
+ # supported.
2166
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
2167
+ # equals).
2168
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
2169
+ # must be valid for the type of field (string, number, boolean). For string
2170
+ # fields, the literal value is interpreted as a regular expression using RE2
2171
+ # syntax. The literal value must match the entire field. For example, you can
2172
+ # filter by the name of a resource:
2173
+ # filter=name ne example-instance
2174
+ # The above filter returns only results whose name field does not equal example-
2175
+ # instance. You can also enclose your literal string in single, double, or no
2176
+ # quotes.
1615
2177
  # @param [Fixnum] max_results
1616
2178
  # Maximum count of results to be returned.
1617
2179
  # @param [String] page_token
1618
- # Tag returned by a previous list request when that list was truncated to
1619
- # maxResults. Used to continue a previous list request.
2180
+ # Specifies a page token to use. Use this parameter if you want to list the next
2181
+ # page of results. Set pageToken to the nextPageToken returned by a previous
2182
+ # list request.
1620
2183
  # @param [String] fields
1621
2184
  # Selector specifying which fields to include in a partial response.
1622
2185
  # @param [String] quota_user
@@ -1776,12 +2339,31 @@ module Google
1776
2339
  # @param [String] project
1777
2340
  # Name of the project scoping this request.
1778
2341
  # @param [String] filter
1779
- # Filter expression for filtering listed resources.
2342
+ # Sets a filter expression for filtering listed resources, in the form filter=`
2343
+ # expression`. Your `expression` must contain the following:
2344
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
2345
+ #
2346
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
2347
+ # be valid for the type of resource being filtered. Only atomic field types are
2348
+ # supported (string, number, boolean). Array and object fields are not currently
2349
+ # supported.
2350
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
2351
+ # equals).
2352
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
2353
+ # must be valid for the type of field (string, number, boolean). For string
2354
+ # fields, the literal value is interpreted as a regular expression using RE2
2355
+ # syntax. The literal value must match the entire field. For example, you can
2356
+ # filter by the name of a resource:
2357
+ # filter=name ne example-instance
2358
+ # The above filter returns only results whose name field does not equal example-
2359
+ # instance. You can also enclose your literal string in single, double, or no
2360
+ # quotes.
1780
2361
  # @param [Fixnum] max_results
1781
2362
  # Maximum count of results to be returned.
1782
2363
  # @param [String] page_token
1783
- # Tag returned by a previous list request when that list was truncated to
1784
- # maxResults. Used to continue a previous list request.
2364
+ # Specifies a page token to use. Use this parameter if you want to list the next
2365
+ # page of results. Set pageToken to the nextPageToken returned by a previous
2366
+ # list request.
1785
2367
  # @param [String] fields
1786
2368
  # Selector specifying which fields to include in a partial response.
1787
2369
  # @param [String] quota_user
@@ -1845,31 +2427,1045 @@ module Google
1845
2427
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1846
2428
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1847
2429
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1848
- def set_global_forwarding_rule_target(project, forwarding_rule, target_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1849
- path = '{project}/global/forwardingRules/{forwardingRule}/setTarget'
2430
+ def set_global_forwarding_rule_target(project, forwarding_rule, target_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2431
+ path = '{project}/global/forwardingRules/{forwardingRule}/setTarget'
2432
+ command = make_simple_command(:post, path, options)
2433
+ command.request_representation = Google::Apis::ComputeV1::TargetReference::Representation
2434
+ command.request_object = target_reference_object
2435
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2436
+ command.response_class = Google::Apis::ComputeV1::Operation
2437
+ command.params['project'] = project unless project.nil?
2438
+ command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
2439
+ command.query['fields'] = fields unless fields.nil?
2440
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2441
+ command.query['userIp'] = user_ip unless user_ip.nil?
2442
+ execute_or_queue_command(command, &block)
2443
+ end
2444
+
2445
+ # Retrieves the list of all operations grouped by scope.
2446
+ # @param [String] project
2447
+ # Project ID for this request.
2448
+ # @param [String] filter
2449
+ # Sets a filter expression for filtering listed resources, in the form filter=`
2450
+ # expression`. Your `expression` must contain the following:
2451
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
2452
+ #
2453
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
2454
+ # be valid for the type of resource being filtered. Only atomic field types are
2455
+ # supported (string, number, boolean). Array and object fields are not currently
2456
+ # supported.
2457
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
2458
+ # equals).
2459
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
2460
+ # must be valid for the type of field (string, number, boolean). For string
2461
+ # fields, the literal value is interpreted as a regular expression using RE2
2462
+ # syntax. The literal value must match the entire field. For example, you can
2463
+ # filter by the name of a resource:
2464
+ # filter=name ne example-instance
2465
+ # The above filter returns only results whose name field does not equal example-
2466
+ # instance. You can also enclose your literal string in single, double, or no
2467
+ # quotes.
2468
+ # @param [Fixnum] max_results
2469
+ # Maximum count of results to be returned.
2470
+ # @param [String] page_token
2471
+ # Specifies a page token to use. Use this parameter if you want to list the next
2472
+ # page of results. Set pageToken to the nextPageToken returned by a previous
2473
+ # list request.
2474
+ # @param [String] fields
2475
+ # Selector specifying which fields to include in a partial response.
2476
+ # @param [String] quota_user
2477
+ # Available to use for quota purposes for server-side applications. Can be any
2478
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2479
+ # Overrides userIp if both are provided.
2480
+ # @param [String] user_ip
2481
+ # IP address of the site where the request originates. Use this if you want to
2482
+ # enforce per-user limits.
2483
+ # @param [Google::Apis::RequestOptions] options
2484
+ # Request-specific options
2485
+ #
2486
+ # @yield [result, err] Result & error if block supplied
2487
+ # @yieldparam result [Google::Apis::ComputeV1::OperationAggregatedList] parsed result object
2488
+ # @yieldparam err [StandardError] error object if request failed
2489
+ #
2490
+ # @return [Google::Apis::ComputeV1::OperationAggregatedList]
2491
+ #
2492
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2493
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2494
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2495
+ def list_aggregated_global_operation(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2496
+ path = '{project}/aggregated/operations'
2497
+ command = make_simple_command(:get, path, options)
2498
+ command.response_representation = Google::Apis::ComputeV1::OperationAggregatedList::Representation
2499
+ command.response_class = Google::Apis::ComputeV1::OperationAggregatedList
2500
+ command.params['project'] = project unless project.nil?
2501
+ command.query['filter'] = filter unless filter.nil?
2502
+ command.query['maxResults'] = max_results unless max_results.nil?
2503
+ command.query['pageToken'] = page_token unless page_token.nil?
2504
+ command.query['fields'] = fields unless fields.nil?
2505
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2506
+ command.query['userIp'] = user_ip unless user_ip.nil?
2507
+ execute_or_queue_command(command, &block)
2508
+ end
2509
+
2510
+ # Deletes the specified Operations resource.
2511
+ # @param [String] project
2512
+ # Project ID for this request.
2513
+ # @param [String] operation
2514
+ # Name of the Operations resource to delete.
2515
+ # @param [String] fields
2516
+ # Selector specifying which fields to include in a partial response.
2517
+ # @param [String] quota_user
2518
+ # Available to use for quota purposes for server-side applications. Can be any
2519
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2520
+ # Overrides userIp if both are provided.
2521
+ # @param [String] user_ip
2522
+ # IP address of the site where the request originates. Use this if you want to
2523
+ # enforce per-user limits.
2524
+ # @param [Google::Apis::RequestOptions] options
2525
+ # Request-specific options
2526
+ #
2527
+ # @yield [result, err] Result & error if block supplied
2528
+ # @yieldparam result [NilClass] No result returned for this method
2529
+ # @yieldparam err [StandardError] error object if request failed
2530
+ #
2531
+ # @return [void]
2532
+ #
2533
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2534
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2535
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2536
+ def delete_global_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2537
+ path = '{project}/global/operations/{operation}'
2538
+ command = make_simple_command(:delete, path, options)
2539
+ command.params['project'] = project unless project.nil?
2540
+ command.params['operation'] = operation unless operation.nil?
2541
+ command.query['fields'] = fields unless fields.nil?
2542
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2543
+ command.query['userIp'] = user_ip unless user_ip.nil?
2544
+ execute_or_queue_command(command, &block)
2545
+ end
2546
+
2547
+ # Retrieves the specified Operations resource.
2548
+ # @param [String] project
2549
+ # Project ID for this request.
2550
+ # @param [String] operation
2551
+ # Name of the Operations resource to return.
2552
+ # @param [String] fields
2553
+ # Selector specifying which fields to include in a partial response.
2554
+ # @param [String] quota_user
2555
+ # Available to use for quota purposes for server-side applications. Can be any
2556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2557
+ # Overrides userIp if both are provided.
2558
+ # @param [String] user_ip
2559
+ # IP address of the site where the request originates. Use this if you want to
2560
+ # enforce per-user limits.
2561
+ # @param [Google::Apis::RequestOptions] options
2562
+ # Request-specific options
2563
+ #
2564
+ # @yield [result, err] Result & error if block supplied
2565
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
2566
+ # @yieldparam err [StandardError] error object if request failed
2567
+ #
2568
+ # @return [Google::Apis::ComputeV1::Operation]
2569
+ #
2570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2573
+ def get_global_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2574
+ path = '{project}/global/operations/{operation}'
2575
+ command = make_simple_command(:get, path, options)
2576
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2577
+ command.response_class = Google::Apis::ComputeV1::Operation
2578
+ command.params['project'] = project unless project.nil?
2579
+ command.params['operation'] = operation unless operation.nil?
2580
+ command.query['fields'] = fields unless fields.nil?
2581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2582
+ command.query['userIp'] = user_ip unless user_ip.nil?
2583
+ execute_or_queue_command(command, &block)
2584
+ end
2585
+
2586
+ # Retrieves the list of Operation resources contained within the specified
2587
+ # project.
2588
+ # @param [String] project
2589
+ # Project ID for this request.
2590
+ # @param [String] filter
2591
+ # Sets a filter expression for filtering listed resources, in the form filter=`
2592
+ # expression`. Your `expression` must contain the following:
2593
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
2594
+ #
2595
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
2596
+ # be valid for the type of resource being filtered. Only atomic field types are
2597
+ # supported (string, number, boolean). Array and object fields are not currently
2598
+ # supported.
2599
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
2600
+ # equals).
2601
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
2602
+ # must be valid for the type of field (string, number, boolean). For string
2603
+ # fields, the literal value is interpreted as a regular expression using RE2
2604
+ # syntax. The literal value must match the entire field. For example, you can
2605
+ # filter by the name of a resource:
2606
+ # filter=name ne example-instance
2607
+ # The above filter returns only results whose name field does not equal example-
2608
+ # instance. You can also enclose your literal string in single, double, or no
2609
+ # quotes.
2610
+ # @param [Fixnum] max_results
2611
+ # Maximum count of results to be returned.
2612
+ # @param [String] page_token
2613
+ # Specifies a page token to use. Use this parameter if you want to list the next
2614
+ # page of results. Set pageToken to the nextPageToken returned by a previous
2615
+ # list request.
2616
+ # @param [String] fields
2617
+ # Selector specifying which fields to include in a partial response.
2618
+ # @param [String] quota_user
2619
+ # Available to use for quota purposes for server-side applications. Can be any
2620
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2621
+ # Overrides userIp if both are provided.
2622
+ # @param [String] user_ip
2623
+ # IP address of the site where the request originates. Use this if you want to
2624
+ # enforce per-user limits.
2625
+ # @param [Google::Apis::RequestOptions] options
2626
+ # Request-specific options
2627
+ #
2628
+ # @yield [result, err] Result & error if block supplied
2629
+ # @yieldparam result [Google::Apis::ComputeV1::OperationList] parsed result object
2630
+ # @yieldparam err [StandardError] error object if request failed
2631
+ #
2632
+ # @return [Google::Apis::ComputeV1::OperationList]
2633
+ #
2634
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2635
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2636
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2637
+ def list_global_operations(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2638
+ path = '{project}/global/operations'
2639
+ command = make_simple_command(:get, path, options)
2640
+ command.response_representation = Google::Apis::ComputeV1::OperationList::Representation
2641
+ command.response_class = Google::Apis::ComputeV1::OperationList
2642
+ command.params['project'] = project unless project.nil?
2643
+ command.query['filter'] = filter unless filter.nil?
2644
+ command.query['maxResults'] = max_results unless max_results.nil?
2645
+ command.query['pageToken'] = page_token unless page_token.nil?
2646
+ command.query['fields'] = fields unless fields.nil?
2647
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2648
+ command.query['userIp'] = user_ip unless user_ip.nil?
2649
+ execute_or_queue_command(command, &block)
2650
+ end
2651
+
2652
+ # Deletes the specified HttpHealthCheck resource.
2653
+ # @param [String] project
2654
+ # Name of the project scoping this request.
2655
+ # @param [String] http_health_check
2656
+ # Name of the HttpHealthCheck resource to delete.
2657
+ # @param [String] fields
2658
+ # Selector specifying which fields to include in a partial response.
2659
+ # @param [String] quota_user
2660
+ # Available to use for quota purposes for server-side applications. Can be any
2661
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2662
+ # Overrides userIp if both are provided.
2663
+ # @param [String] user_ip
2664
+ # IP address of the site where the request originates. Use this if you want to
2665
+ # enforce per-user limits.
2666
+ # @param [Google::Apis::RequestOptions] options
2667
+ # Request-specific options
2668
+ #
2669
+ # @yield [result, err] Result & error if block supplied
2670
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
2671
+ # @yieldparam err [StandardError] error object if request failed
2672
+ #
2673
+ # @return [Google::Apis::ComputeV1::Operation]
2674
+ #
2675
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2676
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2677
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2678
+ def delete_http_health_check(project, http_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2679
+ path = '{project}/global/httpHealthChecks/{httpHealthCheck}'
2680
+ command = make_simple_command(:delete, path, options)
2681
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2682
+ command.response_class = Google::Apis::ComputeV1::Operation
2683
+ command.params['project'] = project unless project.nil?
2684
+ command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
2685
+ command.query['fields'] = fields unless fields.nil?
2686
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2687
+ command.query['userIp'] = user_ip unless user_ip.nil?
2688
+ execute_or_queue_command(command, &block)
2689
+ end
2690
+
2691
+ # Returns the specified HttpHealthCheck resource.
2692
+ # @param [String] project
2693
+ # Name of the project scoping this request.
2694
+ # @param [String] http_health_check
2695
+ # Name of the HttpHealthCheck resource to return.
2696
+ # @param [String] fields
2697
+ # Selector specifying which fields to include in a partial response.
2698
+ # @param [String] quota_user
2699
+ # Available to use for quota purposes for server-side applications. Can be any
2700
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2701
+ # Overrides userIp if both are provided.
2702
+ # @param [String] user_ip
2703
+ # IP address of the site where the request originates. Use this if you want to
2704
+ # enforce per-user limits.
2705
+ # @param [Google::Apis::RequestOptions] options
2706
+ # Request-specific options
2707
+ #
2708
+ # @yield [result, err] Result & error if block supplied
2709
+ # @yieldparam result [Google::Apis::ComputeV1::HttpHealthCheck] parsed result object
2710
+ # @yieldparam err [StandardError] error object if request failed
2711
+ #
2712
+ # @return [Google::Apis::ComputeV1::HttpHealthCheck]
2713
+ #
2714
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2715
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2716
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2717
+ def get_http_health_check(project, http_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2718
+ path = '{project}/global/httpHealthChecks/{httpHealthCheck}'
2719
+ command = make_simple_command(:get, path, options)
2720
+ command.response_representation = Google::Apis::ComputeV1::HttpHealthCheck::Representation
2721
+ command.response_class = Google::Apis::ComputeV1::HttpHealthCheck
2722
+ command.params['project'] = project unless project.nil?
2723
+ command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
2724
+ command.query['fields'] = fields unless fields.nil?
2725
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2726
+ command.query['userIp'] = user_ip unless user_ip.nil?
2727
+ execute_or_queue_command(command, &block)
2728
+ end
2729
+
2730
+ # Creates a HttpHealthCheck resource in the specified project using the data
2731
+ # included in the request.
2732
+ # @param [String] project
2733
+ # Name of the project scoping this request.
2734
+ # @param [Google::Apis::ComputeV1::HttpHealthCheck] http_health_check_object
2735
+ # @param [String] fields
2736
+ # Selector specifying which fields to include in a partial response.
2737
+ # @param [String] quota_user
2738
+ # Available to use for quota purposes for server-side applications. Can be any
2739
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2740
+ # Overrides userIp if both are provided.
2741
+ # @param [String] user_ip
2742
+ # IP address of the site where the request originates. Use this if you want to
2743
+ # enforce per-user limits.
2744
+ # @param [Google::Apis::RequestOptions] options
2745
+ # Request-specific options
2746
+ #
2747
+ # @yield [result, err] Result & error if block supplied
2748
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
2749
+ # @yieldparam err [StandardError] error object if request failed
2750
+ #
2751
+ # @return [Google::Apis::ComputeV1::Operation]
2752
+ #
2753
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2754
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2755
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2756
+ def insert_http_health_check(project, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2757
+ path = '{project}/global/httpHealthChecks'
2758
+ command = make_simple_command(:post, path, options)
2759
+ command.request_representation = Google::Apis::ComputeV1::HttpHealthCheck::Representation
2760
+ command.request_object = http_health_check_object
2761
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2762
+ command.response_class = Google::Apis::ComputeV1::Operation
2763
+ command.params['project'] = project unless project.nil?
2764
+ command.query['fields'] = fields unless fields.nil?
2765
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2766
+ command.query['userIp'] = user_ip unless user_ip.nil?
2767
+ execute_or_queue_command(command, &block)
2768
+ end
2769
+
2770
+ # Retrieves the list of HttpHealthCheck resources available to the specified
2771
+ # project.
2772
+ # @param [String] project
2773
+ # Name of the project scoping this request.
2774
+ # @param [String] filter
2775
+ # Sets a filter expression for filtering listed resources, in the form filter=`
2776
+ # expression`. Your `expression` must contain the following:
2777
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
2778
+ #
2779
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
2780
+ # be valid for the type of resource being filtered. Only atomic field types are
2781
+ # supported (string, number, boolean). Array and object fields are not currently
2782
+ # supported.
2783
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
2784
+ # equals).
2785
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
2786
+ # must be valid for the type of field (string, number, boolean). For string
2787
+ # fields, the literal value is interpreted as a regular expression using RE2
2788
+ # syntax. The literal value must match the entire field. For example, you can
2789
+ # filter by the name of a resource:
2790
+ # filter=name ne example-instance
2791
+ # The above filter returns only results whose name field does not equal example-
2792
+ # instance. You can also enclose your literal string in single, double, or no
2793
+ # quotes.
2794
+ # @param [Fixnum] max_results
2795
+ # Maximum count of results to be returned.
2796
+ # @param [String] page_token
2797
+ # Specifies a page token to use. Use this parameter if you want to list the next
2798
+ # page of results. Set pageToken to the nextPageToken returned by a previous
2799
+ # list request.
2800
+ # @param [String] fields
2801
+ # Selector specifying which fields to include in a partial response.
2802
+ # @param [String] quota_user
2803
+ # Available to use for quota purposes for server-side applications. Can be any
2804
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2805
+ # Overrides userIp if both are provided.
2806
+ # @param [String] user_ip
2807
+ # IP address of the site where the request originates. Use this if you want to
2808
+ # enforce per-user limits.
2809
+ # @param [Google::Apis::RequestOptions] options
2810
+ # Request-specific options
2811
+ #
2812
+ # @yield [result, err] Result & error if block supplied
2813
+ # @yieldparam result [Google::Apis::ComputeV1::HttpHealthCheckList] parsed result object
2814
+ # @yieldparam err [StandardError] error object if request failed
2815
+ #
2816
+ # @return [Google::Apis::ComputeV1::HttpHealthCheckList]
2817
+ #
2818
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2819
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2820
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2821
+ def list_http_health_checks(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2822
+ path = '{project}/global/httpHealthChecks'
2823
+ command = make_simple_command(:get, path, options)
2824
+ command.response_representation = Google::Apis::ComputeV1::HttpHealthCheckList::Representation
2825
+ command.response_class = Google::Apis::ComputeV1::HttpHealthCheckList
2826
+ command.params['project'] = project unless project.nil?
2827
+ command.query['filter'] = filter unless filter.nil?
2828
+ command.query['maxResults'] = max_results unless max_results.nil?
2829
+ command.query['pageToken'] = page_token unless page_token.nil?
2830
+ command.query['fields'] = fields unless fields.nil?
2831
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2832
+ command.query['userIp'] = user_ip unless user_ip.nil?
2833
+ execute_or_queue_command(command, &block)
2834
+ end
2835
+
2836
+ # Updates a HttpHealthCheck resource in the specified project using the data
2837
+ # included in the request. This method supports patch semantics.
2838
+ # @param [String] project
2839
+ # Name of the project scoping this request.
2840
+ # @param [String] http_health_check
2841
+ # Name of the HttpHealthCheck resource to update.
2842
+ # @param [Google::Apis::ComputeV1::HttpHealthCheck] http_health_check_object
2843
+ # @param [String] fields
2844
+ # Selector specifying which fields to include in a partial response.
2845
+ # @param [String] quota_user
2846
+ # Available to use for quota purposes for server-side applications. Can be any
2847
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2848
+ # Overrides userIp if both are provided.
2849
+ # @param [String] user_ip
2850
+ # IP address of the site where the request originates. Use this if you want to
2851
+ # enforce per-user limits.
2852
+ # @param [Google::Apis::RequestOptions] options
2853
+ # Request-specific options
2854
+ #
2855
+ # @yield [result, err] Result & error if block supplied
2856
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
2857
+ # @yieldparam err [StandardError] error object if request failed
2858
+ #
2859
+ # @return [Google::Apis::ComputeV1::Operation]
2860
+ #
2861
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2862
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2863
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2864
+ def patch_http_health_check(project, http_health_check, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2865
+ path = '{project}/global/httpHealthChecks/{httpHealthCheck}'
2866
+ command = make_simple_command(:patch, path, options)
2867
+ command.request_representation = Google::Apis::ComputeV1::HttpHealthCheck::Representation
2868
+ command.request_object = http_health_check_object
2869
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2870
+ command.response_class = Google::Apis::ComputeV1::Operation
2871
+ command.params['project'] = project unless project.nil?
2872
+ command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
2873
+ command.query['fields'] = fields unless fields.nil?
2874
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2875
+ command.query['userIp'] = user_ip unless user_ip.nil?
2876
+ execute_or_queue_command(command, &block)
2877
+ end
2878
+
2879
+ # Updates a HttpHealthCheck resource in the specified project using the data
2880
+ # included in the request.
2881
+ # @param [String] project
2882
+ # Name of the project scoping this request.
2883
+ # @param [String] http_health_check
2884
+ # Name of the HttpHealthCheck resource to update.
2885
+ # @param [Google::Apis::ComputeV1::HttpHealthCheck] http_health_check_object
2886
+ # @param [String] fields
2887
+ # Selector specifying which fields to include in a partial response.
2888
+ # @param [String] quota_user
2889
+ # Available to use for quota purposes for server-side applications. Can be any
2890
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2891
+ # Overrides userIp if both are provided.
2892
+ # @param [String] user_ip
2893
+ # IP address of the site where the request originates. Use this if you want to
2894
+ # enforce per-user limits.
2895
+ # @param [Google::Apis::RequestOptions] options
2896
+ # Request-specific options
2897
+ #
2898
+ # @yield [result, err] Result & error if block supplied
2899
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
2900
+ # @yieldparam err [StandardError] error object if request failed
2901
+ #
2902
+ # @return [Google::Apis::ComputeV1::Operation]
2903
+ #
2904
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2905
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2906
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2907
+ def update_http_health_check(project, http_health_check, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2908
+ path = '{project}/global/httpHealthChecks/{httpHealthCheck}'
2909
+ command = make_simple_command(:put, path, options)
2910
+ command.request_representation = Google::Apis::ComputeV1::HttpHealthCheck::Representation
2911
+ command.request_object = http_health_check_object
2912
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2913
+ command.response_class = Google::Apis::ComputeV1::Operation
2914
+ command.params['project'] = project unless project.nil?
2915
+ command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
2916
+ command.query['fields'] = fields unless fields.nil?
2917
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2918
+ command.query['userIp'] = user_ip unless user_ip.nil?
2919
+ execute_or_queue_command(command, &block)
2920
+ end
2921
+
2922
+ # Deletes the specified image resource.
2923
+ # @param [String] project
2924
+ # Project ID for this request.
2925
+ # @param [String] image
2926
+ # Name of the image resource to delete.
2927
+ # @param [String] fields
2928
+ # Selector specifying which fields to include in a partial response.
2929
+ # @param [String] quota_user
2930
+ # Available to use for quota purposes for server-side applications. Can be any
2931
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2932
+ # Overrides userIp if both are provided.
2933
+ # @param [String] user_ip
2934
+ # IP address of the site where the request originates. Use this if you want to
2935
+ # enforce per-user limits.
2936
+ # @param [Google::Apis::RequestOptions] options
2937
+ # Request-specific options
2938
+ #
2939
+ # @yield [result, err] Result & error if block supplied
2940
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
2941
+ # @yieldparam err [StandardError] error object if request failed
2942
+ #
2943
+ # @return [Google::Apis::ComputeV1::Operation]
2944
+ #
2945
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2946
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2947
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2948
+ def delete_image(project, image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2949
+ path = '{project}/global/images/{image}'
2950
+ command = make_simple_command(:delete, path, options)
2951
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2952
+ command.response_class = Google::Apis::ComputeV1::Operation
2953
+ command.params['project'] = project unless project.nil?
2954
+ command.params['image'] = image unless image.nil?
2955
+ command.query['fields'] = fields unless fields.nil?
2956
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2957
+ command.query['userIp'] = user_ip unless user_ip.nil?
2958
+ execute_or_queue_command(command, &block)
2959
+ end
2960
+
2961
+ # Sets the deprecation status of an image.
2962
+ # If an empty request body is given, clears the deprecation status instead.
2963
+ # @param [String] project
2964
+ # Project ID for this request.
2965
+ # @param [String] image
2966
+ # Image name.
2967
+ # @param [Google::Apis::ComputeV1::DeprecationStatus] deprecation_status_object
2968
+ # @param [String] fields
2969
+ # Selector specifying which fields to include in a partial response.
2970
+ # @param [String] quota_user
2971
+ # Available to use for quota purposes for server-side applications. Can be any
2972
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2973
+ # Overrides userIp if both are provided.
2974
+ # @param [String] user_ip
2975
+ # IP address of the site where the request originates. Use this if you want to
2976
+ # enforce per-user limits.
2977
+ # @param [Google::Apis::RequestOptions] options
2978
+ # Request-specific options
2979
+ #
2980
+ # @yield [result, err] Result & error if block supplied
2981
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
2982
+ # @yieldparam err [StandardError] error object if request failed
2983
+ #
2984
+ # @return [Google::Apis::ComputeV1::Operation]
2985
+ #
2986
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2987
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2988
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2989
+ def deprecate_image(project, image, deprecation_status_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2990
+ path = '{project}/global/images/{image}/deprecate'
2991
+ command = make_simple_command(:post, path, options)
2992
+ command.request_representation = Google::Apis::ComputeV1::DeprecationStatus::Representation
2993
+ command.request_object = deprecation_status_object
2994
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2995
+ command.response_class = Google::Apis::ComputeV1::Operation
2996
+ command.params['project'] = project unless project.nil?
2997
+ command.params['image'] = image unless image.nil?
2998
+ command.query['fields'] = fields unless fields.nil?
2999
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3000
+ command.query['userIp'] = user_ip unless user_ip.nil?
3001
+ execute_or_queue_command(command, &block)
3002
+ end
3003
+
3004
+ # Returns the specified image resource.
3005
+ # @param [String] project
3006
+ # Project ID for this request.
3007
+ # @param [String] image
3008
+ # Name of the image resource to return.
3009
+ # @param [String] fields
3010
+ # Selector specifying which fields to include in a partial response.
3011
+ # @param [String] quota_user
3012
+ # Available to use for quota purposes for server-side applications. Can be any
3013
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3014
+ # Overrides userIp if both are provided.
3015
+ # @param [String] user_ip
3016
+ # IP address of the site where the request originates. Use this if you want to
3017
+ # enforce per-user limits.
3018
+ # @param [Google::Apis::RequestOptions] options
3019
+ # Request-specific options
3020
+ #
3021
+ # @yield [result, err] Result & error if block supplied
3022
+ # @yieldparam result [Google::Apis::ComputeV1::Image] parsed result object
3023
+ # @yieldparam err [StandardError] error object if request failed
3024
+ #
3025
+ # @return [Google::Apis::ComputeV1::Image]
3026
+ #
3027
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3028
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3029
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3030
+ def get_image(project, image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3031
+ path = '{project}/global/images/{image}'
3032
+ command = make_simple_command(:get, path, options)
3033
+ command.response_representation = Google::Apis::ComputeV1::Image::Representation
3034
+ command.response_class = Google::Apis::ComputeV1::Image
3035
+ command.params['project'] = project unless project.nil?
3036
+ command.params['image'] = image unless image.nil?
3037
+ command.query['fields'] = fields unless fields.nil?
3038
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3039
+ command.query['userIp'] = user_ip unless user_ip.nil?
3040
+ execute_or_queue_command(command, &block)
3041
+ end
3042
+
3043
+ # Creates an image resource in the specified project using the data included in
3044
+ # the request.
3045
+ # @param [String] project
3046
+ # Project ID for this request.
3047
+ # @param [Google::Apis::ComputeV1::Image] image_object
3048
+ # @param [String] fields
3049
+ # Selector specifying which fields to include in a partial response.
3050
+ # @param [String] quota_user
3051
+ # Available to use for quota purposes for server-side applications. Can be any
3052
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3053
+ # Overrides userIp if both are provided.
3054
+ # @param [String] user_ip
3055
+ # IP address of the site where the request originates. Use this if you want to
3056
+ # enforce per-user limits.
3057
+ # @param [Google::Apis::RequestOptions] options
3058
+ # Request-specific options
3059
+ #
3060
+ # @yield [result, err] Result & error if block supplied
3061
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3062
+ # @yieldparam err [StandardError] error object if request failed
3063
+ #
3064
+ # @return [Google::Apis::ComputeV1::Operation]
3065
+ #
3066
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3067
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3068
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3069
+ def insert_image(project, image_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3070
+ path = '{project}/global/images'
3071
+ command = make_simple_command(:post, path, options)
3072
+ command.request_representation = Google::Apis::ComputeV1::Image::Representation
3073
+ command.request_object = image_object
3074
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3075
+ command.response_class = Google::Apis::ComputeV1::Operation
3076
+ command.params['project'] = project unless project.nil?
3077
+ command.query['fields'] = fields unless fields.nil?
3078
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3079
+ command.query['userIp'] = user_ip unless user_ip.nil?
3080
+ execute_or_queue_command(command, &block)
3081
+ end
3082
+
3083
+ # Retrieves the list of image resources available to the specified project.
3084
+ # @param [String] project
3085
+ # Project ID for this request.
3086
+ # @param [String] filter
3087
+ # Sets a filter expression for filtering listed resources, in the form filter=`
3088
+ # expression`. Your `expression` must contain the following:
3089
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
3090
+ #
3091
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
3092
+ # be valid for the type of resource being filtered. Only atomic field types are
3093
+ # supported (string, number, boolean). Array and object fields are not currently
3094
+ # supported.
3095
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
3096
+ # equals).
3097
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
3098
+ # must be valid for the type of field (string, number, boolean). For string
3099
+ # fields, the literal value is interpreted as a regular expression using RE2
3100
+ # syntax. The literal value must match the entire field. For example, you can
3101
+ # filter by the name of a resource:
3102
+ # filter=name ne example-instance
3103
+ # The above filter returns only results whose name field does not equal example-
3104
+ # instance. You can also enclose your literal string in single, double, or no
3105
+ # quotes.
3106
+ # @param [Fixnum] max_results
3107
+ # Maximum count of results to be returned.
3108
+ # @param [String] page_token
3109
+ # Specifies a page token to use. Use this parameter if you want to list the next
3110
+ # page of results. Set pageToken to the nextPageToken returned by a previous
3111
+ # list request.
3112
+ # @param [String] fields
3113
+ # Selector specifying which fields to include in a partial response.
3114
+ # @param [String] quota_user
3115
+ # Available to use for quota purposes for server-side applications. Can be any
3116
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3117
+ # Overrides userIp if both are provided.
3118
+ # @param [String] user_ip
3119
+ # IP address of the site where the request originates. Use this if you want to
3120
+ # enforce per-user limits.
3121
+ # @param [Google::Apis::RequestOptions] options
3122
+ # Request-specific options
3123
+ #
3124
+ # @yield [result, err] Result & error if block supplied
3125
+ # @yieldparam result [Google::Apis::ComputeV1::ImageList] parsed result object
3126
+ # @yieldparam err [StandardError] error object if request failed
3127
+ #
3128
+ # @return [Google::Apis::ComputeV1::ImageList]
3129
+ #
3130
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3131
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3132
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3133
+ def list_images(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3134
+ path = '{project}/global/images'
3135
+ command = make_simple_command(:get, path, options)
3136
+ command.response_representation = Google::Apis::ComputeV1::ImageList::Representation
3137
+ command.response_class = Google::Apis::ComputeV1::ImageList
3138
+ command.params['project'] = project unless project.nil?
3139
+ command.query['filter'] = filter unless filter.nil?
3140
+ command.query['maxResults'] = max_results unless max_results.nil?
3141
+ command.query['pageToken'] = page_token unless page_token.nil?
3142
+ command.query['fields'] = fields unless fields.nil?
3143
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3144
+ command.query['userIp'] = user_ip unless user_ip.nil?
3145
+ execute_or_queue_command(command, &block)
3146
+ end
3147
+
3148
+ # Removes the specified instances from the managed instance group, and from any
3149
+ # target pools where they are a member. The instances are not deleted. The
3150
+ # managed instance group automatically reduces its targetSize value by the
3151
+ # number of instances that you abandon from the group.
3152
+ # @param [String] project
3153
+ # The project ID for this request.
3154
+ # @param [String] zone
3155
+ # The URL of the zone where the managed instance group is located.
3156
+ # @param [String] instance_group_manager
3157
+ # The name of the instance group manager.
3158
+ # @param [Google::Apis::ComputeV1::InstanceGroupManagersAbandonInstancesRequest] instance_group_managers_abandon_instances_request_object
3159
+ # @param [String] fields
3160
+ # Selector specifying which fields to include in a partial response.
3161
+ # @param [String] quota_user
3162
+ # Available to use for quota purposes for server-side applications. Can be any
3163
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3164
+ # Overrides userIp if both are provided.
3165
+ # @param [String] user_ip
3166
+ # IP address of the site where the request originates. Use this if you want to
3167
+ # enforce per-user limits.
3168
+ # @param [Google::Apis::RequestOptions] options
3169
+ # Request-specific options
3170
+ #
3171
+ # @yield [result, err] Result & error if block supplied
3172
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3173
+ # @yieldparam err [StandardError] error object if request failed
3174
+ #
3175
+ # @return [Google::Apis::ComputeV1::Operation]
3176
+ #
3177
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3178
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3179
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3180
+ def abandon_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_abandon_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3181
+ path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances'
3182
+ command = make_simple_command(:post, path, options)
3183
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersAbandonInstancesRequest::Representation
3184
+ command.request_object = instance_group_managers_abandon_instances_request_object
3185
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3186
+ command.response_class = Google::Apis::ComputeV1::Operation
3187
+ command.params['project'] = project unless project.nil?
3188
+ command.params['zone'] = zone unless zone.nil?
3189
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
3190
+ command.query['fields'] = fields unless fields.nil?
3191
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3192
+ command.query['userIp'] = user_ip unless user_ip.nil?
3193
+ execute_or_queue_command(command, &block)
3194
+ end
3195
+
3196
+ # Retrieves the list of managed instance groups, and groups them by project and
3197
+ # zone.
3198
+ # @param [String] project
3199
+ # The project ID for this request.
3200
+ # @param [String] filter
3201
+ # Sets a filter expression for filtering listed resources, in the form filter=`
3202
+ # expression`. Your `expression` must contain the following:
3203
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
3204
+ #
3205
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
3206
+ # be valid for the type of resource being filtered. Only atomic field types are
3207
+ # supported (string, number, boolean). Array and object fields are not currently
3208
+ # supported.
3209
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
3210
+ # equals).
3211
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
3212
+ # must be valid for the type of field (string, number, boolean). For string
3213
+ # fields, the literal value is interpreted as a regular expression using RE2
3214
+ # syntax. The literal value must match the entire field. For example, you can
3215
+ # filter by the name of a resource:
3216
+ # filter=name ne example-instance
3217
+ # The above filter returns only results whose name field does not equal example-
3218
+ # instance. You can also enclose your literal string in single, double, or no
3219
+ # quotes.
3220
+ # @param [Fixnum] max_results
3221
+ # Maximum count of results to be returned.
3222
+ # @param [String] page_token
3223
+ # Specifies a page token to use. Use this parameter if you want to list the next
3224
+ # page of results. Set pageToken to the nextPageToken returned by a previous
3225
+ # list request.
3226
+ # @param [String] fields
3227
+ # Selector specifying which fields to include in a partial response.
3228
+ # @param [String] quota_user
3229
+ # Available to use for quota purposes for server-side applications. Can be any
3230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3231
+ # Overrides userIp if both are provided.
3232
+ # @param [String] user_ip
3233
+ # IP address of the site where the request originates. Use this if you want to
3234
+ # enforce per-user limits.
3235
+ # @param [Google::Apis::RequestOptions] options
3236
+ # Request-specific options
3237
+ #
3238
+ # @yield [result, err] Result & error if block supplied
3239
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceGroupManagerAggregatedList] parsed result object
3240
+ # @yieldparam err [StandardError] error object if request failed
3241
+ #
3242
+ # @return [Google::Apis::ComputeV1::InstanceGroupManagerAggregatedList]
3243
+ #
3244
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3245
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3246
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3247
+ def list_aggregated_instance_group_managers(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3248
+ path = '{project}/aggregated/instanceGroupManagers'
3249
+ command = make_simple_command(:get, path, options)
3250
+ command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagerAggregatedList::Representation
3251
+ command.response_class = Google::Apis::ComputeV1::InstanceGroupManagerAggregatedList
3252
+ command.params['project'] = project unless project.nil?
3253
+ command.query['filter'] = filter unless filter.nil?
3254
+ command.query['maxResults'] = max_results unless max_results.nil?
3255
+ command.query['pageToken'] = page_token unless page_token.nil?
3256
+ command.query['fields'] = fields unless fields.nil?
3257
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3258
+ command.query['userIp'] = user_ip unless user_ip.nil?
3259
+ execute_or_queue_command(command, &block)
3260
+ end
3261
+
3262
+ # Deletes the specified managed instance group resource.
3263
+ # @param [String] project
3264
+ # The project ID for this request.
3265
+ # @param [String] zone
3266
+ # The URL of the zone where the managed instance group is located.
3267
+ # @param [String] instance_group_manager
3268
+ # The name of the instance group manager to delete.
3269
+ # @param [String] fields
3270
+ # Selector specifying which fields to include in a partial response.
3271
+ # @param [String] quota_user
3272
+ # Available to use for quota purposes for server-side applications. Can be any
3273
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3274
+ # Overrides userIp if both are provided.
3275
+ # @param [String] user_ip
3276
+ # IP address of the site where the request originates. Use this if you want to
3277
+ # enforce per-user limits.
3278
+ # @param [Google::Apis::RequestOptions] options
3279
+ # Request-specific options
3280
+ #
3281
+ # @yield [result, err] Result & error if block supplied
3282
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3283
+ # @yieldparam err [StandardError] error object if request failed
3284
+ #
3285
+ # @return [Google::Apis::ComputeV1::Operation]
3286
+ #
3287
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3288
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3289
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3290
+ def delete_instance_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3291
+ path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}'
3292
+ command = make_simple_command(:delete, path, options)
3293
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3294
+ command.response_class = Google::Apis::ComputeV1::Operation
3295
+ command.params['project'] = project unless project.nil?
3296
+ command.params['zone'] = zone unless zone.nil?
3297
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
3298
+ command.query['fields'] = fields unless fields.nil?
3299
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3300
+ command.query['userIp'] = user_ip unless user_ip.nil?
3301
+ execute_or_queue_command(command, &block)
3302
+ end
3303
+
3304
+ # Deletes the specified instances. The instances are deleted and removed from
3305
+ # the instance group and any target pools where they are a member. The managed
3306
+ # instance group automatically reduces its targetSize value by the number of
3307
+ # instances that you delete.
3308
+ # @param [String] project
3309
+ # The project ID for this request.
3310
+ # @param [String] zone
3311
+ # The URL of the zone where the managed instance group is located.
3312
+ # @param [String] instance_group_manager
3313
+ # The name of the instance group manager.
3314
+ # @param [Google::Apis::ComputeV1::InstanceGroupManagersDeleteInstancesRequest] instance_group_managers_delete_instances_request_object
3315
+ # @param [String] fields
3316
+ # Selector specifying which fields to include in a partial response.
3317
+ # @param [String] quota_user
3318
+ # Available to use for quota purposes for server-side applications. Can be any
3319
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3320
+ # Overrides userIp if both are provided.
3321
+ # @param [String] user_ip
3322
+ # IP address of the site where the request originates. Use this if you want to
3323
+ # enforce per-user limits.
3324
+ # @param [Google::Apis::RequestOptions] options
3325
+ # Request-specific options
3326
+ #
3327
+ # @yield [result, err] Result & error if block supplied
3328
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3329
+ # @yieldparam err [StandardError] error object if request failed
3330
+ #
3331
+ # @return [Google::Apis::ComputeV1::Operation]
3332
+ #
3333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3336
+ def delete_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_delete_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3337
+ path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances'
3338
+ command = make_simple_command(:post, path, options)
3339
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersDeleteInstancesRequest::Representation
3340
+ command.request_object = instance_group_managers_delete_instances_request_object
3341
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3342
+ command.response_class = Google::Apis::ComputeV1::Operation
3343
+ command.params['project'] = project unless project.nil?
3344
+ command.params['zone'] = zone unless zone.nil?
3345
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
3346
+ command.query['fields'] = fields unless fields.nil?
3347
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3348
+ command.query['userIp'] = user_ip unless user_ip.nil?
3349
+ execute_or_queue_command(command, &block)
3350
+ end
3351
+
3352
+ # Returns the specified managed instance group resource.
3353
+ # @param [String] project
3354
+ # The project ID for this request.
3355
+ # @param [String] zone
3356
+ # The URL of the zone where the managed instance group is located.
3357
+ # @param [String] instance_group_manager
3358
+ # The name of the instance group manager resource.
3359
+ # @param [String] fields
3360
+ # Selector specifying which fields to include in a partial response.
3361
+ # @param [String] quota_user
3362
+ # Available to use for quota purposes for server-side applications. Can be any
3363
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3364
+ # Overrides userIp if both are provided.
3365
+ # @param [String] user_ip
3366
+ # IP address of the site where the request originates. Use this if you want to
3367
+ # enforce per-user limits.
3368
+ # @param [Google::Apis::RequestOptions] options
3369
+ # Request-specific options
3370
+ #
3371
+ # @yield [result, err] Result & error if block supplied
3372
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceGroupManager] parsed result object
3373
+ # @yieldparam err [StandardError] error object if request failed
3374
+ #
3375
+ # @return [Google::Apis::ComputeV1::InstanceGroupManager]
3376
+ #
3377
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3378
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3379
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3380
+ def get_instance_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3381
+ path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}'
3382
+ command = make_simple_command(:get, path, options)
3383
+ command.response_representation = Google::Apis::ComputeV1::InstanceGroupManager::Representation
3384
+ command.response_class = Google::Apis::ComputeV1::InstanceGroupManager
3385
+ command.params['project'] = project unless project.nil?
3386
+ command.params['zone'] = zone unless zone.nil?
3387
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
3388
+ command.query['fields'] = fields unless fields.nil?
3389
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3390
+ command.query['userIp'] = user_ip unless user_ip.nil?
3391
+ execute_or_queue_command(command, &block)
3392
+ end
3393
+
3394
+ # Creates a managed instance group resource in the specified project using the
3395
+ # data that is included in the request.
3396
+ # @param [String] project
3397
+ # The project ID for this request.
3398
+ # @param [String] zone
3399
+ # The URL of the zone where the managed instance group is located.
3400
+ # @param [Google::Apis::ComputeV1::InstanceGroupManager] instance_group_manager_object
3401
+ # @param [String] fields
3402
+ # Selector specifying which fields to include in a partial response.
3403
+ # @param [String] quota_user
3404
+ # Available to use for quota purposes for server-side applications. Can be any
3405
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3406
+ # Overrides userIp if both are provided.
3407
+ # @param [String] user_ip
3408
+ # IP address of the site where the request originates. Use this if you want to
3409
+ # enforce per-user limits.
3410
+ # @param [Google::Apis::RequestOptions] options
3411
+ # Request-specific options
3412
+ #
3413
+ # @yield [result, err] Result & error if block supplied
3414
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3415
+ # @yieldparam err [StandardError] error object if request failed
3416
+ #
3417
+ # @return [Google::Apis::ComputeV1::Operation]
3418
+ #
3419
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3420
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3421
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3422
+ def insert_instance_group_manager(project, zone, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3423
+ path = '{project}/zones/{zone}/instanceGroupManagers'
1850
3424
  command = make_simple_command(:post, path, options)
1851
- command.request_representation = Google::Apis::ComputeV1::TargetReference::Representation
1852
- command.request_object = target_reference_object
3425
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupManager::Representation
3426
+ command.request_object = instance_group_manager_object
1853
3427
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
1854
3428
  command.response_class = Google::Apis::ComputeV1::Operation
1855
3429
  command.params['project'] = project unless project.nil?
1856
- command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
3430
+ command.params['zone'] = zone unless zone.nil?
1857
3431
  command.query['fields'] = fields unless fields.nil?
1858
3432
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1859
3433
  command.query['userIp'] = user_ip unless user_ip.nil?
1860
3434
  execute_or_queue_command(command, &block)
1861
3435
  end
1862
3436
 
1863
- # Retrieves the list of all operations grouped by scope.
3437
+ # Retrieves a list of managed instance groups that are contained within the
3438
+ # specified project and zone.
1864
3439
  # @param [String] project
1865
- # Project ID for this request.
3440
+ # The project ID for this request.
3441
+ # @param [String] zone
3442
+ # The URL of the zone where the managed instance group is located.
1866
3443
  # @param [String] filter
1867
- # Filter expression for filtering listed resources.
3444
+ # Sets a filter expression for filtering listed resources, in the form filter=`
3445
+ # expression`. Your `expression` must contain the following:
3446
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
3447
+ #
3448
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
3449
+ # be valid for the type of resource being filtered. Only atomic field types are
3450
+ # supported (string, number, boolean). Array and object fields are not currently
3451
+ # supported.
3452
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
3453
+ # equals).
3454
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
3455
+ # must be valid for the type of field (string, number, boolean). For string
3456
+ # fields, the literal value is interpreted as a regular expression using RE2
3457
+ # syntax. The literal value must match the entire field. For example, you can
3458
+ # filter by the name of a resource:
3459
+ # filter=name ne example-instance
3460
+ # The above filter returns only results whose name field does not equal example-
3461
+ # instance. You can also enclose your literal string in single, double, or no
3462
+ # quotes.
1868
3463
  # @param [Fixnum] max_results
1869
3464
  # Maximum count of results to be returned.
1870
3465
  # @param [String] page_token
1871
- # Tag returned by a previous list request when that list was truncated to
1872
- # maxResults. Used to continue a previous list request.
3466
+ # Specifies a page token to use. Use this parameter if you want to list the next
3467
+ # page of results. Set pageToken to the nextPageToken returned by a previous
3468
+ # list request.
1873
3469
  # @param [String] fields
1874
3470
  # Selector specifying which fields to include in a partial response.
1875
3471
  # @param [String] quota_user
@@ -1883,20 +3479,21 @@ module Google
1883
3479
  # Request-specific options
1884
3480
  #
1885
3481
  # @yield [result, err] Result & error if block supplied
1886
- # @yieldparam result [Google::Apis::ComputeV1::OperationAggregatedList] parsed result object
3482
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceGroupManagerList] parsed result object
1887
3483
  # @yieldparam err [StandardError] error object if request failed
1888
3484
  #
1889
- # @return [Google::Apis::ComputeV1::OperationAggregatedList]
3485
+ # @return [Google::Apis::ComputeV1::InstanceGroupManagerList]
1890
3486
  #
1891
3487
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1892
3488
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1893
3489
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1894
- def list_aggregated_global_operation(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1895
- path = '{project}/aggregated/operations'
3490
+ def list_instance_group_managers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3491
+ path = '{project}/zones/{zone}/instanceGroupManagers'
1896
3492
  command = make_simple_command(:get, path, options)
1897
- command.response_representation = Google::Apis::ComputeV1::OperationAggregatedList::Representation
1898
- command.response_class = Google::Apis::ComputeV1::OperationAggregatedList
3493
+ command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagerList::Representation
3494
+ command.response_class = Google::Apis::ComputeV1::InstanceGroupManagerList
1899
3495
  command.params['project'] = project unless project.nil?
3496
+ command.params['zone'] = zone unless zone.nil?
1900
3497
  command.query['filter'] = filter unless filter.nil?
1901
3498
  command.query['maxResults'] = max_results unless max_results.nil?
1902
3499
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -1906,11 +3503,13 @@ module Google
1906
3503
  execute_or_queue_command(command, &block)
1907
3504
  end
1908
3505
 
1909
- # Deletes the specified operation resource.
3506
+ # Lists managed instances.
1910
3507
  # @param [String] project
1911
- # Project ID for this request.
1912
- # @param [String] operation
1913
- # Name of the operation resource to delete.
3508
+ # The project ID for this request.
3509
+ # @param [String] zone
3510
+ # The URL of the zone where the managed instance group is located.
3511
+ # @param [String] instance_group_manager
3512
+ # The name of the managed instance group.
1914
3513
  # @param [String] fields
1915
3514
  # Selector specifying which fields to include in a partial response.
1916
3515
  # @param [String] quota_user
@@ -1924,30 +3523,37 @@ module Google
1924
3523
  # Request-specific options
1925
3524
  #
1926
3525
  # @yield [result, err] Result & error if block supplied
1927
- # @yieldparam result [NilClass] No result returned for this method
3526
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceGroupManagersListManagedInstancesResponse] parsed result object
1928
3527
  # @yieldparam err [StandardError] error object if request failed
1929
3528
  #
1930
- # @return [void]
3529
+ # @return [Google::Apis::ComputeV1::InstanceGroupManagersListManagedInstancesResponse]
1931
3530
  #
1932
3531
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1933
3532
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1934
3533
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1935
- def delete_global_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1936
- path = '{project}/global/operations/{operation}'
1937
- command = make_simple_command(:delete, path, options)
3534
+ def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3535
+ path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances'
3536
+ command = make_simple_command(:post, path, options)
3537
+ command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagersListManagedInstancesResponse::Representation
3538
+ command.response_class = Google::Apis::ComputeV1::InstanceGroupManagersListManagedInstancesResponse
1938
3539
  command.params['project'] = project unless project.nil?
1939
- command.params['operation'] = operation unless operation.nil?
3540
+ command.params['zone'] = zone unless zone.nil?
3541
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
1940
3542
  command.query['fields'] = fields unless fields.nil?
1941
3543
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1942
3544
  command.query['userIp'] = user_ip unless user_ip.nil?
1943
3545
  execute_or_queue_command(command, &block)
1944
3546
  end
1945
3547
 
1946
- # Retrieves the specified operation resource.
3548
+ # Recreates the specified instances. The instances are deleted, then recreated
3549
+ # using the managed instance group's current instance template.
1947
3550
  # @param [String] project
1948
- # Project ID for this request.
1949
- # @param [String] operation
1950
- # Name of the operation resource to return.
3551
+ # The project ID for this request.
3552
+ # @param [String] zone
3553
+ # The URL of the zone where the managed instance group is located.
3554
+ # @param [String] instance_group_manager
3555
+ # The name of the instance group manager.
3556
+ # @param [Google::Apis::ComputeV1::InstanceGroupManagersRecreateInstancesRequest] instance_group_managers_recreate_instances_request_object
1951
3557
  # @param [String] fields
1952
3558
  # Selector specifying which fields to include in a partial response.
1953
3559
  # @param [String] quota_user
@@ -1969,30 +3575,36 @@ module Google
1969
3575
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1970
3576
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1971
3577
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1972
- def get_global_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1973
- path = '{project}/global/operations/{operation}'
1974
- command = make_simple_command(:get, path, options)
3578
+ def recreate_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_recreate_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3579
+ path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances'
3580
+ command = make_simple_command(:post, path, options)
3581
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersRecreateInstancesRequest::Representation
3582
+ command.request_object = instance_group_managers_recreate_instances_request_object
1975
3583
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
1976
3584
  command.response_class = Google::Apis::ComputeV1::Operation
1977
3585
  command.params['project'] = project unless project.nil?
1978
- command.params['operation'] = operation unless operation.nil?
3586
+ command.params['zone'] = zone unless zone.nil?
3587
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
1979
3588
  command.query['fields'] = fields unless fields.nil?
1980
3589
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1981
3590
  command.query['userIp'] = user_ip unless user_ip.nil?
1982
3591
  execute_or_queue_command(command, &block)
1983
3592
  end
1984
3593
 
1985
- # Retrieves the list of operation resources contained within the specified
1986
- # project.
3594
+ # Resizes the managed instance group. If you increase the size, the group
3595
+ # creates new instances using the current instance template. If you decrease the
3596
+ # size, the group removes instances in the order that is outlined in Resizing a
3597
+ # managed instance group.
1987
3598
  # @param [String] project
1988
- # Project ID for this request.
1989
- # @param [String] filter
1990
- # Filter expression for filtering listed resources.
1991
- # @param [Fixnum] max_results
1992
- # Maximum count of results to be returned.
1993
- # @param [String] page_token
1994
- # Tag returned by a previous list request when that list was truncated to
1995
- # maxResults. Used to continue a previous list request.
3599
+ # The project ID for this request.
3600
+ # @param [String] zone
3601
+ # The URL of the zone where the managed instance group is located.
3602
+ # @param [String] instance_group_manager
3603
+ # The name of the instance group manager.
3604
+ # @param [Fixnum] size
3605
+ # The number of running instances that the managed instance group should
3606
+ # maintain at any given time. The group automatically adds or removes instances
3607
+ # to maintain the number of instances specified by this parameter.
1996
3608
  # @param [String] fields
1997
3609
  # Selector specifying which fields to include in a partial response.
1998
3610
  # @param [String] quota_user
@@ -2006,34 +3618,39 @@ module Google
2006
3618
  # Request-specific options
2007
3619
  #
2008
3620
  # @yield [result, err] Result & error if block supplied
2009
- # @yieldparam result [Google::Apis::ComputeV1::OperationList] parsed result object
3621
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
2010
3622
  # @yieldparam err [StandardError] error object if request failed
2011
3623
  #
2012
- # @return [Google::Apis::ComputeV1::OperationList]
3624
+ # @return [Google::Apis::ComputeV1::Operation]
2013
3625
  #
2014
3626
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2015
3627
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2016
3628
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2017
- def list_global_operations(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2018
- path = '{project}/global/operations'
2019
- command = make_simple_command(:get, path, options)
2020
- command.response_representation = Google::Apis::ComputeV1::OperationList::Representation
2021
- command.response_class = Google::Apis::ComputeV1::OperationList
3629
+ def resize_instance_group_manager(project, zone, instance_group_manager, size: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3630
+ path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize'
3631
+ command = make_simple_command(:post, path, options)
3632
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3633
+ command.response_class = Google::Apis::ComputeV1::Operation
2022
3634
  command.params['project'] = project unless project.nil?
2023
- command.query['filter'] = filter unless filter.nil?
2024
- command.query['maxResults'] = max_results unless max_results.nil?
2025
- command.query['pageToken'] = page_token unless page_token.nil?
3635
+ command.params['zone'] = zone unless zone.nil?
3636
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
3637
+ command.query['size'] = size unless size.nil?
2026
3638
  command.query['fields'] = fields unless fields.nil?
2027
3639
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2028
3640
  command.query['userIp'] = user_ip unless user_ip.nil?
2029
3641
  execute_or_queue_command(command, &block)
2030
3642
  end
2031
3643
 
2032
- # Deletes the specified HttpHealthCheck resource.
3644
+ # Specifies the instance template to use when creating new instances in this
3645
+ # group. The templates for existing instances in the group do not change unless
3646
+ # you recreate them.
2033
3647
  # @param [String] project
2034
- # Name of the project scoping this request.
2035
- # @param [String] http_health_check
2036
- # Name of the HttpHealthCheck resource to delete.
3648
+ # The project ID for this request.
3649
+ # @param [String] zone
3650
+ # The URL of the zone where the managed instance group is located.
3651
+ # @param [String] instance_group_manager
3652
+ # The name of the instance group manager.
3653
+ # @param [Google::Apis::ComputeV1::InstanceGroupManagersSetInstanceTemplateRequest] instance_group_managers_set_instance_template_request_object
2037
3654
  # @param [String] fields
2038
3655
  # Selector specifying which fields to include in a partial response.
2039
3656
  # @param [String] quota_user
@@ -2055,24 +3672,32 @@ module Google
2055
3672
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2056
3673
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2057
3674
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2058
- def delete_http_health_check(project, http_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2059
- path = '{project}/global/httpHealthChecks/{httpHealthCheck}'
2060
- command = make_simple_command(:delete, path, options)
3675
+ def set_instance_group_manager_instance_template(project, zone, instance_group_manager, instance_group_managers_set_instance_template_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3676
+ path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate'
3677
+ command = make_simple_command(:post, path, options)
3678
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersSetInstanceTemplateRequest::Representation
3679
+ command.request_object = instance_group_managers_set_instance_template_request_object
2061
3680
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2062
3681
  command.response_class = Google::Apis::ComputeV1::Operation
2063
3682
  command.params['project'] = project unless project.nil?
2064
- command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
3683
+ command.params['zone'] = zone unless zone.nil?
3684
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
2065
3685
  command.query['fields'] = fields unless fields.nil?
2066
3686
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2067
3687
  command.query['userIp'] = user_ip unless user_ip.nil?
2068
3688
  execute_or_queue_command(command, &block)
2069
3689
  end
2070
3690
 
2071
- # Returns the specified HttpHealthCheck resource.
3691
+ # Modifies the target pools to which all new instances in this group are
3692
+ # assigned. The target pools for existing instances in the group do not change
3693
+ # unless you recreate them.
2072
3694
  # @param [String] project
2073
- # Name of the project scoping this request.
2074
- # @param [String] http_health_check
2075
- # Name of the HttpHealthCheck resource to return.
3695
+ # The project ID for this request.
3696
+ # @param [String] zone
3697
+ # The URL of the zone where the managed instance group is located.
3698
+ # @param [String] instance_group_manager
3699
+ # The name of the instance group manager.
3700
+ # @param [Google::Apis::ComputeV1::InstanceGroupManagersSetTargetPoolsRequest] instance_group_managers_set_target_pools_request_object
2076
3701
  # @param [String] fields
2077
3702
  # Selector specifying which fields to include in a partial response.
2078
3703
  # @param [String] quota_user
@@ -2086,32 +3711,39 @@ module Google
2086
3711
  # Request-specific options
2087
3712
  #
2088
3713
  # @yield [result, err] Result & error if block supplied
2089
- # @yieldparam result [Google::Apis::ComputeV1::HttpHealthCheck] parsed result object
3714
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
2090
3715
  # @yieldparam err [StandardError] error object if request failed
2091
3716
  #
2092
- # @return [Google::Apis::ComputeV1::HttpHealthCheck]
3717
+ # @return [Google::Apis::ComputeV1::Operation]
2093
3718
  #
2094
3719
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2095
3720
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2096
3721
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2097
- def get_http_health_check(project, http_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2098
- path = '{project}/global/httpHealthChecks/{httpHealthCheck}'
2099
- command = make_simple_command(:get, path, options)
2100
- command.response_representation = Google::Apis::ComputeV1::HttpHealthCheck::Representation
2101
- command.response_class = Google::Apis::ComputeV1::HttpHealthCheck
3722
+ def set_instance_group_manager_target_pools(project, zone, instance_group_manager, instance_group_managers_set_target_pools_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3723
+ path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools'
3724
+ command = make_simple_command(:post, path, options)
3725
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersSetTargetPoolsRequest::Representation
3726
+ command.request_object = instance_group_managers_set_target_pools_request_object
3727
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3728
+ command.response_class = Google::Apis::ComputeV1::Operation
2102
3729
  command.params['project'] = project unless project.nil?
2103
- command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
3730
+ command.params['zone'] = zone unless zone.nil?
3731
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
2104
3732
  command.query['fields'] = fields unless fields.nil?
2105
3733
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2106
3734
  command.query['userIp'] = user_ip unless user_ip.nil?
2107
3735
  execute_or_queue_command(command, &block)
2108
3736
  end
2109
3737
 
2110
- # Creates a HttpHealthCheck resource in the specified project using the data
2111
- # included in the request.
3738
+ # Adds a list of instances to an instance group. All of the instances in the
3739
+ # instance group must be in the same network.
2112
3740
  # @param [String] project
2113
- # Name of the project scoping this request.
2114
- # @param [Google::Apis::ComputeV1::HttpHealthCheck] http_health_check_object
3741
+ # The project ID for this request.
3742
+ # @param [String] zone
3743
+ # The URL of the zone where the instance group is located.
3744
+ # @param [String] instance_group
3745
+ # The name of the instance group where you are adding instances.
3746
+ # @param [Google::Apis::ComputeV1::InstanceGroupsAddInstancesRequest] instance_groups_add_instances_request_object
2115
3747
  # @param [String] fields
2116
3748
  # Selector specifying which fields to include in a partial response.
2117
3749
  # @param [String] quota_user
@@ -2133,31 +3765,51 @@ module Google
2133
3765
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2134
3766
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2135
3767
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2136
- def insert_http_health_check(project, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2137
- path = '{project}/global/httpHealthChecks'
3768
+ def add_instance_group_instances(project, zone, instance_group, instance_groups_add_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3769
+ path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances'
2138
3770
  command = make_simple_command(:post, path, options)
2139
- command.request_representation = Google::Apis::ComputeV1::HttpHealthCheck::Representation
2140
- command.request_object = http_health_check_object
3771
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupsAddInstancesRequest::Representation
3772
+ command.request_object = instance_groups_add_instances_request_object
2141
3773
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2142
3774
  command.response_class = Google::Apis::ComputeV1::Operation
2143
3775
  command.params['project'] = project unless project.nil?
3776
+ command.params['zone'] = zone unless zone.nil?
3777
+ command.params['instanceGroup'] = instance_group unless instance_group.nil?
2144
3778
  command.query['fields'] = fields unless fields.nil?
2145
3779
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2146
3780
  command.query['userIp'] = user_ip unless user_ip.nil?
2147
3781
  execute_or_queue_command(command, &block)
2148
3782
  end
2149
3783
 
2150
- # Retrieves the list of HttpHealthCheck resources available to the specified
2151
- # project.
3784
+ # Retrieves the list of instance groups, and sorts them by zone.
2152
3785
  # @param [String] project
2153
- # Name of the project scoping this request.
3786
+ # The project ID for this request.
2154
3787
  # @param [String] filter
2155
- # Filter expression for filtering listed resources.
3788
+ # Sets a filter expression for filtering listed resources, in the form filter=`
3789
+ # expression`. Your `expression` must contain the following:
3790
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
3791
+ #
3792
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
3793
+ # be valid for the type of resource being filtered. Only atomic field types are
3794
+ # supported (string, number, boolean). Array and object fields are not currently
3795
+ # supported.
3796
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
3797
+ # equals).
3798
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
3799
+ # must be valid for the type of field (string, number, boolean). For string
3800
+ # fields, the literal value is interpreted as a regular expression using RE2
3801
+ # syntax. The literal value must match the entire field. For example, you can
3802
+ # filter by the name of a resource:
3803
+ # filter=name ne example-instance
3804
+ # The above filter returns only results whose name field does not equal example-
3805
+ # instance. You can also enclose your literal string in single, double, or no
3806
+ # quotes.
2156
3807
  # @param [Fixnum] max_results
2157
3808
  # Maximum count of results to be returned.
2158
3809
  # @param [String] page_token
2159
- # Tag returned by a previous list request when that list was truncated to
2160
- # maxResults. Used to continue a previous list request.
3810
+ # Specifies a page token to use. Use this parameter if you want to list the next
3811
+ # page of results. Set pageToken to the nextPageToken returned by a previous
3812
+ # list request.
2161
3813
  # @param [String] fields
2162
3814
  # Selector specifying which fields to include in a partial response.
2163
3815
  # @param [String] quota_user
@@ -2171,19 +3823,19 @@ module Google
2171
3823
  # Request-specific options
2172
3824
  #
2173
3825
  # @yield [result, err] Result & error if block supplied
2174
- # @yieldparam result [Google::Apis::ComputeV1::HttpHealthCheckList] parsed result object
3826
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceGroupAggregatedList] parsed result object
2175
3827
  # @yieldparam err [StandardError] error object if request failed
2176
3828
  #
2177
- # @return [Google::Apis::ComputeV1::HttpHealthCheckList]
3829
+ # @return [Google::Apis::ComputeV1::InstanceGroupAggregatedList]
2178
3830
  #
2179
3831
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2180
3832
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2181
3833
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2182
- def list_http_health_checks(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2183
- path = '{project}/global/httpHealthChecks'
3834
+ def list_aggregated_instance_groups(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3835
+ path = '{project}/aggregated/instanceGroups'
2184
3836
  command = make_simple_command(:get, path, options)
2185
- command.response_representation = Google::Apis::ComputeV1::HttpHealthCheckList::Representation
2186
- command.response_class = Google::Apis::ComputeV1::HttpHealthCheckList
3837
+ command.response_representation = Google::Apis::ComputeV1::InstanceGroupAggregatedList::Representation
3838
+ command.response_class = Google::Apis::ComputeV1::InstanceGroupAggregatedList
2187
3839
  command.params['project'] = project unless project.nil?
2188
3840
  command.query['filter'] = filter unless filter.nil?
2189
3841
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -2194,13 +3846,13 @@ module Google
2194
3846
  execute_or_queue_command(command, &block)
2195
3847
  end
2196
3848
 
2197
- # Updates a HttpHealthCheck resource in the specified project using the data
2198
- # included in the request. This method supports patch semantics.
3849
+ # Deletes the specified instance group.
2199
3850
  # @param [String] project
2200
- # Name of the project scoping this request.
2201
- # @param [String] http_health_check
2202
- # Name of the HttpHealthCheck resource to update.
2203
- # @param [Google::Apis::ComputeV1::HttpHealthCheck] http_health_check_object
3851
+ # The project ID for this request.
3852
+ # @param [String] zone
3853
+ # The URL of the zone where the instance group is located.
3854
+ # @param [String] instance_group
3855
+ # The name of the instance group to delete.
2204
3856
  # @param [String] fields
2205
3857
  # Selector specifying which fields to include in a partial response.
2206
3858
  # @param [String] quota_user
@@ -2222,28 +3874,27 @@ module Google
2222
3874
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2223
3875
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2224
3876
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2225
- def patch_http_health_check(project, http_health_check, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2226
- path = '{project}/global/httpHealthChecks/{httpHealthCheck}'
2227
- command = make_simple_command(:patch, path, options)
2228
- command.request_representation = Google::Apis::ComputeV1::HttpHealthCheck::Representation
2229
- command.request_object = http_health_check_object
3877
+ def delete_instance_group(project, zone, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3878
+ path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}'
3879
+ command = make_simple_command(:delete, path, options)
2230
3880
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2231
3881
  command.response_class = Google::Apis::ComputeV1::Operation
2232
3882
  command.params['project'] = project unless project.nil?
2233
- command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
3883
+ command.params['zone'] = zone unless zone.nil?
3884
+ command.params['instanceGroup'] = instance_group unless instance_group.nil?
2234
3885
  command.query['fields'] = fields unless fields.nil?
2235
3886
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2236
3887
  command.query['userIp'] = user_ip unless user_ip.nil?
2237
3888
  execute_or_queue_command(command, &block)
2238
3889
  end
2239
3890
 
2240
- # Updates a HttpHealthCheck resource in the specified project using the data
2241
- # included in the request.
3891
+ # Returns the specified instance group resource.
2242
3892
  # @param [String] project
2243
- # Name of the project scoping this request.
2244
- # @param [String] http_health_check
2245
- # Name of the HttpHealthCheck resource to update.
2246
- # @param [Google::Apis::ComputeV1::HttpHealthCheck] http_health_check_object
3893
+ # The project ID for this request.
3894
+ # @param [String] zone
3895
+ # The URL of the zone where the instance group is located.
3896
+ # @param [String] instance_group
3897
+ # The name of the instance group.
2247
3898
  # @param [String] fields
2248
3899
  # Selector specifying which fields to include in a partial response.
2249
3900
  # @param [String] quota_user
@@ -2257,34 +3908,35 @@ module Google
2257
3908
  # Request-specific options
2258
3909
  #
2259
3910
  # @yield [result, err] Result & error if block supplied
2260
- # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3911
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceGroup] parsed result object
2261
3912
  # @yieldparam err [StandardError] error object if request failed
2262
3913
  #
2263
- # @return [Google::Apis::ComputeV1::Operation]
3914
+ # @return [Google::Apis::ComputeV1::InstanceGroup]
2264
3915
  #
2265
3916
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2266
3917
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2267
3918
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2268
- def update_http_health_check(project, http_health_check, http_health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2269
- path = '{project}/global/httpHealthChecks/{httpHealthCheck}'
2270
- command = make_simple_command(:put, path, options)
2271
- command.request_representation = Google::Apis::ComputeV1::HttpHealthCheck::Representation
2272
- command.request_object = http_health_check_object
2273
- command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2274
- command.response_class = Google::Apis::ComputeV1::Operation
3919
+ def get_instance_group(project, zone, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3920
+ path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}'
3921
+ command = make_simple_command(:get, path, options)
3922
+ command.response_representation = Google::Apis::ComputeV1::InstanceGroup::Representation
3923
+ command.response_class = Google::Apis::ComputeV1::InstanceGroup
2275
3924
  command.params['project'] = project unless project.nil?
2276
- command.params['httpHealthCheck'] = http_health_check unless http_health_check.nil?
3925
+ command.params['zone'] = zone unless zone.nil?
3926
+ command.params['instanceGroup'] = instance_group unless instance_group.nil?
2277
3927
  command.query['fields'] = fields unless fields.nil?
2278
3928
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2279
3929
  command.query['userIp'] = user_ip unless user_ip.nil?
2280
3930
  execute_or_queue_command(command, &block)
2281
3931
  end
2282
3932
 
2283
- # Deletes the specified image resource.
3933
+ # Creates an instance group in the specified project using the parameters that
3934
+ # are included in the request.
2284
3935
  # @param [String] project
2285
- # Project ID for this request.
2286
- # @param [String] image
2287
- # Name of the image resource to delete.
3936
+ # The project ID for this request.
3937
+ # @param [String] zone
3938
+ # The URL of the zone where the instance group is located.
3939
+ # @param [Google::Apis::ComputeV1::InstanceGroup] instance_group_object
2288
3940
  # @param [String] fields
2289
3941
  # Selector specifying which fields to include in a partial response.
2290
3942
  # @param [String] quota_user
@@ -2306,26 +3958,53 @@ module Google
2306
3958
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2307
3959
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2308
3960
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2309
- def delete_image(project, image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2310
- path = '{project}/global/images/{image}'
2311
- command = make_simple_command(:delete, path, options)
3961
+ def insert_instance_group(project, zone, instance_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3962
+ path = '{project}/zones/{zone}/instanceGroups'
3963
+ command = make_simple_command(:post, path, options)
3964
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroup::Representation
3965
+ command.request_object = instance_group_object
2312
3966
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2313
3967
  command.response_class = Google::Apis::ComputeV1::Operation
2314
3968
  command.params['project'] = project unless project.nil?
2315
- command.params['image'] = image unless image.nil?
3969
+ command.params['zone'] = zone unless zone.nil?
2316
3970
  command.query['fields'] = fields unless fields.nil?
2317
3971
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2318
3972
  command.query['userIp'] = user_ip unless user_ip.nil?
2319
3973
  execute_or_queue_command(command, &block)
2320
3974
  end
2321
3975
 
2322
- # Sets the deprecation status of an image.
2323
- # If an empty request body is given, clears the deprecation status instead.
3976
+ # Retrieves the list of instance groups that are located in the specified
3977
+ # project and zone.
2324
3978
  # @param [String] project
2325
- # Project ID for this request.
2326
- # @param [String] image
2327
- # Image name.
2328
- # @param [Google::Apis::ComputeV1::DeprecationStatus] deprecation_status_object
3979
+ # The project ID for this request.
3980
+ # @param [String] zone
3981
+ # The URL of the zone where the instance group is located.
3982
+ # @param [String] filter
3983
+ # Sets a filter expression for filtering listed resources, in the form filter=`
3984
+ # expression`. Your `expression` must contain the following:
3985
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
3986
+ #
3987
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
3988
+ # be valid for the type of resource being filtered. Only atomic field types are
3989
+ # supported (string, number, boolean). Array and object fields are not currently
3990
+ # supported.
3991
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
3992
+ # equals).
3993
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
3994
+ # must be valid for the type of field (string, number, boolean). For string
3995
+ # fields, the literal value is interpreted as a regular expression using RE2
3996
+ # syntax. The literal value must match the entire field. For example, you can
3997
+ # filter by the name of a resource:
3998
+ # filter=name ne example-instance
3999
+ # The above filter returns only results whose name field does not equal example-
4000
+ # instance. You can also enclose your literal string in single, double, or no
4001
+ # quotes.
4002
+ # @param [Fixnum] max_results
4003
+ # Maximum count of results to be returned.
4004
+ # @param [String] page_token
4005
+ # Specifies a page token to use. Use this parameter if you want to list the next
4006
+ # page of results. Set pageToken to the nextPageToken returned by a previous
4007
+ # list request.
2329
4008
  # @param [String] fields
2330
4009
  # Selector specifying which fields to include in a partial response.
2331
4010
  # @param [String] quota_user
@@ -2339,34 +4018,66 @@ module Google
2339
4018
  # Request-specific options
2340
4019
  #
2341
4020
  # @yield [result, err] Result & error if block supplied
2342
- # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
4021
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceGroupList] parsed result object
2343
4022
  # @yieldparam err [StandardError] error object if request failed
2344
4023
  #
2345
- # @return [Google::Apis::ComputeV1::Operation]
4024
+ # @return [Google::Apis::ComputeV1::InstanceGroupList]
2346
4025
  #
2347
4026
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2348
4027
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2349
4028
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2350
- def deprecate_image(project, image, deprecation_status_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2351
- path = '{project}/global/images/{image}/deprecate'
2352
- command = make_simple_command(:post, path, options)
2353
- command.request_representation = Google::Apis::ComputeV1::DeprecationStatus::Representation
2354
- command.request_object = deprecation_status_object
2355
- command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2356
- command.response_class = Google::Apis::ComputeV1::Operation
4029
+ def list_instance_groups(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4030
+ path = '{project}/zones/{zone}/instanceGroups'
4031
+ command = make_simple_command(:get, path, options)
4032
+ command.response_representation = Google::Apis::ComputeV1::InstanceGroupList::Representation
4033
+ command.response_class = Google::Apis::ComputeV1::InstanceGroupList
2357
4034
  command.params['project'] = project unless project.nil?
2358
- command.params['image'] = image unless image.nil?
4035
+ command.params['zone'] = zone unless zone.nil?
4036
+ command.query['filter'] = filter unless filter.nil?
4037
+ command.query['maxResults'] = max_results unless max_results.nil?
4038
+ command.query['pageToken'] = page_token unless page_token.nil?
2359
4039
  command.query['fields'] = fields unless fields.nil?
2360
4040
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2361
4041
  command.query['userIp'] = user_ip unless user_ip.nil?
2362
4042
  execute_or_queue_command(command, &block)
2363
4043
  end
2364
4044
 
2365
- # Returns the specified image resource.
4045
+ # Lists instances in an instance group. The parameters for this method specify
4046
+ # whether the list filters instances by state and named ports information.
2366
4047
  # @param [String] project
2367
- # Project ID for this request.
2368
- # @param [String] image
2369
- # Name of the image resource to return.
4048
+ # The project ID for this request.
4049
+ # @param [String] zone
4050
+ # The URL of the zone where the instance group is located.
4051
+ # @param [String] instance_group
4052
+ # The name of the instance group from which you want to generate a list of
4053
+ # included instances.
4054
+ # @param [Google::Apis::ComputeV1::InstanceGroupsListInstancesRequest] instance_groups_list_instances_request_object
4055
+ # @param [String] filter
4056
+ # Sets a filter expression for filtering listed resources, in the form filter=`
4057
+ # expression`. Your `expression` must contain the following:
4058
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
4059
+ #
4060
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
4061
+ # be valid for the type of resource being filtered. Only atomic field types are
4062
+ # supported (string, number, boolean). Array and object fields are not currently
4063
+ # supported.
4064
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
4065
+ # equals).
4066
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
4067
+ # must be valid for the type of field (string, number, boolean). For string
4068
+ # fields, the literal value is interpreted as a regular expression using RE2
4069
+ # syntax. The literal value must match the entire field. For example, you can
4070
+ # filter by the name of a resource:
4071
+ # filter=name ne example-instance
4072
+ # The above filter returns only results whose name field does not equal example-
4073
+ # instance. You can also enclose your literal string in single, double, or no
4074
+ # quotes.
4075
+ # @param [Fixnum] max_results
4076
+ # Maximum count of results to be returned.
4077
+ # @param [String] page_token
4078
+ # Specifies a page token to use. Use this parameter if you want to list the next
4079
+ # page of results. Set pageToken to the nextPageToken returned by a previous
4080
+ # list request.
2370
4081
  # @param [String] fields
2371
4082
  # Selector specifying which fields to include in a partial response.
2372
4083
  # @param [String] quota_user
@@ -2380,32 +4091,41 @@ module Google
2380
4091
  # Request-specific options
2381
4092
  #
2382
4093
  # @yield [result, err] Result & error if block supplied
2383
- # @yieldparam result [Google::Apis::ComputeV1::Image] parsed result object
4094
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceGroupsListInstances] parsed result object
2384
4095
  # @yieldparam err [StandardError] error object if request failed
2385
4096
  #
2386
- # @return [Google::Apis::ComputeV1::Image]
4097
+ # @return [Google::Apis::ComputeV1::InstanceGroupsListInstances]
2387
4098
  #
2388
4099
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2389
4100
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2390
4101
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2391
- def get_image(project, image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2392
- path = '{project}/global/images/{image}'
2393
- command = make_simple_command(:get, path, options)
2394
- command.response_representation = Google::Apis::ComputeV1::Image::Representation
2395
- command.response_class = Google::Apis::ComputeV1::Image
4102
+ def list_instance_group_instances(project, zone, instance_group, instance_groups_list_instances_request_object = nil, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4103
+ path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances'
4104
+ command = make_simple_command(:post, path, options)
4105
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupsListInstancesRequest::Representation
4106
+ command.request_object = instance_groups_list_instances_request_object
4107
+ command.response_representation = Google::Apis::ComputeV1::InstanceGroupsListInstances::Representation
4108
+ command.response_class = Google::Apis::ComputeV1::InstanceGroupsListInstances
2396
4109
  command.params['project'] = project unless project.nil?
2397
- command.params['image'] = image unless image.nil?
4110
+ command.params['zone'] = zone unless zone.nil?
4111
+ command.params['instanceGroup'] = instance_group unless instance_group.nil?
4112
+ command.query['filter'] = filter unless filter.nil?
4113
+ command.query['maxResults'] = max_results unless max_results.nil?
4114
+ command.query['pageToken'] = page_token unless page_token.nil?
2398
4115
  command.query['fields'] = fields unless fields.nil?
2399
4116
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2400
4117
  command.query['userIp'] = user_ip unless user_ip.nil?
2401
4118
  execute_or_queue_command(command, &block)
2402
4119
  end
2403
4120
 
2404
- # Creates an image resource in the specified project using the data included in
2405
- # the request.
4121
+ # Removes a list of instances from an instance group.
2406
4122
  # @param [String] project
2407
- # Project ID for this request.
2408
- # @param [Google::Apis::ComputeV1::Image] image_object
4123
+ # The project ID for this request.
4124
+ # @param [String] zone
4125
+ # The URL of the zone where the instance group is located.
4126
+ # @param [String] instance_group
4127
+ # The name of the instance group where the specified instances will be removed.
4128
+ # @param [Google::Apis::ComputeV1::InstanceGroupsRemoveInstancesRequest] instance_groups_remove_instances_request_object
2409
4129
  # @param [String] fields
2410
4130
  # Selector specifying which fields to include in a partial response.
2411
4131
  # @param [String] quota_user
@@ -2427,30 +4147,30 @@ module Google
2427
4147
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2428
4148
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2429
4149
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2430
- def insert_image(project, image_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2431
- path = '{project}/global/images'
4150
+ def remove_instance_group_instances(project, zone, instance_group, instance_groups_remove_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4151
+ path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances'
2432
4152
  command = make_simple_command(:post, path, options)
2433
- command.request_representation = Google::Apis::ComputeV1::Image::Representation
2434
- command.request_object = image_object
4153
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupsRemoveInstancesRequest::Representation
4154
+ command.request_object = instance_groups_remove_instances_request_object
2435
4155
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2436
4156
  command.response_class = Google::Apis::ComputeV1::Operation
2437
4157
  command.params['project'] = project unless project.nil?
4158
+ command.params['zone'] = zone unless zone.nil?
4159
+ command.params['instanceGroup'] = instance_group unless instance_group.nil?
2438
4160
  command.query['fields'] = fields unless fields.nil?
2439
4161
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2440
4162
  command.query['userIp'] = user_ip unless user_ip.nil?
2441
4163
  execute_or_queue_command(command, &block)
2442
4164
  end
2443
4165
 
2444
- # Retrieves the list of image resources available to the specified project.
4166
+ # Sets the named ports in an instance group.
2445
4167
  # @param [String] project
2446
- # Project ID for this request.
2447
- # @param [String] filter
2448
- # Filter expression for filtering listed resources.
2449
- # @param [Fixnum] max_results
2450
- # Maximum count of results to be returned.
2451
- # @param [String] page_token
2452
- # Tag returned by a previous list request when that list was truncated to
2453
- # maxResults. Used to continue a previous list request.
4168
+ # The project ID for this request.
4169
+ # @param [String] zone
4170
+ # The URL of the zone where the instance group is located.
4171
+ # @param [String] instance_group
4172
+ # The name of the instance group where the named ports are updated.
4173
+ # @param [Google::Apis::ComputeV1::InstanceGroupsSetNamedPortsRequest] instance_groups_set_named_ports_request_object
2454
4174
  # @param [String] fields
2455
4175
  # Selector specifying which fields to include in a partial response.
2456
4176
  # @param [String] quota_user
@@ -2464,23 +4184,24 @@ module Google
2464
4184
  # Request-specific options
2465
4185
  #
2466
4186
  # @yield [result, err] Result & error if block supplied
2467
- # @yieldparam result [Google::Apis::ComputeV1::ImageList] parsed result object
4187
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
2468
4188
  # @yieldparam err [StandardError] error object if request failed
2469
4189
  #
2470
- # @return [Google::Apis::ComputeV1::ImageList]
4190
+ # @return [Google::Apis::ComputeV1::Operation]
2471
4191
  #
2472
4192
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2473
4193
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2474
4194
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2475
- def list_images(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2476
- path = '{project}/global/images'
2477
- command = make_simple_command(:get, path, options)
2478
- command.response_representation = Google::Apis::ComputeV1::ImageList::Representation
2479
- command.response_class = Google::Apis::ComputeV1::ImageList
4195
+ def set_instance_group_named_ports(project, zone, instance_group, instance_groups_set_named_ports_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4196
+ path = '{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts'
4197
+ command = make_simple_command(:post, path, options)
4198
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupsSetNamedPortsRequest::Representation
4199
+ command.request_object = instance_groups_set_named_ports_request_object
4200
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
4201
+ command.response_class = Google::Apis::ComputeV1::Operation
2480
4202
  command.params['project'] = project unless project.nil?
2481
- command.query['filter'] = filter unless filter.nil?
2482
- command.query['maxResults'] = max_results unless max_results.nil?
2483
- command.query['pageToken'] = page_token unless page_token.nil?
4203
+ command.params['zone'] = zone unless zone.nil?
4204
+ command.params['instanceGroup'] = instance_group unless instance_group.nil?
2484
4205
  command.query['fields'] = fields unless fields.nil?
2485
4206
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2486
4207
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2610,12 +4331,31 @@ module Google
2610
4331
  # @param [String] project
2611
4332
  # The project ID for this request.
2612
4333
  # @param [String] filter
2613
- # Filter expression for filtering listed resources.
4334
+ # Sets a filter expression for filtering listed resources, in the form filter=`
4335
+ # expression`. Your `expression` must contain the following:
4336
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
4337
+ #
4338
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
4339
+ # be valid for the type of resource being filtered. Only atomic field types are
4340
+ # supported (string, number, boolean). Array and object fields are not currently
4341
+ # supported.
4342
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
4343
+ # equals).
4344
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
4345
+ # must be valid for the type of field (string, number, boolean). For string
4346
+ # fields, the literal value is interpreted as a regular expression using RE2
4347
+ # syntax. The literal value must match the entire field. For example, you can
4348
+ # filter by the name of a resource:
4349
+ # filter=name ne example-instance
4350
+ # The above filter returns only results whose name field does not equal example-
4351
+ # instance. You can also enclose your literal string in single, double, or no
4352
+ # quotes.
2614
4353
  # @param [Fixnum] max_results
2615
4354
  # Maximum count of results to be returned.
2616
4355
  # @param [String] page_token
2617
- # Tag returned by a previous list request when that list was truncated to
2618
- # maxResults. Used to continue a previous list request.
4356
+ # Specifies a page token to use. Use this parameter if you want to list the next
4357
+ # page of results. Set pageToken to the nextPageToken returned by a previous
4358
+ # list request.
2619
4359
  # @param [String] fields
2620
4360
  # Selector specifying which fields to include in a partial response.
2621
4361
  # @param [String] quota_user
@@ -2704,12 +4444,31 @@ module Google
2704
4444
  # @param [String] project
2705
4445
  # Project ID for this request.
2706
4446
  # @param [String] filter
2707
- # Filter expression for filtering listed resources.
4447
+ # Sets a filter expression for filtering listed resources, in the form filter=`
4448
+ # expression`. Your `expression` must contain the following:
4449
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
4450
+ #
4451
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
4452
+ # be valid for the type of resource being filtered. Only atomic field types are
4453
+ # supported (string, number, boolean). Array and object fields are not currently
4454
+ # supported.
4455
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
4456
+ # equals).
4457
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
4458
+ # must be valid for the type of field (string, number, boolean). For string
4459
+ # fields, the literal value is interpreted as a regular expression using RE2
4460
+ # syntax. The literal value must match the entire field. For example, you can
4461
+ # filter by the name of a resource:
4462
+ # filter=name ne example-instance
4463
+ # The above filter returns only results whose name field does not equal example-
4464
+ # instance. You can also enclose your literal string in single, double, or no
4465
+ # quotes.
2708
4466
  # @param [Fixnum] max_results
2709
4467
  # Maximum count of results to be returned.
2710
4468
  # @param [String] page_token
2711
- # Tag returned by a previous list request when that list was truncated to
2712
- # maxResults. Used to continue a previous list request.
4469
+ # Specifies a page token to use. Use this parameter if you want to list the next
4470
+ # page of results. Set pageToken to the nextPageToken returned by a previous
4471
+ # list request.
2713
4472
  # @param [String] fields
2714
4473
  # Selector specifying which fields to include in a partial response.
2715
4474
  # @param [String] quota_user
@@ -2977,7 +4736,7 @@ module Google
2977
4736
  # @param [String] instance
2978
4737
  # Name of the instance scoping this request.
2979
4738
  # @param [Fixnum] port
2980
- # Which COM port to retrieve data from.
4739
+ # Specifies which COM or serial port to retrieve data from.
2981
4740
  # @param [String] fields
2982
4741
  # Selector specifying which fields to include in a partial response.
2983
4742
  # @param [String] quota_user
@@ -3063,12 +4822,31 @@ module Google
3063
4822
  # @param [String] zone
3064
4823
  # The name of the zone for this request.
3065
4824
  # @param [String] filter
3066
- # Filter expression for filtering listed resources.
4825
+ # Sets a filter expression for filtering listed resources, in the form filter=`
4826
+ # expression`. Your `expression` must contain the following:
4827
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
4828
+ #
4829
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
4830
+ # be valid for the type of resource being filtered. Only atomic field types are
4831
+ # supported (string, number, boolean). Array and object fields are not currently
4832
+ # supported.
4833
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
4834
+ # equals).
4835
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
4836
+ # must be valid for the type of field (string, number, boolean). For string
4837
+ # fields, the literal value is interpreted as a regular expression using RE2
4838
+ # syntax. The literal value must match the entire field. For example, you can
4839
+ # filter by the name of a resource:
4840
+ # filter=name ne example-instance
4841
+ # The above filter returns only results whose name field does not equal example-
4842
+ # instance. You can also enclose your literal string in single, double, or no
4843
+ # quotes.
3067
4844
  # @param [Fixnum] max_results
3068
4845
  # Maximum count of results to be returned.
3069
4846
  # @param [String] page_token
3070
- # Tag returned by a previous list request when that list was truncated to
3071
- # maxResults. Used to continue a previous list request.
4847
+ # Specifies a page token to use. Use this parameter if you want to list the next
4848
+ # page of results. Set pageToken to the nextPageToken returned by a previous
4849
+ # list request.
3072
4850
  # @param [String] fields
3073
4851
  # Selector specifying which fields to include in a partial response.
3074
4852
  # @param [String] quota_user
@@ -3464,12 +5242,31 @@ module Google
3464
5242
  # @param [String] project
3465
5243
  # Project ID for this request.
3466
5244
  # @param [String] filter
3467
- # Filter expression for filtering listed resources.
5245
+ # Sets a filter expression for filtering listed resources, in the form filter=`
5246
+ # expression`. Your `expression` must contain the following:
5247
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
5248
+ #
5249
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
5250
+ # be valid for the type of resource being filtered. Only atomic field types are
5251
+ # supported (string, number, boolean). Array and object fields are not currently
5252
+ # supported.
5253
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
5254
+ # equals).
5255
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
5256
+ # must be valid for the type of field (string, number, boolean). For string
5257
+ # fields, the literal value is interpreted as a regular expression using RE2
5258
+ # syntax. The literal value must match the entire field. For example, you can
5259
+ # filter by the name of a resource:
5260
+ # filter=name ne example-instance
5261
+ # The above filter returns only results whose name field does not equal example-
5262
+ # instance. You can also enclose your literal string in single, double, or no
5263
+ # quotes.
3468
5264
  # @param [Fixnum] max_results
3469
5265
  # Maximum count of results to be returned.
3470
5266
  # @param [String] page_token
3471
- # Tag returned by a previous list request when that list was truncated to
3472
- # maxResults. Used to continue a previous list request.
5267
+ # Specifies a page token to use. Use this parameter if you want to list the next
5268
+ # page of results. Set pageToken to the nextPageToken returned by a previous
5269
+ # list request.
3473
5270
  # @param [String] fields
3474
5271
  # Selector specifying which fields to include in a partial response.
3475
5272
  # @param [String] quota_user
@@ -3555,12 +5352,31 @@ module Google
3555
5352
  # @param [String] zone
3556
5353
  # The name of the zone for this request.
3557
5354
  # @param [String] filter
3558
- # Filter expression for filtering listed resources.
5355
+ # Sets a filter expression for filtering listed resources, in the form filter=`
5356
+ # expression`. Your `expression` must contain the following:
5357
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
5358
+ #
5359
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
5360
+ # be valid for the type of resource being filtered. Only atomic field types are
5361
+ # supported (string, number, boolean). Array and object fields are not currently
5362
+ # supported.
5363
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
5364
+ # equals).
5365
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
5366
+ # must be valid for the type of field (string, number, boolean). For string
5367
+ # fields, the literal value is interpreted as a regular expression using RE2
5368
+ # syntax. The literal value must match the entire field. For example, you can
5369
+ # filter by the name of a resource:
5370
+ # filter=name ne example-instance
5371
+ # The above filter returns only results whose name field does not equal example-
5372
+ # instance. You can also enclose your literal string in single, double, or no
5373
+ # quotes.
3559
5374
  # @param [Fixnum] max_results
3560
5375
  # Maximum count of results to be returned.
3561
5376
  # @param [String] page_token
3562
- # Tag returned by a previous list request when that list was truncated to
3563
- # maxResults. Used to continue a previous list request.
5377
+ # Specifies a page token to use. Use this parameter if you want to list the next
5378
+ # page of results. Set pageToken to the nextPageToken returned by a previous
5379
+ # list request.
3564
5380
  # @param [String] fields
3565
5381
  # Selector specifying which fields to include in a partial response.
3566
5382
  # @param [String] quota_user
@@ -3720,12 +5536,31 @@ module Google
3720
5536
  # @param [String] project
3721
5537
  # Project ID for this request.
3722
5538
  # @param [String] filter
3723
- # Filter expression for filtering listed resources.
5539
+ # Sets a filter expression for filtering listed resources, in the form filter=`
5540
+ # expression`. Your `expression` must contain the following:
5541
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
5542
+ #
5543
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
5544
+ # be valid for the type of resource being filtered. Only atomic field types are
5545
+ # supported (string, number, boolean). Array and object fields are not currently
5546
+ # supported.
5547
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
5548
+ # equals).
5549
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
5550
+ # must be valid for the type of field (string, number, boolean). For string
5551
+ # fields, the literal value is interpreted as a regular expression using RE2
5552
+ # syntax. The literal value must match the entire field. For example, you can
5553
+ # filter by the name of a resource:
5554
+ # filter=name ne example-instance
5555
+ # The above filter returns only results whose name field does not equal example-
5556
+ # instance. You can also enclose your literal string in single, double, or no
5557
+ # quotes.
3724
5558
  # @param [Fixnum] max_results
3725
5559
  # Maximum count of results to be returned.
3726
5560
  # @param [String] page_token
3727
- # Tag returned by a previous list request when that list was truncated to
3728
- # maxResults. Used to continue a previous list request.
5561
+ # Specifies a page token to use. Use this parameter if you want to list the next
5562
+ # page of results. Set pageToken to the nextPageToken returned by a previous
5563
+ # list request.
3729
5564
  # @param [String] fields
3730
5565
  # Selector specifying which fields to include in a partial response.
3731
5566
  # @param [String] quota_user
@@ -3957,13 +5792,13 @@ module Google
3957
5792
  execute_or_queue_command(command, &block)
3958
5793
  end
3959
5794
 
3960
- # Deletes the specified region-specific operation resource.
5795
+ # Deletes the specified region-specific Operations resource.
3961
5796
  # @param [String] project
3962
5797
  # Project ID for this request.
3963
5798
  # @param [String] region
3964
5799
  # Name of the region scoping this request.
3965
5800
  # @param [String] operation
3966
- # Name of the operation resource to delete.
5801
+ # Name of the Operations resource to delete.
3967
5802
  # @param [String] fields
3968
5803
  # Selector specifying which fields to include in a partial response.
3969
5804
  # @param [String] quota_user
@@ -3997,13 +5832,13 @@ module Google
3997
5832
  execute_or_queue_command(command, &block)
3998
5833
  end
3999
5834
 
4000
- # Retrieves the specified region-specific operation resource.
5835
+ # Retrieves the specified region-specific Operations resource.
4001
5836
  # @param [String] project
4002
5837
  # Project ID for this request.
4003
5838
  # @param [String] region
4004
5839
  # Name of the zone scoping this request.
4005
5840
  # @param [String] operation
4006
- # Name of the operation resource to return.
5841
+ # Name of the Operations resource to return.
4007
5842
  # @param [String] fields
4008
5843
  # Selector specifying which fields to include in a partial response.
4009
5844
  # @param [String] quota_user
@@ -4039,19 +5874,38 @@ module Google
4039
5874
  execute_or_queue_command(command, &block)
4040
5875
  end
4041
5876
 
4042
- # Retrieves the list of operation resources contained within the specified
5877
+ # Retrieves the list of Operation resources contained within the specified
4043
5878
  # region.
4044
5879
  # @param [String] project
4045
5880
  # Project ID for this request.
4046
5881
  # @param [String] region
4047
5882
  # Name of the region scoping this request.
4048
5883
  # @param [String] filter
4049
- # Filter expression for filtering listed resources.
5884
+ # Sets a filter expression for filtering listed resources, in the form filter=`
5885
+ # expression`. Your `expression` must contain the following:
5886
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
5887
+ #
5888
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
5889
+ # be valid for the type of resource being filtered. Only atomic field types are
5890
+ # supported (string, number, boolean). Array and object fields are not currently
5891
+ # supported.
5892
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
5893
+ # equals).
5894
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
5895
+ # must be valid for the type of field (string, number, boolean). For string
5896
+ # fields, the literal value is interpreted as a regular expression using RE2
5897
+ # syntax. The literal value must match the entire field. For example, you can
5898
+ # filter by the name of a resource:
5899
+ # filter=name ne example-instance
5900
+ # The above filter returns only results whose name field does not equal example-
5901
+ # instance. You can also enclose your literal string in single, double, or no
5902
+ # quotes.
4050
5903
  # @param [Fixnum] max_results
4051
5904
  # Maximum count of results to be returned.
4052
5905
  # @param [String] page_token
4053
- # Tag returned by a previous list request when that list was truncated to
4054
- # maxResults. Used to continue a previous list request.
5906
+ # Specifies a page token to use. Use this parameter if you want to list the next
5907
+ # page of results. Set pageToken to the nextPageToken returned by a previous
5908
+ # list request.
4055
5909
  # @param [String] fields
4056
5910
  # Selector specifying which fields to include in a partial response.
4057
5911
  # @param [String] quota_user
@@ -4132,12 +5986,31 @@ module Google
4132
5986
  # @param [String] project
4133
5987
  # Project ID for this request.
4134
5988
  # @param [String] filter
4135
- # Filter expression for filtering listed resources.
5989
+ # Sets a filter expression for filtering listed resources, in the form filter=`
5990
+ # expression`. Your `expression` must contain the following:
5991
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
5992
+ #
5993
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
5994
+ # be valid for the type of resource being filtered. Only atomic field types are
5995
+ # supported (string, number, boolean). Array and object fields are not currently
5996
+ # supported.
5997
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
5998
+ # equals).
5999
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
6000
+ # must be valid for the type of field (string, number, boolean). For string
6001
+ # fields, the literal value is interpreted as a regular expression using RE2
6002
+ # syntax. The literal value must match the entire field. For example, you can
6003
+ # filter by the name of a resource:
6004
+ # filter=name ne example-instance
6005
+ # The above filter returns only results whose name field does not equal example-
6006
+ # instance. You can also enclose your literal string in single, double, or no
6007
+ # quotes.
4136
6008
  # @param [Fixnum] max_results
4137
6009
  # Maximum count of results to be returned.
4138
6010
  # @param [String] page_token
4139
- # Tag returned by a previous list request when that list was truncated to
4140
- # maxResults. Used to continue a previous list request.
6011
+ # Specifies a page token to use. Use this parameter if you want to list the next
6012
+ # page of results. Set pageToken to the nextPageToken returned by a previous
6013
+ # list request.
4141
6014
  # @param [String] fields
4142
6015
  # Selector specifying which fields to include in a partial response.
4143
6016
  # @param [String] quota_user
@@ -4296,12 +6169,31 @@ module Google
4296
6169
  # @param [String] project
4297
6170
  # Name of the project scoping this request.
4298
6171
  # @param [String] filter
4299
- # Filter expression for filtering listed resources.
6172
+ # Sets a filter expression for filtering listed resources, in the form filter=`
6173
+ # expression`. Your `expression` must contain the following:
6174
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
6175
+ #
6176
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
6177
+ # be valid for the type of resource being filtered. Only atomic field types are
6178
+ # supported (string, number, boolean). Array and object fields are not currently
6179
+ # supported.
6180
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
6181
+ # equals).
6182
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
6183
+ # must be valid for the type of field (string, number, boolean). For string
6184
+ # fields, the literal value is interpreted as a regular expression using RE2
6185
+ # syntax. The literal value must match the entire field. For example, you can
6186
+ # filter by the name of a resource:
6187
+ # filter=name ne example-instance
6188
+ # The above filter returns only results whose name field does not equal example-
6189
+ # instance. You can also enclose your literal string in single, double, or no
6190
+ # quotes.
4300
6191
  # @param [Fixnum] max_results
4301
6192
  # Maximum count of results to be returned.
4302
6193
  # @param [String] page_token
4303
- # Tag returned by a previous list request when that list was truncated to
4304
- # maxResults. Used to continue a previous list request.
6194
+ # Specifies a page token to use. Use this parameter if you want to list the next
6195
+ # page of results. Set pageToken to the nextPageToken returned by a previous
6196
+ # list request.
4305
6197
  # @param [String] fields
4306
6198
  # Selector specifying which fields to include in a partial response.
4307
6199
  # @param [String] quota_user
@@ -4338,11 +6230,15 @@ module Google
4338
6230
  execute_or_queue_command(command, &block)
4339
6231
  end
4340
6232
 
4341
- # Deletes the specified persistent disk snapshot resource.
6233
+ # Deletes the specified Snapshot resource. Keep in mind that deleting a single
6234
+ # snapshot might not necessarily delete all the data on that snapshot. If any
6235
+ # data on the snapshot that is marked for deletion is needed for subsequent
6236
+ # snapshots, the data will be moved to the next corresponding snapshot.
6237
+ # For more information, see Deleting snaphots.
4342
6238
  # @param [String] project
4343
6239
  # Name of the project scoping this request.
4344
6240
  # @param [String] snapshot
4345
- # Name of the persistent disk snapshot resource to delete.
6241
+ # Name of the Snapshot resource to delete.
4346
6242
  # @param [String] fields
4347
6243
  # Selector specifying which fields to include in a partial response.
4348
6244
  # @param [String] quota_user
@@ -4377,11 +6273,11 @@ module Google
4377
6273
  execute_or_queue_command(command, &block)
4378
6274
  end
4379
6275
 
4380
- # Returns the specified persistent disk snapshot resource.
6276
+ # Returns the specified Snapshot resource.
4381
6277
  # @param [String] project
4382
6278
  # Name of the project scoping this request.
4383
6279
  # @param [String] snapshot
4384
- # Name of the persistent disk snapshot resource to return.
6280
+ # Name of the Snapshot resource to return.
4385
6281
  # @param [String] fields
4386
6282
  # Selector specifying which fields to include in a partial response.
4387
6283
  # @param [String] quota_user
@@ -4416,17 +6312,36 @@ module Google
4416
6312
  execute_or_queue_command(command, &block)
4417
6313
  end
4418
6314
 
4419
- # Retrieves the list of persistent disk snapshot resources contained within the
4420
- # specified project.
6315
+ # Retrieves the list of Snapshot resources contained within the specified
6316
+ # project.
4421
6317
  # @param [String] project
4422
6318
  # Name of the project scoping this request.
4423
6319
  # @param [String] filter
4424
- # Filter expression for filtering listed resources.
6320
+ # Sets a filter expression for filtering listed resources, in the form filter=`
6321
+ # expression`. Your `expression` must contain the following:
6322
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
6323
+ #
6324
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
6325
+ # be valid for the type of resource being filtered. Only atomic field types are
6326
+ # supported (string, number, boolean). Array and object fields are not currently
6327
+ # supported.
6328
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
6329
+ # equals).
6330
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
6331
+ # must be valid for the type of field (string, number, boolean). For string
6332
+ # fields, the literal value is interpreted as a regular expression using RE2
6333
+ # syntax. The literal value must match the entire field. For example, you can
6334
+ # filter by the name of a resource:
6335
+ # filter=name ne example-instance
6336
+ # The above filter returns only results whose name field does not equal example-
6337
+ # instance. You can also enclose your literal string in single, double, or no
6338
+ # quotes.
4425
6339
  # @param [Fixnum] max_results
4426
6340
  # Maximum count of results to be returned.
4427
6341
  # @param [String] page_token
4428
- # Tag returned by a previous list request when that list was truncated to
4429
- # maxResults. Used to continue a previous list request.
6342
+ # Specifies a page token to use. Use this parameter if you want to list the next
6343
+ # page of results. Set pageToken to the nextPageToken returned by a previous
6344
+ # list request.
4430
6345
  # @param [String] fields
4431
6346
  # Selector specifying which fields to include in a partial response.
4432
6347
  # @param [String] quota_user
@@ -4586,12 +6501,31 @@ module Google
4586
6501
  # @param [String] project
4587
6502
  # Name of the project scoping this request.
4588
6503
  # @param [String] filter
4589
- # Filter expression for filtering listed resources.
6504
+ # Sets a filter expression for filtering listed resources, in the form filter=`
6505
+ # expression`. Your `expression` must contain the following:
6506
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
6507
+ #
6508
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
6509
+ # be valid for the type of resource being filtered. Only atomic field types are
6510
+ # supported (string, number, boolean). Array and object fields are not currently
6511
+ # supported.
6512
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
6513
+ # equals).
6514
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
6515
+ # must be valid for the type of field (string, number, boolean). For string
6516
+ # fields, the literal value is interpreted as a regular expression using RE2
6517
+ # syntax. The literal value must match the entire field. For example, you can
6518
+ # filter by the name of a resource:
6519
+ # filter=name ne example-instance
6520
+ # The above filter returns only results whose name field does not equal example-
6521
+ # instance. You can also enclose your literal string in single, double, or no
6522
+ # quotes.
4590
6523
  # @param [Fixnum] max_results
4591
6524
  # Maximum count of results to be returned.
4592
6525
  # @param [String] page_token
4593
- # Tag returned by a previous list request when that list was truncated to
4594
- # maxResults. Used to continue a previous list request.
6526
+ # Specifies a page token to use. Use this parameter if you want to list the next
6527
+ # page of results. Set pageToken to the nextPageToken returned by a previous
6528
+ # list request.
4595
6529
  # @param [String] fields
4596
6530
  # Selector specifying which fields to include in a partial response.
4597
6531
  # @param [String] quota_user
@@ -4674,12 +6608,31 @@ module Google
4674
6608
  # @param [String] project
4675
6609
  # Name of the project scoping this request.
4676
6610
  # @param [String] filter
4677
- # Filter expression for filtering listed resources.
6611
+ # Sets a filter expression for filtering listed resources, in the form filter=`
6612
+ # expression`. Your `expression` must contain the following:
6613
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
6614
+ #
6615
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
6616
+ # be valid for the type of resource being filtered. Only atomic field types are
6617
+ # supported (string, number, boolean). Array and object fields are not currently
6618
+ # supported.
6619
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
6620
+ # equals).
6621
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
6622
+ # must be valid for the type of field (string, number, boolean). For string
6623
+ # fields, the literal value is interpreted as a regular expression using RE2
6624
+ # syntax. The literal value must match the entire field. For example, you can
6625
+ # filter by the name of a resource:
6626
+ # filter=name ne example-instance
6627
+ # The above filter returns only results whose name field does not equal example-
6628
+ # instance. You can also enclose your literal string in single, double, or no
6629
+ # quotes.
4678
6630
  # @param [Fixnum] max_results
4679
6631
  # Maximum count of results to be returned.
4680
6632
  # @param [String] page_token
4681
- # Tag returned by a previous list request when that list was truncated to
4682
- # maxResults. Used to continue a previous list request.
6633
+ # Specifies a page token to use. Use this parameter if you want to list the next
6634
+ # page of results. Set pageToken to the nextPageToken returned by a previous
6635
+ # list request.
4683
6636
  # @param [String] fields
4684
6637
  # Selector specifying which fields to include in a partial response.
4685
6638
  # @param [String] quota_user
@@ -4850,12 +6803,31 @@ module Google
4850
6803
  # @param [String] zone
4851
6804
  # Name of the zone scoping this request.
4852
6805
  # @param [String] filter
4853
- # Filter expression for filtering listed resources.
6806
+ # Sets a filter expression for filtering listed resources, in the form filter=`
6807
+ # expression`. Your `expression` must contain the following:
6808
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
6809
+ #
6810
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
6811
+ # be valid for the type of resource being filtered. Only atomic field types are
6812
+ # supported (string, number, boolean). Array and object fields are not currently
6813
+ # supported.
6814
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
6815
+ # equals).
6816
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
6817
+ # must be valid for the type of field (string, number, boolean). For string
6818
+ # fields, the literal value is interpreted as a regular expression using RE2
6819
+ # syntax. The literal value must match the entire field. For example, you can
6820
+ # filter by the name of a resource:
6821
+ # filter=name ne example-instance
6822
+ # The above filter returns only results whose name field does not equal example-
6823
+ # instance. You can also enclose your literal string in single, double, or no
6824
+ # quotes.
4854
6825
  # @param [Fixnum] max_results
4855
6826
  # Maximum count of results to be returned.
4856
6827
  # @param [String] page_token
4857
- # Tag returned by a previous list request when that list was truncated to
4858
- # maxResults. Used to continue a previous list request.
6828
+ # Specifies a page token to use. Use this parameter if you want to list the next
6829
+ # page of results. Set pageToken to the nextPageToken returned by a previous
6830
+ # list request.
4859
6831
  # @param [String] fields
4860
6832
  # Selector specifying which fields to include in a partial response.
4861
6833
  # @param [String] quota_user
@@ -4985,12 +6957,31 @@ module Google
4985
6957
  # @param [String] project
4986
6958
  # Name of the project scoping this request.
4987
6959
  # @param [String] filter
4988
- # Filter expression for filtering listed resources.
6960
+ # Sets a filter expression for filtering listed resources, in the form filter=`
6961
+ # expression`. Your `expression` must contain the following:
6962
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
6963
+ #
6964
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
6965
+ # be valid for the type of resource being filtered. Only atomic field types are
6966
+ # supported (string, number, boolean). Array and object fields are not currently
6967
+ # supported.
6968
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
6969
+ # equals).
6970
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
6971
+ # must be valid for the type of field (string, number, boolean). For string
6972
+ # fields, the literal value is interpreted as a regular expression using RE2
6973
+ # syntax. The literal value must match the entire field. For example, you can
6974
+ # filter by the name of a resource:
6975
+ # filter=name ne example-instance
6976
+ # The above filter returns only results whose name field does not equal example-
6977
+ # instance. You can also enclose your literal string in single, double, or no
6978
+ # quotes.
4989
6979
  # @param [Fixnum] max_results
4990
6980
  # Maximum count of results to be returned.
4991
6981
  # @param [String] page_token
4992
- # Tag returned by a previous list request when that list was truncated to
4993
- # maxResults. Used to continue a previous list request.
6982
+ # Specifies a page token to use. Use this parameter if you want to list the next
6983
+ # page of results. Set pageToken to the nextPageToken returned by a previous
6984
+ # list request.
4994
6985
  # @param [String] fields
4995
6986
  # Selector specifying which fields to include in a partial response.
4996
6987
  # @param [String] quota_user
@@ -5206,12 +7197,31 @@ module Google
5206
7197
  # @param [String] region
5207
7198
  # Name of the region scoping this request.
5208
7199
  # @param [String] filter
5209
- # Filter expression for filtering listed resources.
7200
+ # Sets a filter expression for filtering listed resources, in the form filter=`
7201
+ # expression`. Your `expression` must contain the following:
7202
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
7203
+ #
7204
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
7205
+ # be valid for the type of resource being filtered. Only atomic field types are
7206
+ # supported (string, number, boolean). Array and object fields are not currently
7207
+ # supported.
7208
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
7209
+ # equals).
7210
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
7211
+ # must be valid for the type of field (string, number, boolean). For string
7212
+ # fields, the literal value is interpreted as a regular expression using RE2
7213
+ # syntax. The literal value must match the entire field. For example, you can
7214
+ # filter by the name of a resource:
7215
+ # filter=name ne example-instance
7216
+ # The above filter returns only results whose name field does not equal example-
7217
+ # instance. You can also enclose your literal string in single, double, or no
7218
+ # quotes.
5210
7219
  # @param [Fixnum] max_results
5211
7220
  # Maximum count of results to be returned.
5212
7221
  # @param [String] page_token
5213
- # Tag returned by a previous list request when that list was truncated to
5214
- # maxResults. Used to continue a previous list request.
7222
+ # Specifies a page token to use. Use this parameter if you want to list the next
7223
+ # page of results. Set pageToken to the nextPageToken returned by a previous
7224
+ # list request.
5215
7225
  # @param [String] fields
5216
7226
  # Selector specifying which fields to include in a partial response.
5217
7227
  # @param [String] quota_user
@@ -5389,12 +7399,31 @@ module Google
5389
7399
  # @param [String] project
5390
7400
  # Project ID for this request.
5391
7401
  # @param [String] filter
5392
- # Filter expression for filtering listed resources.
7402
+ # Sets a filter expression for filtering listed resources, in the form filter=`
7403
+ # expression`. Your `expression` must contain the following:
7404
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
7405
+ #
7406
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
7407
+ # be valid for the type of resource being filtered. Only atomic field types are
7408
+ # supported (string, number, boolean). Array and object fields are not currently
7409
+ # supported.
7410
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
7411
+ # equals).
7412
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
7413
+ # must be valid for the type of field (string, number, boolean). For string
7414
+ # fields, the literal value is interpreted as a regular expression using RE2
7415
+ # syntax. The literal value must match the entire field. For example, you can
7416
+ # filter by the name of a resource:
7417
+ # filter=name ne example-instance
7418
+ # The above filter returns only results whose name field does not equal example-
7419
+ # instance. You can also enclose your literal string in single, double, or no
7420
+ # quotes.
5393
7421
  # @param [Fixnum] max_results
5394
7422
  # Maximum count of results to be returned.
5395
7423
  # @param [String] page_token
5396
- # Tag returned by a previous list request when that list was truncated to
5397
- # maxResults. Used to continue a previous list request.
7424
+ # Specifies a page token to use. Use this parameter if you want to list the next
7425
+ # page of results. Set pageToken to the nextPageToken returned by a previous
7426
+ # list request.
5398
7427
  # @param [String] fields
5399
7428
  # Selector specifying which fields to include in a partial response.
5400
7429
  # @param [String] quota_user
@@ -5565,12 +7594,31 @@ module Google
5565
7594
  # @param [String] region
5566
7595
  # The name of the region for this request.
5567
7596
  # @param [String] filter
5568
- # Filter expression for filtering listed resources.
7597
+ # Sets a filter expression for filtering listed resources, in the form filter=`
7598
+ # expression`. Your `expression` must contain the following:
7599
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
7600
+ #
7601
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
7602
+ # be valid for the type of resource being filtered. Only atomic field types are
7603
+ # supported (string, number, boolean). Array and object fields are not currently
7604
+ # supported.
7605
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
7606
+ # equals).
7607
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
7608
+ # must be valid for the type of field (string, number, boolean). For string
7609
+ # fields, the literal value is interpreted as a regular expression using RE2
7610
+ # syntax. The literal value must match the entire field. For example, you can
7611
+ # filter by the name of a resource:
7612
+ # filter=name ne example-instance
7613
+ # The above filter returns only results whose name field does not equal example-
7614
+ # instance. You can also enclose your literal string in single, double, or no
7615
+ # quotes.
5569
7616
  # @param [Fixnum] max_results
5570
7617
  # Maximum count of results to be returned.
5571
7618
  # @param [String] page_token
5572
- # Tag returned by a previous list request when that list was truncated to
5573
- # maxResults. Used to continue a previous list request.
7619
+ # Specifies a page token to use. Use this parameter if you want to list the next
7620
+ # page of results. Set pageToken to the nextPageToken returned by a previous
7621
+ # list request.
5574
7622
  # @param [String] fields
5575
7623
  # Selector specifying which fields to include in a partial response.
5576
7624
  # @param [String] quota_user
@@ -5730,12 +7778,31 @@ module Google
5730
7778
  # @param [String] project
5731
7779
  # Name of the project scoping this request.
5732
7780
  # @param [String] filter
5733
- # Filter expression for filtering listed resources.
7781
+ # Sets a filter expression for filtering listed resources, in the form filter=`
7782
+ # expression`. Your `expression` must contain the following:
7783
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
7784
+ #
7785
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
7786
+ # be valid for the type of resource being filtered. Only atomic field types are
7787
+ # supported (string, number, boolean). Array and object fields are not currently
7788
+ # supported.
7789
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
7790
+ # equals).
7791
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
7792
+ # must be valid for the type of field (string, number, boolean). For string
7793
+ # fields, the literal value is interpreted as a regular expression using RE2
7794
+ # syntax. The literal value must match the entire field. For example, you can
7795
+ # filter by the name of a resource:
7796
+ # filter=name ne example-instance
7797
+ # The above filter returns only results whose name field does not equal example-
7798
+ # instance. You can also enclose your literal string in single, double, or no
7799
+ # quotes.
5734
7800
  # @param [Fixnum] max_results
5735
7801
  # Maximum count of results to be returned.
5736
7802
  # @param [String] page_token
5737
- # Tag returned by a previous list request when that list was truncated to
5738
- # maxResults. Used to continue a previous list request.
7803
+ # Specifies a page token to use. Use this parameter if you want to list the next
7804
+ # page of results. Set pageToken to the nextPageToken returned by a previous
7805
+ # list request.
5739
7806
  # @param [String] fields
5740
7807
  # Selector specifying which fields to include in a partial response.
5741
7808
  # @param [String] quota_user
@@ -5904,12 +7971,31 @@ module Google
5904
7971
  # @param [String] project
5905
7972
  # Project ID for this request.
5906
7973
  # @param [String] filter
5907
- # Filter expression for filtering listed resources.
7974
+ # Sets a filter expression for filtering listed resources, in the form filter=`
7975
+ # expression`. Your `expression` must contain the following:
7976
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
7977
+ #
7978
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
7979
+ # be valid for the type of resource being filtered. Only atomic field types are
7980
+ # supported (string, number, boolean). Array and object fields are not currently
7981
+ # supported.
7982
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
7983
+ # equals).
7984
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
7985
+ # must be valid for the type of field (string, number, boolean). For string
7986
+ # fields, the literal value is interpreted as a regular expression using RE2
7987
+ # syntax. The literal value must match the entire field. For example, you can
7988
+ # filter by the name of a resource:
7989
+ # filter=name ne example-instance
7990
+ # The above filter returns only results whose name field does not equal example-
7991
+ # instance. You can also enclose your literal string in single, double, or no
7992
+ # quotes.
5908
7993
  # @param [Fixnum] max_results
5909
7994
  # Maximum count of results to be returned.
5910
7995
  # @param [String] page_token
5911
- # Tag returned by a previous list request when that list was truncated to
5912
- # maxResults. Used to continue a previous list request.
7996
+ # Specifies a page token to use. Use this parameter if you want to list the next
7997
+ # page of results. Set pageToken to the nextPageToken returned by a previous
7998
+ # list request.
5913
7999
  # @param [String] fields
5914
8000
  # Selector specifying which fields to include in a partial response.
5915
8001
  # @param [String] quota_user
@@ -6080,12 +8166,31 @@ module Google
6080
8166
  # @param [String] region
6081
8167
  # The name of the region for this request.
6082
8168
  # @param [String] filter
6083
- # Filter expression for filtering listed resources.
8169
+ # Sets a filter expression for filtering listed resources, in the form filter=`
8170
+ # expression`. Your `expression` must contain the following:
8171
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
8172
+ #
8173
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
8174
+ # be valid for the type of resource being filtered. Only atomic field types are
8175
+ # supported (string, number, boolean). Array and object fields are not currently
8176
+ # supported.
8177
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
8178
+ # equals).
8179
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
8180
+ # must be valid for the type of field (string, number, boolean). For string
8181
+ # fields, the literal value is interpreted as a regular expression using RE2
8182
+ # syntax. The literal value must match the entire field. For example, you can
8183
+ # filter by the name of a resource:
8184
+ # filter=name ne example-instance
8185
+ # The above filter returns only results whose name field does not equal example-
8186
+ # instance. You can also enclose your literal string in single, double, or no
8187
+ # quotes.
6084
8188
  # @param [Fixnum] max_results
6085
8189
  # Maximum count of results to be returned.
6086
8190
  # @param [String] page_token
6087
- # Tag returned by a previous list request when that list was truncated to
6088
- # maxResults. Used to continue a previous list request.
8191
+ # Specifies a page token to use. Use this parameter if you want to list the next
8192
+ # page of results. Set pageToken to the nextPageToken returned by a previous
8193
+ # list request.
6089
8194
  # @param [String] fields
6090
8195
  # Selector specifying which fields to include in a partial response.
6091
8196
  # @param [String] quota_user
@@ -6123,13 +8228,13 @@ module Google
6123
8228
  execute_or_queue_command(command, &block)
6124
8229
  end
6125
8230
 
6126
- # Deletes the specified zone-specific operation resource.
8231
+ # Deletes the specified zone-specific Operations resource.
6127
8232
  # @param [String] project
6128
8233
  # Project ID for this request.
6129
8234
  # @param [String] zone
6130
8235
  # Name of the zone scoping this request.
6131
8236
  # @param [String] operation
6132
- # Name of the operation resource to delete.
8237
+ # Name of the Operations resource to delete.
6133
8238
  # @param [String] fields
6134
8239
  # Selector specifying which fields to include in a partial response.
6135
8240
  # @param [String] quota_user
@@ -6163,13 +8268,13 @@ module Google
6163
8268
  execute_or_queue_command(command, &block)
6164
8269
  end
6165
8270
 
6166
- # Retrieves the specified zone-specific operation resource.
8271
+ # Retrieves the specified zone-specific Operations resource.
6167
8272
  # @param [String] project
6168
8273
  # Project ID for this request.
6169
8274
  # @param [String] zone
6170
8275
  # Name of the zone scoping this request.
6171
8276
  # @param [String] operation
6172
- # Name of the operation resource to return.
8277
+ # Name of the Operations resource to return.
6173
8278
  # @param [String] fields
6174
8279
  # Selector specifying which fields to include in a partial response.
6175
8280
  # @param [String] quota_user
@@ -6205,18 +8310,37 @@ module Google
6205
8310
  execute_or_queue_command(command, &block)
6206
8311
  end
6207
8312
 
6208
- # Retrieves the list of operation resources contained within the specified zone.
8313
+ # Retrieves the list of Operation resources contained within the specified zone.
6209
8314
  # @param [String] project
6210
8315
  # Project ID for this request.
6211
8316
  # @param [String] zone
6212
8317
  # Name of the zone scoping this request.
6213
8318
  # @param [String] filter
6214
- # Filter expression for filtering listed resources.
8319
+ # Sets a filter expression for filtering listed resources, in the form filter=`
8320
+ # expression`. Your `expression` must contain the following:
8321
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
8322
+ #
8323
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
8324
+ # be valid for the type of resource being filtered. Only atomic field types are
8325
+ # supported (string, number, boolean). Array and object fields are not currently
8326
+ # supported.
8327
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
8328
+ # equals).
8329
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
8330
+ # must be valid for the type of field (string, number, boolean). For string
8331
+ # fields, the literal value is interpreted as a regular expression using RE2
8332
+ # syntax. The literal value must match the entire field. For example, you can
8333
+ # filter by the name of a resource:
8334
+ # filter=name ne example-instance
8335
+ # The above filter returns only results whose name field does not equal example-
8336
+ # instance. You can also enclose your literal string in single, double, or no
8337
+ # quotes.
6215
8338
  # @param [Fixnum] max_results
6216
8339
  # Maximum count of results to be returned.
6217
8340
  # @param [String] page_token
6218
- # Tag returned by a previous list request when that list was truncated to
6219
- # maxResults. Used to continue a previous list request.
8341
+ # Specifies a page token to use. Use this parameter if you want to list the next
8342
+ # page of results. Set pageToken to the nextPageToken returned by a previous
8343
+ # list request.
6220
8344
  # @param [String] fields
6221
8345
  # Selector specifying which fields to include in a partial response.
6222
8346
  # @param [String] quota_user
@@ -6297,12 +8421,31 @@ module Google
6297
8421
  # @param [String] project
6298
8422
  # Project ID for this request.
6299
8423
  # @param [String] filter
6300
- # Filter expression for filtering listed resources.
8424
+ # Sets a filter expression for filtering listed resources, in the form filter=`
8425
+ # expression`. Your `expression` must contain the following:
8426
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
8427
+ #
8428
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
8429
+ # be valid for the type of resource being filtered. Only atomic field types are
8430
+ # supported (string, number, boolean). Array and object fields are not currently
8431
+ # supported.
8432
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
8433
+ # equals).
8434
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
8435
+ # must be valid for the type of field (string, number, boolean). For string
8436
+ # fields, the literal value is interpreted as a regular expression using RE2
8437
+ # syntax. The literal value must match the entire field. For example, you can
8438
+ # filter by the name of a resource:
8439
+ # filter=name ne example-instance
8440
+ # The above filter returns only results whose name field does not equal example-
8441
+ # instance. You can also enclose your literal string in single, double, or no
8442
+ # quotes.
6301
8443
  # @param [Fixnum] max_results
6302
8444
  # Maximum count of results to be returned.
6303
8445
  # @param [String] page_token
6304
- # Tag returned by a previous list request when that list was truncated to
6305
- # maxResults. Used to continue a previous list request.
8446
+ # Specifies a page token to use. Use this parameter if you want to list the next
8447
+ # page of results. Set pageToken to the nextPageToken returned by a previous
8448
+ # list request.
6306
8449
  # @param [String] fields
6307
8450
  # Selector specifying which fields to include in a partial response.
6308
8451
  # @param [String] quota_user