google-cloud-netapp-v1 1.3.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/netapp/v1/cloud_netapp_service_pb.rb +1 -1
- data/lib/google/cloud/netapp/v1/cloud_netapp_service_services_pb.rb +3 -0
- data/lib/google/cloud/netapp/v1/common_pb.rb +2 -1
- data/lib/google/cloud/netapp/v1/netapp/client.rb +176 -55
- data/lib/google/cloud/netapp/v1/netapp/operations.rb +9 -5
- data/lib/google/cloud/netapp/v1/netapp/rest/client.rb +160 -55
- data/lib/google/cloud/netapp/v1/netapp/rest/operations.rb +40 -28
- data/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb +507 -325
- data/lib/google/cloud/netapp/v1/storage_pool_pb.rb +2 -1
- data/lib/google/cloud/netapp/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +19 -0
- data/proto_docs/google/cloud/netapp/v1/common.rb +9 -0
- data/proto_docs/google/cloud/netapp/v1/storage_pool.rb +13 -0
- data/proto_docs/google/cloud/netapp/v1/volume.rb +1 -3
- metadata +5 -8
@@ -321,14 +321,26 @@ module Google
|
|
321
321
|
universe_domain: @config.universe_domain,
|
322
322
|
channel_args: @config.channel_args,
|
323
323
|
interceptors: @config.interceptors,
|
324
|
-
channel_pool_config: @config.channel_pool
|
324
|
+
channel_pool_config: @config.channel_pool,
|
325
|
+
logger: @config.logger
|
325
326
|
)
|
326
327
|
|
328
|
+
@net_app_stub.stub_logger&.info do |entry|
|
329
|
+
entry.set_system_name
|
330
|
+
entry.set_service
|
331
|
+
entry.message = "Created client for #{entry.service}"
|
332
|
+
entry.set_credentials_fields credentials
|
333
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
334
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
335
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
336
|
+
end
|
337
|
+
|
327
338
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
328
339
|
config.credentials = credentials
|
329
340
|
config.quota_project = @quota_project_id
|
330
341
|
config.endpoint = @net_app_stub.endpoint
|
331
342
|
config.universe_domain = @net_app_stub.universe_domain
|
343
|
+
config.logger = @net_app_stub.logger if config.respond_to? :logger=
|
332
344
|
end
|
333
345
|
end
|
334
346
|
|
@@ -346,6 +358,15 @@ module Google
|
|
346
358
|
#
|
347
359
|
attr_reader :location_client
|
348
360
|
|
361
|
+
##
|
362
|
+
# The logger used for request/response debug logging.
|
363
|
+
#
|
364
|
+
# @return [Logger]
|
365
|
+
#
|
366
|
+
def logger
|
367
|
+
@net_app_stub.logger
|
368
|
+
end
|
369
|
+
|
349
370
|
# Service calls
|
350
371
|
|
351
372
|
##
|
@@ -443,7 +464,7 @@ module Google
|
|
443
464
|
@net_app_stub.call_rpc :list_storage_pools, request, options: options do |response, operation|
|
444
465
|
response = ::Gapic::PagedEnumerable.new @net_app_stub, :list_storage_pools, request, response, operation, options
|
445
466
|
yield response, operation if block_given?
|
446
|
-
|
467
|
+
throw :response, response
|
447
468
|
end
|
448
469
|
rescue ::GRPC::BadStatus => e
|
449
470
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -544,7 +565,7 @@ module Google
|
|
544
565
|
@net_app_stub.call_rpc :create_storage_pool, request, options: options do |response, operation|
|
545
566
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
546
567
|
yield response, operation if block_given?
|
547
|
-
|
568
|
+
throw :response, response
|
548
569
|
end
|
549
570
|
rescue ::GRPC::BadStatus => e
|
550
571
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -630,7 +651,6 @@ module Google
|
|
630
651
|
|
631
652
|
@net_app_stub.call_rpc :get_storage_pool, request, options: options do |response, operation|
|
632
653
|
yield response, operation if block_given?
|
633
|
-
return response
|
634
654
|
end
|
635
655
|
rescue ::GRPC::BadStatus => e
|
636
656
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -730,7 +750,7 @@ module Google
|
|
730
750
|
@net_app_stub.call_rpc :update_storage_pool, request, options: options do |response, operation|
|
731
751
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
732
752
|
yield response, operation if block_given?
|
733
|
-
|
753
|
+
throw :response, response
|
734
754
|
end
|
735
755
|
rescue ::GRPC::BadStatus => e
|
736
756
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -824,7 +844,104 @@ module Google
|
|
824
844
|
@net_app_stub.call_rpc :delete_storage_pool, request, options: options do |response, operation|
|
825
845
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
826
846
|
yield response, operation if block_given?
|
827
|
-
|
847
|
+
throw :response, response
|
848
|
+
end
|
849
|
+
rescue ::GRPC::BadStatus => e
|
850
|
+
raise ::Google::Cloud::Error.from_error(e)
|
851
|
+
end
|
852
|
+
|
853
|
+
##
|
854
|
+
# ValidateDirectoryService does a connectivity check for a directory service
|
855
|
+
# policy attached to the storage pool.
|
856
|
+
#
|
857
|
+
# @overload validate_directory_service(request, options = nil)
|
858
|
+
# Pass arguments to `validate_directory_service` via a request object, either of type
|
859
|
+
# {::Google::Cloud::NetApp::V1::ValidateDirectoryServiceRequest} or an equivalent Hash.
|
860
|
+
#
|
861
|
+
# @param request [::Google::Cloud::NetApp::V1::ValidateDirectoryServiceRequest, ::Hash]
|
862
|
+
# A request object representing the call parameters. Required. To specify no
|
863
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
864
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
865
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
866
|
+
#
|
867
|
+
# @overload validate_directory_service(name: nil, directory_service_type: nil)
|
868
|
+
# Pass arguments to `validate_directory_service` via keyword arguments. Note that at
|
869
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
870
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
871
|
+
#
|
872
|
+
# @param name [::String]
|
873
|
+
# Required. Name of the storage pool
|
874
|
+
# @param directory_service_type [::Google::Cloud::NetApp::V1::DirectoryServiceType]
|
875
|
+
# Type of directory service policy attached to the storage pool.
|
876
|
+
#
|
877
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
878
|
+
# @yieldparam response [::Gapic::Operation]
|
879
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
880
|
+
#
|
881
|
+
# @return [::Gapic::Operation]
|
882
|
+
#
|
883
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
884
|
+
#
|
885
|
+
# @example Basic example
|
886
|
+
# require "google/cloud/netapp/v1"
|
887
|
+
#
|
888
|
+
# # Create a client object. The client can be reused for multiple calls.
|
889
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Client.new
|
890
|
+
#
|
891
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
892
|
+
# request = Google::Cloud::NetApp::V1::ValidateDirectoryServiceRequest.new
|
893
|
+
#
|
894
|
+
# # Call the validate_directory_service method.
|
895
|
+
# result = client.validate_directory_service request
|
896
|
+
#
|
897
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
898
|
+
# # check the status of an operation, cancel it, or wait for results.
|
899
|
+
# # Here is how to wait for a response.
|
900
|
+
# result.wait_until_done! timeout: 60
|
901
|
+
# if result.response?
|
902
|
+
# p result.response
|
903
|
+
# else
|
904
|
+
# puts "No response received."
|
905
|
+
# end
|
906
|
+
#
|
907
|
+
def validate_directory_service request, options = nil
|
908
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
909
|
+
|
910
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ValidateDirectoryServiceRequest
|
911
|
+
|
912
|
+
# Converts hash and nil to an options object
|
913
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
914
|
+
|
915
|
+
# Customize the options with defaults
|
916
|
+
metadata = @config.rpcs.validate_directory_service.metadata.to_h
|
917
|
+
|
918
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
919
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
920
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
921
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION
|
922
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
923
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
924
|
+
|
925
|
+
header_params = {}
|
926
|
+
if request.name
|
927
|
+
header_params["name"] = request.name
|
928
|
+
end
|
929
|
+
|
930
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
931
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
932
|
+
|
933
|
+
options.apply_defaults timeout: @config.rpcs.validate_directory_service.timeout,
|
934
|
+
metadata: metadata,
|
935
|
+
retry_policy: @config.rpcs.validate_directory_service.retry_policy
|
936
|
+
|
937
|
+
options.apply_defaults timeout: @config.timeout,
|
938
|
+
metadata: @config.metadata,
|
939
|
+
retry_policy: @config.retry_policy
|
940
|
+
|
941
|
+
@net_app_stub.call_rpc :validate_directory_service, request, options: options do |response, operation|
|
942
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
943
|
+
yield response, operation if block_given?
|
944
|
+
throw :response, response
|
828
945
|
end
|
829
946
|
rescue ::GRPC::BadStatus => e
|
830
947
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -919,7 +1036,7 @@ module Google
|
|
919
1036
|
@net_app_stub.call_rpc :switch_active_replica_zone, request, options: options do |response, operation|
|
920
1037
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
921
1038
|
yield response, operation if block_given?
|
922
|
-
|
1039
|
+
throw :response, response
|
923
1040
|
end
|
924
1041
|
rescue ::GRPC::BadStatus => e
|
925
1042
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1019,7 +1136,7 @@ module Google
|
|
1019
1136
|
@net_app_stub.call_rpc :list_volumes, request, options: options do |response, operation|
|
1020
1137
|
response = ::Gapic::PagedEnumerable.new @net_app_stub, :list_volumes, request, response, operation, options
|
1021
1138
|
yield response, operation if block_given?
|
1022
|
-
|
1139
|
+
throw :response, response
|
1023
1140
|
end
|
1024
1141
|
rescue ::GRPC::BadStatus => e
|
1025
1142
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1105,7 +1222,6 @@ module Google
|
|
1105
1222
|
|
1106
1223
|
@net_app_stub.call_rpc :get_volume, request, options: options do |response, operation|
|
1107
1224
|
yield response, operation if block_given?
|
1108
|
-
return response
|
1109
1225
|
end
|
1110
1226
|
rescue ::GRPC::BadStatus => e
|
1111
1227
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1206,7 +1322,7 @@ module Google
|
|
1206
1322
|
@net_app_stub.call_rpc :create_volume, request, options: options do |response, operation|
|
1207
1323
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1208
1324
|
yield response, operation if block_given?
|
1209
|
-
|
1325
|
+
throw :response, response
|
1210
1326
|
end
|
1211
1327
|
rescue ::GRPC::BadStatus => e
|
1212
1328
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1306,7 +1422,7 @@ module Google
|
|
1306
1422
|
@net_app_stub.call_rpc :update_volume, request, options: options do |response, operation|
|
1307
1423
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1308
1424
|
yield response, operation if block_given?
|
1309
|
-
|
1425
|
+
throw :response, response
|
1310
1426
|
end
|
1311
1427
|
rescue ::GRPC::BadStatus => e
|
1312
1428
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1404,7 +1520,7 @@ module Google
|
|
1404
1520
|
@net_app_stub.call_rpc :delete_volume, request, options: options do |response, operation|
|
1405
1521
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1406
1522
|
yield response, operation if block_given?
|
1407
|
-
|
1523
|
+
throw :response, response
|
1408
1524
|
end
|
1409
1525
|
rescue ::GRPC::BadStatus => e
|
1410
1526
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1505,7 +1621,7 @@ module Google
|
|
1505
1621
|
@net_app_stub.call_rpc :revert_volume, request, options: options do |response, operation|
|
1506
1622
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1507
1623
|
yield response, operation if block_given?
|
1508
|
-
|
1624
|
+
throw :response, response
|
1509
1625
|
end
|
1510
1626
|
rescue ::GRPC::BadStatus => e
|
1511
1627
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1607,7 +1723,7 @@ module Google
|
|
1607
1723
|
@net_app_stub.call_rpc :list_snapshots, request, options: options do |response, operation|
|
1608
1724
|
response = ::Gapic::PagedEnumerable.new @net_app_stub, :list_snapshots, request, response, operation, options
|
1609
1725
|
yield response, operation if block_given?
|
1610
|
-
|
1726
|
+
throw :response, response
|
1611
1727
|
end
|
1612
1728
|
rescue ::GRPC::BadStatus => e
|
1613
1729
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1694,7 +1810,6 @@ module Google
|
|
1694
1810
|
|
1695
1811
|
@net_app_stub.call_rpc :get_snapshot, request, options: options do |response, operation|
|
1696
1812
|
yield response, operation if block_given?
|
1697
|
-
return response
|
1698
1813
|
end
|
1699
1814
|
rescue ::GRPC::BadStatus => e
|
1700
1815
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1796,7 +1911,7 @@ module Google
|
|
1796
1911
|
@net_app_stub.call_rpc :create_snapshot, request, options: options do |response, operation|
|
1797
1912
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1798
1913
|
yield response, operation if block_given?
|
1799
|
-
|
1914
|
+
throw :response, response
|
1800
1915
|
end
|
1801
1916
|
rescue ::GRPC::BadStatus => e
|
1802
1917
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1891,7 +2006,7 @@ module Google
|
|
1891
2006
|
@net_app_stub.call_rpc :delete_snapshot, request, options: options do |response, operation|
|
1892
2007
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1893
2008
|
yield response, operation if block_given?
|
1894
|
-
|
2009
|
+
throw :response, response
|
1895
2010
|
end
|
1896
2011
|
rescue ::GRPC::BadStatus => e
|
1897
2012
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1988,7 +2103,7 @@ module Google
|
|
1988
2103
|
@net_app_stub.call_rpc :update_snapshot, request, options: options do |response, operation|
|
1989
2104
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1990
2105
|
yield response, operation if block_given?
|
1991
|
-
|
2106
|
+
throw :response, response
|
1992
2107
|
end
|
1993
2108
|
rescue ::GRPC::BadStatus => e
|
1994
2109
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2088,7 +2203,7 @@ module Google
|
|
2088
2203
|
@net_app_stub.call_rpc :list_active_directories, request, options: options do |response, operation|
|
2089
2204
|
response = ::Gapic::PagedEnumerable.new @net_app_stub, :list_active_directories, request, response, operation, options
|
2090
2205
|
yield response, operation if block_given?
|
2091
|
-
|
2206
|
+
throw :response, response
|
2092
2207
|
end
|
2093
2208
|
rescue ::GRPC::BadStatus => e
|
2094
2209
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2174,7 +2289,6 @@ module Google
|
|
2174
2289
|
|
2175
2290
|
@net_app_stub.call_rpc :get_active_directory, request, options: options do |response, operation|
|
2176
2291
|
yield response, operation if block_given?
|
2177
|
-
return response
|
2178
2292
|
end
|
2179
2293
|
rescue ::GRPC::BadStatus => e
|
2180
2294
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2276,7 +2390,7 @@ module Google
|
|
2276
2390
|
@net_app_stub.call_rpc :create_active_directory, request, options: options do |response, operation|
|
2277
2391
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2278
2392
|
yield response, operation if block_given?
|
2279
|
-
|
2393
|
+
throw :response, response
|
2280
2394
|
end
|
2281
2395
|
rescue ::GRPC::BadStatus => e
|
2282
2396
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2376,7 +2490,7 @@ module Google
|
|
2376
2490
|
@net_app_stub.call_rpc :update_active_directory, request, options: options do |response, operation|
|
2377
2491
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2378
2492
|
yield response, operation if block_given?
|
2379
|
-
|
2493
|
+
throw :response, response
|
2380
2494
|
end
|
2381
2495
|
rescue ::GRPC::BadStatus => e
|
2382
2496
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2470,7 +2584,7 @@ module Google
|
|
2470
2584
|
@net_app_stub.call_rpc :delete_active_directory, request, options: options do |response, operation|
|
2471
2585
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2472
2586
|
yield response, operation if block_given?
|
2473
|
-
|
2587
|
+
throw :response, response
|
2474
2588
|
end
|
2475
2589
|
rescue ::GRPC::BadStatus => e
|
2476
2590
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2570,7 +2684,7 @@ module Google
|
|
2570
2684
|
@net_app_stub.call_rpc :list_kms_configs, request, options: options do |response, operation|
|
2571
2685
|
response = ::Gapic::PagedEnumerable.new @net_app_stub, :list_kms_configs, request, response, operation, options
|
2572
2686
|
yield response, operation if block_given?
|
2573
|
-
|
2687
|
+
throw :response, response
|
2574
2688
|
end
|
2575
2689
|
rescue ::GRPC::BadStatus => e
|
2576
2690
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2671,7 +2785,7 @@ module Google
|
|
2671
2785
|
@net_app_stub.call_rpc :create_kms_config, request, options: options do |response, operation|
|
2672
2786
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2673
2787
|
yield response, operation if block_given?
|
2674
|
-
|
2788
|
+
throw :response, response
|
2675
2789
|
end
|
2676
2790
|
rescue ::GRPC::BadStatus => e
|
2677
2791
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2757,7 +2871,6 @@ module Google
|
|
2757
2871
|
|
2758
2872
|
@net_app_stub.call_rpc :get_kms_config, request, options: options do |response, operation|
|
2759
2873
|
yield response, operation if block_given?
|
2760
|
-
return response
|
2761
2874
|
end
|
2762
2875
|
rescue ::GRPC::BadStatus => e
|
2763
2876
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2857,7 +2970,7 @@ module Google
|
|
2857
2970
|
@net_app_stub.call_rpc :update_kms_config, request, options: options do |response, operation|
|
2858
2971
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2859
2972
|
yield response, operation if block_given?
|
2860
|
-
|
2973
|
+
throw :response, response
|
2861
2974
|
end
|
2862
2975
|
rescue ::GRPC::BadStatus => e
|
2863
2976
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2952,7 +3065,7 @@ module Google
|
|
2952
3065
|
@net_app_stub.call_rpc :encrypt_volumes, request, options: options do |response, operation|
|
2953
3066
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2954
3067
|
yield response, operation if block_given?
|
2955
|
-
|
3068
|
+
throw :response, response
|
2956
3069
|
end
|
2957
3070
|
rescue ::GRPC::BadStatus => e
|
2958
3071
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3038,7 +3151,6 @@ module Google
|
|
3038
3151
|
|
3039
3152
|
@net_app_stub.call_rpc :verify_kms_config, request, options: options do |response, operation|
|
3040
3153
|
yield response, operation if block_given?
|
3041
|
-
return response
|
3042
3154
|
end
|
3043
3155
|
rescue ::GRPC::BadStatus => e
|
3044
3156
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3132,7 +3244,7 @@ module Google
|
|
3132
3244
|
@net_app_stub.call_rpc :delete_kms_config, request, options: options do |response, operation|
|
3133
3245
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3134
3246
|
yield response, operation if block_given?
|
3135
|
-
|
3247
|
+
throw :response, response
|
3136
3248
|
end
|
3137
3249
|
rescue ::GRPC::BadStatus => e
|
3138
3250
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3234,7 +3346,7 @@ module Google
|
|
3234
3346
|
@net_app_stub.call_rpc :list_replications, request, options: options do |response, operation|
|
3235
3347
|
response = ::Gapic::PagedEnumerable.new @net_app_stub, :list_replications, request, response, operation, options
|
3236
3348
|
yield response, operation if block_given?
|
3237
|
-
|
3349
|
+
throw :response, response
|
3238
3350
|
end
|
3239
3351
|
rescue ::GRPC::BadStatus => e
|
3240
3352
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3321,7 +3433,6 @@ module Google
|
|
3321
3433
|
|
3322
3434
|
@net_app_stub.call_rpc :get_replication, request, options: options do |response, operation|
|
3323
3435
|
yield response, operation if block_given?
|
3324
|
-
return response
|
3325
3436
|
end
|
3326
3437
|
rescue ::GRPC::BadStatus => e
|
3327
3438
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3423,7 +3534,7 @@ module Google
|
|
3423
3534
|
@net_app_stub.call_rpc :create_replication, request, options: options do |response, operation|
|
3424
3535
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3425
3536
|
yield response, operation if block_given?
|
3426
|
-
|
3537
|
+
throw :response, response
|
3427
3538
|
end
|
3428
3539
|
rescue ::GRPC::BadStatus => e
|
3429
3540
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3518,7 +3629,7 @@ module Google
|
|
3518
3629
|
@net_app_stub.call_rpc :delete_replication, request, options: options do |response, operation|
|
3519
3630
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3520
3631
|
yield response, operation if block_given?
|
3521
|
-
|
3632
|
+
throw :response, response
|
3522
3633
|
end
|
3523
3634
|
rescue ::GRPC::BadStatus => e
|
3524
3635
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3615,7 +3726,7 @@ module Google
|
|
3615
3726
|
@net_app_stub.call_rpc :update_replication, request, options: options do |response, operation|
|
3616
3727
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3617
3728
|
yield response, operation if block_given?
|
3618
|
-
|
3729
|
+
throw :response, response
|
3619
3730
|
end
|
3620
3731
|
rescue ::GRPC::BadStatus => e
|
3621
3732
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3717,7 +3828,7 @@ module Google
|
|
3717
3828
|
@net_app_stub.call_rpc :stop_replication, request, options: options do |response, operation|
|
3718
3829
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3719
3830
|
yield response, operation if block_given?
|
3720
|
-
|
3831
|
+
throw :response, response
|
3721
3832
|
end
|
3722
3833
|
rescue ::GRPC::BadStatus => e
|
3723
3834
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3812,7 +3923,7 @@ module Google
|
|
3812
3923
|
@net_app_stub.call_rpc :resume_replication, request, options: options do |response, operation|
|
3813
3924
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3814
3925
|
yield response, operation if block_given?
|
3815
|
-
|
3926
|
+
throw :response, response
|
3816
3927
|
end
|
3817
3928
|
rescue ::GRPC::BadStatus => e
|
3818
3929
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3908,7 +4019,7 @@ module Google
|
|
3908
4019
|
@net_app_stub.call_rpc :reverse_replication_direction, request, options: options do |response, operation|
|
3909
4020
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3910
4021
|
yield response, operation if block_given?
|
3911
|
-
|
4022
|
+
throw :response, response
|
3912
4023
|
end
|
3913
4024
|
rescue ::GRPC::BadStatus => e
|
3914
4025
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4014,7 +4125,7 @@ module Google
|
|
4014
4125
|
@net_app_stub.call_rpc :establish_peering, request, options: options do |response, operation|
|
4015
4126
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4016
4127
|
yield response, operation if block_given?
|
4017
|
-
|
4128
|
+
throw :response, response
|
4018
4129
|
end
|
4019
4130
|
rescue ::GRPC::BadStatus => e
|
4020
4131
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4110,7 +4221,7 @@ module Google
|
|
4110
4221
|
@net_app_stub.call_rpc :sync_replication, request, options: options do |response, operation|
|
4111
4222
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4112
4223
|
yield response, operation if block_given?
|
4113
|
-
|
4224
|
+
throw :response, response
|
4114
4225
|
end
|
4115
4226
|
rescue ::GRPC::BadStatus => e
|
4116
4227
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4213,7 +4324,7 @@ module Google
|
|
4213
4324
|
@net_app_stub.call_rpc :create_backup_vault, request, options: options do |response, operation|
|
4214
4325
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4215
4326
|
yield response, operation if block_given?
|
4216
|
-
|
4327
|
+
throw :response, response
|
4217
4328
|
end
|
4218
4329
|
rescue ::GRPC::BadStatus => e
|
4219
4330
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4300,7 +4411,6 @@ module Google
|
|
4300
4411
|
|
4301
4412
|
@net_app_stub.call_rpc :get_backup_vault, request, options: options do |response, operation|
|
4302
4413
|
yield response, operation if block_given?
|
4303
|
-
return response
|
4304
4414
|
end
|
4305
4415
|
rescue ::GRPC::BadStatus => e
|
4306
4416
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4402,7 +4512,7 @@ module Google
|
|
4402
4512
|
@net_app_stub.call_rpc :list_backup_vaults, request, options: options do |response, operation|
|
4403
4513
|
response = ::Gapic::PagedEnumerable.new @net_app_stub, :list_backup_vaults, request, response, operation, options
|
4404
4514
|
yield response, operation if block_given?
|
4405
|
-
|
4515
|
+
throw :response, response
|
4406
4516
|
end
|
4407
4517
|
rescue ::GRPC::BadStatus => e
|
4408
4518
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4502,7 +4612,7 @@ module Google
|
|
4502
4612
|
@net_app_stub.call_rpc :update_backup_vault, request, options: options do |response, operation|
|
4503
4613
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4504
4614
|
yield response, operation if block_given?
|
4505
|
-
|
4615
|
+
throw :response, response
|
4506
4616
|
end
|
4507
4617
|
rescue ::GRPC::BadStatus => e
|
4508
4618
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4597,7 +4707,7 @@ module Google
|
|
4597
4707
|
@net_app_stub.call_rpc :delete_backup_vault, request, options: options do |response, operation|
|
4598
4708
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4599
4709
|
yield response, operation if block_given?
|
4600
|
-
|
4710
|
+
throw :response, response
|
4601
4711
|
end
|
4602
4712
|
rescue ::GRPC::BadStatus => e
|
4603
4713
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4703,7 +4813,7 @@ module Google
|
|
4703
4813
|
@net_app_stub.call_rpc :create_backup, request, options: options do |response, operation|
|
4704
4814
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4705
4815
|
yield response, operation if block_given?
|
4706
|
-
|
4816
|
+
throw :response, response
|
4707
4817
|
end
|
4708
4818
|
rescue ::GRPC::BadStatus => e
|
4709
4819
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4790,7 +4900,6 @@ module Google
|
|
4790
4900
|
|
4791
4901
|
@net_app_stub.call_rpc :get_backup, request, options: options do |response, operation|
|
4792
4902
|
yield response, operation if block_given?
|
4793
|
-
return response
|
4794
4903
|
end
|
4795
4904
|
rescue ::GRPC::BadStatus => e
|
4796
4905
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4903,7 +5012,7 @@ module Google
|
|
4903
5012
|
@net_app_stub.call_rpc :list_backups, request, options: options do |response, operation|
|
4904
5013
|
response = ::Gapic::PagedEnumerable.new @net_app_stub, :list_backups, request, response, operation, options
|
4905
5014
|
yield response, operation if block_given?
|
4906
|
-
|
5015
|
+
throw :response, response
|
4907
5016
|
end
|
4908
5017
|
rescue ::GRPC::BadStatus => e
|
4909
5018
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4998,7 +5107,7 @@ module Google
|
|
4998
5107
|
@net_app_stub.call_rpc :delete_backup, request, options: options do |response, operation|
|
4999
5108
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
5000
5109
|
yield response, operation if block_given?
|
5001
|
-
|
5110
|
+
throw :response, response
|
5002
5111
|
end
|
5003
5112
|
rescue ::GRPC::BadStatus => e
|
5004
5113
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5098,7 +5207,7 @@ module Google
|
|
5098
5207
|
@net_app_stub.call_rpc :update_backup, request, options: options do |response, operation|
|
5099
5208
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
5100
5209
|
yield response, operation if block_given?
|
5101
|
-
|
5210
|
+
throw :response, response
|
5102
5211
|
end
|
5103
5212
|
rescue ::GRPC::BadStatus => e
|
5104
5213
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5201,7 +5310,7 @@ module Google
|
|
5201
5310
|
@net_app_stub.call_rpc :create_backup_policy, request, options: options do |response, operation|
|
5202
5311
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
5203
5312
|
yield response, operation if block_given?
|
5204
|
-
|
5313
|
+
throw :response, response
|
5205
5314
|
end
|
5206
5315
|
rescue ::GRPC::BadStatus => e
|
5207
5316
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5288,7 +5397,6 @@ module Google
|
|
5288
5397
|
|
5289
5398
|
@net_app_stub.call_rpc :get_backup_policy, request, options: options do |response, operation|
|
5290
5399
|
yield response, operation if block_given?
|
5291
|
-
return response
|
5292
5400
|
end
|
5293
5401
|
rescue ::GRPC::BadStatus => e
|
5294
5402
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5388,7 +5496,7 @@ module Google
|
|
5388
5496
|
@net_app_stub.call_rpc :list_backup_policies, request, options: options do |response, operation|
|
5389
5497
|
response = ::Gapic::PagedEnumerable.new @net_app_stub, :list_backup_policies, request, response, operation, options
|
5390
5498
|
yield response, operation if block_given?
|
5391
|
-
|
5499
|
+
throw :response, response
|
5392
5500
|
end
|
5393
5501
|
rescue ::GRPC::BadStatus => e
|
5394
5502
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5488,7 +5596,7 @@ module Google
|
|
5488
5596
|
@net_app_stub.call_rpc :update_backup_policy, request, options: options do |response, operation|
|
5489
5597
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
5490
5598
|
yield response, operation if block_given?
|
5491
|
-
|
5599
|
+
throw :response, response
|
5492
5600
|
end
|
5493
5601
|
rescue ::GRPC::BadStatus => e
|
5494
5602
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5583,7 +5691,7 @@ module Google
|
|
5583
5691
|
@net_app_stub.call_rpc :delete_backup_policy, request, options: options do |response, operation|
|
5584
5692
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
5585
5693
|
yield response, operation if block_given?
|
5586
|
-
|
5694
|
+
throw :response, response
|
5587
5695
|
end
|
5588
5696
|
rescue ::GRPC::BadStatus => e
|
5589
5697
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5672,6 +5780,11 @@ module Google
|
|
5672
5780
|
# default endpoint URL. The default value of nil uses the environment
|
5673
5781
|
# universe (usually the default "googleapis.com" universe).
|
5674
5782
|
# @return [::String,nil]
|
5783
|
+
# @!attribute [rw] logger
|
5784
|
+
# A custom logger to use for request/response debug logging, or the value
|
5785
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
5786
|
+
# explicitly disable logging.
|
5787
|
+
# @return [::Logger,:default,nil]
|
5675
5788
|
#
|
5676
5789
|
class Configuration
|
5677
5790
|
extend ::Gapic::Config
|
@@ -5696,6 +5809,7 @@ module Google
|
|
5696
5809
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
5697
5810
|
config_attr :quota_project, nil, ::String, nil
|
5698
5811
|
config_attr :universe_domain, nil, ::String, nil
|
5812
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
5699
5813
|
|
5700
5814
|
# @private
|
5701
5815
|
def initialize parent_config = nil
|
@@ -5768,6 +5882,11 @@ module Google
|
|
5768
5882
|
#
|
5769
5883
|
attr_reader :delete_storage_pool
|
5770
5884
|
##
|
5885
|
+
# RPC-specific configuration for `validate_directory_service`
|
5886
|
+
# @return [::Gapic::Config::Method]
|
5887
|
+
#
|
5888
|
+
attr_reader :validate_directory_service
|
5889
|
+
##
|
5771
5890
|
# RPC-specific configuration for `switch_active_replica_zone`
|
5772
5891
|
# @return [::Gapic::Config::Method]
|
5773
5892
|
#
|
@@ -6025,6 +6144,8 @@ module Google
|
|
6025
6144
|
@update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
|
6026
6145
|
delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
|
6027
6146
|
@delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
|
6147
|
+
validate_directory_service_config = parent_rpcs.validate_directory_service if parent_rpcs.respond_to? :validate_directory_service
|
6148
|
+
@validate_directory_service = ::Gapic::Config::Method.new validate_directory_service_config
|
6028
6149
|
switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
|
6029
6150
|
@switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
|
6030
6151
|
list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
|