google-cloud-netapp-v1 1.3.0 → 1.5.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/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
@@ -314,15 +314,27 @@ module Google
|
|
314
314
|
endpoint: @config.endpoint,
|
315
315
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
316
316
|
universe_domain: @config.universe_domain,
|
317
|
-
credentials: credentials
|
317
|
+
credentials: credentials,
|
318
|
+
logger: @config.logger
|
318
319
|
)
|
319
320
|
|
321
|
+
@net_app_stub.logger(stub: true)&.info do |entry|
|
322
|
+
entry.set_system_name
|
323
|
+
entry.set_service
|
324
|
+
entry.message = "Created client for #{entry.service}"
|
325
|
+
entry.set_credentials_fields credentials
|
326
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
327
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
328
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
329
|
+
end
|
330
|
+
|
320
331
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
321
332
|
config.credentials = credentials
|
322
333
|
config.quota_project = @quota_project_id
|
323
334
|
config.endpoint = @net_app_stub.endpoint
|
324
335
|
config.universe_domain = @net_app_stub.universe_domain
|
325
336
|
config.bindings_override = @config.bindings_override
|
337
|
+
config.logger = @net_app_stub.logger if config.respond_to? :logger=
|
326
338
|
end
|
327
339
|
end
|
328
340
|
|
@@ -340,6 +352,15 @@ module Google
|
|
340
352
|
#
|
341
353
|
attr_reader :location_client
|
342
354
|
|
355
|
+
##
|
356
|
+
# The logger used for request/response debug logging.
|
357
|
+
#
|
358
|
+
# @return [Logger]
|
359
|
+
#
|
360
|
+
def logger
|
361
|
+
@net_app_stub.logger
|
362
|
+
end
|
363
|
+
|
343
364
|
# Service calls
|
344
365
|
|
345
366
|
##
|
@@ -429,7 +450,6 @@ module Google
|
|
429
450
|
|
430
451
|
@net_app_stub.list_storage_pools request, options do |result, operation|
|
431
452
|
yield result, operation if block_given?
|
432
|
-
return result
|
433
453
|
end
|
434
454
|
rescue ::Gapic::Rest::Error => e
|
435
455
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -523,7 +543,7 @@ module Google
|
|
523
543
|
@net_app_stub.create_storage_pool request, options do |result, operation|
|
524
544
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
525
545
|
yield result, operation if block_given?
|
526
|
-
|
546
|
+
throw :response, result
|
527
547
|
end
|
528
548
|
rescue ::Gapic::Rest::Error => e
|
529
549
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -602,7 +622,6 @@ module Google
|
|
602
622
|
|
603
623
|
@net_app_stub.get_storage_pool request, options do |result, operation|
|
604
624
|
yield result, operation if block_given?
|
605
|
-
return result
|
606
625
|
end
|
607
626
|
rescue ::Gapic::Rest::Error => e
|
608
627
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -695,7 +714,7 @@ module Google
|
|
695
714
|
@net_app_stub.update_storage_pool request, options do |result, operation|
|
696
715
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
697
716
|
yield result, operation if block_given?
|
698
|
-
|
717
|
+
throw :response, result
|
699
718
|
end
|
700
719
|
rescue ::Gapic::Rest::Error => e
|
701
720
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -782,7 +801,97 @@ module Google
|
|
782
801
|
@net_app_stub.delete_storage_pool request, options do |result, operation|
|
783
802
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
784
803
|
yield result, operation if block_given?
|
785
|
-
|
804
|
+
throw :response, result
|
805
|
+
end
|
806
|
+
rescue ::Gapic::Rest::Error => e
|
807
|
+
raise ::Google::Cloud::Error.from_error(e)
|
808
|
+
end
|
809
|
+
|
810
|
+
##
|
811
|
+
# ValidateDirectoryService does a connectivity check for a directory service
|
812
|
+
# policy attached to the storage pool.
|
813
|
+
#
|
814
|
+
# @overload validate_directory_service(request, options = nil)
|
815
|
+
# Pass arguments to `validate_directory_service` via a request object, either of type
|
816
|
+
# {::Google::Cloud::NetApp::V1::ValidateDirectoryServiceRequest} or an equivalent Hash.
|
817
|
+
#
|
818
|
+
# @param request [::Google::Cloud::NetApp::V1::ValidateDirectoryServiceRequest, ::Hash]
|
819
|
+
# A request object representing the call parameters. Required. To specify no
|
820
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
821
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
822
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
823
|
+
#
|
824
|
+
# @overload validate_directory_service(name: nil, directory_service_type: nil)
|
825
|
+
# Pass arguments to `validate_directory_service` via keyword arguments. Note that at
|
826
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
827
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
828
|
+
#
|
829
|
+
# @param name [::String]
|
830
|
+
# Required. Name of the storage pool
|
831
|
+
# @param directory_service_type [::Google::Cloud::NetApp::V1::DirectoryServiceType]
|
832
|
+
# Type of directory service policy attached to the storage pool.
|
833
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
834
|
+
# @yieldparam result [::Gapic::Operation]
|
835
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
836
|
+
#
|
837
|
+
# @return [::Gapic::Operation]
|
838
|
+
#
|
839
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
840
|
+
#
|
841
|
+
# @example Basic example
|
842
|
+
# require "google/cloud/netapp/v1"
|
843
|
+
#
|
844
|
+
# # Create a client object. The client can be reused for multiple calls.
|
845
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
846
|
+
#
|
847
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
848
|
+
# request = Google::Cloud::NetApp::V1::ValidateDirectoryServiceRequest.new
|
849
|
+
#
|
850
|
+
# # Call the validate_directory_service method.
|
851
|
+
# result = client.validate_directory_service request
|
852
|
+
#
|
853
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
854
|
+
# # check the status of an operation, cancel it, or wait for results.
|
855
|
+
# # Here is how to wait for a response.
|
856
|
+
# result.wait_until_done! timeout: 60
|
857
|
+
# if result.response?
|
858
|
+
# p result.response
|
859
|
+
# else
|
860
|
+
# puts "No response received."
|
861
|
+
# end
|
862
|
+
#
|
863
|
+
def validate_directory_service request, options = nil
|
864
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
865
|
+
|
866
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ValidateDirectoryServiceRequest
|
867
|
+
|
868
|
+
# Converts hash and nil to an options object
|
869
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
870
|
+
|
871
|
+
# Customize the options with defaults
|
872
|
+
call_metadata = @config.rpcs.validate_directory_service.metadata.to_h
|
873
|
+
|
874
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
875
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
876
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
877
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
878
|
+
transports_version_send: [:rest]
|
879
|
+
|
880
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
881
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
882
|
+
|
883
|
+
options.apply_defaults timeout: @config.rpcs.validate_directory_service.timeout,
|
884
|
+
metadata: call_metadata,
|
885
|
+
retry_policy: @config.rpcs.validate_directory_service.retry_policy
|
886
|
+
|
887
|
+
options.apply_defaults timeout: @config.timeout,
|
888
|
+
metadata: @config.metadata,
|
889
|
+
retry_policy: @config.retry_policy
|
890
|
+
|
891
|
+
@net_app_stub.validate_directory_service request, options do |result, operation|
|
892
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
893
|
+
yield result, operation if block_given?
|
894
|
+
throw :response, result
|
786
895
|
end
|
787
896
|
rescue ::Gapic::Rest::Error => e
|
788
897
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -870,7 +979,7 @@ module Google
|
|
870
979
|
@net_app_stub.switch_active_replica_zone request, options do |result, operation|
|
871
980
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
872
981
|
yield result, operation if block_given?
|
873
|
-
|
982
|
+
throw :response, result
|
874
983
|
end
|
875
984
|
rescue ::Gapic::Rest::Error => e
|
876
985
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -962,7 +1071,6 @@ module Google
|
|
962
1071
|
|
963
1072
|
@net_app_stub.list_volumes request, options do |result, operation|
|
964
1073
|
yield result, operation if block_given?
|
965
|
-
return result
|
966
1074
|
end
|
967
1075
|
rescue ::Gapic::Rest::Error => e
|
968
1076
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1041,7 +1149,6 @@ module Google
|
|
1041
1149
|
|
1042
1150
|
@net_app_stub.get_volume request, options do |result, operation|
|
1043
1151
|
yield result, operation if block_given?
|
1044
|
-
return result
|
1045
1152
|
end
|
1046
1153
|
rescue ::Gapic::Rest::Error => e
|
1047
1154
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1135,7 +1242,7 @@ module Google
|
|
1135
1242
|
@net_app_stub.create_volume request, options do |result, operation|
|
1136
1243
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1137
1244
|
yield result, operation if block_given?
|
1138
|
-
|
1245
|
+
throw :response, result
|
1139
1246
|
end
|
1140
1247
|
rescue ::Gapic::Rest::Error => e
|
1141
1248
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1228,7 +1335,7 @@ module Google
|
|
1228
1335
|
@net_app_stub.update_volume request, options do |result, operation|
|
1229
1336
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1230
1337
|
yield result, operation if block_given?
|
1231
|
-
|
1338
|
+
throw :response, result
|
1232
1339
|
end
|
1233
1340
|
rescue ::Gapic::Rest::Error => e
|
1234
1341
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1319,7 +1426,7 @@ module Google
|
|
1319
1426
|
@net_app_stub.delete_volume request, options do |result, operation|
|
1320
1427
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1321
1428
|
yield result, operation if block_given?
|
1322
|
-
|
1429
|
+
throw :response, result
|
1323
1430
|
end
|
1324
1431
|
rescue ::Gapic::Rest::Error => e
|
1325
1432
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1413,7 +1520,7 @@ module Google
|
|
1413
1520
|
@net_app_stub.revert_volume request, options do |result, operation|
|
1414
1521
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1415
1522
|
yield result, operation if block_given?
|
1416
|
-
|
1523
|
+
throw :response, result
|
1417
1524
|
end
|
1418
1525
|
rescue ::Gapic::Rest::Error => e
|
1419
1526
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1507,7 +1614,6 @@ module Google
|
|
1507
1614
|
|
1508
1615
|
@net_app_stub.list_snapshots request, options do |result, operation|
|
1509
1616
|
yield result, operation if block_given?
|
1510
|
-
return result
|
1511
1617
|
end
|
1512
1618
|
rescue ::Gapic::Rest::Error => e
|
1513
1619
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1587,7 +1693,6 @@ module Google
|
|
1587
1693
|
|
1588
1694
|
@net_app_stub.get_snapshot request, options do |result, operation|
|
1589
1695
|
yield result, operation if block_given?
|
1590
|
-
return result
|
1591
1696
|
end
|
1592
1697
|
rescue ::Gapic::Rest::Error => e
|
1593
1698
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1682,7 +1787,7 @@ module Google
|
|
1682
1787
|
@net_app_stub.create_snapshot request, options do |result, operation|
|
1683
1788
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1684
1789
|
yield result, operation if block_given?
|
1685
|
-
|
1790
|
+
throw :response, result
|
1686
1791
|
end
|
1687
1792
|
rescue ::Gapic::Rest::Error => e
|
1688
1793
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1770,7 +1875,7 @@ module Google
|
|
1770
1875
|
@net_app_stub.delete_snapshot request, options do |result, operation|
|
1771
1876
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1772
1877
|
yield result, operation if block_given?
|
1773
|
-
|
1878
|
+
throw :response, result
|
1774
1879
|
end
|
1775
1880
|
rescue ::Gapic::Rest::Error => e
|
1776
1881
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1860,7 +1965,7 @@ module Google
|
|
1860
1965
|
@net_app_stub.update_snapshot request, options do |result, operation|
|
1861
1966
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1862
1967
|
yield result, operation if block_given?
|
1863
|
-
|
1968
|
+
throw :response, result
|
1864
1969
|
end
|
1865
1970
|
rescue ::Gapic::Rest::Error => e
|
1866
1971
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1952,7 +2057,6 @@ module Google
|
|
1952
2057
|
|
1953
2058
|
@net_app_stub.list_active_directories request, options do |result, operation|
|
1954
2059
|
yield result, operation if block_given?
|
1955
|
-
return result
|
1956
2060
|
end
|
1957
2061
|
rescue ::Gapic::Rest::Error => e
|
1958
2062
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2031,7 +2135,6 @@ module Google
|
|
2031
2135
|
|
2032
2136
|
@net_app_stub.get_active_directory request, options do |result, operation|
|
2033
2137
|
yield result, operation if block_given?
|
2034
|
-
return result
|
2035
2138
|
end
|
2036
2139
|
rescue ::Gapic::Rest::Error => e
|
2037
2140
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2126,7 +2229,7 @@ module Google
|
|
2126
2229
|
@net_app_stub.create_active_directory request, options do |result, operation|
|
2127
2230
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2128
2231
|
yield result, operation if block_given?
|
2129
|
-
|
2232
|
+
throw :response, result
|
2130
2233
|
end
|
2131
2234
|
rescue ::Gapic::Rest::Error => e
|
2132
2235
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2219,7 +2322,7 @@ module Google
|
|
2219
2322
|
@net_app_stub.update_active_directory request, options do |result, operation|
|
2220
2323
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2221
2324
|
yield result, operation if block_given?
|
2222
|
-
|
2325
|
+
throw :response, result
|
2223
2326
|
end
|
2224
2327
|
rescue ::Gapic::Rest::Error => e
|
2225
2328
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2306,7 +2409,7 @@ module Google
|
|
2306
2409
|
@net_app_stub.delete_active_directory request, options do |result, operation|
|
2307
2410
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2308
2411
|
yield result, operation if block_given?
|
2309
|
-
|
2412
|
+
throw :response, result
|
2310
2413
|
end
|
2311
2414
|
rescue ::Gapic::Rest::Error => e
|
2312
2415
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2398,7 +2501,6 @@ module Google
|
|
2398
2501
|
|
2399
2502
|
@net_app_stub.list_kms_configs request, options do |result, operation|
|
2400
2503
|
yield result, operation if block_given?
|
2401
|
-
return result
|
2402
2504
|
end
|
2403
2505
|
rescue ::Gapic::Rest::Error => e
|
2404
2506
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2492,7 +2594,7 @@ module Google
|
|
2492
2594
|
@net_app_stub.create_kms_config request, options do |result, operation|
|
2493
2595
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2494
2596
|
yield result, operation if block_given?
|
2495
|
-
|
2597
|
+
throw :response, result
|
2496
2598
|
end
|
2497
2599
|
rescue ::Gapic::Rest::Error => e
|
2498
2600
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2571,7 +2673,6 @@ module Google
|
|
2571
2673
|
|
2572
2674
|
@net_app_stub.get_kms_config request, options do |result, operation|
|
2573
2675
|
yield result, operation if block_given?
|
2574
|
-
return result
|
2575
2676
|
end
|
2576
2677
|
rescue ::Gapic::Rest::Error => e
|
2577
2678
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2664,7 +2765,7 @@ module Google
|
|
2664
2765
|
@net_app_stub.update_kms_config request, options do |result, operation|
|
2665
2766
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2666
2767
|
yield result, operation if block_given?
|
2667
|
-
|
2768
|
+
throw :response, result
|
2668
2769
|
end
|
2669
2770
|
rescue ::Gapic::Rest::Error => e
|
2670
2771
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2752,7 +2853,7 @@ module Google
|
|
2752
2853
|
@net_app_stub.encrypt_volumes request, options do |result, operation|
|
2753
2854
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2754
2855
|
yield result, operation if block_given?
|
2755
|
-
|
2856
|
+
throw :response, result
|
2756
2857
|
end
|
2757
2858
|
rescue ::Gapic::Rest::Error => e
|
2758
2859
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2831,7 +2932,6 @@ module Google
|
|
2831
2932
|
|
2832
2933
|
@net_app_stub.verify_kms_config request, options do |result, operation|
|
2833
2934
|
yield result, operation if block_given?
|
2834
|
-
return result
|
2835
2935
|
end
|
2836
2936
|
rescue ::Gapic::Rest::Error => e
|
2837
2937
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2918,7 +3018,7 @@ module Google
|
|
2918
3018
|
@net_app_stub.delete_kms_config request, options do |result, operation|
|
2919
3019
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2920
3020
|
yield result, operation if block_given?
|
2921
|
-
|
3021
|
+
throw :response, result
|
2922
3022
|
end
|
2923
3023
|
rescue ::Gapic::Rest::Error => e
|
2924
3024
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3012,7 +3112,6 @@ module Google
|
|
3012
3112
|
|
3013
3113
|
@net_app_stub.list_replications request, options do |result, operation|
|
3014
3114
|
yield result, operation if block_given?
|
3015
|
-
return result
|
3016
3115
|
end
|
3017
3116
|
rescue ::Gapic::Rest::Error => e
|
3018
3117
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3092,7 +3191,6 @@ module Google
|
|
3092
3191
|
|
3093
3192
|
@net_app_stub.get_replication request, options do |result, operation|
|
3094
3193
|
yield result, operation if block_given?
|
3095
|
-
return result
|
3096
3194
|
end
|
3097
3195
|
rescue ::Gapic::Rest::Error => e
|
3098
3196
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3187,7 +3285,7 @@ module Google
|
|
3187
3285
|
@net_app_stub.create_replication request, options do |result, operation|
|
3188
3286
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3189
3287
|
yield result, operation if block_given?
|
3190
|
-
|
3288
|
+
throw :response, result
|
3191
3289
|
end
|
3192
3290
|
rescue ::Gapic::Rest::Error => e
|
3193
3291
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3275,7 +3373,7 @@ module Google
|
|
3275
3373
|
@net_app_stub.delete_replication request, options do |result, operation|
|
3276
3374
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3277
3375
|
yield result, operation if block_given?
|
3278
|
-
|
3376
|
+
throw :response, result
|
3279
3377
|
end
|
3280
3378
|
rescue ::Gapic::Rest::Error => e
|
3281
3379
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3365,7 +3463,7 @@ module Google
|
|
3365
3463
|
@net_app_stub.update_replication request, options do |result, operation|
|
3366
3464
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3367
3465
|
yield result, operation if block_given?
|
3368
|
-
|
3466
|
+
throw :response, result
|
3369
3467
|
end
|
3370
3468
|
rescue ::Gapic::Rest::Error => e
|
3371
3469
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3460,7 +3558,7 @@ module Google
|
|
3460
3558
|
@net_app_stub.stop_replication request, options do |result, operation|
|
3461
3559
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3462
3560
|
yield result, operation if block_given?
|
3463
|
-
|
3561
|
+
throw :response, result
|
3464
3562
|
end
|
3465
3563
|
rescue ::Gapic::Rest::Error => e
|
3466
3564
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3548,7 +3646,7 @@ module Google
|
|
3548
3646
|
@net_app_stub.resume_replication request, options do |result, operation|
|
3549
3647
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3550
3648
|
yield result, operation if block_given?
|
3551
|
-
|
3649
|
+
throw :response, result
|
3552
3650
|
end
|
3553
3651
|
rescue ::Gapic::Rest::Error => e
|
3554
3652
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3637,7 +3735,7 @@ module Google
|
|
3637
3735
|
@net_app_stub.reverse_replication_direction request, options do |result, operation|
|
3638
3736
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3639
3737
|
yield result, operation if block_given?
|
3640
|
-
|
3738
|
+
throw :response, result
|
3641
3739
|
end
|
3642
3740
|
rescue ::Gapic::Rest::Error => e
|
3643
3741
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3736,7 +3834,7 @@ module Google
|
|
3736
3834
|
@net_app_stub.establish_peering request, options do |result, operation|
|
3737
3835
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3738
3836
|
yield result, operation if block_given?
|
3739
|
-
|
3837
|
+
throw :response, result
|
3740
3838
|
end
|
3741
3839
|
rescue ::Gapic::Rest::Error => e
|
3742
3840
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3825,7 +3923,7 @@ module Google
|
|
3825
3923
|
@net_app_stub.sync_replication request, options do |result, operation|
|
3826
3924
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3827
3925
|
yield result, operation if block_given?
|
3828
|
-
|
3926
|
+
throw :response, result
|
3829
3927
|
end
|
3830
3928
|
rescue ::Gapic::Rest::Error => e
|
3831
3929
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3921,7 +4019,7 @@ module Google
|
|
3921
4019
|
@net_app_stub.create_backup_vault request, options do |result, operation|
|
3922
4020
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3923
4021
|
yield result, operation if block_given?
|
3924
|
-
|
4022
|
+
throw :response, result
|
3925
4023
|
end
|
3926
4024
|
rescue ::Gapic::Rest::Error => e
|
3927
4025
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4001,7 +4099,6 @@ module Google
|
|
4001
4099
|
|
4002
4100
|
@net_app_stub.get_backup_vault request, options do |result, operation|
|
4003
4101
|
yield result, operation if block_given?
|
4004
|
-
return result
|
4005
4102
|
end
|
4006
4103
|
rescue ::Gapic::Rest::Error => e
|
4007
4104
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4095,7 +4192,6 @@ module Google
|
|
4095
4192
|
|
4096
4193
|
@net_app_stub.list_backup_vaults request, options do |result, operation|
|
4097
4194
|
yield result, operation if block_given?
|
4098
|
-
return result
|
4099
4195
|
end
|
4100
4196
|
rescue ::Gapic::Rest::Error => e
|
4101
4197
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4188,7 +4284,7 @@ module Google
|
|
4188
4284
|
@net_app_stub.update_backup_vault request, options do |result, operation|
|
4189
4285
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
4190
4286
|
yield result, operation if block_given?
|
4191
|
-
|
4287
|
+
throw :response, result
|
4192
4288
|
end
|
4193
4289
|
rescue ::Gapic::Rest::Error => e
|
4194
4290
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4276,7 +4372,7 @@ module Google
|
|
4276
4372
|
@net_app_stub.delete_backup_vault request, options do |result, operation|
|
4277
4373
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
4278
4374
|
yield result, operation if block_given?
|
4279
|
-
|
4375
|
+
throw :response, result
|
4280
4376
|
end
|
4281
4377
|
rescue ::Gapic::Rest::Error => e
|
4282
4378
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4375,7 +4471,7 @@ module Google
|
|
4375
4471
|
@net_app_stub.create_backup request, options do |result, operation|
|
4376
4472
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
4377
4473
|
yield result, operation if block_given?
|
4378
|
-
|
4474
|
+
throw :response, result
|
4379
4475
|
end
|
4380
4476
|
rescue ::Gapic::Rest::Error => e
|
4381
4477
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4455,7 +4551,6 @@ module Google
|
|
4455
4551
|
|
4456
4552
|
@net_app_stub.get_backup request, options do |result, operation|
|
4457
4553
|
yield result, operation if block_given?
|
4458
|
-
return result
|
4459
4554
|
end
|
4460
4555
|
rescue ::Gapic::Rest::Error => e
|
4461
4556
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4560,7 +4655,6 @@ module Google
|
|
4560
4655
|
|
4561
4656
|
@net_app_stub.list_backups request, options do |result, operation|
|
4562
4657
|
yield result, operation if block_given?
|
4563
|
-
return result
|
4564
4658
|
end
|
4565
4659
|
rescue ::Gapic::Rest::Error => e
|
4566
4660
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4648,7 +4742,7 @@ module Google
|
|
4648
4742
|
@net_app_stub.delete_backup request, options do |result, operation|
|
4649
4743
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
4650
4744
|
yield result, operation if block_given?
|
4651
|
-
|
4745
|
+
throw :response, result
|
4652
4746
|
end
|
4653
4747
|
rescue ::Gapic::Rest::Error => e
|
4654
4748
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4741,7 +4835,7 @@ module Google
|
|
4741
4835
|
@net_app_stub.update_backup request, options do |result, operation|
|
4742
4836
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
4743
4837
|
yield result, operation if block_given?
|
4744
|
-
|
4838
|
+
throw :response, result
|
4745
4839
|
end
|
4746
4840
|
rescue ::Gapic::Rest::Error => e
|
4747
4841
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4837,7 +4931,7 @@ module Google
|
|
4837
4931
|
@net_app_stub.create_backup_policy request, options do |result, operation|
|
4838
4932
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
4839
4933
|
yield result, operation if block_given?
|
4840
|
-
|
4934
|
+
throw :response, result
|
4841
4935
|
end
|
4842
4936
|
rescue ::Gapic::Rest::Error => e
|
4843
4937
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4917,7 +5011,6 @@ module Google
|
|
4917
5011
|
|
4918
5012
|
@net_app_stub.get_backup_policy request, options do |result, operation|
|
4919
5013
|
yield result, operation if block_given?
|
4920
|
-
return result
|
4921
5014
|
end
|
4922
5015
|
rescue ::Gapic::Rest::Error => e
|
4923
5016
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5009,7 +5102,6 @@ module Google
|
|
5009
5102
|
|
5010
5103
|
@net_app_stub.list_backup_policies request, options do |result, operation|
|
5011
5104
|
yield result, operation if block_given?
|
5012
|
-
return result
|
5013
5105
|
end
|
5014
5106
|
rescue ::Gapic::Rest::Error => e
|
5015
5107
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5102,7 +5194,7 @@ module Google
|
|
5102
5194
|
@net_app_stub.update_backup_policy request, options do |result, operation|
|
5103
5195
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
5104
5196
|
yield result, operation if block_given?
|
5105
|
-
|
5197
|
+
throw :response, result
|
5106
5198
|
end
|
5107
5199
|
rescue ::Gapic::Rest::Error => e
|
5108
5200
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5190,7 +5282,7 @@ module Google
|
|
5190
5282
|
@net_app_stub.delete_backup_policy request, options do |result, operation|
|
5191
5283
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
5192
5284
|
yield result, operation if block_given?
|
5193
|
-
|
5285
|
+
throw :response, result
|
5194
5286
|
end
|
5195
5287
|
rescue ::Gapic::Rest::Error => e
|
5196
5288
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5270,6 +5362,11 @@ module Google
|
|
5270
5362
|
# default endpoint URL. The default value of nil uses the environment
|
5271
5363
|
# universe (usually the default "googleapis.com" universe).
|
5272
5364
|
# @return [::String,nil]
|
5365
|
+
# @!attribute [rw] logger
|
5366
|
+
# A custom logger to use for request/response debug logging, or the value
|
5367
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
5368
|
+
# explicitly disable logging.
|
5369
|
+
# @return [::Logger,:default,nil]
|
5273
5370
|
#
|
5274
5371
|
class Configuration
|
5275
5372
|
extend ::Gapic::Config
|
@@ -5298,6 +5395,7 @@ module Google
|
|
5298
5395
|
# by the host service.
|
5299
5396
|
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
5300
5397
|
config_attr :bindings_override, {}, ::Hash, nil
|
5398
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
5301
5399
|
|
5302
5400
|
# @private
|
5303
5401
|
def initialize parent_config = nil
|
@@ -5362,6 +5460,11 @@ module Google
|
|
5362
5460
|
#
|
5363
5461
|
attr_reader :delete_storage_pool
|
5364
5462
|
##
|
5463
|
+
# RPC-specific configuration for `validate_directory_service`
|
5464
|
+
# @return [::Gapic::Config::Method]
|
5465
|
+
#
|
5466
|
+
attr_reader :validate_directory_service
|
5467
|
+
##
|
5365
5468
|
# RPC-specific configuration for `switch_active_replica_zone`
|
5366
5469
|
# @return [::Gapic::Config::Method]
|
5367
5470
|
#
|
@@ -5619,6 +5722,8 @@ module Google
|
|
5619
5722
|
@update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
|
5620
5723
|
delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
|
5621
5724
|
@delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
|
5725
|
+
validate_directory_service_config = parent_rpcs.validate_directory_service if parent_rpcs.respond_to? :validate_directory_service
|
5726
|
+
@validate_directory_service = ::Gapic::Config::Method.new validate_directory_service_config
|
5622
5727
|
switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
|
5623
5728
|
@switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
|
5624
5729
|
list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
|