google-cloud-vmware_engine-v1 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +12 -15
- 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 +43 -38
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest/service_stub.rb +606 -446
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +5 -5
@@ -333,15 +333,27 @@ module Google
|
|
333
333
|
endpoint: @config.endpoint,
|
334
334
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
335
335
|
universe_domain: @config.universe_domain,
|
336
|
-
credentials: credentials
|
336
|
+
credentials: credentials,
|
337
|
+
logger: @config.logger
|
337
338
|
)
|
338
339
|
|
340
|
+
@vmware_engine_stub.logger(stub: true)&.info do |entry|
|
341
|
+
entry.set_system_name
|
342
|
+
entry.set_service
|
343
|
+
entry.message = "Created client for #{entry.service}"
|
344
|
+
entry.set_credentials_fields credentials
|
345
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
346
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
347
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
348
|
+
end
|
349
|
+
|
339
350
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
340
351
|
config.credentials = credentials
|
341
352
|
config.quota_project = @quota_project_id
|
342
353
|
config.endpoint = @vmware_engine_stub.endpoint
|
343
354
|
config.universe_domain = @vmware_engine_stub.universe_domain
|
344
355
|
config.bindings_override = @config.bindings_override
|
356
|
+
config.logger = @vmware_engine_stub.logger if config.respond_to? :logger=
|
345
357
|
end
|
346
358
|
|
347
359
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
@@ -350,6 +362,7 @@ module Google
|
|
350
362
|
config.endpoint = @vmware_engine_stub.endpoint
|
351
363
|
config.universe_domain = @vmware_engine_stub.universe_domain
|
352
364
|
config.bindings_override = @config.bindings_override
|
365
|
+
config.logger = @vmware_engine_stub.logger if config.respond_to? :logger=
|
353
366
|
end
|
354
367
|
end
|
355
368
|
|
@@ -374,6 +387,15 @@ module Google
|
|
374
387
|
#
|
375
388
|
attr_reader :iam_policy_client
|
376
389
|
|
390
|
+
##
|
391
|
+
# The logger used for request/response debug logging.
|
392
|
+
#
|
393
|
+
# @return [Logger]
|
394
|
+
#
|
395
|
+
def logger
|
396
|
+
@vmware_engine_stub.logger
|
397
|
+
end
|
398
|
+
|
377
399
|
# Service calls
|
378
400
|
|
379
401
|
##
|
@@ -501,7 +523,6 @@ module Google
|
|
501
523
|
|
502
524
|
@vmware_engine_stub.list_private_clouds request, options do |result, operation|
|
503
525
|
yield result, operation if block_given?
|
504
|
-
return result
|
505
526
|
end
|
506
527
|
rescue ::Gapic::Rest::Error => e
|
507
528
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -584,7 +605,6 @@ module Google
|
|
584
605
|
|
585
606
|
@vmware_engine_stub.get_private_cloud request, options do |result, operation|
|
586
607
|
yield result, operation if block_given?
|
587
|
-
return result
|
588
608
|
end
|
589
609
|
rescue ::Gapic::Rest::Error => e
|
590
610
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -701,7 +721,7 @@ module Google
|
|
701
721
|
@vmware_engine_stub.create_private_cloud request, options do |result, operation|
|
702
722
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
703
723
|
yield result, operation if block_given?
|
704
|
-
|
724
|
+
throw :response, result
|
705
725
|
end
|
706
726
|
rescue ::Gapic::Rest::Error => e
|
707
727
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -804,7 +824,7 @@ module Google
|
|
804
824
|
@vmware_engine_stub.update_private_cloud request, options do |result, operation|
|
805
825
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
806
826
|
yield result, operation if block_given?
|
807
|
-
|
827
|
+
throw :response, result
|
808
828
|
end
|
809
829
|
rescue ::Gapic::Rest::Error => e
|
810
830
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -927,7 +947,7 @@ module Google
|
|
927
947
|
@vmware_engine_stub.delete_private_cloud request, options do |result, operation|
|
928
948
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
929
949
|
yield result, operation if block_given?
|
930
|
-
|
950
|
+
throw :response, result
|
931
951
|
end
|
932
952
|
rescue ::Gapic::Rest::Error => e
|
933
953
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1024,7 +1044,7 @@ module Google
|
|
1024
1044
|
@vmware_engine_stub.undelete_private_cloud request, options do |result, operation|
|
1025
1045
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1026
1046
|
yield result, operation if block_given?
|
1027
|
-
|
1047
|
+
throw :response, result
|
1028
1048
|
end
|
1029
1049
|
rescue ::Gapic::Rest::Error => e
|
1030
1050
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1142,7 +1162,6 @@ module Google
|
|
1142
1162
|
|
1143
1163
|
@vmware_engine_stub.list_clusters request, options do |result, operation|
|
1144
1164
|
yield result, operation if block_given?
|
1145
|
-
return result
|
1146
1165
|
end
|
1147
1166
|
rescue ::Gapic::Rest::Error => e
|
1148
1167
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1225,7 +1244,6 @@ module Google
|
|
1225
1244
|
|
1226
1245
|
@vmware_engine_stub.get_cluster request, options do |result, operation|
|
1227
1246
|
yield result, operation if block_given?
|
1228
|
-
return result
|
1229
1247
|
end
|
1230
1248
|
rescue ::Gapic::Rest::Error => e
|
1231
1249
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1339,7 +1357,7 @@ module Google
|
|
1339
1357
|
@vmware_engine_stub.create_cluster request, options do |result, operation|
|
1340
1358
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1341
1359
|
yield result, operation if block_given?
|
1342
|
-
|
1360
|
+
throw :response, result
|
1343
1361
|
end
|
1344
1362
|
rescue ::Gapic::Rest::Error => e
|
1345
1363
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1444,7 +1462,7 @@ module Google
|
|
1444
1462
|
@vmware_engine_stub.update_cluster request, options do |result, operation|
|
1445
1463
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1446
1464
|
yield result, operation if block_given?
|
1447
|
-
|
1465
|
+
throw :response, result
|
1448
1466
|
end
|
1449
1467
|
rescue ::Gapic::Rest::Error => e
|
1450
1468
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1541,7 +1559,7 @@ module Google
|
|
1541
1559
|
@vmware_engine_stub.delete_cluster request, options do |result, operation|
|
1542
1560
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1543
1561
|
yield result, operation if block_given?
|
1544
|
-
|
1562
|
+
throw :response, result
|
1545
1563
|
end
|
1546
1564
|
rescue ::Gapic::Rest::Error => e
|
1547
1565
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1641,7 +1659,7 @@ module Google
|
|
1641
1659
|
@vmware_engine_stub.list_nodes request, options do |result, operation|
|
1642
1660
|
result = ::Gapic::Rest::PagedEnumerable.new @vmware_engine_stub, :list_nodes, "nodes", request, result, options
|
1643
1661
|
yield result, operation if block_given?
|
1644
|
-
|
1662
|
+
throw :response, result
|
1645
1663
|
end
|
1646
1664
|
rescue ::Gapic::Rest::Error => e
|
1647
1665
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1722,7 +1740,6 @@ module Google
|
|
1722
1740
|
|
1723
1741
|
@vmware_engine_stub.get_node request, options do |result, operation|
|
1724
1742
|
yield result, operation if block_given?
|
1725
|
-
return result
|
1726
1743
|
end
|
1727
1744
|
rescue ::Gapic::Rest::Error => e
|
1728
1745
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1854,7 +1871,6 @@ module Google
|
|
1854
1871
|
|
1855
1872
|
@vmware_engine_stub.list_external_addresses request, options do |result, operation|
|
1856
1873
|
yield result, operation if block_given?
|
1857
|
-
return result
|
1858
1874
|
end
|
1859
1875
|
rescue ::Gapic::Rest::Error => e
|
1860
1876
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1956,7 +1972,7 @@ module Google
|
|
1956
1972
|
@vmware_engine_stub.fetch_network_policy_external_addresses request, options do |result, operation|
|
1957
1973
|
result = ::Gapic::Rest::PagedEnumerable.new @vmware_engine_stub, :fetch_network_policy_external_addresses, "external_addresses", request, result, options
|
1958
1974
|
yield result, operation if block_given?
|
1959
|
-
|
1975
|
+
throw :response, result
|
1960
1976
|
end
|
1961
1977
|
rescue ::Gapic::Rest::Error => e
|
1962
1978
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2039,7 +2055,6 @@ module Google
|
|
2039
2055
|
|
2040
2056
|
@vmware_engine_stub.get_external_address request, options do |result, operation|
|
2041
2057
|
yield result, operation if block_given?
|
2042
|
-
return result
|
2043
2058
|
end
|
2044
2059
|
rescue ::Gapic::Rest::Error => e
|
2045
2060
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2162,7 +2177,7 @@ module Google
|
|
2162
2177
|
@vmware_engine_stub.create_external_address request, options do |result, operation|
|
2163
2178
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2164
2179
|
yield result, operation if block_given?
|
2165
|
-
|
2180
|
+
throw :response, result
|
2166
2181
|
end
|
2167
2182
|
rescue ::Gapic::Rest::Error => e
|
2168
2183
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2276,7 +2291,7 @@ module Google
|
|
2276
2291
|
@vmware_engine_stub.update_external_address request, options do |result, operation|
|
2277
2292
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2278
2293
|
yield result, operation if block_given?
|
2279
|
-
|
2294
|
+
throw :response, result
|
2280
2295
|
end
|
2281
2296
|
rescue ::Gapic::Rest::Error => e
|
2282
2297
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2384,7 +2399,7 @@ module Google
|
|
2384
2399
|
@vmware_engine_stub.delete_external_address request, options do |result, operation|
|
2385
2400
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2386
2401
|
yield result, operation if block_given?
|
2387
|
-
|
2402
|
+
throw :response, result
|
2388
2403
|
end
|
2389
2404
|
rescue ::Gapic::Rest::Error => e
|
2390
2405
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2483,7 +2498,6 @@ module Google
|
|
2483
2498
|
|
2484
2499
|
@vmware_engine_stub.list_subnets request, options do |result, operation|
|
2485
2500
|
yield result, operation if block_given?
|
2486
|
-
return result
|
2487
2501
|
end
|
2488
2502
|
rescue ::Gapic::Rest::Error => e
|
2489
2503
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2566,7 +2580,6 @@ module Google
|
|
2566
2580
|
|
2567
2581
|
@vmware_engine_stub.get_subnet request, options do |result, operation|
|
2568
2582
|
yield result, operation if block_given?
|
2569
|
-
return result
|
2570
2583
|
end
|
2571
2584
|
rescue ::Gapic::Rest::Error => e
|
2572
2585
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2664,7 +2677,7 @@ module Google
|
|
2664
2677
|
@vmware_engine_stub.update_subnet request, options do |result, operation|
|
2665
2678
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2666
2679
|
yield result, operation if block_given?
|
2667
|
-
|
2680
|
+
throw :response, result
|
2668
2681
|
end
|
2669
2682
|
rescue ::Gapic::Rest::Error => e
|
2670
2683
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2795,7 +2808,6 @@ module Google
|
|
2795
2808
|
|
2796
2809
|
@vmware_engine_stub.list_external_access_rules request, options do |result, operation|
|
2797
2810
|
yield result, operation if block_given?
|
2798
|
-
return result
|
2799
2811
|
end
|
2800
2812
|
rescue ::Gapic::Rest::Error => e
|
2801
2813
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2878,7 +2890,6 @@ module Google
|
|
2878
2890
|
|
2879
2891
|
@vmware_engine_stub.get_external_access_rule request, options do |result, operation|
|
2880
2892
|
yield result, operation if block_given?
|
2881
|
-
return result
|
2882
2893
|
end
|
2883
2894
|
rescue ::Gapic::Rest::Error => e
|
2884
2895
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2999,7 +3010,7 @@ module Google
|
|
2999
3010
|
@vmware_engine_stub.create_external_access_rule request, options do |result, operation|
|
3000
3011
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3001
3012
|
yield result, operation if block_given?
|
3002
|
-
|
3013
|
+
throw :response, result
|
3003
3014
|
end
|
3004
3015
|
rescue ::Gapic::Rest::Error => e
|
3005
3016
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3108,7 +3119,7 @@ module Google
|
|
3108
3119
|
@vmware_engine_stub.update_external_access_rule request, options do |result, operation|
|
3109
3120
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3110
3121
|
yield result, operation if block_given?
|
3111
|
-
|
3122
|
+
throw :response, result
|
3112
3123
|
end
|
3113
3124
|
rescue ::Gapic::Rest::Error => e
|
3114
3125
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3214,7 +3225,7 @@ module Google
|
|
3214
3225
|
@vmware_engine_stub.delete_external_access_rule request, options do |result, operation|
|
3215
3226
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3216
3227
|
yield result, operation if block_given?
|
3217
|
-
|
3228
|
+
throw :response, result
|
3218
3229
|
end
|
3219
3230
|
rescue ::Gapic::Rest::Error => e
|
3220
3231
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3347,7 +3358,6 @@ module Google
|
|
3347
3358
|
|
3348
3359
|
@vmware_engine_stub.list_logging_servers request, options do |result, operation|
|
3349
3360
|
yield result, operation if block_given?
|
3350
|
-
return result
|
3351
3361
|
end
|
3352
3362
|
rescue ::Gapic::Rest::Error => e
|
3353
3363
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3430,7 +3440,6 @@ module Google
|
|
3430
3440
|
|
3431
3441
|
@vmware_engine_stub.get_logging_server request, options do |result, operation|
|
3432
3442
|
yield result, operation if block_given?
|
3433
|
-
return result
|
3434
3443
|
end
|
3435
3444
|
rescue ::Gapic::Rest::Error => e
|
3436
3445
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3551,7 +3560,7 @@ module Google
|
|
3551
3560
|
@vmware_engine_stub.create_logging_server request, options do |result, operation|
|
3552
3561
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3553
3562
|
yield result, operation if block_given?
|
3554
|
-
|
3563
|
+
throw :response, result
|
3555
3564
|
end
|
3556
3565
|
rescue ::Gapic::Rest::Error => e
|
3557
3566
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3660,7 +3669,7 @@ module Google
|
|
3660
3669
|
@vmware_engine_stub.update_logging_server request, options do |result, operation|
|
3661
3670
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3662
3671
|
yield result, operation if block_given?
|
3663
|
-
|
3672
|
+
throw :response, result
|
3664
3673
|
end
|
3665
3674
|
rescue ::Gapic::Rest::Error => e
|
3666
3675
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3766,7 +3775,7 @@ module Google
|
|
3766
3775
|
@vmware_engine_stub.delete_logging_server request, options do |result, operation|
|
3767
3776
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3768
3777
|
yield result, operation if block_given?
|
3769
|
-
|
3778
|
+
throw :response, result
|
3770
3779
|
end
|
3771
3780
|
rescue ::Gapic::Rest::Error => e
|
3772
3781
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3890,7 +3899,6 @@ module Google
|
|
3890
3899
|
|
3891
3900
|
@vmware_engine_stub.list_node_types request, options do |result, operation|
|
3892
3901
|
yield result, operation if block_given?
|
3893
|
-
return result
|
3894
3902
|
end
|
3895
3903
|
rescue ::Gapic::Rest::Error => e
|
3896
3904
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3973,7 +3981,6 @@ module Google
|
|
3973
3981
|
|
3974
3982
|
@vmware_engine_stub.get_node_type request, options do |result, operation|
|
3975
3983
|
yield result, operation if block_given?
|
3976
|
-
return result
|
3977
3984
|
end
|
3978
3985
|
rescue ::Gapic::Rest::Error => e
|
3979
3986
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4057,7 +4064,6 @@ module Google
|
|
4057
4064
|
|
4058
4065
|
@vmware_engine_stub.show_nsx_credentials request, options do |result, operation|
|
4059
4066
|
yield result, operation if block_given?
|
4060
|
-
return result
|
4061
4067
|
end
|
4062
4068
|
rescue ::Gapic::Rest::Error => e
|
4063
4069
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4152,7 +4158,6 @@ module Google
|
|
4152
4158
|
|
4153
4159
|
@vmware_engine_stub.show_vcenter_credentials request, options do |result, operation|
|
4154
4160
|
yield result, operation if block_given?
|
4155
|
-
return result
|
4156
4161
|
end
|
4157
4162
|
rescue ::Gapic::Rest::Error => e
|
4158
4163
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4259,7 +4264,7 @@ module Google
|
|
4259
4264
|
@vmware_engine_stub.reset_nsx_credentials request, options do |result, operation|
|
4260
4265
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
4261
4266
|
yield result, operation if block_given?
|
4262
|
-
|
4267
|
+
throw :response, result
|
4263
4268
|
end
|
4264
4269
|
rescue ::Gapic::Rest::Error => e
|
4265
4270
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4376,7 +4381,7 @@ module Google
|
|
4376
4381
|
@vmware_engine_stub.reset_vcenter_credentials request, options do |result, operation|
|
4377
4382
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
4378
4383
|
yield result, operation if block_given?
|
4379
|
-
|
4384
|
+
throw :response, result
|
4380
4385
|
end
|
4381
4386
|
rescue ::Gapic::Rest::Error => e
|
4382
4387
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4459,7 +4464,6 @@ module Google
|
|
4459
4464
|
|
4460
4465
|
@vmware_engine_stub.get_dns_forwarding request, options do |result, operation|
|
4461
4466
|
yield result, operation if block_given?
|
4462
|
-
return result
|
4463
4467
|
end
|
4464
4468
|
rescue ::Gapic::Rest::Error => e
|
4465
4469
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4568,7 +4572,7 @@ module Google
|
|
4568
4572
|
@vmware_engine_stub.update_dns_forwarding request, options do |result, operation|
|
4569
4573
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
4570
4574
|
yield result, operation if block_given?
|
4571
|
-
|
4575
|
+
throw :response, result
|
4572
4576
|
end
|
4573
4577
|
rescue ::Gapic::Rest::Error => e
|
4574
4578
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4654,7 +4658,6 @@ module Google
|
|
4654
4658
|
|
4655
4659
|
@vmware_engine_stub.get_network_peering request, options do |result, operation|
|
4656
4660
|
yield result, operation if block_given?
|
4657
|
-
return result
|
4658
4661
|
end
|
4659
4662
|
rescue ::Gapic::Rest::Error => e
|
4660
4663
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4784,7 +4787,6 @@ module Google
|
|
4784
4787
|
|
4785
4788
|
@vmware_engine_stub.list_network_peerings request, options do |result, operation|
|
4786
4789
|
yield result, operation if block_given?
|
4787
|
-
return result
|
4788
4790
|
end
|
4789
4791
|
rescue ::Gapic::Rest::Error => e
|
4790
4792
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4906,7 +4908,7 @@ module Google
|
|
4906
4908
|
@vmware_engine_stub.create_network_peering request, options do |result, operation|
|
4907
4909
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
4908
4910
|
yield result, operation if block_given?
|
4909
|
-
|
4911
|
+
throw :response, result
|
4910
4912
|
end
|
4911
4913
|
rescue ::Gapic::Rest::Error => e
|
4912
4914
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5015,7 +5017,7 @@ module Google
|
|
5015
5017
|
@vmware_engine_stub.delete_network_peering request, options do |result, operation|
|
5016
5018
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
5017
5019
|
yield result, operation if block_given?
|
5018
|
-
|
5020
|
+
throw :response, result
|
5019
5021
|
end
|
5020
5022
|
rescue ::Gapic::Rest::Error => e
|
5021
5023
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5125,7 +5127,7 @@ module Google
|
|
5125
5127
|
@vmware_engine_stub.update_network_peering request, options do |result, operation|
|
5126
5128
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
5127
5129
|
yield result, operation if block_given?
|
5128
|
-
|
5130
|
+
throw :response, result
|
5129
5131
|
end
|
5130
5132
|
rescue ::Gapic::Rest::Error => e
|
5131
5133
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5229,7 +5231,7 @@ module Google
|
|
5229
5231
|
@vmware_engine_stub.list_peering_routes request, options do |result, operation|
|
5230
5232
|
result = ::Gapic::Rest::PagedEnumerable.new @vmware_engine_stub, :list_peering_routes, "peering_routes", request, result, options
|
5231
5233
|
yield result, operation if block_given?
|
5232
|
-
|
5234
|
+
throw :response, result
|
5233
5235
|
end
|
5234
5236
|
rescue ::Gapic::Rest::Error => e
|
5235
5237
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5350,7 +5352,7 @@ module Google
|
|
5350
5352
|
@vmware_engine_stub.create_hcx_activation_key request, options do |result, operation|
|
5351
5353
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
5352
5354
|
yield result, operation if block_given?
|
5353
|
-
|
5355
|
+
throw :response, result
|
5354
5356
|
end
|
5355
5357
|
rescue ::Gapic::Rest::Error => e
|
5356
5358
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5450,7 +5452,6 @@ module Google
|
|
5450
5452
|
|
5451
5453
|
@vmware_engine_stub.list_hcx_activation_keys request, options do |result, operation|
|
5452
5454
|
yield result, operation if block_given?
|
5453
|
-
return result
|
5454
5455
|
end
|
5455
5456
|
rescue ::Gapic::Rest::Error => e
|
5456
5457
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5533,7 +5534,6 @@ module Google
|
|
5533
5534
|
|
5534
5535
|
@vmware_engine_stub.get_hcx_activation_key request, options do |result, operation|
|
5535
5536
|
yield result, operation if block_given?
|
5536
|
-
return result
|
5537
5537
|
end
|
5538
5538
|
rescue ::Gapic::Rest::Error => e
|
5539
5539
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5616,7 +5616,6 @@ module Google
|
|
5616
5616
|
|
5617
5617
|
@vmware_engine_stub.get_network_policy request, options do |result, operation|
|
5618
5618
|
yield result, operation if block_given?
|
5619
|
-
return result
|
5620
5619
|
end
|
5621
5620
|
rescue ::Gapic::Rest::Error => e
|
5622
5621
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5746,7 +5745,6 @@ module Google
|
|
5746
5745
|
|
5747
5746
|
@vmware_engine_stub.list_network_policies request, options do |result, operation|
|
5748
5747
|
yield result, operation if block_given?
|
5749
|
-
return result
|
5750
5748
|
end
|
5751
5749
|
rescue ::Gapic::Rest::Error => e
|
5752
5750
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5870,7 +5868,7 @@ module Google
|
|
5870
5868
|
@vmware_engine_stub.create_network_policy request, options do |result, operation|
|
5871
5869
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
5872
5870
|
yield result, operation if block_given?
|
5873
|
-
|
5871
|
+
throw :response, result
|
5874
5872
|
end
|
5875
5873
|
rescue ::Gapic::Rest::Error => e
|
5876
5874
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5989,7 +5987,7 @@ module Google
|
|
5989
5987
|
@vmware_engine_stub.update_network_policy request, options do |result, operation|
|
5990
5988
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
5991
5989
|
yield result, operation if block_given?
|
5992
|
-
|
5990
|
+
throw :response, result
|
5993
5991
|
end
|
5994
5992
|
rescue ::Gapic::Rest::Error => e
|
5995
5993
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6097,7 +6095,7 @@ module Google
|
|
6097
6095
|
@vmware_engine_stub.delete_network_policy request, options do |result, operation|
|
6098
6096
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
6099
6097
|
yield result, operation if block_given?
|
6100
|
-
|
6098
|
+
throw :response, result
|
6101
6099
|
end
|
6102
6100
|
rescue ::Gapic::Rest::Error => e
|
6103
6101
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6229,7 +6227,6 @@ module Google
|
|
6229
6227
|
|
6230
6228
|
@vmware_engine_stub.list_management_dns_zone_bindings request, options do |result, operation|
|
6231
6229
|
yield result, operation if block_given?
|
6232
|
-
return result
|
6233
6230
|
end
|
6234
6231
|
rescue ::Gapic::Rest::Error => e
|
6235
6232
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6312,7 +6309,6 @@ module Google
|
|
6312
6309
|
|
6313
6310
|
@vmware_engine_stub.get_management_dns_zone_binding request, options do |result, operation|
|
6314
6311
|
yield result, operation if block_given?
|
6315
|
-
return result
|
6316
6312
|
end
|
6317
6313
|
rescue ::Gapic::Rest::Error => e
|
6318
6314
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6440,7 +6436,7 @@ module Google
|
|
6440
6436
|
@vmware_engine_stub.create_management_dns_zone_binding request, options do |result, operation|
|
6441
6437
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
6442
6438
|
yield result, operation if block_given?
|
6443
|
-
|
6439
|
+
throw :response, result
|
6444
6440
|
end
|
6445
6441
|
rescue ::Gapic::Rest::Error => e
|
6446
6442
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6549,7 +6545,7 @@ module Google
|
|
6549
6545
|
@vmware_engine_stub.update_management_dns_zone_binding request, options do |result, operation|
|
6550
6546
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
6551
6547
|
yield result, operation if block_given?
|
6552
|
-
|
6548
|
+
throw :response, result
|
6553
6549
|
end
|
6554
6550
|
rescue ::Gapic::Rest::Error => e
|
6555
6551
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6657,7 +6653,7 @@ module Google
|
|
6657
6653
|
@vmware_engine_stub.delete_management_dns_zone_binding request, options do |result, operation|
|
6658
6654
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
6659
6655
|
yield result, operation if block_given?
|
6660
|
-
|
6656
|
+
throw :response, result
|
6661
6657
|
end
|
6662
6658
|
rescue ::Gapic::Rest::Error => e
|
6663
6659
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6764,7 +6760,7 @@ module Google
|
|
6764
6760
|
@vmware_engine_stub.repair_management_dns_zone_binding request, options do |result, operation|
|
6765
6761
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
6766
6762
|
yield result, operation if block_given?
|
6767
|
-
|
6763
|
+
throw :response, result
|
6768
6764
|
end
|
6769
6765
|
rescue ::Gapic::Rest::Error => e
|
6770
6766
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6889,7 +6885,7 @@ module Google
|
|
6889
6885
|
@vmware_engine_stub.create_vmware_engine_network request, options do |result, operation|
|
6890
6886
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
6891
6887
|
yield result, operation if block_given?
|
6892
|
-
|
6888
|
+
throw :response, result
|
6893
6889
|
end
|
6894
6890
|
rescue ::Gapic::Rest::Error => e
|
6895
6891
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7000,7 +6996,7 @@ module Google
|
|
7000
6996
|
@vmware_engine_stub.update_vmware_engine_network request, options do |result, operation|
|
7001
6997
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
7002
6998
|
yield result, operation if block_given?
|
7003
|
-
|
6999
|
+
throw :response, result
|
7004
7000
|
end
|
7005
7001
|
rescue ::Gapic::Rest::Error => e
|
7006
7002
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7114,7 +7110,7 @@ module Google
|
|
7114
7110
|
@vmware_engine_stub.delete_vmware_engine_network request, options do |result, operation|
|
7115
7111
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
7116
7112
|
yield result, operation if block_given?
|
7117
|
-
|
7113
|
+
throw :response, result
|
7118
7114
|
end
|
7119
7115
|
rescue ::Gapic::Rest::Error => e
|
7120
7116
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7200,7 +7196,6 @@ module Google
|
|
7200
7196
|
|
7201
7197
|
@vmware_engine_stub.get_vmware_engine_network request, options do |result, operation|
|
7202
7198
|
yield result, operation if block_given?
|
7203
|
-
return result
|
7204
7199
|
end
|
7205
7200
|
rescue ::Gapic::Rest::Error => e
|
7206
7201
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7329,7 +7324,6 @@ module Google
|
|
7329
7324
|
|
7330
7325
|
@vmware_engine_stub.list_vmware_engine_networks request, options do |result, operation|
|
7331
7326
|
yield result, operation if block_given?
|
7332
|
-
return result
|
7333
7327
|
end
|
7334
7328
|
rescue ::Gapic::Rest::Error => e
|
7335
7329
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7450,7 +7444,7 @@ module Google
|
|
7450
7444
|
@vmware_engine_stub.create_private_connection request, options do |result, operation|
|
7451
7445
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
7452
7446
|
yield result, operation if block_given?
|
7453
|
-
|
7447
|
+
throw :response, result
|
7454
7448
|
end
|
7455
7449
|
rescue ::Gapic::Rest::Error => e
|
7456
7450
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7535,7 +7529,6 @@ module Google
|
|
7535
7529
|
|
7536
7530
|
@vmware_engine_stub.get_private_connection request, options do |result, operation|
|
7537
7531
|
yield result, operation if block_given?
|
7538
|
-
return result
|
7539
7532
|
end
|
7540
7533
|
rescue ::Gapic::Rest::Error => e
|
7541
7534
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7664,7 +7657,6 @@ module Google
|
|
7664
7657
|
|
7665
7658
|
@vmware_engine_stub.list_private_connections request, options do |result, operation|
|
7666
7659
|
yield result, operation if block_given?
|
7667
|
-
return result
|
7668
7660
|
end
|
7669
7661
|
rescue ::Gapic::Rest::Error => e
|
7670
7662
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7774,7 +7766,7 @@ module Google
|
|
7774
7766
|
@vmware_engine_stub.update_private_connection request, options do |result, operation|
|
7775
7767
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
7776
7768
|
yield result, operation if block_given?
|
7777
|
-
|
7769
|
+
throw :response, result
|
7778
7770
|
end
|
7779
7771
|
rescue ::Gapic::Rest::Error => e
|
7780
7772
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7882,7 +7874,7 @@ module Google
|
|
7882
7874
|
@vmware_engine_stub.delete_private_connection request, options do |result, operation|
|
7883
7875
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
7884
7876
|
yield result, operation if block_given?
|
7885
|
-
|
7877
|
+
throw :response, result
|
7886
7878
|
end
|
7887
7879
|
rescue ::Gapic::Rest::Error => e
|
7888
7880
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7979,7 +7971,7 @@ module Google
|
|
7979
7971
|
@vmware_engine_stub.list_private_connection_peering_routes request, options do |result, operation|
|
7980
7972
|
result = ::Gapic::Rest::PagedEnumerable.new @vmware_engine_stub, :list_private_connection_peering_routes, "peering_routes", request, result, options
|
7981
7973
|
yield result, operation if block_given?
|
7982
|
-
|
7974
|
+
throw :response, result
|
7983
7975
|
end
|
7984
7976
|
rescue ::Gapic::Rest::Error => e
|
7985
7977
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -8093,7 +8085,7 @@ module Google
|
|
8093
8085
|
@vmware_engine_stub.grant_dns_bind_permission request, options do |result, operation|
|
8094
8086
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
8095
8087
|
yield result, operation if block_given?
|
8096
|
-
|
8088
|
+
throw :response, result
|
8097
8089
|
end
|
8098
8090
|
rescue ::Gapic::Rest::Error => e
|
8099
8091
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -8179,7 +8171,6 @@ module Google
|
|
8179
8171
|
|
8180
8172
|
@vmware_engine_stub.get_dns_bind_permission request, options do |result, operation|
|
8181
8173
|
yield result, operation if block_given?
|
8182
|
-
return result
|
8183
8174
|
end
|
8184
8175
|
rescue ::Gapic::Rest::Error => e
|
8185
8176
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -8292,7 +8283,7 @@ module Google
|
|
8292
8283
|
@vmware_engine_stub.revoke_dns_bind_permission request, options do |result, operation|
|
8293
8284
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
8294
8285
|
yield result, operation if block_given?
|
8295
|
-
|
8286
|
+
throw :response, result
|
8296
8287
|
end
|
8297
8288
|
rescue ::Gapic::Rest::Error => e
|
8298
8289
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -8372,6 +8363,11 @@ module Google
|
|
8372
8363
|
# default endpoint URL. The default value of nil uses the environment
|
8373
8364
|
# universe (usually the default "googleapis.com" universe).
|
8374
8365
|
# @return [::String,nil]
|
8366
|
+
# @!attribute [rw] logger
|
8367
|
+
# A custom logger to use for request/response debug logging, or the value
|
8368
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
8369
|
+
# explicitly disable logging.
|
8370
|
+
# @return [::Logger,:default,nil]
|
8375
8371
|
#
|
8376
8372
|
class Configuration
|
8377
8373
|
extend ::Gapic::Config
|
@@ -8400,6 +8396,7 @@ module Google
|
|
8400
8396
|
# by the host service.
|
8401
8397
|
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
8402
8398
|
config_attr :bindings_override, {}, ::Hash, nil
|
8399
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
8403
8400
|
|
8404
8401
|
# @private
|
8405
8402
|
def initialize parent_config = nil
|