google-cloud-compute-v1 1.1.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -0
  3. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +2 -2
  4. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +37 -8
  5. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +59 -14
  6. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +84 -22
  7. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +95 -26
  8. data/lib/google/cloud/compute/v1/compute_pb.rb +671 -3
  9. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +2 -2
  10. data/lib/google/cloud/compute/v1/disks/rest/client.rb +93 -24
  11. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +44 -10
  12. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +98 -31
  13. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +2 -2
  14. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +54 -13
  15. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +70 -17
  16. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +34 -7
  17. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +64 -16
  18. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +55 -14
  19. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +2 -2
  20. data/lib/google/cloud/compute/v1/global_operations/rest/nonstandard_lro.rb +68 -0
  21. data/lib/google/cloud/compute/v1/global_operations.rb +1 -0
  22. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
  23. data/lib/google/cloud/compute/v1/global_organization_operations/rest/nonstandard_lro.rb +68 -0
  24. data/lib/google/cloud/compute/v1/global_organization_operations.rb +1 -0
  25. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +44 -10
  26. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +55 -14
  27. data/lib/google/cloud/compute/v1/images/rest/client.rb +64 -16
  28. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +177 -52
  29. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +72 -19
  30. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +34 -7
  31. data/lib/google/cloud/compute/v1/instances/rest/client.rb +372 -101
  32. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +48 -11
  33. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
  34. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +44 -10
  35. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +34 -7
  36. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +34 -7
  37. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +2 -2
  38. data/lib/google/cloud/compute/v1/network_edge_security_services/credentials.rb +52 -0
  39. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +679 -0
  40. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +279 -0
  41. data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +33 -0
  42. data/lib/google/cloud/compute/v1/network_edge_security_services.rb +44 -0
  43. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +60 -15
  44. data/lib/google/cloud/compute/v1/network_firewall_policies/credentials.rb +52 -0
  45. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1552 -0
  46. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +778 -0
  47. data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +33 -0
  48. data/lib/google/cloud/compute/v1/network_firewall_policies.rb +44 -0
  49. data/lib/google/cloud/compute/v1/networks/rest/client.rb +85 -23
  50. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +82 -21
  51. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +37 -8
  52. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +2 -2
  53. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +48 -11
  54. data/lib/google/cloud/compute/v1/projects/rest/client.rb +105 -29
  55. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +44 -10
  56. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +48 -11
  57. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +58 -13
  58. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +58 -13
  59. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +37 -8
  60. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
  61. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +91 -22
  62. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +47 -10
  63. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +58 -13
  64. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +176 -51
  65. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +26 -5
  66. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +24 -3
  67. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +36 -7
  68. data/lib/google/cloud/compute/v1/region_network_firewall_policies/credentials.rb +52 -0
  69. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1670 -0
  70. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +823 -0
  71. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +33 -0
  72. data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +44 -0
  73. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +36 -7
  74. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
  75. data/lib/google/cloud/compute/v1/region_operations/rest/nonstandard_lro.rb +68 -0
  76. data/lib/google/cloud/compute/v1/region_operations.rb +1 -0
  77. data/lib/google/cloud/compute/v1/region_security_policies/credentials.rb +52 -0
  78. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +676 -0
  79. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +276 -0
  80. data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +33 -0
  81. data/lib/google/cloud/compute/v1/region_security_policies.rb +44 -0
  82. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +36 -7
  83. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +47 -10
  84. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +145 -13
  85. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +46 -0
  86. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +58 -13
  87. data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
  88. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +59 -14
  89. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +37 -8
  90. data/lib/google/cloud/compute/v1/routers/rest/client.rb +60 -15
  91. data/lib/google/cloud/compute/v1/routes/rest/client.rb +34 -7
  92. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +170 -23
  93. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +55 -1
  94. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +48 -11
  95. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +44 -10
  96. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +35 -8
  97. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +45 -11
  98. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +71 -18
  99. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +44 -10
  100. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +55 -14
  101. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +169 -23
  102. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +46 -0
  103. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +37 -8
  104. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +92 -23
  105. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +158 -19
  106. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +46 -0
  107. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +54 -13
  108. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +37 -8
  109. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +65 -17
  110. data/lib/google/cloud/compute/v1/version.rb +1 -1
  111. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +48 -11
  112. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +37 -8
  113. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
  114. data/lib/google/cloud/compute/v1/zone_operations/rest/nonstandard_lro.rb +68 -0
  115. data/lib/google/cloud/compute/v1/zone_operations.rb +1 -0
  116. data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
  117. data/lib/google/cloud/compute/v1.rb +6 -0
  118. data/proto_docs/google/cloud/compute/v1/compute.rb +1946 -229
  119. metadata +27 -3
@@ -19,6 +19,7 @@
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/compute/v1/compute_pb"
21
21
  require "google/cloud/compute/v1/region_commitments/rest/service_stub"
22
+ require "google/cloud/compute/v1/region_operations/rest"
22
23
 
23
24
  module Google
24
25
  module Cloud
@@ -139,9 +140,21 @@ module Google
139
140
  credentials = Credentials.new credentials, scope: @config.scope
140
141
  end
141
142
 
143
+ @region_operations = ::Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new do |config|
144
+ config.credentials = credentials
145
+ config.endpoint = @config.endpoint
146
+ end
147
+
142
148
  @region_commitments_stub = ::Google::Cloud::Compute::V1::RegionCommitments::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
143
149
  end
144
150
 
151
+ ##
152
+ # Get the associated client for long-running operations via RegionOperations.
153
+ #
154
+ # @return [::Google::Cloud::Compute::V1::RegionOperations::Rest::Client]
155
+ #
156
+ attr_reader :region_operations
157
+
145
158
  # Service calls
146
159
 
147
160
  ##
@@ -165,7 +178,7 @@ module Google
165
178
  # the default parameter values, pass an empty Hash as a request object (see above).
166
179
  #
167
180
  # @param filter [::String]
168
- # A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
181
+ # A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
169
182
  # @param include_all_scopes [::Boolean]
170
183
  # Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
171
184
  # @param max_results [::Integer]
@@ -312,10 +325,10 @@ module Google
312
325
  # @param request_id [::String]
313
326
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
314
327
  # @yield [result, response] Access the result along with the Faraday response object
315
- # @yieldparam result [::Gapic::Rest::BaseOperation]
328
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
316
329
  # @yieldparam response [::Faraday::Response]
317
330
  #
318
- # @return [::Gapic::Rest::BaseOperation]
331
+ # @return [::Gapic::GenericLRO::Operation]
319
332
  #
320
333
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
321
334
  def insert request, options = nil
@@ -342,7 +355,15 @@ module Google
342
355
  metadata: @config.metadata
343
356
 
344
357
  @region_commitments_stub.insert request, options do |result, response|
345
- result = ::Gapic::Rest::BaseOperation.new result
358
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
359
+ operation: result,
360
+ client: region_operations,
361
+ request_values: {
362
+ "project" => request.project,
363
+ "region" => request.region
364
+ },
365
+ options: options
366
+ )
346
367
  yield result, response if block_given?
347
368
  return result
348
369
  end
@@ -372,7 +393,7 @@ module Google
372
393
  # the default parameter values, pass an empty Hash as a request object (see above).
373
394
  #
374
395
  # @param filter [::String]
375
- # A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
396
+ # A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
376
397
  # @param max_results [::Integer]
377
398
  # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
378
399
  # @param order_by [::String]
@@ -459,10 +480,10 @@ module Google
459
480
  # @param update_mask [::String]
460
481
  # update_mask indicates fields to be updated as part of this request.
461
482
  # @yield [result, response] Access the result along with the Faraday response object
462
- # @yieldparam result [::Gapic::Rest::BaseOperation]
483
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
463
484
  # @yieldparam response [::Faraday::Response]
464
485
  #
465
- # @return [::Gapic::Rest::BaseOperation]
486
+ # @return [::Gapic::GenericLRO::Operation]
466
487
  #
467
488
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
468
489
  def update request, options = nil
@@ -489,7 +510,15 @@ module Google
489
510
  metadata: @config.metadata
490
511
 
491
512
  @region_commitments_stub.update request, options do |result, response|
492
- result = ::Gapic::Rest::BaseOperation.new result
513
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
514
+ operation: result,
515
+ client: region_operations,
516
+ request_values: {
517
+ "project" => request.project,
518
+ "region" => request.region
519
+ },
520
+ options: options
521
+ )
493
522
  yield result, response if block_given?
494
523
  return result
495
524
  end
@@ -221,7 +221,7 @@ module Google
221
221
  # the default parameter values, pass an empty Hash as a request object (see above).
222
222
  #
223
223
  # @param filter [::String]
224
- # A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
224
+ # A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
225
225
  # @param max_results [::Integer]
226
226
  # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
227
227
  # @param order_by [::String]
@@ -19,6 +19,7 @@
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/compute/v1/compute_pb"
21
21
  require "google/cloud/compute/v1/region_disks/rest/service_stub"
22
+ require "google/cloud/compute/v1/region_operations/rest"
22
23
 
23
24
  module Google
24
25
  module Cloud
@@ -153,9 +154,21 @@ module Google
153
154
  credentials = Credentials.new credentials, scope: @config.scope
154
155
  end
155
156
 
157
+ @region_operations = ::Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new do |config|
158
+ config.credentials = credentials
159
+ config.endpoint = @config.endpoint
160
+ end
161
+
156
162
  @region_disks_stub = ::Google::Cloud::Compute::V1::RegionDisks::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
157
163
  end
158
164
 
165
+ ##
166
+ # Get the associated client for long-running operations via RegionOperations.
167
+ #
168
+ # @return [::Google::Cloud::Compute::V1::RegionOperations::Rest::Client]
169
+ #
170
+ attr_reader :region_operations
171
+
159
172
  # Service calls
160
173
 
161
174
  ##
@@ -189,10 +202,10 @@ module Google
189
202
  # @param request_id [::String]
190
203
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
191
204
  # @yield [result, response] Access the result along with the Faraday response object
192
- # @yieldparam result [::Gapic::Rest::BaseOperation]
205
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
193
206
  # @yieldparam response [::Faraday::Response]
194
207
  #
195
- # @return [::Gapic::Rest::BaseOperation]
208
+ # @return [::Gapic::GenericLRO::Operation]
196
209
  #
197
210
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
198
211
  def add_resource_policies request, options = nil
@@ -219,7 +232,15 @@ module Google
219
232
  metadata: @config.metadata
220
233
 
221
234
  @region_disks_stub.add_resource_policies request, options do |result, response|
222
- result = ::Gapic::Rest::BaseOperation.new result
235
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
236
+ operation: result,
237
+ client: region_operations,
238
+ request_values: {
239
+ "project" => request.project,
240
+ "region" => request.region
241
+ },
242
+ options: options
243
+ )
223
244
  yield result, response if block_given?
224
245
  return result
225
246
  end
@@ -259,10 +280,10 @@ module Google
259
280
  # @param snapshot_resource [::Google::Cloud::Compute::V1::Snapshot, ::Hash]
260
281
  # The body resource for this request
261
282
  # @yield [result, response] Access the result along with the Faraday response object
262
- # @yieldparam result [::Gapic::Rest::BaseOperation]
283
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
263
284
  # @yieldparam response [::Faraday::Response]
264
285
  #
265
- # @return [::Gapic::Rest::BaseOperation]
286
+ # @return [::Gapic::GenericLRO::Operation]
266
287
  #
267
288
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
268
289
  def create_snapshot request, options = nil
@@ -289,7 +310,15 @@ module Google
289
310
  metadata: @config.metadata
290
311
 
291
312
  @region_disks_stub.create_snapshot request, options do |result, response|
292
- result = ::Gapic::Rest::BaseOperation.new result
313
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
314
+ operation: result,
315
+ client: region_operations,
316
+ request_values: {
317
+ "project" => request.project,
318
+ "region" => request.region
319
+ },
320
+ options: options
321
+ )
293
322
  yield result, response if block_given?
294
323
  return result
295
324
  end
@@ -327,10 +356,10 @@ module Google
327
356
  # @param request_id [::String]
328
357
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
329
358
  # @yield [result, response] Access the result along with the Faraday response object
330
- # @yieldparam result [::Gapic::Rest::BaseOperation]
359
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
331
360
  # @yieldparam response [::Faraday::Response]
332
361
  #
333
- # @return [::Gapic::Rest::BaseOperation]
362
+ # @return [::Gapic::GenericLRO::Operation]
334
363
  #
335
364
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
336
365
  def delete request, options = nil
@@ -357,7 +386,15 @@ module Google
357
386
  metadata: @config.metadata
358
387
 
359
388
  @region_disks_stub.delete request, options do |result, response|
360
- result = ::Gapic::Rest::BaseOperation.new result
389
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
390
+ operation: result,
391
+ client: region_operations,
392
+ request_values: {
393
+ "project" => request.project,
394
+ "region" => request.region
395
+ },
396
+ options: options
397
+ )
361
398
  yield result, response if block_given?
362
399
  return result
363
400
  end
@@ -529,10 +566,10 @@ module Google
529
566
  # @param source_image [::String]
530
567
  # Source image to restore onto a disk. This field is optional.
531
568
  # @yield [result, response] Access the result along with the Faraday response object
532
- # @yieldparam result [::Gapic::Rest::BaseOperation]
569
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
533
570
  # @yieldparam response [::Faraday::Response]
534
571
  #
535
- # @return [::Gapic::Rest::BaseOperation]
572
+ # @return [::Gapic::GenericLRO::Operation]
536
573
  #
537
574
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
538
575
  def insert request, options = nil
@@ -559,7 +596,15 @@ module Google
559
596
  metadata: @config.metadata
560
597
 
561
598
  @region_disks_stub.insert request, options do |result, response|
562
- result = ::Gapic::Rest::BaseOperation.new result
599
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
600
+ operation: result,
601
+ client: region_operations,
602
+ request_values: {
603
+ "project" => request.project,
604
+ "region" => request.region
605
+ },
606
+ options: options
607
+ )
563
608
  yield result, response if block_given?
564
609
  return result
565
610
  end
@@ -589,7 +634,7 @@ module Google
589
634
  # the default parameter values, pass an empty Hash as a request object (see above).
590
635
  #
591
636
  # @param filter [::String]
592
- # A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
637
+ # A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
593
638
  # @param max_results [::Integer]
594
639
  # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
595
640
  # @param order_by [::String]
@@ -673,10 +718,10 @@ module Google
673
718
  # @param request_id [::String]
674
719
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
675
720
  # @yield [result, response] Access the result along with the Faraday response object
676
- # @yieldparam result [::Gapic::Rest::BaseOperation]
721
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
677
722
  # @yieldparam response [::Faraday::Response]
678
723
  #
679
- # @return [::Gapic::Rest::BaseOperation]
724
+ # @return [::Gapic::GenericLRO::Operation]
680
725
  #
681
726
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
682
727
  def remove_resource_policies request, options = nil
@@ -703,7 +748,15 @@ module Google
703
748
  metadata: @config.metadata
704
749
 
705
750
  @region_disks_stub.remove_resource_policies request, options do |result, response|
706
- result = ::Gapic::Rest::BaseOperation.new result
751
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
752
+ operation: result,
753
+ client: region_operations,
754
+ request_values: {
755
+ "project" => request.project,
756
+ "region" => request.region
757
+ },
758
+ options: options
759
+ )
707
760
  yield result, response if block_given?
708
761
  return result
709
762
  end
@@ -743,10 +796,10 @@ module Google
743
796
  # @param request_id [::String]
744
797
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
745
798
  # @yield [result, response] Access the result along with the Faraday response object
746
- # @yieldparam result [::Gapic::Rest::BaseOperation]
799
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
747
800
  # @yieldparam response [::Faraday::Response]
748
801
  #
749
- # @return [::Gapic::Rest::BaseOperation]
802
+ # @return [::Gapic::GenericLRO::Operation]
750
803
  #
751
804
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
752
805
  def resize request, options = nil
@@ -773,7 +826,15 @@ module Google
773
826
  metadata: @config.metadata
774
827
 
775
828
  @region_disks_stub.resize request, options do |result, response|
776
- result = ::Gapic::Rest::BaseOperation.new result
829
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
830
+ operation: result,
831
+ client: region_operations,
832
+ request_values: {
833
+ "project" => request.project,
834
+ "region" => request.region
835
+ },
836
+ options: options
837
+ )
777
838
  yield result, response if block_given?
778
839
  return result
779
840
  end
@@ -880,10 +941,10 @@ module Google
880
941
  # @param resource [::String]
881
942
  # Name or id of the resource for this request.
882
943
  # @yield [result, response] Access the result along with the Faraday response object
883
- # @yieldparam result [::Gapic::Rest::BaseOperation]
944
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
884
945
  # @yieldparam response [::Faraday::Response]
885
946
  #
886
- # @return [::Gapic::Rest::BaseOperation]
947
+ # @return [::Gapic::GenericLRO::Operation]
887
948
  #
888
949
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
889
950
  def set_labels request, options = nil
@@ -910,7 +971,15 @@ module Google
910
971
  metadata: @config.metadata
911
972
 
912
973
  @region_disks_stub.set_labels request, options do |result, response|
913
- result = ::Gapic::Rest::BaseOperation.new result
974
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
975
+ operation: result,
976
+ client: region_operations,
977
+ request_values: {
978
+ "project" => request.project,
979
+ "region" => request.region
980
+ },
981
+ options: options
982
+ )
914
983
  yield result, response if block_given?
915
984
  return result
916
985
  end
@@ -19,6 +19,7 @@
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/compute/v1/compute_pb"
21
21
  require "google/cloud/compute/v1/region_health_check_services/rest/service_stub"
22
+ require "google/cloud/compute/v1/region_operations/rest"
22
23
 
23
24
  module Google
24
25
  module Cloud
@@ -136,9 +137,21 @@ module Google
136
137
  credentials = Credentials.new credentials, scope: @config.scope
137
138
  end
138
139
 
140
+ @region_operations = ::Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new do |config|
141
+ config.credentials = credentials
142
+ config.endpoint = @config.endpoint
143
+ end
144
+
139
145
  @region_health_check_services_stub = ::Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
140
146
  end
141
147
 
148
+ ##
149
+ # Get the associated client for long-running operations via RegionOperations.
150
+ #
151
+ # @return [::Google::Cloud::Compute::V1::RegionOperations::Rest::Client]
152
+ #
153
+ attr_reader :region_operations
154
+
142
155
  # Service calls
143
156
 
144
157
  ##
@@ -170,10 +183,10 @@ module Google
170
183
  # @param request_id [::String]
171
184
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
172
185
  # @yield [result, response] Access the result along with the Faraday response object
173
- # @yieldparam result [::Gapic::Rest::BaseOperation]
186
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
174
187
  # @yieldparam response [::Faraday::Response]
175
188
  #
176
- # @return [::Gapic::Rest::BaseOperation]
189
+ # @return [::Gapic::GenericLRO::Operation]
177
190
  #
178
191
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
179
192
  def delete request, options = nil
@@ -200,7 +213,15 @@ module Google
200
213
  metadata: @config.metadata
201
214
 
202
215
  @region_health_check_services_stub.delete request, options do |result, response|
203
- result = ::Gapic::Rest::BaseOperation.new result
216
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
217
+ operation: result,
218
+ client: region_operations,
219
+ request_values: {
220
+ "project" => request.project,
221
+ "region" => request.region
222
+ },
223
+ options: options
224
+ )
204
225
  yield result, response if block_given?
205
226
  return result
206
227
  end
@@ -303,10 +324,10 @@ module Google
303
324
  # @param request_id [::String]
304
325
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
305
326
  # @yield [result, response] Access the result along with the Faraday response object
306
- # @yieldparam result [::Gapic::Rest::BaseOperation]
327
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
307
328
  # @yieldparam response [::Faraday::Response]
308
329
  #
309
- # @return [::Gapic::Rest::BaseOperation]
330
+ # @return [::Gapic::GenericLRO::Operation]
310
331
  #
311
332
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
312
333
  def insert request, options = nil
@@ -333,7 +354,15 @@ module Google
333
354
  metadata: @config.metadata
334
355
 
335
356
  @region_health_check_services_stub.insert request, options do |result, response|
336
- result = ::Gapic::Rest::BaseOperation.new result
357
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
358
+ operation: result,
359
+ client: region_operations,
360
+ request_values: {
361
+ "project" => request.project,
362
+ "region" => request.region
363
+ },
364
+ options: options
365
+ )
337
366
  yield result, response if block_given?
338
367
  return result
339
368
  end
@@ -363,7 +392,7 @@ module Google
363
392
  # the default parameter values, pass an empty Hash as a request object (see above).
364
393
  #
365
394
  # @param filter [::String]
366
- # A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
395
+ # A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
367
396
  # @param max_results [::Integer]
368
397
  # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
369
398
  # @param order_by [::String]
@@ -447,10 +476,10 @@ module Google
447
476
  # @param request_id [::String]
448
477
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
449
478
  # @yield [result, response] Access the result along with the Faraday response object
450
- # @yieldparam result [::Gapic::Rest::BaseOperation]
479
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
451
480
  # @yieldparam response [::Faraday::Response]
452
481
  #
453
- # @return [::Gapic::Rest::BaseOperation]
482
+ # @return [::Gapic::GenericLRO::Operation]
454
483
  #
455
484
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
456
485
  def patch request, options = nil
@@ -477,7 +506,15 @@ module Google
477
506
  metadata: @config.metadata
478
507
 
479
508
  @region_health_check_services_stub.patch request, options do |result, response|
480
- result = ::Gapic::Rest::BaseOperation.new result
509
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
510
+ operation: result,
511
+ client: region_operations,
512
+ request_values: {
513
+ "project" => request.project,
514
+ "region" => request.region
515
+ },
516
+ options: options
517
+ )
481
518
  yield result, response if block_given?
482
519
  return result
483
520
  end