google-cloud-vmware_engine-v1 0.9.2 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/vmware_engine/v1/version.rb +1 -1
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb +85 -75
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/operations.rb +9 -5
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest/client.rb +72 -75
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest/operations.rb +40 -28
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest/service_stub.rb +606 -446
- metadata +4 -4
@@ -340,14 +340,26 @@ module Google
|
|
340
340
|
universe_domain: @config.universe_domain,
|
341
341
|
channel_args: @config.channel_args,
|
342
342
|
interceptors: @config.interceptors,
|
343
|
-
channel_pool_config: @config.channel_pool
|
343
|
+
channel_pool_config: @config.channel_pool,
|
344
|
+
logger: @config.logger
|
344
345
|
)
|
345
346
|
|
347
|
+
@vmware_engine_stub.stub_logger&.info do |entry|
|
348
|
+
entry.set_system_name
|
349
|
+
entry.set_service
|
350
|
+
entry.message = "Created client for #{entry.service}"
|
351
|
+
entry.set_credentials_fields credentials
|
352
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
353
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
354
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
355
|
+
end
|
356
|
+
|
346
357
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
347
358
|
config.credentials = credentials
|
348
359
|
config.quota_project = @quota_project_id
|
349
360
|
config.endpoint = @vmware_engine_stub.endpoint
|
350
361
|
config.universe_domain = @vmware_engine_stub.universe_domain
|
362
|
+
config.logger = @vmware_engine_stub.logger if config.respond_to? :logger=
|
351
363
|
end
|
352
364
|
|
353
365
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
@@ -355,6 +367,7 @@ module Google
|
|
355
367
|
config.quota_project = @quota_project_id
|
356
368
|
config.endpoint = @vmware_engine_stub.endpoint
|
357
369
|
config.universe_domain = @vmware_engine_stub.universe_domain
|
370
|
+
config.logger = @vmware_engine_stub.logger if config.respond_to? :logger=
|
358
371
|
end
|
359
372
|
end
|
360
373
|
|
@@ -379,6 +392,15 @@ module Google
|
|
379
392
|
#
|
380
393
|
attr_reader :iam_policy_client
|
381
394
|
|
395
|
+
##
|
396
|
+
# The logger used for request/response debug logging.
|
397
|
+
#
|
398
|
+
# @return [Logger]
|
399
|
+
#
|
400
|
+
def logger
|
401
|
+
@vmware_engine_stub.logger
|
402
|
+
end
|
403
|
+
|
382
404
|
# Service calls
|
383
405
|
|
384
406
|
##
|
@@ -514,7 +536,7 @@ module Google
|
|
514
536
|
@vmware_engine_stub.call_rpc :list_private_clouds, request, options: options do |response, operation|
|
515
537
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_private_clouds, request, response, operation, options
|
516
538
|
yield response, operation if block_given?
|
517
|
-
|
539
|
+
throw :response, response
|
518
540
|
end
|
519
541
|
rescue ::GRPC::BadStatus => e
|
520
542
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -604,7 +626,6 @@ module Google
|
|
604
626
|
|
605
627
|
@vmware_engine_stub.call_rpc :get_private_cloud, request, options: options do |response, operation|
|
606
628
|
yield response, operation if block_given?
|
607
|
-
return response
|
608
629
|
end
|
609
630
|
rescue ::GRPC::BadStatus => e
|
610
631
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -728,7 +749,7 @@ module Google
|
|
728
749
|
@vmware_engine_stub.call_rpc :create_private_cloud, request, options: options do |response, operation|
|
729
750
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
730
751
|
yield response, operation if block_given?
|
731
|
-
|
752
|
+
throw :response, response
|
732
753
|
end
|
733
754
|
rescue ::GRPC::BadStatus => e
|
734
755
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -838,7 +859,7 @@ module Google
|
|
838
859
|
@vmware_engine_stub.call_rpc :update_private_cloud, request, options: options do |response, operation|
|
839
860
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
840
861
|
yield response, operation if block_given?
|
841
|
-
|
862
|
+
throw :response, response
|
842
863
|
end
|
843
864
|
rescue ::GRPC::BadStatus => e
|
844
865
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -968,7 +989,7 @@ module Google
|
|
968
989
|
@vmware_engine_stub.call_rpc :delete_private_cloud, request, options: options do |response, operation|
|
969
990
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
970
991
|
yield response, operation if block_given?
|
971
|
-
|
992
|
+
throw :response, response
|
972
993
|
end
|
973
994
|
rescue ::GRPC::BadStatus => e
|
974
995
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1072,7 +1093,7 @@ module Google
|
|
1072
1093
|
@vmware_engine_stub.call_rpc :undelete_private_cloud, request, options: options do |response, operation|
|
1073
1094
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1074
1095
|
yield response, operation if block_given?
|
1075
|
-
|
1096
|
+
throw :response, response
|
1076
1097
|
end
|
1077
1098
|
rescue ::GRPC::BadStatus => e
|
1078
1099
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1198,7 +1219,7 @@ module Google
|
|
1198
1219
|
@vmware_engine_stub.call_rpc :list_clusters, request, options: options do |response, operation|
|
1199
1220
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_clusters, request, response, operation, options
|
1200
1221
|
yield response, operation if block_given?
|
1201
|
-
|
1222
|
+
throw :response, response
|
1202
1223
|
end
|
1203
1224
|
rescue ::GRPC::BadStatus => e
|
1204
1225
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1288,7 +1309,6 @@ module Google
|
|
1288
1309
|
|
1289
1310
|
@vmware_engine_stub.call_rpc :get_cluster, request, options: options do |response, operation|
|
1290
1311
|
yield response, operation if block_given?
|
1291
|
-
return response
|
1292
1312
|
end
|
1293
1313
|
rescue ::GRPC::BadStatus => e
|
1294
1314
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1409,7 +1429,7 @@ module Google
|
|
1409
1429
|
@vmware_engine_stub.call_rpc :create_cluster, request, options: options do |response, operation|
|
1410
1430
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1411
1431
|
yield response, operation if block_given?
|
1412
|
-
|
1432
|
+
throw :response, response
|
1413
1433
|
end
|
1414
1434
|
rescue ::GRPC::BadStatus => e
|
1415
1435
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1521,7 +1541,7 @@ module Google
|
|
1521
1541
|
@vmware_engine_stub.call_rpc :update_cluster, request, options: options do |response, operation|
|
1522
1542
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1523
1543
|
yield response, operation if block_given?
|
1524
|
-
|
1544
|
+
throw :response, response
|
1525
1545
|
end
|
1526
1546
|
rescue ::GRPC::BadStatus => e
|
1527
1547
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1625,7 +1645,7 @@ module Google
|
|
1625
1645
|
@vmware_engine_stub.call_rpc :delete_cluster, request, options: options do |response, operation|
|
1626
1646
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1627
1647
|
yield response, operation if block_given?
|
1628
|
-
|
1648
|
+
throw :response, response
|
1629
1649
|
end
|
1630
1650
|
rescue ::GRPC::BadStatus => e
|
1631
1651
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1732,7 +1752,7 @@ module Google
|
|
1732
1752
|
@vmware_engine_stub.call_rpc :list_nodes, request, options: options do |response, operation|
|
1733
1753
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_nodes, request, response, operation, options
|
1734
1754
|
yield response, operation if block_given?
|
1735
|
-
|
1755
|
+
throw :response, response
|
1736
1756
|
end
|
1737
1757
|
rescue ::GRPC::BadStatus => e
|
1738
1758
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1820,7 +1840,6 @@ module Google
|
|
1820
1840
|
|
1821
1841
|
@vmware_engine_stub.call_rpc :get_node, request, options: options do |response, operation|
|
1822
1842
|
yield response, operation if block_given?
|
1823
|
-
return response
|
1824
1843
|
end
|
1825
1844
|
rescue ::GRPC::BadStatus => e
|
1826
1845
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1960,7 +1979,7 @@ module Google
|
|
1960
1979
|
@vmware_engine_stub.call_rpc :list_external_addresses, request, options: options do |response, operation|
|
1961
1980
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_external_addresses, request, response, operation, options
|
1962
1981
|
yield response, operation if block_given?
|
1963
|
-
|
1982
|
+
throw :response, response
|
1964
1983
|
end
|
1965
1984
|
rescue ::GRPC::BadStatus => e
|
1966
1985
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2069,7 +2088,7 @@ module Google
|
|
2069
2088
|
@vmware_engine_stub.call_rpc :fetch_network_policy_external_addresses, request, options: options do |response, operation|
|
2070
2089
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :fetch_network_policy_external_addresses, request, response, operation, options
|
2071
2090
|
yield response, operation if block_given?
|
2072
|
-
|
2091
|
+
throw :response, response
|
2073
2092
|
end
|
2074
2093
|
rescue ::GRPC::BadStatus => e
|
2075
2094
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2159,7 +2178,6 @@ module Google
|
|
2159
2178
|
|
2160
2179
|
@vmware_engine_stub.call_rpc :get_external_address, request, options: options do |response, operation|
|
2161
2180
|
yield response, operation if block_given?
|
2162
|
-
return response
|
2163
2181
|
end
|
2164
2182
|
rescue ::GRPC::BadStatus => e
|
2165
2183
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2289,7 +2307,7 @@ module Google
|
|
2289
2307
|
@vmware_engine_stub.call_rpc :create_external_address, request, options: options do |response, operation|
|
2290
2308
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2291
2309
|
yield response, operation if block_given?
|
2292
|
-
|
2310
|
+
throw :response, response
|
2293
2311
|
end
|
2294
2312
|
rescue ::GRPC::BadStatus => e
|
2295
2313
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2410,7 +2428,7 @@ module Google
|
|
2410
2428
|
@vmware_engine_stub.call_rpc :update_external_address, request, options: options do |response, operation|
|
2411
2429
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2412
2430
|
yield response, operation if block_given?
|
2413
|
-
|
2431
|
+
throw :response, response
|
2414
2432
|
end
|
2415
2433
|
rescue ::GRPC::BadStatus => e
|
2416
2434
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2525,7 +2543,7 @@ module Google
|
|
2525
2543
|
@vmware_engine_stub.call_rpc :delete_external_address, request, options: options do |response, operation|
|
2526
2544
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2527
2545
|
yield response, operation if block_given?
|
2528
|
-
|
2546
|
+
throw :response, response
|
2529
2547
|
end
|
2530
2548
|
rescue ::GRPC::BadStatus => e
|
2531
2549
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2632,7 +2650,7 @@ module Google
|
|
2632
2650
|
@vmware_engine_stub.call_rpc :list_subnets, request, options: options do |response, operation|
|
2633
2651
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_subnets, request, response, operation, options
|
2634
2652
|
yield response, operation if block_given?
|
2635
|
-
|
2653
|
+
throw :response, response
|
2636
2654
|
end
|
2637
2655
|
rescue ::GRPC::BadStatus => e
|
2638
2656
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2722,7 +2740,6 @@ module Google
|
|
2722
2740
|
|
2723
2741
|
@vmware_engine_stub.call_rpc :get_subnet, request, options: options do |response, operation|
|
2724
2742
|
yield response, operation if block_given?
|
2725
|
-
return response
|
2726
2743
|
end
|
2727
2744
|
rescue ::GRPC::BadStatus => e
|
2728
2745
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2827,7 +2844,7 @@ module Google
|
|
2827
2844
|
@vmware_engine_stub.call_rpc :update_subnet, request, options: options do |response, operation|
|
2828
2845
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2829
2846
|
yield response, operation if block_given?
|
2830
|
-
|
2847
|
+
throw :response, response
|
2831
2848
|
end
|
2832
2849
|
rescue ::GRPC::BadStatus => e
|
2833
2850
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2966,7 +2983,7 @@ module Google
|
|
2966
2983
|
@vmware_engine_stub.call_rpc :list_external_access_rules, request, options: options do |response, operation|
|
2967
2984
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_external_access_rules, request, response, operation, options
|
2968
2985
|
yield response, operation if block_given?
|
2969
|
-
|
2986
|
+
throw :response, response
|
2970
2987
|
end
|
2971
2988
|
rescue ::GRPC::BadStatus => e
|
2972
2989
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3056,7 +3073,6 @@ module Google
|
|
3056
3073
|
|
3057
3074
|
@vmware_engine_stub.call_rpc :get_external_access_rule, request, options: options do |response, operation|
|
3058
3075
|
yield response, operation if block_given?
|
3059
|
-
return response
|
3060
3076
|
end
|
3061
3077
|
rescue ::GRPC::BadStatus => e
|
3062
3078
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3184,7 +3200,7 @@ module Google
|
|
3184
3200
|
@vmware_engine_stub.call_rpc :create_external_access_rule, request, options: options do |response, operation|
|
3185
3201
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3186
3202
|
yield response, operation if block_given?
|
3187
|
-
|
3203
|
+
throw :response, response
|
3188
3204
|
end
|
3189
3205
|
rescue ::GRPC::BadStatus => e
|
3190
3206
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3300,7 +3316,7 @@ module Google
|
|
3300
3316
|
@vmware_engine_stub.call_rpc :update_external_access_rule, request, options: options do |response, operation|
|
3301
3317
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3302
3318
|
yield response, operation if block_given?
|
3303
|
-
|
3319
|
+
throw :response, response
|
3304
3320
|
end
|
3305
3321
|
rescue ::GRPC::BadStatus => e
|
3306
3322
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3413,7 +3429,7 @@ module Google
|
|
3413
3429
|
@vmware_engine_stub.call_rpc :delete_external_access_rule, request, options: options do |response, operation|
|
3414
3430
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3415
3431
|
yield response, operation if block_given?
|
3416
|
-
|
3432
|
+
throw :response, response
|
3417
3433
|
end
|
3418
3434
|
rescue ::GRPC::BadStatus => e
|
3419
3435
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3554,7 +3570,7 @@ module Google
|
|
3554
3570
|
@vmware_engine_stub.call_rpc :list_logging_servers, request, options: options do |response, operation|
|
3555
3571
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_logging_servers, request, response, operation, options
|
3556
3572
|
yield response, operation if block_given?
|
3557
|
-
|
3573
|
+
throw :response, response
|
3558
3574
|
end
|
3559
3575
|
rescue ::GRPC::BadStatus => e
|
3560
3576
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3644,7 +3660,6 @@ module Google
|
|
3644
3660
|
|
3645
3661
|
@vmware_engine_stub.call_rpc :get_logging_server, request, options: options do |response, operation|
|
3646
3662
|
yield response, operation if block_given?
|
3647
|
-
return response
|
3648
3663
|
end
|
3649
3664
|
rescue ::GRPC::BadStatus => e
|
3650
3665
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3772,7 +3787,7 @@ module Google
|
|
3772
3787
|
@vmware_engine_stub.call_rpc :create_logging_server, request, options: options do |response, operation|
|
3773
3788
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3774
3789
|
yield response, operation if block_given?
|
3775
|
-
|
3790
|
+
throw :response, response
|
3776
3791
|
end
|
3777
3792
|
rescue ::GRPC::BadStatus => e
|
3778
3793
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3888,7 +3903,7 @@ module Google
|
|
3888
3903
|
@vmware_engine_stub.call_rpc :update_logging_server, request, options: options do |response, operation|
|
3889
3904
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3890
3905
|
yield response, operation if block_given?
|
3891
|
-
|
3906
|
+
throw :response, response
|
3892
3907
|
end
|
3893
3908
|
rescue ::GRPC::BadStatus => e
|
3894
3909
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4001,7 +4016,7 @@ module Google
|
|
4001
4016
|
@vmware_engine_stub.call_rpc :delete_logging_server, request, options: options do |response, operation|
|
4002
4017
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4003
4018
|
yield response, operation if block_given?
|
4004
|
-
|
4019
|
+
throw :response, response
|
4005
4020
|
end
|
4006
4021
|
rescue ::GRPC::BadStatus => e
|
4007
4022
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4133,7 +4148,7 @@ module Google
|
|
4133
4148
|
@vmware_engine_stub.call_rpc :list_node_types, request, options: options do |response, operation|
|
4134
4149
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_node_types, request, response, operation, options
|
4135
4150
|
yield response, operation if block_given?
|
4136
|
-
|
4151
|
+
throw :response, response
|
4137
4152
|
end
|
4138
4153
|
rescue ::GRPC::BadStatus => e
|
4139
4154
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4223,7 +4238,6 @@ module Google
|
|
4223
4238
|
|
4224
4239
|
@vmware_engine_stub.call_rpc :get_node_type, request, options: options do |response, operation|
|
4225
4240
|
yield response, operation if block_given?
|
4226
|
-
return response
|
4227
4241
|
end
|
4228
4242
|
rescue ::GRPC::BadStatus => e
|
4229
4243
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4314,7 +4328,6 @@ module Google
|
|
4314
4328
|
|
4315
4329
|
@vmware_engine_stub.call_rpc :show_nsx_credentials, request, options: options do |response, operation|
|
4316
4330
|
yield response, operation if block_given?
|
4317
|
-
return response
|
4318
4331
|
end
|
4319
4332
|
rescue ::GRPC::BadStatus => e
|
4320
4333
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4416,7 +4429,6 @@ module Google
|
|
4416
4429
|
|
4417
4430
|
@vmware_engine_stub.call_rpc :show_vcenter_credentials, request, options: options do |response, operation|
|
4418
4431
|
yield response, operation if block_given?
|
4419
|
-
return response
|
4420
4432
|
end
|
4421
4433
|
rescue ::GRPC::BadStatus => e
|
4422
4434
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4530,7 +4542,7 @@ module Google
|
|
4530
4542
|
@vmware_engine_stub.call_rpc :reset_nsx_credentials, request, options: options do |response, operation|
|
4531
4543
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4532
4544
|
yield response, operation if block_given?
|
4533
|
-
|
4545
|
+
throw :response, response
|
4534
4546
|
end
|
4535
4547
|
rescue ::GRPC::BadStatus => e
|
4536
4548
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4654,7 +4666,7 @@ module Google
|
|
4654
4666
|
@vmware_engine_stub.call_rpc :reset_vcenter_credentials, request, options: options do |response, operation|
|
4655
4667
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4656
4668
|
yield response, operation if block_given?
|
4657
|
-
|
4669
|
+
throw :response, response
|
4658
4670
|
end
|
4659
4671
|
rescue ::GRPC::BadStatus => e
|
4660
4672
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4744,7 +4756,6 @@ module Google
|
|
4744
4756
|
|
4745
4757
|
@vmware_engine_stub.call_rpc :get_dns_forwarding, request, options: options do |response, operation|
|
4746
4758
|
yield response, operation if block_given?
|
4747
|
-
return response
|
4748
4759
|
end
|
4749
4760
|
rescue ::GRPC::BadStatus => e
|
4750
4761
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4860,7 +4871,7 @@ module Google
|
|
4860
4871
|
@vmware_engine_stub.call_rpc :update_dns_forwarding, request, options: options do |response, operation|
|
4861
4872
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4862
4873
|
yield response, operation if block_given?
|
4863
|
-
|
4874
|
+
throw :response, response
|
4864
4875
|
end
|
4865
4876
|
rescue ::GRPC::BadStatus => e
|
4866
4877
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4953,7 +4964,6 @@ module Google
|
|
4953
4964
|
|
4954
4965
|
@vmware_engine_stub.call_rpc :get_network_peering, request, options: options do |response, operation|
|
4955
4966
|
yield response, operation if block_given?
|
4956
|
-
return response
|
4957
4967
|
end
|
4958
4968
|
rescue ::GRPC::BadStatus => e
|
4959
4969
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5091,7 +5101,7 @@ module Google
|
|
5091
5101
|
@vmware_engine_stub.call_rpc :list_network_peerings, request, options: options do |response, operation|
|
5092
5102
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_network_peerings, request, response, operation, options
|
5093
5103
|
yield response, operation if block_given?
|
5094
|
-
|
5104
|
+
throw :response, response
|
5095
5105
|
end
|
5096
5106
|
rescue ::GRPC::BadStatus => e
|
5097
5107
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5220,7 +5230,7 @@ module Google
|
|
5220
5230
|
@vmware_engine_stub.call_rpc :create_network_peering, request, options: options do |response, operation|
|
5221
5231
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
5222
5232
|
yield response, operation if block_given?
|
5223
|
-
|
5233
|
+
throw :response, response
|
5224
5234
|
end
|
5225
5235
|
rescue ::GRPC::BadStatus => e
|
5226
5236
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5336,7 +5346,7 @@ module Google
|
|
5336
5346
|
@vmware_engine_stub.call_rpc :delete_network_peering, request, options: options do |response, operation|
|
5337
5347
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
5338
5348
|
yield response, operation if block_given?
|
5339
|
-
|
5349
|
+
throw :response, response
|
5340
5350
|
end
|
5341
5351
|
rescue ::GRPC::BadStatus => e
|
5342
5352
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5453,7 +5463,7 @@ module Google
|
|
5453
5463
|
@vmware_engine_stub.call_rpc :update_network_peering, request, options: options do |response, operation|
|
5454
5464
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
5455
5465
|
yield response, operation if block_given?
|
5456
|
-
|
5466
|
+
throw :response, response
|
5457
5467
|
end
|
5458
5468
|
rescue ::GRPC::BadStatus => e
|
5459
5469
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5564,7 +5574,7 @@ module Google
|
|
5564
5574
|
@vmware_engine_stub.call_rpc :list_peering_routes, request, options: options do |response, operation|
|
5565
5575
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_peering_routes, request, response, operation, options
|
5566
5576
|
yield response, operation if block_given?
|
5567
|
-
|
5577
|
+
throw :response, response
|
5568
5578
|
end
|
5569
5579
|
rescue ::GRPC::BadStatus => e
|
5570
5580
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5692,7 +5702,7 @@ module Google
|
|
5692
5702
|
@vmware_engine_stub.call_rpc :create_hcx_activation_key, request, options: options do |response, operation|
|
5693
5703
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
5694
5704
|
yield response, operation if block_given?
|
5695
|
-
|
5705
|
+
throw :response, response
|
5696
5706
|
end
|
5697
5707
|
rescue ::GRPC::BadStatus => e
|
5698
5708
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5800,7 +5810,7 @@ module Google
|
|
5800
5810
|
@vmware_engine_stub.call_rpc :list_hcx_activation_keys, request, options: options do |response, operation|
|
5801
5811
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_hcx_activation_keys, request, response, operation, options
|
5802
5812
|
yield response, operation if block_given?
|
5803
|
-
|
5813
|
+
throw :response, response
|
5804
5814
|
end
|
5805
5815
|
rescue ::GRPC::BadStatus => e
|
5806
5816
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5890,7 +5900,6 @@ module Google
|
|
5890
5900
|
|
5891
5901
|
@vmware_engine_stub.call_rpc :get_hcx_activation_key, request, options: options do |response, operation|
|
5892
5902
|
yield response, operation if block_given?
|
5893
|
-
return response
|
5894
5903
|
end
|
5895
5904
|
rescue ::GRPC::BadStatus => e
|
5896
5905
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5980,7 +5989,6 @@ module Google
|
|
5980
5989
|
|
5981
5990
|
@vmware_engine_stub.call_rpc :get_network_policy, request, options: options do |response, operation|
|
5982
5991
|
yield response, operation if block_given?
|
5983
|
-
return response
|
5984
5992
|
end
|
5985
5993
|
rescue ::GRPC::BadStatus => e
|
5986
5994
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6118,7 +6126,7 @@ module Google
|
|
6118
6126
|
@vmware_engine_stub.call_rpc :list_network_policies, request, options: options do |response, operation|
|
6119
6127
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_network_policies, request, response, operation, options
|
6120
6128
|
yield response, operation if block_given?
|
6121
|
-
|
6129
|
+
throw :response, response
|
6122
6130
|
end
|
6123
6131
|
rescue ::GRPC::BadStatus => e
|
6124
6132
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6249,7 +6257,7 @@ module Google
|
|
6249
6257
|
@vmware_engine_stub.call_rpc :create_network_policy, request, options: options do |response, operation|
|
6250
6258
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
6251
6259
|
yield response, operation if block_given?
|
6252
|
-
|
6260
|
+
throw :response, response
|
6253
6261
|
end
|
6254
6262
|
rescue ::GRPC::BadStatus => e
|
6255
6263
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6375,7 +6383,7 @@ module Google
|
|
6375
6383
|
@vmware_engine_stub.call_rpc :update_network_policy, request, options: options do |response, operation|
|
6376
6384
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
6377
6385
|
yield response, operation if block_given?
|
6378
|
-
|
6386
|
+
throw :response, response
|
6379
6387
|
end
|
6380
6388
|
rescue ::GRPC::BadStatus => e
|
6381
6389
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6490,7 +6498,7 @@ module Google
|
|
6490
6498
|
@vmware_engine_stub.call_rpc :delete_network_policy, request, options: options do |response, operation|
|
6491
6499
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
6492
6500
|
yield response, operation if block_given?
|
6493
|
-
|
6501
|
+
throw :response, response
|
6494
6502
|
end
|
6495
6503
|
rescue ::GRPC::BadStatus => e
|
6496
6504
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6630,7 +6638,7 @@ module Google
|
|
6630
6638
|
@vmware_engine_stub.call_rpc :list_management_dns_zone_bindings, request, options: options do |response, operation|
|
6631
6639
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_management_dns_zone_bindings, request, response, operation, options
|
6632
6640
|
yield response, operation if block_given?
|
6633
|
-
|
6641
|
+
throw :response, response
|
6634
6642
|
end
|
6635
6643
|
rescue ::GRPC::BadStatus => e
|
6636
6644
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6720,7 +6728,6 @@ module Google
|
|
6720
6728
|
|
6721
6729
|
@vmware_engine_stub.call_rpc :get_management_dns_zone_binding, request, options: options do |response, operation|
|
6722
6730
|
yield response, operation if block_given?
|
6723
|
-
return response
|
6724
6731
|
end
|
6725
6732
|
rescue ::GRPC::BadStatus => e
|
6726
6733
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6855,7 +6862,7 @@ module Google
|
|
6855
6862
|
@vmware_engine_stub.call_rpc :create_management_dns_zone_binding, request, options: options do |response, operation|
|
6856
6863
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
6857
6864
|
yield response, operation if block_given?
|
6858
|
-
|
6865
|
+
throw :response, response
|
6859
6866
|
end
|
6860
6867
|
rescue ::GRPC::BadStatus => e
|
6861
6868
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6971,7 +6978,7 @@ module Google
|
|
6971
6978
|
@vmware_engine_stub.call_rpc :update_management_dns_zone_binding, request, options: options do |response, operation|
|
6972
6979
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
6973
6980
|
yield response, operation if block_given?
|
6974
|
-
|
6981
|
+
throw :response, response
|
6975
6982
|
end
|
6976
6983
|
rescue ::GRPC::BadStatus => e
|
6977
6984
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7086,7 +7093,7 @@ module Google
|
|
7086
7093
|
@vmware_engine_stub.call_rpc :delete_management_dns_zone_binding, request, options: options do |response, operation|
|
7087
7094
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
7088
7095
|
yield response, operation if block_given?
|
7089
|
-
|
7096
|
+
throw :response, response
|
7090
7097
|
end
|
7091
7098
|
rescue ::GRPC::BadStatus => e
|
7092
7099
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7200,7 +7207,7 @@ module Google
|
|
7200
7207
|
@vmware_engine_stub.call_rpc :repair_management_dns_zone_binding, request, options: options do |response, operation|
|
7201
7208
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
7202
7209
|
yield response, operation if block_given?
|
7203
|
-
|
7210
|
+
throw :response, response
|
7204
7211
|
end
|
7205
7212
|
rescue ::GRPC::BadStatus => e
|
7206
7213
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7332,7 +7339,7 @@ module Google
|
|
7332
7339
|
@vmware_engine_stub.call_rpc :create_vmware_engine_network, request, options: options do |response, operation|
|
7333
7340
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
7334
7341
|
yield response, operation if block_given?
|
7335
|
-
|
7342
|
+
throw :response, response
|
7336
7343
|
end
|
7337
7344
|
rescue ::GRPC::BadStatus => e
|
7338
7345
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7450,7 +7457,7 @@ module Google
|
|
7450
7457
|
@vmware_engine_stub.call_rpc :update_vmware_engine_network, request, options: options do |response, operation|
|
7451
7458
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
7452
7459
|
yield response, operation if block_given?
|
7453
|
-
|
7460
|
+
throw :response, response
|
7454
7461
|
end
|
7455
7462
|
rescue ::GRPC::BadStatus => e
|
7456
7463
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7571,7 +7578,7 @@ module Google
|
|
7571
7578
|
@vmware_engine_stub.call_rpc :delete_vmware_engine_network, request, options: options do |response, operation|
|
7572
7579
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
7573
7580
|
yield response, operation if block_given?
|
7574
|
-
|
7581
|
+
throw :response, response
|
7575
7582
|
end
|
7576
7583
|
rescue ::GRPC::BadStatus => e
|
7577
7584
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7664,7 +7671,6 @@ module Google
|
|
7664
7671
|
|
7665
7672
|
@vmware_engine_stub.call_rpc :get_vmware_engine_network, request, options: options do |response, operation|
|
7666
7673
|
yield response, operation if block_given?
|
7667
|
-
return response
|
7668
7674
|
end
|
7669
7675
|
rescue ::GRPC::BadStatus => e
|
7670
7676
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7801,7 +7807,7 @@ module Google
|
|
7801
7807
|
@vmware_engine_stub.call_rpc :list_vmware_engine_networks, request, options: options do |response, operation|
|
7802
7808
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_vmware_engine_networks, request, response, operation, options
|
7803
7809
|
yield response, operation if block_given?
|
7804
|
-
|
7810
|
+
throw :response, response
|
7805
7811
|
end
|
7806
7812
|
rescue ::GRPC::BadStatus => e
|
7807
7813
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7929,7 +7935,7 @@ module Google
|
|
7929
7935
|
@vmware_engine_stub.call_rpc :create_private_connection, request, options: options do |response, operation|
|
7930
7936
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
7931
7937
|
yield response, operation if block_given?
|
7932
|
-
|
7938
|
+
throw :response, response
|
7933
7939
|
end
|
7934
7940
|
rescue ::GRPC::BadStatus => e
|
7935
7941
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -8021,7 +8027,6 @@ module Google
|
|
8021
8027
|
|
8022
8028
|
@vmware_engine_stub.call_rpc :get_private_connection, request, options: options do |response, operation|
|
8023
8029
|
yield response, operation if block_given?
|
8024
|
-
return response
|
8025
8030
|
end
|
8026
8031
|
rescue ::GRPC::BadStatus => e
|
8027
8032
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -8158,7 +8163,7 @@ module Google
|
|
8158
8163
|
@vmware_engine_stub.call_rpc :list_private_connections, request, options: options do |response, operation|
|
8159
8164
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_private_connections, request, response, operation, options
|
8160
8165
|
yield response, operation if block_given?
|
8161
|
-
|
8166
|
+
throw :response, response
|
8162
8167
|
end
|
8163
8168
|
rescue ::GRPC::BadStatus => e
|
8164
8169
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -8275,7 +8280,7 @@ module Google
|
|
8275
8280
|
@vmware_engine_stub.call_rpc :update_private_connection, request, options: options do |response, operation|
|
8276
8281
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
8277
8282
|
yield response, operation if block_given?
|
8278
|
-
|
8283
|
+
throw :response, response
|
8279
8284
|
end
|
8280
8285
|
rescue ::GRPC::BadStatus => e
|
8281
8286
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -8390,7 +8395,7 @@ module Google
|
|
8390
8395
|
@vmware_engine_stub.call_rpc :delete_private_connection, request, options: options do |response, operation|
|
8391
8396
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
8392
8397
|
yield response, operation if block_given?
|
8393
|
-
|
8398
|
+
throw :response, response
|
8394
8399
|
end
|
8395
8400
|
rescue ::GRPC::BadStatus => e
|
8396
8401
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -8494,7 +8499,7 @@ module Google
|
|
8494
8499
|
@vmware_engine_stub.call_rpc :list_private_connection_peering_routes, request, options: options do |response, operation|
|
8495
8500
|
response = ::Gapic::PagedEnumerable.new @vmware_engine_stub, :list_private_connection_peering_routes, request, response, operation, options
|
8496
8501
|
yield response, operation if block_given?
|
8497
|
-
|
8502
|
+
throw :response, response
|
8498
8503
|
end
|
8499
8504
|
rescue ::GRPC::BadStatus => e
|
8500
8505
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -8615,7 +8620,7 @@ module Google
|
|
8615
8620
|
@vmware_engine_stub.call_rpc :grant_dns_bind_permission, request, options: options do |response, operation|
|
8616
8621
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
8617
8622
|
yield response, operation if block_given?
|
8618
|
-
|
8623
|
+
throw :response, response
|
8619
8624
|
end
|
8620
8625
|
rescue ::GRPC::BadStatus => e
|
8621
8626
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -8708,7 +8713,6 @@ module Google
|
|
8708
8713
|
|
8709
8714
|
@vmware_engine_stub.call_rpc :get_dns_bind_permission, request, options: options do |response, operation|
|
8710
8715
|
yield response, operation if block_given?
|
8711
|
-
return response
|
8712
8716
|
end
|
8713
8717
|
rescue ::GRPC::BadStatus => e
|
8714
8718
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -8828,7 +8832,7 @@ module Google
|
|
8828
8832
|
@vmware_engine_stub.call_rpc :revoke_dns_bind_permission, request, options: options do |response, operation|
|
8829
8833
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
8830
8834
|
yield response, operation if block_given?
|
8831
|
-
|
8835
|
+
throw :response, response
|
8832
8836
|
end
|
8833
8837
|
rescue ::GRPC::BadStatus => e
|
8834
8838
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -8917,6 +8921,11 @@ module Google
|
|
8917
8921
|
# default endpoint URL. The default value of nil uses the environment
|
8918
8922
|
# universe (usually the default "googleapis.com" universe).
|
8919
8923
|
# @return [::String,nil]
|
8924
|
+
# @!attribute [rw] logger
|
8925
|
+
# A custom logger to use for request/response debug logging, or the value
|
8926
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
8927
|
+
# explicitly disable logging.
|
8928
|
+
# @return [::Logger,:default,nil]
|
8920
8929
|
#
|
8921
8930
|
class Configuration
|
8922
8931
|
extend ::Gapic::Config
|
@@ -8941,6 +8950,7 @@ module Google
|
|
8941
8950
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
8942
8951
|
config_attr :quota_project, nil, ::String, nil
|
8943
8952
|
config_attr :universe_domain, nil, ::String, nil
|
8953
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
8944
8954
|
|
8945
8955
|
# @private
|
8946
8956
|
def initialize parent_config = nil
|