google-cloud-compute-v1 0.5.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +7 -25
  4. data/README.md +4 -4
  5. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +2 -2
  6. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +37 -8
  7. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +59 -14
  8. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +158 -19
  9. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +46 -0
  10. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +169 -23
  11. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +46 -0
  12. data/lib/google/cloud/compute/v1/compute_pb.rb +534 -2
  13. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +2 -2
  14. data/lib/google/cloud/compute/v1/disks/rest/client.rb +93 -24
  15. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +44 -10
  16. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +98 -31
  17. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +2 -2
  18. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +54 -13
  19. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +70 -17
  20. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +34 -7
  21. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +64 -16
  22. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +55 -14
  23. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +2 -2
  24. data/lib/google/cloud/compute/v1/global_operations/rest/nonstandard_lro.rb +68 -0
  25. data/lib/google/cloud/compute/v1/global_operations.rb +1 -0
  26. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
  27. data/lib/google/cloud/compute/v1/global_organization_operations/rest/nonstandard_lro.rb +68 -0
  28. data/lib/google/cloud/compute/v1/global_organization_operations.rb +1 -0
  29. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +47 -13
  30. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +55 -14
  31. data/lib/google/cloud/compute/v1/images/rest/client.rb +64 -16
  32. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +172 -47
  33. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +71 -18
  34. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +34 -7
  35. data/lib/google/cloud/compute/v1/instances/rest/client.rb +521 -96
  36. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +91 -0
  37. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +48 -11
  38. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
  39. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +44 -10
  40. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +34 -7
  41. data/lib/google/cloud/compute/v1/machine_images/credentials.rb +52 -0
  42. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +804 -0
  43. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +363 -0
  44. data/lib/google/cloud/compute/v1/machine_images/rest.rb +33 -0
  45. data/lib/google/cloud/compute/v1/machine_images.rb +44 -0
  46. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +2 -2
  47. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +60 -15
  48. data/lib/google/cloud/compute/v1/networks/rest/client.rb +85 -23
  49. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +82 -21
  50. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +37 -8
  51. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +2 -2
  52. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +48 -11
  53. data/lib/google/cloud/compute/v1/projects/rest/client.rb +107 -31
  54. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +47 -13
  55. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +51 -14
  56. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +58 -13
  57. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +58 -13
  58. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +116 -5
  59. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +48 -0
  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 +92 -23
  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 +171 -46
  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_notification_endpoints/rest/client.rb +38 -9
  69. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
  70. data/lib/google/cloud/compute/v1/region_operations/rest/nonstandard_lro.rb +68 -0
  71. data/lib/google/cloud/compute/v1/region_operations.rb +1 -0
  72. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +38 -9
  73. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +47 -10
  74. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +62 -17
  75. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +58 -13
  76. data/lib/google/cloud/compute/v1/regions/rest/client.rb +3 -3
  77. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +138 -11
  78. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +48 -0
  79. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +37 -8
  80. data/lib/google/cloud/compute/v1/routers/rest/client.rb +60 -15
  81. data/lib/google/cloud/compute/v1/routes/rest/client.rb +34 -7
  82. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +75 -20
  83. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +51 -14
  84. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +116 -7
  85. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +46 -0
  86. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +37 -10
  87. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +45 -11
  88. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +71 -18
  89. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +47 -13
  90. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +56 -15
  91. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +86 -24
  92. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +37 -8
  93. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +92 -23
  94. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +74 -19
  95. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +54 -13
  96. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +37 -8
  97. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +65 -17
  98. data/lib/google/cloud/compute/v1/version.rb +1 -1
  99. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +48 -11
  100. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +37 -8
  101. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
  102. data/lib/google/cloud/compute/v1/zone_operations/rest/nonstandard_lro.rb +68 -0
  103. data/lib/google/cloud/compute/v1/zone_operations.rb +1 -0
  104. data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
  105. data/lib/google/cloud/compute/v1.rb +3 -0
  106. data/proto_docs/README.md +1 -1
  107. data/proto_docs/google/api/resource.rb +10 -71
  108. data/proto_docs/google/cloud/compute/v1/compute.rb +1647 -330
  109. metadata +14 -7
@@ -171,6 +171,52 @@ module Google
171
171
  [uri, body, query_string_params]
172
172
  end
173
173
 
174
+ ##
175
+ # Baseline implementation for the insert REST call
176
+ #
177
+ # @param request_pb [::Google::Cloud::Compute::V1::InsertSnapshotRequest]
178
+ # A request object representing the call parameters. Required.
179
+ # @param options [::Gapic::CallOptions]
180
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
181
+ #
182
+ # @yield [result, response] Access the result along with the Faraday response object
183
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
184
+ # @yieldparam response [::Faraday::Response]
185
+ #
186
+ # @return [::Google::Cloud::Compute::V1::Operation]
187
+ # A result object deserialized from the server's reply
188
+ def insert request_pb, options = nil
189
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
190
+
191
+ uri, body, query_string_params = transcode_insert_request request_pb
192
+ response = @client_stub.make_post_request(
193
+ uri: uri,
194
+ body: body,
195
+ params: query_string_params,
196
+ options: options
197
+ )
198
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
199
+
200
+ yield result, response if block_given?
201
+ result
202
+ end
203
+
204
+ ##
205
+ # GRPC transcoding helper method for the insert REST call
206
+ #
207
+ # @param request_pb [::Google::Cloud::Compute::V1::InsertSnapshotRequest]
208
+ # A request object representing the call parameters. Required.
209
+ # @return [Array(String, [String, nil], Hash{String => String})]
210
+ # Uri, Body, Query string parameters
211
+ def transcode_insert_request request_pb
212
+ uri = "/compute/v1/projects/#{request_pb.project}/global/snapshots"
213
+ body = request_pb.snapshot_resource.to_json
214
+ query_string_params = {}
215
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
216
+
217
+ [uri, body, query_string_params]
218
+ end
219
+
174
220
  ##
175
221
  # Baseline implementation for the list REST call
176
222
  #
@@ -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/ssl_certificates/rest/service_stub"
22
+ require "google/cloud/compute/v1/global_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
+ @global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
144
+ config.credentials = credentials
145
+ config.endpoint = @config.endpoint
146
+ end
147
+
142
148
  @ssl_certificates_stub = ::Google::Cloud::Compute::V1::SslCertificates::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
143
149
  end
144
150
 
151
+ ##
152
+ # Get the associated client for long-running operations via GlobalOperations.
153
+ #
154
+ # @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
155
+ #
156
+ attr_reader :global_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, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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. 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) ```
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]
@@ -241,14 +254,14 @@ module Google
241
254
  # @param project [::String]
242
255
  # Project ID for this request.
243
256
  # @param request_id [::String]
244
- # 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). end_interface: MixerMutationRequestBuilder
257
+ # 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).
245
258
  # @param ssl_certificate [::String]
246
259
  # Name of the SslCertificate resource to delete.
247
260
  # @yield [result, response] Access the result along with the Faraday response object
248
- # @yieldparam result [::Gapic::Rest::BaseOperation]
261
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
249
262
  # @yieldparam response [::Faraday::Response]
250
263
  #
251
- # @return [::Gapic::Rest::BaseOperation]
264
+ # @return [::Gapic::GenericLRO::Operation]
252
265
  #
253
266
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
254
267
  def delete request, options = nil
@@ -275,7 +288,14 @@ module Google
275
288
  metadata: @config.metadata
276
289
 
277
290
  @ssl_certificates_stub.delete request, options do |result, response|
278
- result = ::Gapic::Rest::BaseOperation.new result
291
+ result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
292
+ operation: result,
293
+ client: global_operations,
294
+ request_values: {
295
+ "project" => request.project
296
+ },
297
+ options: options
298
+ )
279
299
  yield result, response if block_given?
280
300
  return result
281
301
  end
@@ -370,14 +390,14 @@ module Google
370
390
  # @param project [::String]
371
391
  # Project ID for this request.
372
392
  # @param request_id [::String]
373
- # 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). end_interface: MixerMutationRequestBuilder
393
+ # 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).
374
394
  # @param ssl_certificate_resource [::Google::Cloud::Compute::V1::SslCertificate, ::Hash]
375
395
  # The body resource for this request
376
396
  # @yield [result, response] Access the result along with the Faraday response object
377
- # @yieldparam result [::Gapic::Rest::BaseOperation]
397
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
378
398
  # @yieldparam response [::Faraday::Response]
379
399
  #
380
- # @return [::Gapic::Rest::BaseOperation]
400
+ # @return [::Gapic::GenericLRO::Operation]
381
401
  #
382
402
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
383
403
  def insert request, options = nil
@@ -404,7 +424,14 @@ module Google
404
424
  metadata: @config.metadata
405
425
 
406
426
  @ssl_certificates_stub.insert request, options do |result, response|
407
- result = ::Gapic::Rest::BaseOperation.new result
427
+ result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
428
+ operation: result,
429
+ client: global_operations,
430
+ request_values: {
431
+ "project" => request.project
432
+ },
433
+ options: options
434
+ )
408
435
  yield result, response if block_given?
409
436
  return result
410
437
  end
@@ -434,7 +461,7 @@ module Google
434
461
  # the default parameter values, pass an empty Hash as a request object (see above).
435
462
  #
436
463
  # @param filter [::String]
437
- # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ```
464
+ # 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) ```
438
465
  # @param max_results [::Integer]
439
466
  # 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`)
440
467
  # @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/ssl_policies/rest/service_stub"
22
+ require "google/cloud/compute/v1/global_operations/rest"
22
23
 
23
24
  module Google
24
25
  module Cloud
@@ -141,9 +142,21 @@ module Google
141
142
  credentials = Credentials.new credentials, scope: @config.scope
142
143
  end
143
144
 
145
+ @global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
146
+ config.credentials = credentials
147
+ config.endpoint = @config.endpoint
148
+ end
149
+
144
150
  @ssl_policies_stub = ::Google::Cloud::Compute::V1::SslPolicies::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
145
151
  end
146
152
 
153
+ ##
154
+ # Get the associated client for long-running operations via GlobalOperations.
155
+ #
156
+ # @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
157
+ #
158
+ attr_reader :global_operations
159
+
147
160
  # Service calls
148
161
 
149
162
  ##
@@ -173,10 +186,10 @@ module Google
173
186
  # @param ssl_policy [::String]
174
187
  # Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035.
175
188
  # @yield [result, response] Access the result along with the Faraday response object
176
- # @yieldparam result [::Gapic::Rest::BaseOperation]
189
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
177
190
  # @yieldparam response [::Faraday::Response]
178
191
  #
179
- # @return [::Gapic::Rest::BaseOperation]
192
+ # @return [::Gapic::GenericLRO::Operation]
180
193
  #
181
194
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
182
195
  def delete request, options = nil
@@ -203,7 +216,14 @@ module Google
203
216
  metadata: @config.metadata
204
217
 
205
218
  @ssl_policies_stub.delete request, options do |result, response|
206
- result = ::Gapic::Rest::BaseOperation.new result
219
+ result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
220
+ operation: result,
221
+ client: global_operations,
222
+ request_values: {
223
+ "project" => request.project
224
+ },
225
+ options: options
226
+ )
207
227
  yield result, response if block_given?
208
228
  return result
209
229
  end
@@ -302,10 +322,10 @@ module Google
302
322
  # @param ssl_policy_resource [::Google::Cloud::Compute::V1::SslPolicy, ::Hash]
303
323
  # The body resource for this request
304
324
  # @yield [result, response] Access the result along with the Faraday response object
305
- # @yieldparam result [::Gapic::Rest::BaseOperation]
325
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
306
326
  # @yieldparam response [::Faraday::Response]
307
327
  #
308
- # @return [::Gapic::Rest::BaseOperation]
328
+ # @return [::Gapic::GenericLRO::Operation]
309
329
  #
310
330
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
311
331
  def insert request, options = nil
@@ -332,7 +352,14 @@ module Google
332
352
  metadata: @config.metadata
333
353
 
334
354
  @ssl_policies_stub.insert request, options do |result, response|
335
- result = ::Gapic::Rest::BaseOperation.new result
355
+ result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
356
+ operation: result,
357
+ client: global_operations,
358
+ request_values: {
359
+ "project" => request.project
360
+ },
361
+ options: options
362
+ )
336
363
  yield result, response if block_given?
337
364
  return result
338
365
  end
@@ -362,7 +389,7 @@ module Google
362
389
  # the default parameter values, pass an empty Hash as a request object (see above).
363
390
  #
364
391
  # @param filter [::String]
365
- # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ```
392
+ # 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) ```
366
393
  # @param max_results [::Integer]
367
394
  # 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`)
368
395
  # @param order_by [::String]
@@ -434,7 +461,7 @@ module Google
434
461
  # the default parameter values, pass an empty Hash as a request object (see above).
435
462
  #
436
463
  # @param filter [::String]
437
- # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ```
464
+ # 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) ```
438
465
  # @param max_results [::Integer]
439
466
  # 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`)
440
467
  # @param order_by [::String]
@@ -513,10 +540,10 @@ module Google
513
540
  # @param ssl_policy_resource [::Google::Cloud::Compute::V1::SslPolicy, ::Hash]
514
541
  # The body resource for this request
515
542
  # @yield [result, response] Access the result along with the Faraday response object
516
- # @yieldparam result [::Gapic::Rest::BaseOperation]
543
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
517
544
  # @yieldparam response [::Faraday::Response]
518
545
  #
519
- # @return [::Gapic::Rest::BaseOperation]
546
+ # @return [::Gapic::GenericLRO::Operation]
520
547
  #
521
548
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
522
549
  def patch request, options = nil
@@ -543,7 +570,14 @@ module Google
543
570
  metadata: @config.metadata
544
571
 
545
572
  @ssl_policies_stub.patch request, options do |result, response|
546
- result = ::Gapic::Rest::BaseOperation.new result
573
+ result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
574
+ operation: result,
575
+ client: global_operations,
576
+ request_values: {
577
+ "project" => request.project
578
+ },
579
+ options: options
580
+ )
547
581
  yield result, response if block_given?
548
582
  return result
549
583
  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/subnetworks/rest/service_stub"
22
+ require "google/cloud/compute/v1/region_operations/rest"
22
23
 
23
24
  module Google
24
25
  module Cloud
@@ -159,9 +160,21 @@ module Google
159
160
  credentials = Credentials.new credentials, scope: @config.scope
160
161
  end
161
162
 
163
+ @region_operations = ::Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new do |config|
164
+ config.credentials = credentials
165
+ config.endpoint = @config.endpoint
166
+ end
167
+
162
168
  @subnetworks_stub = ::Google::Cloud::Compute::V1::Subnetworks::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
163
169
  end
164
170
 
171
+ ##
172
+ # Get the associated client for long-running operations via RegionOperations.
173
+ #
174
+ # @return [::Google::Cloud::Compute::V1::RegionOperations::Rest::Client]
175
+ #
176
+ attr_reader :region_operations
177
+
165
178
  # Service calls
166
179
 
167
180
  ##
@@ -185,7 +198,7 @@ module Google
185
198
  # the default parameter values, pass an empty Hash as a request object (see above).
186
199
  #
187
200
  # @param filter [::String]
188
- # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ```
201
+ # 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) ```
189
202
  # @param include_all_scopes [::Boolean]
190
203
  # 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.
191
204
  # @param max_results [::Integer]
@@ -267,10 +280,10 @@ module Google
267
280
  # @param subnetwork [::String]
268
281
  # Name of the Subnetwork resource to delete.
269
282
  # @yield [result, response] Access the result along with the Faraday response object
270
- # @yieldparam result [::Gapic::Rest::BaseOperation]
283
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
271
284
  # @yieldparam response [::Faraday::Response]
272
285
  #
273
- # @return [::Gapic::Rest::BaseOperation]
286
+ # @return [::Gapic::GenericLRO::Operation]
274
287
  #
275
288
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
276
289
  def delete request, options = nil
@@ -297,7 +310,15 @@ module Google
297
310
  metadata: @config.metadata
298
311
 
299
312
  @subnetworks_stub.delete request, options do |result, response|
300
- 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
+ )
301
322
  yield result, response if block_given?
302
323
  return result
303
324
  end
@@ -337,10 +358,10 @@ module Google
337
358
  # @param subnetworks_expand_ip_cidr_range_request_resource [::Google::Cloud::Compute::V1::SubnetworksExpandIpCidrRangeRequest, ::Hash]
338
359
  # The body resource for this request
339
360
  # @yield [result, response] Access the result along with the Faraday response object
340
- # @yieldparam result [::Gapic::Rest::BaseOperation]
361
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
341
362
  # @yieldparam response [::Faraday::Response]
342
363
  #
343
- # @return [::Gapic::Rest::BaseOperation]
364
+ # @return [::Gapic::GenericLRO::Operation]
344
365
  #
345
366
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
346
367
  def expand_ip_cidr_range request, options = nil
@@ -367,7 +388,15 @@ module Google
367
388
  metadata: @config.metadata
368
389
 
369
390
  @subnetworks_stub.expand_ip_cidr_range request, options do |result, response|
370
- result = ::Gapic::Rest::BaseOperation.new result
391
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
392
+ operation: result,
393
+ client: region_operations,
394
+ request_values: {
395
+ "project" => request.project,
396
+ "region" => request.region
397
+ },
398
+ options: options
399
+ )
371
400
  yield result, response if block_given?
372
401
  return result
373
402
  end
@@ -537,10 +566,10 @@ module Google
537
566
  # @param subnetwork_resource [::Google::Cloud::Compute::V1::Subnetwork, ::Hash]
538
567
  # The body resource for this request
539
568
  # @yield [result, response] Access the result along with the Faraday response object
540
- # @yieldparam result [::Gapic::Rest::BaseOperation]
569
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
541
570
  # @yieldparam response [::Faraday::Response]
542
571
  #
543
- # @return [::Gapic::Rest::BaseOperation]
572
+ # @return [::Gapic::GenericLRO::Operation]
544
573
  #
545
574
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
546
575
  def insert request, options = nil
@@ -567,7 +596,15 @@ module Google
567
596
  metadata: @config.metadata
568
597
 
569
598
  @subnetworks_stub.insert request, options do |result, response|
570
- 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
+ )
571
608
  yield result, response if block_given?
572
609
  return result
573
610
  end
@@ -597,7 +634,7 @@ module Google
597
634
  # the default parameter values, pass an empty Hash as a request object (see above).
598
635
  #
599
636
  # @param filter [::String]
600
- # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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. 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) ```
601
638
  # @param max_results [::Integer]
602
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`)
603
640
  # @param order_by [::String]
@@ -671,7 +708,7 @@ module Google
671
708
  # the default parameter values, pass an empty Hash as a request object (see above).
672
709
  #
673
710
  # @param filter [::String]
674
- # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ```
711
+ # 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) ```
675
712
  # @param max_results [::Integer]
676
713
  # 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`)
677
714
  # @param order_by [::String]
@@ -755,10 +792,10 @@ module Google
755
792
  # @param subnetwork_resource [::Google::Cloud::Compute::V1::Subnetwork, ::Hash]
756
793
  # The body resource for this request
757
794
  # @yield [result, response] Access the result along with the Faraday response object
758
- # @yieldparam result [::Gapic::Rest::BaseOperation]
795
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
759
796
  # @yieldparam response [::Faraday::Response]
760
797
  #
761
- # @return [::Gapic::Rest::BaseOperation]
798
+ # @return [::Gapic::GenericLRO::Operation]
762
799
  #
763
800
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
764
801
  def patch request, options = nil
@@ -785,7 +822,15 @@ module Google
785
822
  metadata: @config.metadata
786
823
 
787
824
  @subnetworks_stub.patch request, options do |result, response|
788
- result = ::Gapic::Rest::BaseOperation.new result
825
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
826
+ operation: result,
827
+ client: region_operations,
828
+ request_values: {
829
+ "project" => request.project,
830
+ "region" => request.region
831
+ },
832
+ options: options
833
+ )
789
834
  yield result, response if block_given?
790
835
  return result
791
836
  end
@@ -892,10 +937,10 @@ module Google
892
937
  # @param subnetworks_set_private_ip_google_access_request_resource [::Google::Cloud::Compute::V1::SubnetworksSetPrivateIpGoogleAccessRequest, ::Hash]
893
938
  # The body resource for this request
894
939
  # @yield [result, response] Access the result along with the Faraday response object
895
- # @yieldparam result [::Gapic::Rest::BaseOperation]
940
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
896
941
  # @yieldparam response [::Faraday::Response]
897
942
  #
898
- # @return [::Gapic::Rest::BaseOperation]
943
+ # @return [::Gapic::GenericLRO::Operation]
899
944
  #
900
945
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
901
946
  def set_private_ip_google_access request, options = nil
@@ -922,7 +967,15 @@ module Google
922
967
  metadata: @config.metadata
923
968
 
924
969
  @subnetworks_stub.set_private_ip_google_access request, options do |result, response|
925
- result = ::Gapic::Rest::BaseOperation.new result
970
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
971
+ operation: result,
972
+ client: region_operations,
973
+ request_values: {
974
+ "project" => request.project,
975
+ "region" => request.region
976
+ },
977
+ options: options
978
+ )
926
979
  yield result, response if block_given?
927
980
  return result
928
981
  end