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/target_instances/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/zone_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
|
+
@zone_operations = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client.new do |config|
|
144
|
+
config.credentials = credentials
|
145
|
+
config.endpoint = @config.endpoint
|
146
|
+
end
|
147
|
+
|
142
148
|
@target_instances_stub = ::Google::Cloud::Compute::V1::TargetInstances::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
143
149
|
end
|
144
150
|
|
151
|
+
##
|
152
|
+
# Get the associated client for long-running operations via ZoneOperations.
|
153
|
+
#
|
154
|
+
# @return [::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client]
|
155
|
+
#
|
156
|
+
attr_reader :zone_operations
|
157
|
+
|
145
158
|
# Service calls
|
146
159
|
|
147
160
|
##
|
@@ -247,10 +260,10 @@ module Google
|
|
247
260
|
# @param zone [::String]
|
248
261
|
# Name of the zone scoping this request.
|
249
262
|
# @yield [result, response] Access the result along with the Faraday response object
|
250
|
-
# @yieldparam result [::Gapic::
|
263
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
251
264
|
# @yieldparam response [::Faraday::Response]
|
252
265
|
#
|
253
|
-
# @return [::Gapic::
|
266
|
+
# @return [::Gapic::GenericLRO::Operation]
|
254
267
|
#
|
255
268
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
256
269
|
def delete request, options = nil
|
@@ -277,7 +290,15 @@ module Google
|
|
277
290
|
metadata: @config.metadata
|
278
291
|
|
279
292
|
@target_instances_stub.delete request, options do |result, response|
|
280
|
-
result = ::
|
293
|
+
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
294
|
+
operation: result,
|
295
|
+
client: zone_operations,
|
296
|
+
request_values: {
|
297
|
+
"project" => request.project,
|
298
|
+
"zone" => request.zone
|
299
|
+
},
|
300
|
+
options: options
|
301
|
+
)
|
281
302
|
yield result, response if block_given?
|
282
303
|
return result
|
283
304
|
end
|
@@ -380,10 +401,10 @@ module Google
|
|
380
401
|
# @param zone [::String]
|
381
402
|
# Name of the zone scoping this request.
|
382
403
|
# @yield [result, response] Access the result along with the Faraday response object
|
383
|
-
# @yieldparam result [::Gapic::
|
404
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
384
405
|
# @yieldparam response [::Faraday::Response]
|
385
406
|
#
|
386
|
-
# @return [::Gapic::
|
407
|
+
# @return [::Gapic::GenericLRO::Operation]
|
387
408
|
#
|
388
409
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
389
410
|
def insert request, options = nil
|
@@ -410,7 +431,15 @@ module Google
|
|
410
431
|
metadata: @config.metadata
|
411
432
|
|
412
433
|
@target_instances_stub.insert request, options do |result, response|
|
413
|
-
result = ::
|
434
|
+
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
435
|
+
operation: result,
|
436
|
+
client: zone_operations,
|
437
|
+
request_values: {
|
438
|
+
"project" => request.project,
|
439
|
+
"zone" => request.zone
|
440
|
+
},
|
441
|
+
options: options
|
442
|
+
)
|
414
443
|
yield result, response if block_given?
|
415
444
|
return result
|
416
445
|
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/target_pools/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/region_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -151,9 +152,21 @@ module Google
|
|
151
152
|
credentials = Credentials.new credentials, scope: @config.scope
|
152
153
|
end
|
153
154
|
|
155
|
+
@region_operations = ::Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new do |config|
|
156
|
+
config.credentials = credentials
|
157
|
+
config.endpoint = @config.endpoint
|
158
|
+
end
|
159
|
+
|
154
160
|
@target_pools_stub = ::Google::Cloud::Compute::V1::TargetPools::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
155
161
|
end
|
156
162
|
|
163
|
+
##
|
164
|
+
# Get the associated client for long-running operations via RegionOperations.
|
165
|
+
#
|
166
|
+
# @return [::Google::Cloud::Compute::V1::RegionOperations::Rest::Client]
|
167
|
+
#
|
168
|
+
attr_reader :region_operations
|
169
|
+
|
157
170
|
# Service calls
|
158
171
|
|
159
172
|
##
|
@@ -187,10 +200,10 @@ module Google
|
|
187
200
|
# @param target_pools_add_health_check_request_resource [::Google::Cloud::Compute::V1::TargetPoolsAddHealthCheckRequest, ::Hash]
|
188
201
|
# The body resource for this request
|
189
202
|
# @yield [result, response] Access the result along with the Faraday response object
|
190
|
-
# @yieldparam result [::Gapic::
|
203
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
191
204
|
# @yieldparam response [::Faraday::Response]
|
192
205
|
#
|
193
|
-
# @return [::Gapic::
|
206
|
+
# @return [::Gapic::GenericLRO::Operation]
|
194
207
|
#
|
195
208
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
196
209
|
def add_health_check request, options = nil
|
@@ -217,7 +230,15 @@ module Google
|
|
217
230
|
metadata: @config.metadata
|
218
231
|
|
219
232
|
@target_pools_stub.add_health_check request, options do |result, response|
|
220
|
-
result = ::
|
233
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
234
|
+
operation: result,
|
235
|
+
client: region_operations,
|
236
|
+
request_values: {
|
237
|
+
"project" => request.project,
|
238
|
+
"region" => request.region
|
239
|
+
},
|
240
|
+
options: options
|
241
|
+
)
|
221
242
|
yield result, response if block_given?
|
222
243
|
return result
|
223
244
|
end
|
@@ -257,10 +278,10 @@ module Google
|
|
257
278
|
# @param target_pools_add_instance_request_resource [::Google::Cloud::Compute::V1::TargetPoolsAddInstanceRequest, ::Hash]
|
258
279
|
# The body resource for this request
|
259
280
|
# @yield [result, response] Access the result along with the Faraday response object
|
260
|
-
# @yieldparam result [::Gapic::
|
281
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
261
282
|
# @yieldparam response [::Faraday::Response]
|
262
283
|
#
|
263
|
-
# @return [::Gapic::
|
284
|
+
# @return [::Gapic::GenericLRO::Operation]
|
264
285
|
#
|
265
286
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
266
287
|
def add_instance request, options = nil
|
@@ -287,7 +308,15 @@ module Google
|
|
287
308
|
metadata: @config.metadata
|
288
309
|
|
289
310
|
@target_pools_stub.add_instance request, options do |result, response|
|
290
|
-
result = ::
|
311
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
312
|
+
operation: result,
|
313
|
+
client: region_operations,
|
314
|
+
request_values: {
|
315
|
+
"project" => request.project,
|
316
|
+
"region" => request.region
|
317
|
+
},
|
318
|
+
options: options
|
319
|
+
)
|
291
320
|
yield result, response if block_given?
|
292
321
|
return result
|
293
322
|
end
|
@@ -399,10 +428,10 @@ module Google
|
|
399
428
|
# @param target_pool [::String]
|
400
429
|
# Name of the TargetPool resource to delete.
|
401
430
|
# @yield [result, response] Access the result along with the Faraday response object
|
402
|
-
# @yieldparam result [::Gapic::
|
431
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
403
432
|
# @yieldparam response [::Faraday::Response]
|
404
433
|
#
|
405
|
-
# @return [::Gapic::
|
434
|
+
# @return [::Gapic::GenericLRO::Operation]
|
406
435
|
#
|
407
436
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
408
437
|
def delete request, options = nil
|
@@ -429,7 +458,15 @@ module Google
|
|
429
458
|
metadata: @config.metadata
|
430
459
|
|
431
460
|
@target_pools_stub.delete request, options do |result, response|
|
432
|
-
result = ::
|
461
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
462
|
+
operation: result,
|
463
|
+
client: region_operations,
|
464
|
+
request_values: {
|
465
|
+
"project" => request.project,
|
466
|
+
"region" => request.region
|
467
|
+
},
|
468
|
+
options: options
|
469
|
+
)
|
433
470
|
yield result, response if block_given?
|
434
471
|
return result
|
435
472
|
end
|
@@ -599,10 +636,10 @@ module Google
|
|
599
636
|
# @param target_pool_resource [::Google::Cloud::Compute::V1::TargetPool, ::Hash]
|
600
637
|
# The body resource for this request
|
601
638
|
# @yield [result, response] Access the result along with the Faraday response object
|
602
|
-
# @yieldparam result [::Gapic::
|
639
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
603
640
|
# @yieldparam response [::Faraday::Response]
|
604
641
|
#
|
605
|
-
# @return [::Gapic::
|
642
|
+
# @return [::Gapic::GenericLRO::Operation]
|
606
643
|
#
|
607
644
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
608
645
|
def insert request, options = nil
|
@@ -629,7 +666,15 @@ module Google
|
|
629
666
|
metadata: @config.metadata
|
630
667
|
|
631
668
|
@target_pools_stub.insert request, options do |result, response|
|
632
|
-
result = ::
|
669
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
670
|
+
operation: result,
|
671
|
+
client: region_operations,
|
672
|
+
request_values: {
|
673
|
+
"project" => request.project,
|
674
|
+
"region" => request.region
|
675
|
+
},
|
676
|
+
options: options
|
677
|
+
)
|
633
678
|
yield result, response if block_given?
|
634
679
|
return result
|
635
680
|
end
|
@@ -743,10 +788,10 @@ module Google
|
|
743
788
|
# @param target_pools_remove_health_check_request_resource [::Google::Cloud::Compute::V1::TargetPoolsRemoveHealthCheckRequest, ::Hash]
|
744
789
|
# The body resource for this request
|
745
790
|
# @yield [result, response] Access the result along with the Faraday response object
|
746
|
-
# @yieldparam result [::Gapic::
|
791
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
747
792
|
# @yieldparam response [::Faraday::Response]
|
748
793
|
#
|
749
|
-
# @return [::Gapic::
|
794
|
+
# @return [::Gapic::GenericLRO::Operation]
|
750
795
|
#
|
751
796
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
752
797
|
def remove_health_check request, options = nil
|
@@ -773,7 +818,15 @@ module Google
|
|
773
818
|
metadata: @config.metadata
|
774
819
|
|
775
820
|
@target_pools_stub.remove_health_check request, options do |result, response|
|
776
|
-
result = ::
|
821
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
822
|
+
operation: result,
|
823
|
+
client: region_operations,
|
824
|
+
request_values: {
|
825
|
+
"project" => request.project,
|
826
|
+
"region" => request.region
|
827
|
+
},
|
828
|
+
options: options
|
829
|
+
)
|
777
830
|
yield result, response if block_given?
|
778
831
|
return result
|
779
832
|
end
|
@@ -813,10 +866,10 @@ module Google
|
|
813
866
|
# @param target_pools_remove_instance_request_resource [::Google::Cloud::Compute::V1::TargetPoolsRemoveInstanceRequest, ::Hash]
|
814
867
|
# The body resource for this request
|
815
868
|
# @yield [result, response] Access the result along with the Faraday response object
|
816
|
-
# @yieldparam result [::Gapic::
|
869
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
817
870
|
# @yieldparam response [::Faraday::Response]
|
818
871
|
#
|
819
|
-
# @return [::Gapic::
|
872
|
+
# @return [::Gapic::GenericLRO::Operation]
|
820
873
|
#
|
821
874
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
822
875
|
def remove_instance request, options = nil
|
@@ -843,7 +896,15 @@ module Google
|
|
843
896
|
metadata: @config.metadata
|
844
897
|
|
845
898
|
@target_pools_stub.remove_instance request, options do |result, response|
|
846
|
-
result = ::
|
899
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
900
|
+
operation: result,
|
901
|
+
client: region_operations,
|
902
|
+
request_values: {
|
903
|
+
"project" => request.project,
|
904
|
+
"region" => request.region
|
905
|
+
},
|
906
|
+
options: options
|
907
|
+
)
|
847
908
|
yield result, response if block_given?
|
848
909
|
return result
|
849
910
|
end
|
@@ -885,10 +946,10 @@ module Google
|
|
885
946
|
# @param target_reference_resource [::Google::Cloud::Compute::V1::TargetReference, ::Hash]
|
886
947
|
# The body resource for this request
|
887
948
|
# @yield [result, response] Access the result along with the Faraday response object
|
888
|
-
# @yieldparam result [::Gapic::
|
949
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
889
950
|
# @yieldparam response [::Faraday::Response]
|
890
951
|
#
|
891
|
-
# @return [::Gapic::
|
952
|
+
# @return [::Gapic::GenericLRO::Operation]
|
892
953
|
#
|
893
954
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
894
955
|
def set_backup request, options = nil
|
@@ -915,7 +976,15 @@ module Google
|
|
915
976
|
metadata: @config.metadata
|
916
977
|
|
917
978
|
@target_pools_stub.set_backup request, options do |result, response|
|
918
|
-
result = ::
|
979
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
980
|
+
operation: result,
|
981
|
+
client: region_operations,
|
982
|
+
request_values: {
|
983
|
+
"project" => request.project,
|
984
|
+
"region" => request.region
|
985
|
+
},
|
986
|
+
options: options
|
987
|
+
)
|
919
988
|
yield result, response if block_given?
|
920
989
|
return result
|
921
990
|
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/target_ssl_proxies/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/global_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -142,9 +143,21 @@ module Google
|
|
142
143
|
credentials = Credentials.new credentials, scope: @config.scope
|
143
144
|
end
|
144
145
|
|
146
|
+
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
|
147
|
+
config.credentials = credentials
|
148
|
+
config.endpoint = @config.endpoint
|
149
|
+
end
|
150
|
+
|
145
151
|
@target_ssl_proxies_stub = ::Google::Cloud::Compute::V1::TargetSslProxies::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
146
152
|
end
|
147
153
|
|
154
|
+
##
|
155
|
+
# Get the associated client for long-running operations via GlobalOperations.
|
156
|
+
#
|
157
|
+
# @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
|
158
|
+
#
|
159
|
+
attr_reader :global_operations
|
160
|
+
|
148
161
|
# Service calls
|
149
162
|
|
150
163
|
##
|
@@ -174,10 +187,10 @@ module Google
|
|
174
187
|
# @param target_ssl_proxy [::String]
|
175
188
|
# Name of the TargetSslProxy resource to delete.
|
176
189
|
# @yield [result, response] Access the result along with the Faraday response object
|
177
|
-
# @yieldparam result [::Gapic::
|
190
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
178
191
|
# @yieldparam response [::Faraday::Response]
|
179
192
|
#
|
180
|
-
# @return [::Gapic::
|
193
|
+
# @return [::Gapic::GenericLRO::Operation]
|
181
194
|
#
|
182
195
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
183
196
|
def delete request, options = nil
|
@@ -204,7 +217,14 @@ module Google
|
|
204
217
|
metadata: @config.metadata
|
205
218
|
|
206
219
|
@target_ssl_proxies_stub.delete request, options do |result, response|
|
207
|
-
result = ::
|
220
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
221
|
+
operation: result,
|
222
|
+
client: global_operations,
|
223
|
+
request_values: {
|
224
|
+
"project" => request.project
|
225
|
+
},
|
226
|
+
options: options
|
227
|
+
)
|
208
228
|
yield result, response if block_given?
|
209
229
|
return result
|
210
230
|
end
|
@@ -303,10 +323,10 @@ module Google
|
|
303
323
|
# @param target_ssl_proxy_resource [::Google::Cloud::Compute::V1::TargetSslProxy, ::Hash]
|
304
324
|
# The body resource for this request
|
305
325
|
# @yield [result, response] Access the result along with the Faraday response object
|
306
|
-
# @yieldparam result [::Gapic::
|
326
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
307
327
|
# @yieldparam response [::Faraday::Response]
|
308
328
|
#
|
309
|
-
# @return [::Gapic::
|
329
|
+
# @return [::Gapic::GenericLRO::Operation]
|
310
330
|
#
|
311
331
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
312
332
|
def insert request, options = nil
|
@@ -333,7 +353,14 @@ module Google
|
|
333
353
|
metadata: @config.metadata
|
334
354
|
|
335
355
|
@target_ssl_proxies_stub.insert request, options do |result, response|
|
336
|
-
result = ::
|
356
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
357
|
+
operation: result,
|
358
|
+
client: global_operations,
|
359
|
+
request_values: {
|
360
|
+
"project" => request.project
|
361
|
+
},
|
362
|
+
options: options
|
363
|
+
)
|
337
364
|
yield result, response if block_given?
|
338
365
|
return result
|
339
366
|
end
|
@@ -443,10 +470,10 @@ module Google
|
|
443
470
|
# @param target_ssl_proxy [::String]
|
444
471
|
# Name of the TargetSslProxy resource whose BackendService resource is to be set.
|
445
472
|
# @yield [result, response] Access the result along with the Faraday response object
|
446
|
-
# @yieldparam result [::Gapic::
|
473
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
447
474
|
# @yieldparam response [::Faraday::Response]
|
448
475
|
#
|
449
|
-
# @return [::Gapic::
|
476
|
+
# @return [::Gapic::GenericLRO::Operation]
|
450
477
|
#
|
451
478
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
452
479
|
def set_backend_service request, options = nil
|
@@ -473,7 +500,14 @@ module Google
|
|
473
500
|
metadata: @config.metadata
|
474
501
|
|
475
502
|
@target_ssl_proxies_stub.set_backend_service request, options do |result, response|
|
476
|
-
result = ::
|
503
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
504
|
+
operation: result,
|
505
|
+
client: global_operations,
|
506
|
+
request_values: {
|
507
|
+
"project" => request.project
|
508
|
+
},
|
509
|
+
options: options
|
510
|
+
)
|
477
511
|
yield result, response if block_given?
|
478
512
|
return result
|
479
513
|
end
|
@@ -511,10 +545,10 @@ module Google
|
|
511
545
|
# @param target_ssl_proxy [::String]
|
512
546
|
# Name of the TargetSslProxy resource whose ProxyHeader is to be set.
|
513
547
|
# @yield [result, response] Access the result along with the Faraday response object
|
514
|
-
# @yieldparam result [::Gapic::
|
548
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
515
549
|
# @yieldparam response [::Faraday::Response]
|
516
550
|
#
|
517
|
-
# @return [::Gapic::
|
551
|
+
# @return [::Gapic::GenericLRO::Operation]
|
518
552
|
#
|
519
553
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
520
554
|
def set_proxy_header request, options = nil
|
@@ -541,7 +575,14 @@ module Google
|
|
541
575
|
metadata: @config.metadata
|
542
576
|
|
543
577
|
@target_ssl_proxies_stub.set_proxy_header request, options do |result, response|
|
544
|
-
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
|
+
)
|
545
586
|
yield result, response if block_given?
|
546
587
|
return result
|
547
588
|
end
|
@@ -579,10 +620,10 @@ module Google
|
|
579
620
|
# @param target_ssl_proxy [::String]
|
580
621
|
# Name of the TargetSslProxy resource whose SslCertificate resource is to be set.
|
581
622
|
# @yield [result, response] Access the result along with the Faraday response object
|
582
|
-
# @yieldparam result [::Gapic::
|
623
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
583
624
|
# @yieldparam response [::Faraday::Response]
|
584
625
|
#
|
585
|
-
# @return [::Gapic::
|
626
|
+
# @return [::Gapic::GenericLRO::Operation]
|
586
627
|
#
|
587
628
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
588
629
|
def set_ssl_certificates request, options = nil
|
@@ -609,7 +650,14 @@ module Google
|
|
609
650
|
metadata: @config.metadata
|
610
651
|
|
611
652
|
@target_ssl_proxies_stub.set_ssl_certificates request, options do |result, response|
|
612
|
-
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
|
+
)
|
613
661
|
yield result, response if block_given?
|
614
662
|
return result
|
615
663
|
end
|
@@ -647,10 +695,10 @@ module Google
|
|
647
695
|
# @param target_ssl_proxy [::String]
|
648
696
|
# Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035.
|
649
697
|
# @yield [result, response] Access the result along with the Faraday response object
|
650
|
-
# @yieldparam result [::Gapic::
|
698
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
651
699
|
# @yieldparam response [::Faraday::Response]
|
652
700
|
#
|
653
|
-
# @return [::Gapic::
|
701
|
+
# @return [::Gapic::GenericLRO::Operation]
|
654
702
|
#
|
655
703
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
656
704
|
def set_ssl_policy request, options = nil
|
@@ -677,7 +725,14 @@ module Google
|
|
677
725
|
metadata: @config.metadata
|
678
726
|
|
679
727
|
@target_ssl_proxies_stub.set_ssl_policy request, options do |result, response|
|
680
|
-
result = ::
|
728
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
729
|
+
operation: result,
|
730
|
+
client: global_operations,
|
731
|
+
request_values: {
|
732
|
+
"project" => request.project
|
733
|
+
},
|
734
|
+
options: options
|
735
|
+
)
|
681
736
|
yield result, response if block_given?
|
682
737
|
return result
|
683
738
|
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/target_tcp_proxies/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/global_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -138,9 +139,21 @@ module Google
|
|
138
139
|
credentials = Credentials.new credentials, scope: @config.scope
|
139
140
|
end
|
140
141
|
|
142
|
+
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
|
143
|
+
config.credentials = credentials
|
144
|
+
config.endpoint = @config.endpoint
|
145
|
+
end
|
146
|
+
|
141
147
|
@target_tcp_proxies_stub = ::Google::Cloud::Compute::V1::TargetTcpProxies::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
142
148
|
end
|
143
149
|
|
150
|
+
##
|
151
|
+
# Get the associated client for long-running operations via GlobalOperations.
|
152
|
+
#
|
153
|
+
# @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
|
154
|
+
#
|
155
|
+
attr_reader :global_operations
|
156
|
+
|
144
157
|
# Service calls
|
145
158
|
|
146
159
|
##
|
@@ -170,10 +183,10 @@ module Google
|
|
170
183
|
# @param target_tcp_proxy [::String]
|
171
184
|
# Name of the TargetTcpProxy resource to delete.
|
172
185
|
# @yield [result, response] Access the result along with the Faraday response object
|
173
|
-
# @yieldparam result [::Gapic::
|
186
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
174
187
|
# @yieldparam response [::Faraday::Response]
|
175
188
|
#
|
176
|
-
# @return [::Gapic::
|
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,14 @@ module Google
|
|
200
213
|
metadata: @config.metadata
|
201
214
|
|
202
215
|
@target_tcp_proxies_stub.delete request, options do |result, response|
|
203
|
-
result = ::
|
216
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
217
|
+
operation: result,
|
218
|
+
client: global_operations,
|
219
|
+
request_values: {
|
220
|
+
"project" => request.project
|
221
|
+
},
|
222
|
+
options: options
|
223
|
+
)
|
204
224
|
yield result, response if block_given?
|
205
225
|
return result
|
206
226
|
end
|
@@ -299,10 +319,10 @@ module Google
|
|
299
319
|
# @param target_tcp_proxy_resource [::Google::Cloud::Compute::V1::TargetTcpProxy, ::Hash]
|
300
320
|
# The body resource for this request
|
301
321
|
# @yield [result, response] Access the result along with the Faraday response object
|
302
|
-
# @yieldparam result [::Gapic::
|
322
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
303
323
|
# @yieldparam response [::Faraday::Response]
|
304
324
|
#
|
305
|
-
# @return [::Gapic::
|
325
|
+
# @return [::Gapic::GenericLRO::Operation]
|
306
326
|
#
|
307
327
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
308
328
|
def insert request, options = nil
|
@@ -329,7 +349,14 @@ module Google
|
|
329
349
|
metadata: @config.metadata
|
330
350
|
|
331
351
|
@target_tcp_proxies_stub.insert request, options do |result, response|
|
332
|
-
result = ::
|
352
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
353
|
+
operation: result,
|
354
|
+
client: global_operations,
|
355
|
+
request_values: {
|
356
|
+
"project" => request.project
|
357
|
+
},
|
358
|
+
options: options
|
359
|
+
)
|
333
360
|
yield result, response if block_given?
|
334
361
|
return result
|
335
362
|
end
|
@@ -439,10 +466,10 @@ module Google
|
|
439
466
|
# @param target_tcp_proxy [::String]
|
440
467
|
# Name of the TargetTcpProxy resource whose BackendService resource is to be set.
|
441
468
|
# @yield [result, response] Access the result along with the Faraday response object
|
442
|
-
# @yieldparam result [::Gapic::
|
469
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
443
470
|
# @yieldparam response [::Faraday::Response]
|
444
471
|
#
|
445
|
-
# @return [::Gapic::
|
472
|
+
# @return [::Gapic::GenericLRO::Operation]
|
446
473
|
#
|
447
474
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
448
475
|
def set_backend_service request, options = nil
|
@@ -469,7 +496,14 @@ module Google
|
|
469
496
|
metadata: @config.metadata
|
470
497
|
|
471
498
|
@target_tcp_proxies_stub.set_backend_service request, options do |result, response|
|
472
|
-
result = ::
|
499
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
500
|
+
operation: result,
|
501
|
+
client: global_operations,
|
502
|
+
request_values: {
|
503
|
+
"project" => request.project
|
504
|
+
},
|
505
|
+
options: options
|
506
|
+
)
|
473
507
|
yield result, response if block_given?
|
474
508
|
return result
|
475
509
|
end
|
@@ -507,10 +541,10 @@ module Google
|
|
507
541
|
# @param target_tcp_proxy [::String]
|
508
542
|
# Name of the TargetTcpProxy resource whose ProxyHeader is to be set.
|
509
543
|
# @yield [result, response] Access the result along with the Faraday response object
|
510
|
-
# @yieldparam result [::Gapic::
|
544
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
511
545
|
# @yieldparam response [::Faraday::Response]
|
512
546
|
#
|
513
|
-
# @return [::Gapic::
|
547
|
+
# @return [::Gapic::GenericLRO::Operation]
|
514
548
|
#
|
515
549
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
516
550
|
def set_proxy_header request, options = nil
|
@@ -537,7 +571,14 @@ module Google
|
|
537
571
|
metadata: @config.metadata
|
538
572
|
|
539
573
|
@target_tcp_proxies_stub.set_proxy_header request, options do |result, response|
|
540
|
-
result = ::
|
574
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
575
|
+
operation: result,
|
576
|
+
client: global_operations,
|
577
|
+
request_values: {
|
578
|
+
"project" => request.project
|
579
|
+
},
|
580
|
+
options: options
|
581
|
+
)
|
541
582
|
yield result, response if block_given?
|
542
583
|
return result
|
543
584
|
end
|