google-cloud-container-v1 1.4.0 → 1.5.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/container/v1/cluster_manager/client.rb +28 -35
- data/lib/google/cloud/container/v1/cluster_manager/rest/client.rb +28 -35
- data/lib/google/cloud/container/v1/cluster_manager/rest/service_stub.rb +286 -206
- data/lib/google/cloud/container/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +19 -0
- metadata +5 -5
@@ -237,8 +237,28 @@ module Google
|
|
237
237
|
endpoint: @config.endpoint,
|
238
238
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
239
239
|
universe_domain: @config.universe_domain,
|
240
|
-
credentials: credentials
|
240
|
+
credentials: credentials,
|
241
|
+
logger: @config.logger
|
241
242
|
)
|
243
|
+
|
244
|
+
@cluster_manager_stub.logger(stub: true)&.info do |entry|
|
245
|
+
entry.set_system_name
|
246
|
+
entry.set_service
|
247
|
+
entry.message = "Created client for #{entry.service}"
|
248
|
+
entry.set_credentials_fields credentials
|
249
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
250
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
251
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
##
|
256
|
+
# The logger used for request/response debug logging.
|
257
|
+
#
|
258
|
+
# @return [Logger]
|
259
|
+
#
|
260
|
+
def logger
|
261
|
+
@cluster_manager_stub.logger
|
242
262
|
end
|
243
263
|
|
244
264
|
# Service calls
|
@@ -328,7 +348,6 @@ module Google
|
|
328
348
|
|
329
349
|
@cluster_manager_stub.list_clusters request, options do |result, operation|
|
330
350
|
yield result, operation if block_given?
|
331
|
-
return result
|
332
351
|
end
|
333
352
|
rescue ::Gapic::Rest::Error => e
|
334
353
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -420,7 +439,6 @@ module Google
|
|
420
439
|
|
421
440
|
@cluster_manager_stub.get_cluster request, options do |result, operation|
|
422
441
|
yield result, operation if block_given?
|
423
|
-
return result
|
424
442
|
end
|
425
443
|
rescue ::Gapic::Rest::Error => e
|
426
444
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -525,7 +543,6 @@ module Google
|
|
525
543
|
|
526
544
|
@cluster_manager_stub.create_cluster request, options do |result, operation|
|
527
545
|
yield result, operation if block_given?
|
528
|
-
return result
|
529
546
|
end
|
530
547
|
rescue ::Gapic::Rest::Error => e
|
531
548
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -619,7 +636,6 @@ module Google
|
|
619
636
|
|
620
637
|
@cluster_manager_stub.update_cluster request, options do |result, operation|
|
621
638
|
yield result, operation if block_given?
|
622
|
-
return result
|
623
639
|
end
|
624
640
|
rescue ::Gapic::Rest::Error => e
|
625
641
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -811,7 +827,6 @@ module Google
|
|
811
827
|
|
812
828
|
@cluster_manager_stub.update_node_pool request, options do |result, operation|
|
813
829
|
yield result, operation if block_given?
|
814
|
-
return result
|
815
830
|
end
|
816
831
|
rescue ::Gapic::Rest::Error => e
|
817
832
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -909,7 +924,6 @@ module Google
|
|
909
924
|
|
910
925
|
@cluster_manager_stub.set_node_pool_autoscaling request, options do |result, operation|
|
911
926
|
yield result, operation if block_given?
|
912
|
-
return result
|
913
927
|
end
|
914
928
|
rescue ::Gapic::Rest::Error => e
|
915
929
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1013,7 +1027,6 @@ module Google
|
|
1013
1027
|
|
1014
1028
|
@cluster_manager_stub.set_logging_service request, options do |result, operation|
|
1015
1029
|
yield result, operation if block_given?
|
1016
|
-
return result
|
1017
1030
|
end
|
1018
1031
|
rescue ::Gapic::Rest::Error => e
|
1019
1032
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1117,7 +1130,6 @@ module Google
|
|
1117
1130
|
|
1118
1131
|
@cluster_manager_stub.set_monitoring_service request, options do |result, operation|
|
1119
1132
|
yield result, operation if block_given?
|
1120
|
-
return result
|
1121
1133
|
end
|
1122
1134
|
rescue ::Gapic::Rest::Error => e
|
1123
1135
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1212,7 +1224,6 @@ module Google
|
|
1212
1224
|
|
1213
1225
|
@cluster_manager_stub.set_addons_config request, options do |result, operation|
|
1214
1226
|
yield result, operation if block_given?
|
1215
|
-
return result
|
1216
1227
|
end
|
1217
1228
|
rescue ::Gapic::Rest::Error => e
|
1218
1229
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1315,7 +1326,6 @@ module Google
|
|
1315
1326
|
|
1316
1327
|
@cluster_manager_stub.set_locations request, options do |result, operation|
|
1317
1328
|
yield result, operation if block_given?
|
1318
|
-
return result
|
1319
1329
|
end
|
1320
1330
|
rescue ::Gapic::Rest::Error => e
|
1321
1331
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1418,7 +1428,6 @@ module Google
|
|
1418
1428
|
|
1419
1429
|
@cluster_manager_stub.update_master request, options do |result, operation|
|
1420
1430
|
yield result, operation if block_given?
|
1421
|
-
return result
|
1422
1431
|
end
|
1423
1432
|
rescue ::Gapic::Rest::Error => e
|
1424
1433
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1516,7 +1525,6 @@ module Google
|
|
1516
1525
|
|
1517
1526
|
@cluster_manager_stub.set_master_auth request, options do |result, operation|
|
1518
1527
|
yield result, operation if block_given?
|
1519
|
-
return result
|
1520
1528
|
end
|
1521
1529
|
rescue ::Gapic::Rest::Error => e
|
1522
1530
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1616,7 +1624,6 @@ module Google
|
|
1616
1624
|
|
1617
1625
|
@cluster_manager_stub.delete_cluster request, options do |result, operation|
|
1618
1626
|
yield result, operation if block_given?
|
1619
|
-
return result
|
1620
1627
|
end
|
1621
1628
|
rescue ::Gapic::Rest::Error => e
|
1622
1629
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1706,7 +1713,6 @@ module Google
|
|
1706
1713
|
|
1707
1714
|
@cluster_manager_stub.list_operations request, options do |result, operation|
|
1708
1715
|
yield result, operation if block_given?
|
1709
|
-
return result
|
1710
1716
|
end
|
1711
1717
|
rescue ::Gapic::Rest::Error => e
|
1712
1718
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1798,7 +1804,6 @@ module Google
|
|
1798
1804
|
|
1799
1805
|
@cluster_manager_stub.get_operation request, options do |result, operation|
|
1800
1806
|
yield result, operation if block_given?
|
1801
|
-
return result
|
1802
1807
|
end
|
1803
1808
|
rescue ::Gapic::Rest::Error => e
|
1804
1809
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1890,7 +1895,6 @@ module Google
|
|
1890
1895
|
|
1891
1896
|
@cluster_manager_stub.cancel_operation request, options do |result, operation|
|
1892
1897
|
yield result, operation if block_given?
|
1893
|
-
return result
|
1894
1898
|
end
|
1895
1899
|
rescue ::Gapic::Rest::Error => e
|
1896
1900
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1979,7 +1983,6 @@ module Google
|
|
1979
1983
|
|
1980
1984
|
@cluster_manager_stub.get_server_config request, options do |result, operation|
|
1981
1985
|
yield result, operation if block_given?
|
1982
|
-
return result
|
1983
1986
|
end
|
1984
1987
|
rescue ::Gapic::Rest::Error => e
|
1985
1988
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2060,7 +2063,6 @@ module Google
|
|
2060
2063
|
|
2061
2064
|
@cluster_manager_stub.get_json_web_keys request, options do |result, operation|
|
2062
2065
|
yield result, operation if block_given?
|
2063
|
-
return result
|
2064
2066
|
end
|
2065
2067
|
rescue ::Gapic::Rest::Error => e
|
2066
2068
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2152,7 +2154,6 @@ module Google
|
|
2152
2154
|
|
2153
2155
|
@cluster_manager_stub.list_node_pools request, options do |result, operation|
|
2154
2156
|
yield result, operation if block_given?
|
2155
|
-
return result
|
2156
2157
|
end
|
2157
2158
|
rescue ::Gapic::Rest::Error => e
|
2158
2159
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2248,7 +2249,6 @@ module Google
|
|
2248
2249
|
|
2249
2250
|
@cluster_manager_stub.get_node_pool request, options do |result, operation|
|
2250
2251
|
yield result, operation if block_given?
|
2251
|
-
return result
|
2252
2252
|
end
|
2253
2253
|
rescue ::Gapic::Rest::Error => e
|
2254
2254
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2343,7 +2343,6 @@ module Google
|
|
2343
2343
|
|
2344
2344
|
@cluster_manager_stub.create_node_pool request, options do |result, operation|
|
2345
2345
|
yield result, operation if block_given?
|
2346
|
-
return result
|
2347
2346
|
end
|
2348
2347
|
rescue ::Gapic::Rest::Error => e
|
2349
2348
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2439,7 +2438,6 @@ module Google
|
|
2439
2438
|
|
2440
2439
|
@cluster_manager_stub.delete_node_pool request, options do |result, operation|
|
2441
2440
|
yield result, operation if block_given?
|
2442
|
-
return result
|
2443
2441
|
end
|
2444
2442
|
rescue ::Gapic::Rest::Error => e
|
2445
2443
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2521,7 +2519,6 @@ module Google
|
|
2521
2519
|
|
2522
2520
|
@cluster_manager_stub.complete_node_pool_upgrade request, options do |result, operation|
|
2523
2521
|
yield result, operation if block_given?
|
2524
|
-
return result
|
2525
2522
|
end
|
2526
2523
|
rescue ::Gapic::Rest::Error => e
|
2527
2524
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2621,7 +2618,6 @@ module Google
|
|
2621
2618
|
|
2622
2619
|
@cluster_manager_stub.rollback_node_pool_upgrade request, options do |result, operation|
|
2623
2620
|
yield result, operation if block_given?
|
2624
|
-
return result
|
2625
2621
|
end
|
2626
2622
|
rescue ::Gapic::Rest::Error => e
|
2627
2623
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2719,7 +2715,6 @@ module Google
|
|
2719
2715
|
|
2720
2716
|
@cluster_manager_stub.set_node_pool_management request, options do |result, operation|
|
2721
2717
|
yield result, operation if block_given?
|
2722
|
-
return result
|
2723
2718
|
end
|
2724
2719
|
rescue ::Gapic::Rest::Error => e
|
2725
2720
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2820,7 +2815,6 @@ module Google
|
|
2820
2815
|
|
2821
2816
|
@cluster_manager_stub.set_labels request, options do |result, operation|
|
2822
2817
|
yield result, operation if block_given?
|
2823
|
-
return result
|
2824
2818
|
end
|
2825
2819
|
rescue ::Gapic::Rest::Error => e
|
2826
2820
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2914,7 +2908,6 @@ module Google
|
|
2914
2908
|
|
2915
2909
|
@cluster_manager_stub.set_legacy_abac request, options do |result, operation|
|
2916
2910
|
yield result, operation if block_given?
|
2917
|
-
return result
|
2918
2911
|
end
|
2919
2912
|
rescue ::Gapic::Rest::Error => e
|
2920
2913
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3008,7 +3001,6 @@ module Google
|
|
3008
3001
|
|
3009
3002
|
@cluster_manager_stub.start_ip_rotation request, options do |result, operation|
|
3010
3003
|
yield result, operation if block_given?
|
3011
|
-
return result
|
3012
3004
|
end
|
3013
3005
|
rescue ::Gapic::Rest::Error => e
|
3014
3006
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3100,7 +3092,6 @@ module Google
|
|
3100
3092
|
|
3101
3093
|
@cluster_manager_stub.complete_ip_rotation request, options do |result, operation|
|
3102
3094
|
yield result, operation if block_given?
|
3103
|
-
return result
|
3104
3095
|
end
|
3105
3096
|
rescue ::Gapic::Rest::Error => e
|
3106
3097
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3200,7 +3191,6 @@ module Google
|
|
3200
3191
|
|
3201
3192
|
@cluster_manager_stub.set_node_pool_size request, options do |result, operation|
|
3202
3193
|
yield result, operation if block_given?
|
3203
|
-
return result
|
3204
3194
|
end
|
3205
3195
|
rescue ::Gapic::Rest::Error => e
|
3206
3196
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3294,7 +3284,6 @@ module Google
|
|
3294
3284
|
|
3295
3285
|
@cluster_manager_stub.set_network_policy request, options do |result, operation|
|
3296
3286
|
yield result, operation if block_given?
|
3297
|
-
return result
|
3298
3287
|
end
|
3299
3288
|
rescue ::Gapic::Rest::Error => e
|
3300
3289
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3387,7 +3376,6 @@ module Google
|
|
3387
3376
|
|
3388
3377
|
@cluster_manager_stub.set_maintenance_policy request, options do |result, operation|
|
3389
3378
|
yield result, operation if block_given?
|
3390
|
-
return result
|
3391
3379
|
end
|
3392
3380
|
rescue ::Gapic::Rest::Error => e
|
3393
3381
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3485,7 +3473,7 @@ module Google
|
|
3485
3473
|
@cluster_manager_stub.list_usable_subnetworks request, options do |result, operation|
|
3486
3474
|
result = ::Gapic::Rest::PagedEnumerable.new @cluster_manager_stub, :list_usable_subnetworks, "subnetworks", request, result, options
|
3487
3475
|
yield result, operation if block_given?
|
3488
|
-
|
3476
|
+
throw :response, result
|
3489
3477
|
end
|
3490
3478
|
rescue ::Gapic::Rest::Error => e
|
3491
3479
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3566,7 +3554,6 @@ module Google
|
|
3566
3554
|
|
3567
3555
|
@cluster_manager_stub.check_autopilot_compatibility request, options do |result, operation|
|
3568
3556
|
yield result, operation if block_given?
|
3569
|
-
return result
|
3570
3557
|
end
|
3571
3558
|
rescue ::Gapic::Rest::Error => e
|
3572
3559
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3646,6 +3633,11 @@ module Google
|
|
3646
3633
|
# default endpoint URL. The default value of nil uses the environment
|
3647
3634
|
# universe (usually the default "googleapis.com" universe).
|
3648
3635
|
# @return [::String,nil]
|
3636
|
+
# @!attribute [rw] logger
|
3637
|
+
# A custom logger to use for request/response debug logging, or the value
|
3638
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
3639
|
+
# explicitly disable logging.
|
3640
|
+
# @return [::Logger,:default,nil]
|
3649
3641
|
#
|
3650
3642
|
class Configuration
|
3651
3643
|
extend ::Gapic::Config
|
@@ -3667,6 +3659,7 @@ module Google
|
|
3667
3659
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
3668
3660
|
config_attr :quota_project, nil, ::String, nil
|
3669
3661
|
config_attr :universe_domain, nil, ::String, nil
|
3662
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
3670
3663
|
|
3671
3664
|
# @private
|
3672
3665
|
def initialize parent_config = nil
|