google-cloud-compute-v1 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +35 -6
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +57 -12
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +83 -21
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +93 -24
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +90 -21
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +43 -9
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +97 -30
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +53 -12
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +68 -15
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +33 -6
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +63 -15
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +53 -12
- data/lib/google/cloud/compute/v1/global_operations/rest/nonstandard_lro.rb +68 -0
- data/lib/google/cloud/compute/v1/global_operations.rb +1 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/nonstandard_lro.rb +68 -0
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +1 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +43 -9
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +53 -12
- data/lib/google/cloud/compute/v1/images/rest/client.rb +63 -15
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +167 -42
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +68 -15
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +33 -6
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +365 -96
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +46 -9
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +43 -9
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +33 -6
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +33 -6
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +57 -12
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +83 -21
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +79 -18
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +35 -6
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +46 -9
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +103 -27
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +43 -9
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +46 -9
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +57 -12
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +57 -12
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +35 -6
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +90 -21
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +46 -9
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +57 -12
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +167 -42
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +24 -3
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +24 -3
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +35 -6
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +35 -6
- data/lib/google/cloud/compute/v1/region_operations/rest/nonstandard_lro.rb +68 -0
- data/lib/google/cloud/compute/v1/region_operations.rb +1 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +35 -6
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +46 -9
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +57 -12
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +57 -12
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +57 -12
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +35 -6
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +57 -12
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +33 -6
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +73 -18
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +46 -9
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +43 -9
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +33 -6
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +43 -9
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +68 -15
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +43 -9
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +53 -12
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +83 -21
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +35 -6
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +90 -21
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +73 -18
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +53 -12
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +35 -6
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +63 -15
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +46 -9
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +35 -6
- data/lib/google/cloud/compute/v1/zone_operations/rest/nonstandard_lro.rb +68 -0
- data/lib/google/cloud/compute/v1/zone_operations.rb +1 -0
- data/lib/google/cloud/compute/v1.rb +2 -0
- metadata +6 -2
@@ -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/global_public_delegated_prefixes/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/global_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
|
+
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
|
141
|
+
config.credentials = credentials
|
142
|
+
config.endpoint = @config.endpoint
|
143
|
+
end
|
144
|
+
|
139
145
|
@global_public_delegated_prefixes_stub = ::Google::Cloud::Compute::V1::GlobalPublicDelegatedPrefixes::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
140
146
|
end
|
141
147
|
|
148
|
+
##
|
149
|
+
# Get the associated client for long-running operations via GlobalOperations.
|
150
|
+
#
|
151
|
+
# @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
|
152
|
+
#
|
153
|
+
attr_reader :global_operations
|
154
|
+
|
142
155
|
# Service calls
|
143
156
|
|
144
157
|
##
|
@@ -168,10 +181,10 @@ module Google
|
|
168
181
|
# @param request_id [::String]
|
169
182
|
# 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).
|
170
183
|
# @yield [result, response] Access the result along with the Faraday response object
|
171
|
-
# @yieldparam result [::Gapic::
|
184
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
172
185
|
# @yieldparam response [::Faraday::Response]
|
173
186
|
#
|
174
|
-
# @return [::Gapic::
|
187
|
+
# @return [::Gapic::GenericLRO::Operation]
|
175
188
|
#
|
176
189
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
177
190
|
def delete request, options = nil
|
@@ -198,7 +211,14 @@ module Google
|
|
198
211
|
metadata: @config.metadata
|
199
212
|
|
200
213
|
@global_public_delegated_prefixes_stub.delete request, options do |result, response|
|
201
|
-
result = ::
|
214
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
215
|
+
operation: result,
|
216
|
+
client: global_operations,
|
217
|
+
request_values: {
|
218
|
+
"project" => request.project
|
219
|
+
},
|
220
|
+
options: options
|
221
|
+
)
|
202
222
|
yield result, response if block_given?
|
203
223
|
return result
|
204
224
|
end
|
@@ -297,10 +317,10 @@ module Google
|
|
297
317
|
# @param request_id [::String]
|
298
318
|
# 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).
|
299
319
|
# @yield [result, response] Access the result along with the Faraday response object
|
300
|
-
# @yieldparam result [::Gapic::
|
320
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
301
321
|
# @yieldparam response [::Faraday::Response]
|
302
322
|
#
|
303
|
-
# @return [::Gapic::
|
323
|
+
# @return [::Gapic::GenericLRO::Operation]
|
304
324
|
#
|
305
325
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
306
326
|
def insert request, options = nil
|
@@ -327,7 +347,14 @@ module Google
|
|
327
347
|
metadata: @config.metadata
|
328
348
|
|
329
349
|
@global_public_delegated_prefixes_stub.insert request, options do |result, response|
|
330
|
-
result = ::
|
350
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
351
|
+
operation: result,
|
352
|
+
client: global_operations,
|
353
|
+
request_values: {
|
354
|
+
"project" => request.project
|
355
|
+
},
|
356
|
+
options: options
|
357
|
+
)
|
331
358
|
yield result, response if block_given?
|
332
359
|
return result
|
333
360
|
end
|
@@ -437,10 +464,10 @@ module Google
|
|
437
464
|
# @param request_id [::String]
|
438
465
|
# 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).
|
439
466
|
# @yield [result, response] Access the result along with the Faraday response object
|
440
|
-
# @yieldparam result [::Gapic::
|
467
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
441
468
|
# @yieldparam response [::Faraday::Response]
|
442
469
|
#
|
443
|
-
# @return [::Gapic::
|
470
|
+
# @return [::Gapic::GenericLRO::Operation]
|
444
471
|
#
|
445
472
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
446
473
|
def patch request, options = nil
|
@@ -467,7 +494,14 @@ module Google
|
|
467
494
|
metadata: @config.metadata
|
468
495
|
|
469
496
|
@global_public_delegated_prefixes_stub.patch request, options do |result, response|
|
470
|
-
result = ::
|
497
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
498
|
+
operation: result,
|
499
|
+
client: global_operations,
|
500
|
+
request_values: {
|
501
|
+
"project" => request.project
|
502
|
+
},
|
503
|
+
options: options
|
504
|
+
)
|
471
505
|
yield result, response if block_given?
|
472
506
|
return result
|
473
507
|
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/health_checks/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/global_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -143,9 +144,21 @@ module Google
|
|
143
144
|
credentials = Credentials.new credentials, scope: @config.scope
|
144
145
|
end
|
145
146
|
|
147
|
+
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
|
148
|
+
config.credentials = credentials
|
149
|
+
config.endpoint = @config.endpoint
|
150
|
+
end
|
151
|
+
|
146
152
|
@health_checks_stub = ::Google::Cloud::Compute::V1::HealthChecks::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
147
153
|
end
|
148
154
|
|
155
|
+
##
|
156
|
+
# Get the associated client for long-running operations via GlobalOperations.
|
157
|
+
#
|
158
|
+
# @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
|
159
|
+
#
|
160
|
+
attr_reader :global_operations
|
161
|
+
|
149
162
|
# Service calls
|
150
163
|
|
151
164
|
##
|
@@ -249,10 +262,10 @@ module Google
|
|
249
262
|
# @param request_id [::String]
|
250
263
|
# 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).
|
251
264
|
# @yield [result, response] Access the result along with the Faraday response object
|
252
|
-
# @yieldparam result [::Gapic::
|
265
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
253
266
|
# @yieldparam response [::Faraday::Response]
|
254
267
|
#
|
255
|
-
# @return [::Gapic::
|
268
|
+
# @return [::Gapic::GenericLRO::Operation]
|
256
269
|
#
|
257
270
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
258
271
|
def delete request, options = nil
|
@@ -279,7 +292,14 @@ module Google
|
|
279
292
|
metadata: @config.metadata
|
280
293
|
|
281
294
|
@health_checks_stub.delete request, options do |result, response|
|
282
|
-
result = ::
|
295
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
296
|
+
operation: result,
|
297
|
+
client: global_operations,
|
298
|
+
request_values: {
|
299
|
+
"project" => request.project
|
300
|
+
},
|
301
|
+
options: options
|
302
|
+
)
|
283
303
|
yield result, response if block_given?
|
284
304
|
return result
|
285
305
|
end
|
@@ -378,10 +398,10 @@ module Google
|
|
378
398
|
# @param request_id [::String]
|
379
399
|
# 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).
|
380
400
|
# @yield [result, response] Access the result along with the Faraday response object
|
381
|
-
# @yieldparam result [::Gapic::
|
401
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
382
402
|
# @yieldparam response [::Faraday::Response]
|
383
403
|
#
|
384
|
-
# @return [::Gapic::
|
404
|
+
# @return [::Gapic::GenericLRO::Operation]
|
385
405
|
#
|
386
406
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
387
407
|
def insert request, options = nil
|
@@ -408,7 +428,14 @@ module Google
|
|
408
428
|
metadata: @config.metadata
|
409
429
|
|
410
430
|
@health_checks_stub.insert request, options do |result, response|
|
411
|
-
result = ::
|
431
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
432
|
+
operation: result,
|
433
|
+
client: global_operations,
|
434
|
+
request_values: {
|
435
|
+
"project" => request.project
|
436
|
+
},
|
437
|
+
options: options
|
438
|
+
)
|
412
439
|
yield result, response if block_given?
|
413
440
|
return result
|
414
441
|
end
|
@@ -518,10 +545,10 @@ module Google
|
|
518
545
|
# @param request_id [::String]
|
519
546
|
# 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).
|
520
547
|
# @yield [result, response] Access the result along with the Faraday response object
|
521
|
-
# @yieldparam result [::Gapic::
|
548
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
522
549
|
# @yieldparam response [::Faraday::Response]
|
523
550
|
#
|
524
|
-
# @return [::Gapic::
|
551
|
+
# @return [::Gapic::GenericLRO::Operation]
|
525
552
|
#
|
526
553
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
527
554
|
def patch request, options = nil
|
@@ -548,7 +575,14 @@ module Google
|
|
548
575
|
metadata: @config.metadata
|
549
576
|
|
550
577
|
@health_checks_stub.patch request, options do |result, response|
|
551
|
-
result = ::
|
578
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
579
|
+
operation: result,
|
580
|
+
client: global_operations,
|
581
|
+
request_values: {
|
582
|
+
"project" => request.project
|
583
|
+
},
|
584
|
+
options: options
|
585
|
+
)
|
552
586
|
yield result, response if block_given?
|
553
587
|
return result
|
554
588
|
end
|
@@ -586,10 +620,10 @@ module Google
|
|
586
620
|
# @param request_id [::String]
|
587
621
|
# 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).
|
588
622
|
# @yield [result, response] Access the result along with the Faraday response object
|
589
|
-
# @yieldparam result [::Gapic::
|
623
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
590
624
|
# @yieldparam response [::Faraday::Response]
|
591
625
|
#
|
592
|
-
# @return [::Gapic::
|
626
|
+
# @return [::Gapic::GenericLRO::Operation]
|
593
627
|
#
|
594
628
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
595
629
|
def update request, options = nil
|
@@ -616,7 +650,14 @@ module Google
|
|
616
650
|
metadata: @config.metadata
|
617
651
|
|
618
652
|
@health_checks_stub.update request, options do |result, response|
|
619
|
-
result = ::
|
653
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
654
|
+
operation: result,
|
655
|
+
client: global_operations,
|
656
|
+
request_values: {
|
657
|
+
"project" => request.project
|
658
|
+
},
|
659
|
+
options: options
|
660
|
+
)
|
620
661
|
yield result, response if block_given?
|
621
662
|
return result
|
622
663
|
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/images/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/global_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -154,9 +155,21 @@ module Google
|
|
154
155
|
credentials = Credentials.new credentials, scope: @config.scope
|
155
156
|
end
|
156
157
|
|
158
|
+
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
|
159
|
+
config.credentials = credentials
|
160
|
+
config.endpoint = @config.endpoint
|
161
|
+
end
|
162
|
+
|
157
163
|
@images_stub = ::Google::Cloud::Compute::V1::Images::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
158
164
|
end
|
159
165
|
|
166
|
+
##
|
167
|
+
# Get the associated client for long-running operations via GlobalOperations.
|
168
|
+
#
|
169
|
+
# @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
|
170
|
+
#
|
171
|
+
attr_reader :global_operations
|
172
|
+
|
160
173
|
# Service calls
|
161
174
|
|
162
175
|
##
|
@@ -186,10 +199,10 @@ module Google
|
|
186
199
|
# @param request_id [::String]
|
187
200
|
# 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).
|
188
201
|
# @yield [result, response] Access the result along with the Faraday response object
|
189
|
-
# @yieldparam result [::Gapic::
|
202
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
190
203
|
# @yieldparam response [::Faraday::Response]
|
191
204
|
#
|
192
|
-
# @return [::Gapic::
|
205
|
+
# @return [::Gapic::GenericLRO::Operation]
|
193
206
|
#
|
194
207
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
195
208
|
def delete request, options = nil
|
@@ -216,7 +229,14 @@ module Google
|
|
216
229
|
metadata: @config.metadata
|
217
230
|
|
218
231
|
@images_stub.delete request, options do |result, response|
|
219
|
-
result = ::
|
232
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
233
|
+
operation: result,
|
234
|
+
client: global_operations,
|
235
|
+
request_values: {
|
236
|
+
"project" => request.project
|
237
|
+
},
|
238
|
+
options: options
|
239
|
+
)
|
220
240
|
yield result, response if block_given?
|
221
241
|
return result
|
222
242
|
end
|
@@ -254,10 +274,10 @@ module Google
|
|
254
274
|
# @param request_id [::String]
|
255
275
|
# 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).
|
256
276
|
# @yield [result, response] Access the result along with the Faraday response object
|
257
|
-
# @yieldparam result [::Gapic::
|
277
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
258
278
|
# @yieldparam response [::Faraday::Response]
|
259
279
|
#
|
260
|
-
# @return [::Gapic::
|
280
|
+
# @return [::Gapic::GenericLRO::Operation]
|
261
281
|
#
|
262
282
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
263
283
|
def deprecate request, options = nil
|
@@ -284,7 +304,14 @@ module Google
|
|
284
304
|
metadata: @config.metadata
|
285
305
|
|
286
306
|
@images_stub.deprecate request, options do |result, response|
|
287
|
-
result = ::
|
307
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
308
|
+
operation: result,
|
309
|
+
client: global_operations,
|
310
|
+
request_values: {
|
311
|
+
"project" => request.project
|
312
|
+
},
|
313
|
+
options: options
|
314
|
+
)
|
288
315
|
yield result, response if block_given?
|
289
316
|
return result
|
290
317
|
end
|
@@ -513,10 +540,10 @@ module Google
|
|
513
540
|
# @param request_id [::String]
|
514
541
|
# 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).
|
515
542
|
# @yield [result, response] Access the result along with the Faraday response object
|
516
|
-
# @yieldparam result [::Gapic::
|
543
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
517
544
|
# @yieldparam response [::Faraday::Response]
|
518
545
|
#
|
519
|
-
# @return [::Gapic::
|
546
|
+
# @return [::Gapic::GenericLRO::Operation]
|
520
547
|
#
|
521
548
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
522
549
|
def insert request, options = nil
|
@@ -543,7 +570,14 @@ module Google
|
|
543
570
|
metadata: @config.metadata
|
544
571
|
|
545
572
|
@images_stub.insert request, options do |result, response|
|
546
|
-
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
|
@@ -653,10 +687,10 @@ module Google
|
|
653
687
|
# @param request_id [::String]
|
654
688
|
# 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).
|
655
689
|
# @yield [result, response] Access the result along with the Faraday response object
|
656
|
-
# @yieldparam result [::Gapic::
|
690
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
657
691
|
# @yieldparam response [::Faraday::Response]
|
658
692
|
#
|
659
|
-
# @return [::Gapic::
|
693
|
+
# @return [::Gapic::GenericLRO::Operation]
|
660
694
|
#
|
661
695
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
662
696
|
def patch request, options = nil
|
@@ -683,7 +717,14 @@ module Google
|
|
683
717
|
metadata: @config.metadata
|
684
718
|
|
685
719
|
@images_stub.patch request, options do |result, response|
|
686
|
-
result = ::
|
720
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
721
|
+
operation: result,
|
722
|
+
client: global_operations,
|
723
|
+
request_values: {
|
724
|
+
"project" => request.project
|
725
|
+
},
|
726
|
+
options: options
|
727
|
+
)
|
687
728
|
yield result, response if block_given?
|
688
729
|
return result
|
689
730
|
end
|
@@ -784,10 +825,10 @@ module Google
|
|
784
825
|
# @param resource [::String]
|
785
826
|
# Name or id of the resource for this request.
|
786
827
|
# @yield [result, response] Access the result along with the Faraday response object
|
787
|
-
# @yieldparam result [::Gapic::
|
828
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
788
829
|
# @yieldparam response [::Faraday::Response]
|
789
830
|
#
|
790
|
-
# @return [::Gapic::
|
831
|
+
# @return [::Gapic::GenericLRO::Operation]
|
791
832
|
#
|
792
833
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
793
834
|
def set_labels request, options = nil
|
@@ -814,7 +855,14 @@ module Google
|
|
814
855
|
metadata: @config.metadata
|
815
856
|
|
816
857
|
@images_stub.set_labels request, options do |result, response|
|
817
|
-
result = ::
|
858
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
859
|
+
operation: result,
|
860
|
+
client: global_operations,
|
861
|
+
request_values: {
|
862
|
+
"project" => request.project
|
863
|
+
},
|
864
|
+
options: options
|
865
|
+
)
|
818
866
|
yield result, response if block_given?
|
819
867
|
return result
|
820
868
|
end
|