google-cloud-compute-v1 3.5.0 → 3.6.0

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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +375 -0
  3. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +122 -0
  4. data/lib/google/cloud/compute/v1/compute_pb.rb +94 -1
  5. data/lib/google/cloud/compute/v1/disks/rest/client.rb +118 -0
  6. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +64 -0
  7. data/lib/google/cloud/compute/v1/instant_snapshot_groups/credentials.rb +52 -0
  8. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/client.rb +1145 -0
  9. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/service_stub.rb +523 -0
  10. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest.rb +51 -0
  11. data/lib/google/cloud/compute/v1/instant_snapshot_groups.rb +47 -0
  12. data/lib/google/cloud/compute/v1/region_backend_buckets/credentials.rb +52 -0
  13. data/lib/google/cloud/compute/v1/region_backend_buckets/rest/client.rb +1450 -0
  14. data/lib/google/cloud/compute/v1/region_backend_buckets/rest/service_stub.rb +649 -0
  15. data/lib/google/cloud/compute/v1/region_backend_buckets/rest.rb +51 -0
  16. data/lib/google/cloud/compute/v1/region_backend_buckets.rb +47 -0
  17. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +95 -0
  18. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +63 -0
  19. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +118 -0
  20. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +64 -0
  21. data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +95 -0
  22. data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +63 -0
  23. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/credentials.rb +52 -0
  24. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/client.rb +1002 -0
  25. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/service_stub.rb +400 -0
  26. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest.rb +51 -0
  27. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests.rb +47 -0
  28. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/credentials.rb +52 -0
  29. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/client.rb +1146 -0
  30. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/service_stub.rb +523 -0
  31. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest.rb +51 -0
  32. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups.rb +47 -0
  33. data/lib/google/cloud/compute/v1/region_snapshot_settings/credentials.rb +52 -0
  34. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/client.rb +561 -0
  35. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/service_stub.rb +206 -0
  36. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest.rb +51 -0
  37. data/lib/google/cloud/compute/v1/region_snapshot_settings.rb +47 -0
  38. data/lib/google/cloud/compute/v1/region_snapshots/credentials.rb +52 -0
  39. data/lib/google/cloud/compute/v1/region_snapshots/rest/client.rb +1388 -0
  40. data/lib/google/cloud/compute/v1/region_snapshots/rest/service_stub.rb +651 -0
  41. data/lib/google/cloud/compute/v1/region_snapshots/rest.rb +51 -0
  42. data/lib/google/cloud/compute/v1/region_snapshots.rb +47 -0
  43. data/lib/google/cloud/compute/v1/rest.rb +7 -0
  44. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +115 -0
  45. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +63 -0
  46. data/lib/google/cloud/compute/v1/version.rb +1 -1
  47. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/credentials.rb +52 -0
  48. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/client.rb +975 -0
  49. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/service_stub.rb +396 -0
  50. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest.rb +51 -0
  51. data/lib/google/cloud/compute/v1/zone_vm_extension_policies.rb +47 -0
  52. data/lib/google/cloud/compute/v1.rb +7 -0
  53. data/proto_docs/google/cloud/compute/v1/compute.rb +4753 -1599
  54. metadata +36 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19e6cd2e0227655fcea47de780d51a59b015ed7b1c8a10d9bcc276ba256241dd
4
- data.tar.gz: fcfcd0ce64f1043027262c0a92e2bc81293c97c335b46137f2d8407ff28995ef
3
+ metadata.gz: 3735df2942721210e83e7caef64ef48e271bb3036b56819873144cf6c89cfb0d
4
+ data.tar.gz: ffbf57917c6c5a35529c72ac307afb050cc03c3ecbb742cbdf3a4e1152461669
5
5
  SHA512:
6
- metadata.gz: 6884032bca8652335ff3d4a30515c4b65e7b8d504699968f392e8338d16a49041b25e9f88a49592b1c1a3352b9bb576f76af7c3239e871201228fd4d59621a37
7
- data.tar.gz: fb4deec30d05fb2e6c220cb63620ff98a58d07eec5ca6755dd56be40f32f64888b77e2a5767c0d041bef903f20fa4560b4ee370ffe1422c74b1311c0e3098398
6
+ metadata.gz: 74a3f14d13f4a574d73906c9ca04112902164a47403fef6694bbdf67209ecff32856389b0a2fa4531a8f3151a8446c3288397b541b8e5e6f34205412a9f43c84
7
+ data.tar.gz: b3ce5bac7c378d362c75859570c675971fc31dd18f79d55d0b72b63902900fdd414a4af4c8a2b5444fe5e872f6c9f21b7aec92581da3fda9a73460475773bf33
@@ -73,6 +73,11 @@ module Google
73
73
 
74
74
  default_config.rpcs.add_signed_url_key.timeout = 600.0
75
75
 
76
+ default_config.rpcs.aggregated_list.timeout = 600.0
77
+ default_config.rpcs.aggregated_list.retry_policy = {
78
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
79
+ }
80
+
76
81
  default_config.rpcs.delete.timeout = 600.0
77
82
 
78
83
  default_config.rpcs.delete_signed_url_key.timeout = 600.0
@@ -94,6 +99,11 @@ module Google
94
99
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
95
100
  }
96
101
 
102
+ default_config.rpcs.list_usable.timeout = 600.0
103
+ default_config.rpcs.list_usable.retry_policy = {
104
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
105
+ }
106
+
97
107
  default_config.rpcs.patch.timeout = 600.0
98
108
 
99
109
  default_config.rpcs.set_edge_security_policy.timeout = 600.0
@@ -329,6 +339,189 @@ module Google
329
339
  raise ::Google::Cloud::Error.from_error(e)
330
340
  end
331
341
 
342
+ ##
343
+ # Retrieves the list of all BackendBucket resources, regional and global,
344
+ # available to the specified project.
345
+ #
346
+ # To prevent failure, it is recommended that you set the
347
+ # `returnPartialSuccess` parameter to `true`.
348
+ #
349
+ # @overload aggregated_list(request, options = nil)
350
+ # Pass arguments to `aggregated_list` via a request object, either of type
351
+ # {::Google::Cloud::Compute::V1::AggregatedListBackendBucketsRequest} or an equivalent Hash.
352
+ #
353
+ # @param request [::Google::Cloud::Compute::V1::AggregatedListBackendBucketsRequest, ::Hash]
354
+ # A request object representing the call parameters. Required. To specify no
355
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
356
+ # @param options [::Gapic::CallOptions, ::Hash]
357
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
358
+ #
359
+ # @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
360
+ # Pass arguments to `aggregated_list` via keyword arguments. Note that at
361
+ # least one keyword argument is required. To specify no parameters, or to keep all
362
+ # the default parameter values, pass an empty Hash as a request object (see above).
363
+ #
364
+ # @param filter [::String]
365
+ # A filter expression that filters resources listed in the response. Most
366
+ # Compute resources support two types of filter expressions:
367
+ # expressions that support regular expressions and expressions that follow
368
+ # API improvement proposal AIP-160.
369
+ # These two types of filter expressions cannot be mixed in one request.
370
+ #
371
+ # If you want to use AIP-160, your expression must specify the field name, an
372
+ # operator, and the value that you want to use for filtering. The value
373
+ # must be a string, a number, or a boolean. The operator
374
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
375
+ #
376
+ # For example, if you are filtering Compute Engine instances, you can
377
+ # exclude instances named `example-instance` by specifying
378
+ # `name != example-instance`.
379
+ #
380
+ # The `:*` comparison can be used to test whether a key has been defined.
381
+ # For example, to find all objects with `owner` label use:
382
+ # ```
383
+ # labels.owner:*
384
+ # ```
385
+ #
386
+ # You can also filter nested fields. For example, you could specify
387
+ # `scheduling.automaticRestart = false` to include instances only
388
+ # if they are not scheduled for automatic restarts. You can use filtering
389
+ # on nested fields to filter based onresource labels.
390
+ #
391
+ # To filter on multiple expressions, provide each separate expression within
392
+ # parentheses. For example:
393
+ # ```
394
+ # (scheduling.automaticRestart = true)
395
+ # (cpuPlatform = "Intel Skylake")
396
+ # ```
397
+ # By default, each expression is an `AND` expression. However, you
398
+ # can include `AND` and `OR` expressions explicitly.
399
+ # For example:
400
+ # ```
401
+ # (cpuPlatform = "Intel Skylake") OR
402
+ # (cpuPlatform = "Intel Broadwell") AND
403
+ # (scheduling.automaticRestart = true)
404
+ # ```
405
+ #
406
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
407
+ # (not equal) operator against a single un-parenthesized expression with or
408
+ # without quotes or against multiple parenthesized expressions. Examples:
409
+ #
410
+ # `fieldname eq unquoted literal`
411
+ # `fieldname eq 'single quoted literal'`
412
+ # `fieldname eq "double quoted literal"`
413
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
414
+ #
415
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
416
+ # The literal value must match the entire field.
417
+ #
418
+ # For example, to filter for instances that do not end with name "instance",
419
+ # you would use `name ne .*instance`.
420
+ #
421
+ # You cannot combine constraints on multiple fields using regular
422
+ # expressions.
423
+ # @param include_all_scopes [::Boolean]
424
+ # Indicates whether every visible scope for each scope type (zone, region,
425
+ # global) should be included in the response. For new resource types added
426
+ # after this field, the flag has no effect as new resource types will always
427
+ # include every visible scope for each scope type in response. For resource
428
+ # types which predate this field, if this flag is omitted or false, only
429
+ # scopes of the scope types where the resource type is expected to be found
430
+ # will be included.
431
+ # @param max_results [::Integer]
432
+ # The maximum number of results per page that should be returned.
433
+ # If the number of available results is larger than `maxResults`,
434
+ # Compute Engine returns a `nextPageToken` that can be used to get
435
+ # the next page of results in subsequent list requests. Acceptable values are
436
+ # `0` to `500`, inclusive. (Default: `500`)
437
+ # @param order_by [::String]
438
+ # Sorts list results by a certain order. By default, results
439
+ # are returned in alphanumerical order based on the resource name.
440
+ #
441
+ # You can also sort results in descending order based on the creation
442
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
443
+ # results based on the `creationTimestamp` field in
444
+ # reverse chronological order (newest result first). Use this to sort
445
+ # resources like operations so that the newest operation is returned first.
446
+ #
447
+ # Currently, only sorting by `name` or
448
+ # `creationTimestamp desc` is supported.
449
+ # @param page_token [::String]
450
+ # Specifies a page token to use. Set `pageToken` to the
451
+ # `nextPageToken` returned by a previous list request to get
452
+ # the next page of results.
453
+ # @param project [::String]
454
+ # Name of the project scoping this request.
455
+ # @param return_partial_success [::Boolean]
456
+ # Opt-in for partial success behavior which provides partial results in case
457
+ # of failure. The default value is false.
458
+ #
459
+ # For example, when partial success behavior is enabled, aggregatedList for a
460
+ # single zone scope either returns all resources in the zone or no resources,
461
+ # with an error code.
462
+ # @param service_project_number [::Integer]
463
+ # The Shared VPC service project id or service project number for which
464
+ # aggregated list request is invoked for subnetworks list-usable api.
465
+ # @yield [result, operation] Access the result along with the TransportOperation object
466
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::BackendBucketsScopedList>]
467
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
468
+ #
469
+ # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::BackendBucketsScopedList>]
470
+ #
471
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
472
+ #
473
+ # @example Basic example
474
+ # require "google/cloud/compute/v1"
475
+ #
476
+ # # Create a client object. The client can be reused for multiple calls.
477
+ # client = Google::Cloud::Compute::V1::BackendBuckets::Rest::Client.new
478
+ #
479
+ # # Create a request. To set request fields, pass in keyword arguments.
480
+ # request = Google::Cloud::Compute::V1::AggregatedListBackendBucketsRequest.new
481
+ #
482
+ # # Call the aggregated_list method.
483
+ # result = client.aggregated_list request
484
+ #
485
+ # # The returned object is of type Google::Cloud::Compute::V1::BackendBucketAggregatedList.
486
+ # p result
487
+ #
488
+ def aggregated_list request, options = nil
489
+ raise ::ArgumentError, "request must be provided" if request.nil?
490
+
491
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::AggregatedListBackendBucketsRequest
492
+
493
+ # Converts hash and nil to an options object
494
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
495
+
496
+ # Customize the options with defaults
497
+ call_metadata = @config.rpcs.aggregated_list.metadata.to_h
498
+
499
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
500
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
501
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
502
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
503
+ transports_version_send: [:rest]
504
+
505
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
506
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
507
+
508
+ options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
509
+ metadata: call_metadata,
510
+ retry_policy: @config.rpcs.aggregated_list.retry_policy
511
+
512
+ options.apply_defaults timeout: @config.timeout,
513
+ metadata: @config.metadata,
514
+ retry_policy: @config.retry_policy
515
+
516
+ @backend_buckets_stub.aggregated_list request, options do |result, operation|
517
+ result = ::Gapic::Rest::PagedEnumerable.new @backend_buckets_stub, :aggregated_list, "items", request, result, options
518
+ yield result, operation if block_given?
519
+ throw :response, result
520
+ end
521
+ rescue ::Gapic::Rest::Error => e
522
+ raise ::Google::Cloud::Error.from_error(e)
523
+ end
524
+
332
525
  ##
333
526
  # Deletes the specified BackendBucket resource.
334
527
  #
@@ -975,6 +1168,174 @@ module Google
975
1168
  raise ::Google::Cloud::Error.from_error(e)
976
1169
  end
977
1170
 
1171
+ ##
1172
+ # Retrieves a list of all usable backend buckets in the specified project.
1173
+ #
1174
+ # @overload list_usable(request, options = nil)
1175
+ # Pass arguments to `list_usable` via a request object, either of type
1176
+ # {::Google::Cloud::Compute::V1::ListUsableBackendBucketsRequest} or an equivalent Hash.
1177
+ #
1178
+ # @param request [::Google::Cloud::Compute::V1::ListUsableBackendBucketsRequest, ::Hash]
1179
+ # A request object representing the call parameters. Required. To specify no
1180
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1181
+ # @param options [::Gapic::CallOptions, ::Hash]
1182
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1183
+ #
1184
+ # @overload list_usable(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
1185
+ # Pass arguments to `list_usable` via keyword arguments. Note that at
1186
+ # least one keyword argument is required. To specify no parameters, or to keep all
1187
+ # the default parameter values, pass an empty Hash as a request object (see above).
1188
+ #
1189
+ # @param filter [::String]
1190
+ # A filter expression that filters resources listed in the response. Most
1191
+ # Compute resources support two types of filter expressions:
1192
+ # expressions that support regular expressions and expressions that follow
1193
+ # API improvement proposal AIP-160.
1194
+ # These two types of filter expressions cannot be mixed in one request.
1195
+ #
1196
+ # If you want to use AIP-160, your expression must specify the field name, an
1197
+ # operator, and the value that you want to use for filtering. The value
1198
+ # must be a string, a number, or a boolean. The operator
1199
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
1200
+ #
1201
+ # For example, if you are filtering Compute Engine instances, you can
1202
+ # exclude instances named `example-instance` by specifying
1203
+ # `name != example-instance`.
1204
+ #
1205
+ # The `:*` comparison can be used to test whether a key has been defined.
1206
+ # For example, to find all objects with `owner` label use:
1207
+ # ```
1208
+ # labels.owner:*
1209
+ # ```
1210
+ #
1211
+ # You can also filter nested fields. For example, you could specify
1212
+ # `scheduling.automaticRestart = false` to include instances only
1213
+ # if they are not scheduled for automatic restarts. You can use filtering
1214
+ # on nested fields to filter based onresource labels.
1215
+ #
1216
+ # To filter on multiple expressions, provide each separate expression within
1217
+ # parentheses. For example:
1218
+ # ```
1219
+ # (scheduling.automaticRestart = true)
1220
+ # (cpuPlatform = "Intel Skylake")
1221
+ # ```
1222
+ # By default, each expression is an `AND` expression. However, you
1223
+ # can include `AND` and `OR` expressions explicitly.
1224
+ # For example:
1225
+ # ```
1226
+ # (cpuPlatform = "Intel Skylake") OR
1227
+ # (cpuPlatform = "Intel Broadwell") AND
1228
+ # (scheduling.automaticRestart = true)
1229
+ # ```
1230
+ #
1231
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
1232
+ # (not equal) operator against a single un-parenthesized expression with or
1233
+ # without quotes or against multiple parenthesized expressions. Examples:
1234
+ #
1235
+ # `fieldname eq unquoted literal`
1236
+ # `fieldname eq 'single quoted literal'`
1237
+ # `fieldname eq "double quoted literal"`
1238
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
1239
+ #
1240
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1241
+ # The literal value must match the entire field.
1242
+ #
1243
+ # For example, to filter for instances that do not end with name "instance",
1244
+ # you would use `name ne .*instance`.
1245
+ #
1246
+ # You cannot combine constraints on multiple fields using regular
1247
+ # expressions.
1248
+ # @param max_results [::Integer]
1249
+ # The maximum number of results per page that should be returned.
1250
+ # If the number of available results is larger than `maxResults`,
1251
+ # Compute Engine returns a `nextPageToken` that can be used to get
1252
+ # the next page of results in subsequent list requests. Acceptable values are
1253
+ # `0` to `500`, inclusive. (Default: `500`)
1254
+ # @param order_by [::String]
1255
+ # Sorts list results by a certain order. By default, results
1256
+ # are returned in alphanumerical order based on the resource name.
1257
+ #
1258
+ # You can also sort results in descending order based on the creation
1259
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
1260
+ # results based on the `creationTimestamp` field in
1261
+ # reverse chronological order (newest result first). Use this to sort
1262
+ # resources like operations so that the newest operation is returned first.
1263
+ #
1264
+ # Currently, only sorting by `name` or
1265
+ # `creationTimestamp desc` is supported.
1266
+ # @param page_token [::String]
1267
+ # Specifies a page token to use. Set `pageToken` to the
1268
+ # `nextPageToken` returned by a previous list request to get
1269
+ # the next page of results.
1270
+ # @param project [::String]
1271
+ # Project ID for this request.
1272
+ # @param return_partial_success [::Boolean]
1273
+ # Opt-in for partial success behavior which provides partial results in case
1274
+ # of failure. The default value is false.
1275
+ #
1276
+ # For example, when partial success behavior is enabled, aggregatedList for a
1277
+ # single zone scope either returns all resources in the zone or no resources,
1278
+ # with an error code.
1279
+ # @yield [result, operation] Access the result along with the TransportOperation object
1280
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendBucket>]
1281
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1282
+ #
1283
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendBucket>]
1284
+ #
1285
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1286
+ #
1287
+ # @example Basic example
1288
+ # require "google/cloud/compute/v1"
1289
+ #
1290
+ # # Create a client object. The client can be reused for multiple calls.
1291
+ # client = Google::Cloud::Compute::V1::BackendBuckets::Rest::Client.new
1292
+ #
1293
+ # # Create a request. To set request fields, pass in keyword arguments.
1294
+ # request = Google::Cloud::Compute::V1::ListUsableBackendBucketsRequest.new
1295
+ #
1296
+ # # Call the list_usable method.
1297
+ # result = client.list_usable request
1298
+ #
1299
+ # # The returned object is of type Google::Cloud::Compute::V1::BackendBucketListUsable.
1300
+ # p result
1301
+ #
1302
+ def list_usable request, options = nil
1303
+ raise ::ArgumentError, "request must be provided" if request.nil?
1304
+
1305
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ListUsableBackendBucketsRequest
1306
+
1307
+ # Converts hash and nil to an options object
1308
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1309
+
1310
+ # Customize the options with defaults
1311
+ call_metadata = @config.rpcs.list_usable.metadata.to_h
1312
+
1313
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1314
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1315
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1316
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1317
+ transports_version_send: [:rest]
1318
+
1319
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1320
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1321
+
1322
+ options.apply_defaults timeout: @config.rpcs.list_usable.timeout,
1323
+ metadata: call_metadata,
1324
+ retry_policy: @config.rpcs.list_usable.retry_policy
1325
+
1326
+ options.apply_defaults timeout: @config.timeout,
1327
+ metadata: @config.metadata,
1328
+ retry_policy: @config.retry_policy
1329
+
1330
+ @backend_buckets_stub.list_usable request, options do |result, operation|
1331
+ result = ::Gapic::Rest::PagedEnumerable.new @backend_buckets_stub, :list_usable, "items", request, result, options
1332
+ yield result, operation if block_given?
1333
+ throw :response, result
1334
+ end
1335
+ rescue ::Gapic::Rest::Error => e
1336
+ raise ::Google::Cloud::Error.from_error(e)
1337
+ end
1338
+
978
1339
  ##
979
1340
  # Updates the specified BackendBucket resource with the data included in the
980
1341
  # request. This method supportsPATCH
@@ -1612,6 +1973,11 @@ module Google
1612
1973
  #
1613
1974
  attr_reader :add_signed_url_key
1614
1975
  ##
1976
+ # RPC-specific configuration for `aggregated_list`
1977
+ # @return [::Gapic::Config::Method]
1978
+ #
1979
+ attr_reader :aggregated_list
1980
+ ##
1615
1981
  # RPC-specific configuration for `delete`
1616
1982
  # @return [::Gapic::Config::Method]
1617
1983
  #
@@ -1642,6 +2008,11 @@ module Google
1642
2008
  #
1643
2009
  attr_reader :list
1644
2010
  ##
2011
+ # RPC-specific configuration for `list_usable`
2012
+ # @return [::Gapic::Config::Method]
2013
+ #
2014
+ attr_reader :list_usable
2015
+ ##
1645
2016
  # RPC-specific configuration for `patch`
1646
2017
  # @return [::Gapic::Config::Method]
1647
2018
  #
@@ -1671,6 +2042,8 @@ module Google
1671
2042
  def initialize parent_rpcs = nil
1672
2043
  add_signed_url_key_config = parent_rpcs.add_signed_url_key if parent_rpcs.respond_to? :add_signed_url_key
1673
2044
  @add_signed_url_key = ::Gapic::Config::Method.new add_signed_url_key_config
2045
+ aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
2046
+ @aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
1674
2047
  delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
1675
2048
  @delete = ::Gapic::Config::Method.new delete_config
1676
2049
  delete_signed_url_key_config = parent_rpcs.delete_signed_url_key if parent_rpcs.respond_to? :delete_signed_url_key
@@ -1683,6 +2056,8 @@ module Google
1683
2056
  @insert = ::Gapic::Config::Method.new insert_config
1684
2057
  list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
1685
2058
  @list = ::Gapic::Config::Method.new list_config
2059
+ list_usable_config = parent_rpcs.list_usable if parent_rpcs.respond_to? :list_usable
2060
+ @list_usable = ::Gapic::Config::Method.new list_usable_config
1686
2061
  patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
1687
2062
  @patch = ::Gapic::Config::Method.new patch_config
1688
2063
  set_edge_security_policy_config = parent_rpcs.set_edge_security_policy if parent_rpcs.respond_to? :set_edge_security_policy
@@ -113,6 +113,46 @@ module Google
113
113
  end
114
114
  end
115
115
 
116
+ ##
117
+ # Baseline implementation for the aggregated_list REST call
118
+ #
119
+ # @param request_pb [::Google::Cloud::Compute::V1::AggregatedListBackendBucketsRequest]
120
+ # A request object representing the call parameters. Required.
121
+ # @param options [::Gapic::CallOptions]
122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
123
+ #
124
+ # @yield [result, operation] Access the result along with the TransportOperation object
125
+ # @yieldparam result [::Google::Cloud::Compute::V1::BackendBucketAggregatedList]
126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
127
+ #
128
+ # @return [::Google::Cloud::Compute::V1::BackendBucketAggregatedList]
129
+ # A result object deserialized from the server's reply
130
+ def aggregated_list request_pb, options = nil
131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
132
+
133
+ verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_request request_pb
134
+ query_string_params = if query_string_params.any?
135
+ query_string_params.to_h { |p| p.split "=", 2 }
136
+ else
137
+ {}
138
+ end
139
+
140
+ response = @client_stub.make_http_request(
141
+ verb,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "aggregated_list",
146
+ options: options
147
+ )
148
+ operation = ::Gapic::Rest::TransportOperation.new response
149
+ result = ::Google::Cloud::Compute::V1::BackendBucketAggregatedList.decode_json response.body, ignore_unknown_fields: true
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
154
+ end
155
+
116
156
  ##
117
157
  # Baseline implementation for the delete REST call
118
158
  #
@@ -353,6 +393,46 @@ module Google
353
393
  end
354
394
  end
355
395
 
396
+ ##
397
+ # Baseline implementation for the list_usable REST call
398
+ #
399
+ # @param request_pb [::Google::Cloud::Compute::V1::ListUsableBackendBucketsRequest]
400
+ # A request object representing the call parameters. Required.
401
+ # @param options [::Gapic::CallOptions]
402
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
403
+ #
404
+ # @yield [result, operation] Access the result along with the TransportOperation object
405
+ # @yieldparam result [::Google::Cloud::Compute::V1::BackendBucketListUsable]
406
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
407
+ #
408
+ # @return [::Google::Cloud::Compute::V1::BackendBucketListUsable]
409
+ # A result object deserialized from the server's reply
410
+ def list_usable request_pb, options = nil
411
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
412
+
413
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_usable_request request_pb
414
+ query_string_params = if query_string_params.any?
415
+ query_string_params.to_h { |p| p.split "=", 2 }
416
+ else
417
+ {}
418
+ end
419
+
420
+ response = @client_stub.make_http_request(
421
+ verb,
422
+ uri: uri,
423
+ body: body || "",
424
+ params: query_string_params,
425
+ method_name: "list_usable",
426
+ options: options
427
+ )
428
+ operation = ::Gapic::Rest::TransportOperation.new response
429
+ result = ::Google::Cloud::Compute::V1::BackendBucketListUsable.decode_json response.body, ignore_unknown_fields: true
430
+ catch :response do
431
+ yield result, operation if block_given?
432
+ result
433
+ end
434
+ end
435
+
356
436
  ##
357
437
  # Baseline implementation for the patch REST call
358
438
  #
@@ -576,6 +656,27 @@ module Google
576
656
  transcoder.transcode request_pb
577
657
  end
578
658
 
659
+ ##
660
+ # @private
661
+ #
662
+ # GRPC transcoding helper method for the aggregated_list REST call
663
+ #
664
+ # @param request_pb [::Google::Cloud::Compute::V1::AggregatedListBackendBucketsRequest]
665
+ # A request object representing the call parameters. Required.
666
+ # @return [Array(String, [String, nil], Hash{String => String})]
667
+ # Uri, Body, Query string parameters
668
+ def self.transcode_aggregated_list_request request_pb
669
+ transcoder = Gapic::Rest::GrpcTranscoder.new
670
+ .with_bindings(
671
+ uri_method: :get,
672
+ uri_template: "/compute/v1/projects/{project}/aggregated/backendBuckets",
673
+ matches: [
674
+ ["project", %r{^[^/]+/?$}, false]
675
+ ]
676
+ )
677
+ transcoder.transcode request_pb
678
+ end
679
+
579
680
  ##
580
681
  # @private
581
682
  #
@@ -707,6 +808,27 @@ module Google
707
808
  transcoder.transcode request_pb
708
809
  end
709
810
 
811
+ ##
812
+ # @private
813
+ #
814
+ # GRPC transcoding helper method for the list_usable REST call
815
+ #
816
+ # @param request_pb [::Google::Cloud::Compute::V1::ListUsableBackendBucketsRequest]
817
+ # A request object representing the call parameters. Required.
818
+ # @return [Array(String, [String, nil], Hash{String => String})]
819
+ # Uri, Body, Query string parameters
820
+ def self.transcode_list_usable_request request_pb
821
+ transcoder = Gapic::Rest::GrpcTranscoder.new
822
+ .with_bindings(
823
+ uri_method: :get,
824
+ uri_template: "/compute/v1/projects/{project}/global/backendBuckets/listUsable",
825
+ matches: [
826
+ ["project", %r{^[^/]+/?$}, false]
827
+ ]
828
+ )
829
+ transcoder.transcode request_pb
830
+ end
831
+
710
832
  ##
711
833
  # @private
712
834
  #