google-cloud-cloud_dms-v1 1.0.1 → 1.2.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 +31 -21
- data/lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb +73 -42
- data/lib/google/cloud/cloud_dms/v1/data_migration_service/operations.rb +19 -15
- data/lib/google/cloud/cloud_dms/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/cloud/clouddms/v1/clouddms.rb +8 -0
- data/proto_docs/google/cloud/clouddms/v1/clouddms_resources.rb +34 -0
- data/proto_docs/google/cloud/clouddms/v1/conversionworkspace_resources.rb +80 -0
- data/proto_docs/google/longrunning/operations.rb +23 -14
- data/proto_docs/google/protobuf/struct.rb +12 -0
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85f36c1a3170f5a1b8adb3327a86687cce44a5e8696324574b948de375fb1eef
|
4
|
+
data.tar.gz: b94240e7641b7c54241112f8994f8e3ae6351228aa701ece6206d1b1ec6bacf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c47b81f84697d020c26b1a22e312cc3331db9c379b71557eef0a8ed8031a7a06a7c22400cd7b476abb4500c2b6d251048054c5bd786b67e70ef0a89966c65e1
|
7
|
+
data.tar.gz: d1c9a33cfd3a8fd43fa152a45e52a628ab4668f3b4d5bb5176ab7559f3aa169224ec059338fbc0872a5001d7f3288c4c2b3009d68220bbdb66ec57e4d6baf2c6
|
data/README.md
CHANGED
@@ -43,40 +43,50 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/database-migration/)
|
44
44
|
for general usage information.
|
45
45
|
|
46
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
## Debug Logging
|
47
|
+
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
49
|
+
your application's integration with the API. When logging is activated, key
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
52
|
+
stream.
|
53
|
+
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
60
|
+
permanently in production.
|
61
|
+
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
68
|
+
results in logs appearing alongside your application logs in the
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
70
|
+
|
71
|
+
You can customize logging by modifying the `logger` configuration when
|
72
|
+
constructing a client object. For example:
|
55
73
|
|
56
74
|
```ruby
|
75
|
+
require "google/cloud/cloud_dms/v1"
|
57
76
|
require "logger"
|
58
77
|
|
59
|
-
|
60
|
-
|
61
|
-
def logger
|
62
|
-
LOGGER
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
67
|
-
module GRPC
|
68
|
-
extend MyLogger
|
78
|
+
client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new do |config|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
69
80
|
end
|
70
81
|
```
|
71
82
|
|
72
|
-
|
73
83
|
## Google Cloud Samples
|
74
84
|
|
75
85
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
86
|
|
77
87
|
## Supported Ruby Versions
|
78
88
|
|
79
|
-
This library is supported on Ruby
|
89
|
+
This library is supported on Ruby 3.0+.
|
80
90
|
|
81
91
|
Google provides official support for Ruby versions that are actively supported
|
82
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -243,14 +243,26 @@ module Google
|
|
243
243
|
universe_domain: @config.universe_domain,
|
244
244
|
channel_args: @config.channel_args,
|
245
245
|
interceptors: @config.interceptors,
|
246
|
-
channel_pool_config: @config.channel_pool
|
246
|
+
channel_pool_config: @config.channel_pool,
|
247
|
+
logger: @config.logger
|
247
248
|
)
|
248
249
|
|
250
|
+
@data_migration_service_stub.stub_logger&.info do |entry|
|
251
|
+
entry.set_system_name
|
252
|
+
entry.set_service
|
253
|
+
entry.message = "Created client for #{entry.service}"
|
254
|
+
entry.set_credentials_fields credentials
|
255
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
256
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
257
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
258
|
+
end
|
259
|
+
|
249
260
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
250
261
|
config.credentials = credentials
|
251
262
|
config.quota_project = @quota_project_id
|
252
263
|
config.endpoint = @data_migration_service_stub.endpoint
|
253
264
|
config.universe_domain = @data_migration_service_stub.universe_domain
|
265
|
+
config.logger = @data_migration_service_stub.logger if config.respond_to? :logger=
|
254
266
|
end
|
255
267
|
|
256
268
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
@@ -258,6 +270,7 @@ module Google
|
|
258
270
|
config.quota_project = @quota_project_id
|
259
271
|
config.endpoint = @data_migration_service_stub.endpoint
|
260
272
|
config.universe_domain = @data_migration_service_stub.universe_domain
|
273
|
+
config.logger = @data_migration_service_stub.logger if config.respond_to? :logger=
|
261
274
|
end
|
262
275
|
end
|
263
276
|
|
@@ -282,6 +295,15 @@ module Google
|
|
282
295
|
#
|
283
296
|
attr_reader :iam_policy_client
|
284
297
|
|
298
|
+
##
|
299
|
+
# The logger used for request/response debug logging.
|
300
|
+
#
|
301
|
+
# @return [Logger]
|
302
|
+
#
|
303
|
+
def logger
|
304
|
+
@data_migration_service_stub.logger
|
305
|
+
end
|
306
|
+
|
285
307
|
# Service calls
|
286
308
|
|
287
309
|
##
|
@@ -393,7 +415,7 @@ module Google
|
|
393
415
|
@data_migration_service_stub.call_rpc :list_migration_jobs, request, options: options do |response, operation|
|
394
416
|
response = ::Gapic::PagedEnumerable.new @data_migration_service_stub, :list_migration_jobs, request, response, operation, options
|
395
417
|
yield response, operation if block_given?
|
396
|
-
|
418
|
+
throw :response, response
|
397
419
|
end
|
398
420
|
rescue ::GRPC::BadStatus => e
|
399
421
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -479,7 +501,6 @@ module Google
|
|
479
501
|
|
480
502
|
@data_migration_service_stub.call_rpc :get_migration_job, request, options: options do |response, operation|
|
481
503
|
yield response, operation if block_given?
|
482
|
-
return response
|
483
504
|
end
|
484
505
|
rescue ::GRPC::BadStatus => e
|
485
506
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -587,7 +608,7 @@ module Google
|
|
587
608
|
@data_migration_service_stub.call_rpc :create_migration_job, request, options: options do |response, operation|
|
588
609
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
589
610
|
yield response, operation if block_given?
|
590
|
-
|
611
|
+
throw :response, response
|
591
612
|
end
|
592
613
|
rescue ::GRPC::BadStatus => e
|
593
614
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -692,7 +713,7 @@ module Google
|
|
692
713
|
@data_migration_service_stub.call_rpc :update_migration_job, request, options: options do |response, operation|
|
693
714
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
694
715
|
yield response, operation if block_given?
|
695
|
-
|
716
|
+
throw :response, response
|
696
717
|
end
|
697
718
|
rescue ::GRPC::BadStatus => e
|
698
719
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -798,7 +819,7 @@ module Google
|
|
798
819
|
@data_migration_service_stub.call_rpc :delete_migration_job, request, options: options do |response, operation|
|
799
820
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
800
821
|
yield response, operation if block_given?
|
801
|
-
|
822
|
+
throw :response, response
|
802
823
|
end
|
803
824
|
rescue ::GRPC::BadStatus => e
|
804
825
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -895,7 +916,7 @@ module Google
|
|
895
916
|
@data_migration_service_stub.call_rpc :start_migration_job, request, options: options do |response, operation|
|
896
917
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
897
918
|
yield response, operation if block_given?
|
898
|
-
|
919
|
+
throw :response, response
|
899
920
|
end
|
900
921
|
rescue ::GRPC::BadStatus => e
|
901
922
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -989,7 +1010,7 @@ module Google
|
|
989
1010
|
@data_migration_service_stub.call_rpc :stop_migration_job, request, options: options do |response, operation|
|
990
1011
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
991
1012
|
yield response, operation if block_given?
|
992
|
-
|
1013
|
+
throw :response, response
|
993
1014
|
end
|
994
1015
|
rescue ::GRPC::BadStatus => e
|
995
1016
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1084,7 +1105,7 @@ module Google
|
|
1084
1105
|
@data_migration_service_stub.call_rpc :resume_migration_job, request, options: options do |response, operation|
|
1085
1106
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1086
1107
|
yield response, operation if block_given?
|
1087
|
-
|
1108
|
+
throw :response, response
|
1088
1109
|
end
|
1089
1110
|
rescue ::GRPC::BadStatus => e
|
1090
1111
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1179,7 +1200,7 @@ module Google
|
|
1179
1200
|
@data_migration_service_stub.call_rpc :promote_migration_job, request, options: options do |response, operation|
|
1180
1201
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1181
1202
|
yield response, operation if block_given?
|
1182
|
-
|
1203
|
+
throw :response, response
|
1183
1204
|
end
|
1184
1205
|
rescue ::GRPC::BadStatus => e
|
1185
1206
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1280,7 +1301,7 @@ module Google
|
|
1280
1301
|
@data_migration_service_stub.call_rpc :verify_migration_job, request, options: options do |response, operation|
|
1281
1302
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1282
1303
|
yield response, operation if block_given?
|
1283
|
-
|
1304
|
+
throw :response, response
|
1284
1305
|
end
|
1285
1306
|
rescue ::GRPC::BadStatus => e
|
1286
1307
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1379,7 +1400,7 @@ module Google
|
|
1379
1400
|
@data_migration_service_stub.call_rpc :restart_migration_job, request, options: options do |response, operation|
|
1380
1401
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1381
1402
|
yield response, operation if block_given?
|
1382
|
-
|
1403
|
+
throw :response, response
|
1383
1404
|
end
|
1384
1405
|
rescue ::GRPC::BadStatus => e
|
1385
1406
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1410,8 +1431,12 @@ module Google
|
|
1410
1431
|
# Required. Bastion VM Instance name to use or to create.
|
1411
1432
|
# @param vm_creation_config [::Google::Cloud::CloudDMS::V1::VmCreationConfig, ::Hash]
|
1412
1433
|
# The VM creation configuration
|
1434
|
+
#
|
1435
|
+
# Note: The following fields are mutually exclusive: `vm_creation_config`, `vm_selection_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1413
1436
|
# @param vm_selection_config [::Google::Cloud::CloudDMS::V1::VmSelectionConfig, ::Hash]
|
1414
1437
|
# The VM selection configuration
|
1438
|
+
#
|
1439
|
+
# Note: The following fields are mutually exclusive: `vm_selection_config`, `vm_creation_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1415
1440
|
# @param vm_port [::Integer]
|
1416
1441
|
# The port that will be open on the bastion host.
|
1417
1442
|
#
|
@@ -1474,7 +1499,6 @@ module Google
|
|
1474
1499
|
|
1475
1500
|
@data_migration_service_stub.call_rpc :generate_ssh_script, request, options: options do |response, operation|
|
1476
1501
|
yield response, operation if block_given?
|
1477
|
-
return response
|
1478
1502
|
end
|
1479
1503
|
rescue ::GRPC::BadStatus => e
|
1480
1504
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1575,7 +1599,6 @@ module Google
|
|
1575
1599
|
|
1576
1600
|
@data_migration_service_stub.call_rpc :generate_tcp_proxy_script, request, options: options do |response, operation|
|
1577
1601
|
yield response, operation if block_given?
|
1578
|
-
return response
|
1579
1602
|
end
|
1580
1603
|
rescue ::GRPC::BadStatus => e
|
1581
1604
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1690,7 +1713,7 @@ module Google
|
|
1690
1713
|
@data_migration_service_stub.call_rpc :list_connection_profiles, request, options: options do |response, operation|
|
1691
1714
|
response = ::Gapic::PagedEnumerable.new @data_migration_service_stub, :list_connection_profiles, request, response, operation, options
|
1692
1715
|
yield response, operation if block_given?
|
1693
|
-
|
1716
|
+
throw :response, response
|
1694
1717
|
end
|
1695
1718
|
rescue ::GRPC::BadStatus => e
|
1696
1719
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1776,7 +1799,6 @@ module Google
|
|
1776
1799
|
|
1777
1800
|
@data_migration_service_stub.call_rpc :get_connection_profile, request, options: options do |response, operation|
|
1778
1801
|
yield response, operation if block_given?
|
1779
|
-
return response
|
1780
1802
|
end
|
1781
1803
|
rescue ::GRPC::BadStatus => e
|
1782
1804
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1890,7 +1912,7 @@ module Google
|
|
1890
1912
|
@data_migration_service_stub.call_rpc :create_connection_profile, request, options: options do |response, operation|
|
1891
1913
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1892
1914
|
yield response, operation if block_given?
|
1893
|
-
|
1915
|
+
throw :response, response
|
1894
1916
|
end
|
1895
1917
|
rescue ::GRPC::BadStatus => e
|
1896
1918
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2003,7 +2025,7 @@ module Google
|
|
2003
2025
|
@data_migration_service_stub.call_rpc :update_connection_profile, request, options: options do |response, operation|
|
2004
2026
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2005
2027
|
yield response, operation if block_given?
|
2006
|
-
|
2028
|
+
throw :response, response
|
2007
2029
|
end
|
2008
2030
|
rescue ::GRPC::BadStatus => e
|
2009
2031
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2110,7 +2132,7 @@ module Google
|
|
2110
2132
|
@data_migration_service_stub.call_rpc :delete_connection_profile, request, options: options do |response, operation|
|
2111
2133
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2112
2134
|
yield response, operation if block_given?
|
2113
|
-
|
2135
|
+
throw :response, response
|
2114
2136
|
end
|
2115
2137
|
rescue ::GRPC::BadStatus => e
|
2116
2138
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2218,7 +2240,7 @@ module Google
|
|
2218
2240
|
@data_migration_service_stub.call_rpc :create_private_connection, request, options: options do |response, operation|
|
2219
2241
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2220
2242
|
yield response, operation if block_given?
|
2221
|
-
|
2243
|
+
throw :response, response
|
2222
2244
|
end
|
2223
2245
|
rescue ::GRPC::BadStatus => e
|
2224
2246
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2304,7 +2326,6 @@ module Google
|
|
2304
2326
|
|
2305
2327
|
@data_migration_service_stub.call_rpc :get_private_connection, request, options: options do |response, operation|
|
2306
2328
|
yield response, operation if block_given?
|
2307
|
-
return response
|
2308
2329
|
end
|
2309
2330
|
rescue ::GRPC::BadStatus => e
|
2310
2331
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2415,7 +2436,7 @@ module Google
|
|
2415
2436
|
@data_migration_service_stub.call_rpc :list_private_connections, request, options: options do |response, operation|
|
2416
2437
|
response = ::Gapic::PagedEnumerable.new @data_migration_service_stub, :list_private_connections, request, response, operation, options
|
2417
2438
|
yield response, operation if block_given?
|
2418
|
-
|
2439
|
+
throw :response, response
|
2419
2440
|
end
|
2420
2441
|
rescue ::GRPC::BadStatus => e
|
2421
2442
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2517,7 +2538,7 @@ module Google
|
|
2517
2538
|
@data_migration_service_stub.call_rpc :delete_private_connection, request, options: options do |response, operation|
|
2518
2539
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2519
2540
|
yield response, operation if block_given?
|
2520
|
-
|
2541
|
+
throw :response, response
|
2521
2542
|
end
|
2522
2543
|
rescue ::GRPC::BadStatus => e
|
2523
2544
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2603,7 +2624,6 @@ module Google
|
|
2603
2624
|
|
2604
2625
|
@data_migration_service_stub.call_rpc :get_conversion_workspace, request, options: options do |response, operation|
|
2605
2626
|
yield response, operation if block_given?
|
2606
|
-
return response
|
2607
2627
|
end
|
2608
2628
|
rescue ::GRPC::BadStatus => e
|
2609
2629
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2713,7 +2733,7 @@ module Google
|
|
2713
2733
|
@data_migration_service_stub.call_rpc :list_conversion_workspaces, request, options: options do |response, operation|
|
2714
2734
|
response = ::Gapic::PagedEnumerable.new @data_migration_service_stub, :list_conversion_workspaces, request, response, operation, options
|
2715
2735
|
yield response, operation if block_given?
|
2716
|
-
|
2736
|
+
throw :response, response
|
2717
2737
|
end
|
2718
2738
|
rescue ::GRPC::BadStatus => e
|
2719
2739
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2819,7 +2839,7 @@ module Google
|
|
2819
2839
|
@data_migration_service_stub.call_rpc :create_conversion_workspace, request, options: options do |response, operation|
|
2820
2840
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2821
2841
|
yield response, operation if block_given?
|
2822
|
-
|
2842
|
+
throw :response, response
|
2823
2843
|
end
|
2824
2844
|
rescue ::GRPC::BadStatus => e
|
2825
2845
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2924,7 +2944,7 @@ module Google
|
|
2924
2944
|
@data_migration_service_stub.call_rpc :update_conversion_workspace, request, options: options do |response, operation|
|
2925
2945
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2926
2946
|
yield response, operation if block_given?
|
2927
|
-
|
2947
|
+
throw :response, response
|
2928
2948
|
end
|
2929
2949
|
rescue ::GRPC::BadStatus => e
|
2930
2950
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3029,7 +3049,7 @@ module Google
|
|
3029
3049
|
@data_migration_service_stub.call_rpc :delete_conversion_workspace, request, options: options do |response, operation|
|
3030
3050
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3031
3051
|
yield response, operation if block_given?
|
3032
|
-
|
3052
|
+
throw :response, response
|
3033
3053
|
end
|
3034
3054
|
rescue ::GRPC::BadStatus => e
|
3035
3055
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3129,7 +3149,6 @@ module Google
|
|
3129
3149
|
|
3130
3150
|
@data_migration_service_stub.call_rpc :create_mapping_rule, request, options: options do |response, operation|
|
3131
3151
|
yield response, operation if block_given?
|
3132
|
-
return response
|
3133
3152
|
end
|
3134
3153
|
rescue ::GRPC::BadStatus => e
|
3135
3154
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3223,7 +3242,6 @@ module Google
|
|
3223
3242
|
|
3224
3243
|
@data_migration_service_stub.call_rpc :delete_mapping_rule, request, options: options do |response, operation|
|
3225
3244
|
yield response, operation if block_given?
|
3226
|
-
return response
|
3227
3245
|
end
|
3228
3246
|
rescue ::GRPC::BadStatus => e
|
3229
3247
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3325,7 +3343,7 @@ module Google
|
|
3325
3343
|
@data_migration_service_stub.call_rpc :list_mapping_rules, request, options: options do |response, operation|
|
3326
3344
|
response = ::Gapic::PagedEnumerable.new @data_migration_service_stub, :list_mapping_rules, request, response, operation, options
|
3327
3345
|
yield response, operation if block_given?
|
3328
|
-
|
3346
|
+
throw :response, response
|
3329
3347
|
end
|
3330
3348
|
rescue ::GRPC::BadStatus => e
|
3331
3349
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3417,7 +3435,6 @@ module Google
|
|
3417
3435
|
|
3418
3436
|
@data_migration_service_stub.call_rpc :get_mapping_rule, request, options: options do |response, operation|
|
3419
3437
|
yield response, operation if block_given?
|
3420
|
-
return response
|
3421
3438
|
end
|
3422
3439
|
rescue ::GRPC::BadStatus => e
|
3423
3440
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3451,10 +3468,14 @@ module Google
|
|
3451
3468
|
# seed operation.
|
3452
3469
|
# @param source_connection_profile [::String]
|
3453
3470
|
# Optional. Fully qualified (Uri) name of the source connection profile.
|
3471
|
+
#
|
3472
|
+
# Note: The following fields are mutually exclusive: `source_connection_profile`, `destination_connection_profile`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
3454
3473
|
# @param destination_connection_profile [::String]
|
3455
3474
|
# Optional. Fully qualified (Uri) name of the destination connection
|
3456
3475
|
# profile.
|
3457
3476
|
#
|
3477
|
+
# Note: The following fields are mutually exclusive: `destination_connection_profile`, `source_connection_profile`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
3478
|
+
#
|
3458
3479
|
# @yield [response, operation] Access the result along with the RPC operation
|
3459
3480
|
# @yieldparam response [::Gapic::Operation]
|
3460
3481
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
@@ -3522,7 +3543,7 @@ module Google
|
|
3522
3543
|
@data_migration_service_stub.call_rpc :seed_conversion_workspace, request, options: options do |response, operation|
|
3523
3544
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3524
3545
|
yield response, operation if block_given?
|
3525
|
-
|
3546
|
+
throw :response, response
|
3526
3547
|
end
|
3527
3548
|
rescue ::GRPC::BadStatus => e
|
3528
3549
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3626,7 +3647,7 @@ module Google
|
|
3626
3647
|
@data_migration_service_stub.call_rpc :import_mapping_rules, request, options: options do |response, operation|
|
3627
3648
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3628
3649
|
yield response, operation if block_given?
|
3629
|
-
|
3650
|
+
throw :response, response
|
3630
3651
|
end
|
3631
3652
|
rescue ::GRPC::BadStatus => e
|
3632
3653
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3731,7 +3752,7 @@ module Google
|
|
3731
3752
|
@data_migration_service_stub.call_rpc :convert_conversion_workspace, request, options: options do |response, operation|
|
3732
3753
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3733
3754
|
yield response, operation if block_given?
|
3734
|
-
|
3755
|
+
throw :response, response
|
3735
3756
|
end
|
3736
3757
|
rescue ::GRPC::BadStatus => e
|
3737
3758
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3827,7 +3848,7 @@ module Google
|
|
3827
3848
|
@data_migration_service_stub.call_rpc :commit_conversion_workspace, request, options: options do |response, operation|
|
3828
3849
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3829
3850
|
yield response, operation if block_given?
|
3830
|
-
|
3851
|
+
throw :response, response
|
3831
3852
|
end
|
3832
3853
|
rescue ::GRPC::BadStatus => e
|
3833
3854
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3921,7 +3942,7 @@ module Google
|
|
3921
3942
|
@data_migration_service_stub.call_rpc :rollback_conversion_workspace, request, options: options do |response, operation|
|
3922
3943
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3923
3944
|
yield response, operation if block_given?
|
3924
|
-
|
3945
|
+
throw :response, response
|
3925
3946
|
end
|
3926
3947
|
rescue ::GRPC::BadStatus => e
|
3927
3948
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4030,7 +4051,7 @@ module Google
|
|
4030
4051
|
@data_migration_service_stub.call_rpc :apply_conversion_workspace, request, options: options do |response, operation|
|
4031
4052
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4032
4053
|
yield response, operation if block_given?
|
4033
|
-
|
4054
|
+
throw :response, response
|
4034
4055
|
end
|
4035
4056
|
rescue ::GRPC::BadStatus => e
|
4036
4057
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4151,7 +4172,7 @@ module Google
|
|
4151
4172
|
@data_migration_service_stub.call_rpc :describe_database_entities, request, options: options do |response, operation|
|
4152
4173
|
response = ::Gapic::PagedEnumerable.new @data_migration_service_stub, :describe_database_entities, request, response, operation, options
|
4153
4174
|
yield response, operation if block_given?
|
4154
|
-
|
4175
|
+
throw :response, response
|
4155
4176
|
end
|
4156
4177
|
rescue ::GRPC::BadStatus => e
|
4157
4178
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4254,7 +4275,6 @@ module Google
|
|
4254
4275
|
|
4255
4276
|
@data_migration_service_stub.call_rpc :search_background_jobs, request, options: options do |response, operation|
|
4256
4277
|
yield response, operation if block_given?
|
4257
|
-
return response
|
4258
4278
|
end
|
4259
4279
|
rescue ::GRPC::BadStatus => e
|
4260
4280
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4345,7 +4365,6 @@ module Google
|
|
4345
4365
|
|
4346
4366
|
@data_migration_service_stub.call_rpc :describe_conversion_workspace_revisions, request, options: options do |response, operation|
|
4347
4367
|
yield response, operation if block_given?
|
4348
|
-
return response
|
4349
4368
|
end
|
4350
4369
|
rescue ::GRPC::BadStatus => e
|
4351
4370
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4437,7 +4456,6 @@ module Google
|
|
4437
4456
|
|
4438
4457
|
@data_migration_service_stub.call_rpc :fetch_static_ips, request, options: options do |response, operation|
|
4439
4458
|
yield response, operation if block_given?
|
4440
|
-
return response
|
4441
4459
|
end
|
4442
4460
|
rescue ::GRPC::BadStatus => e
|
4443
4461
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4487,6 +4505,13 @@ module Google
|
|
4487
4505
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
4488
4506
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
4489
4507
|
# * (`nil`) indicating no credentials
|
4508
|
+
#
|
4509
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
4510
|
+
# external source for authentication to Google Cloud, you must validate it before
|
4511
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
4512
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
4513
|
+
# For more information, refer to [Validate credential configurations from external
|
4514
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
4490
4515
|
# @return [::Object]
|
4491
4516
|
# @!attribute [rw] scope
|
4492
4517
|
# The OAuth scopes
|
@@ -4526,6 +4551,11 @@ module Google
|
|
4526
4551
|
# default endpoint URL. The default value of nil uses the environment
|
4527
4552
|
# universe (usually the default "googleapis.com" universe).
|
4528
4553
|
# @return [::String,nil]
|
4554
|
+
# @!attribute [rw] logger
|
4555
|
+
# A custom logger to use for request/response debug logging, or the value
|
4556
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
4557
|
+
# explicitly disable logging.
|
4558
|
+
# @return [::Logger,:default,nil]
|
4529
4559
|
#
|
4530
4560
|
class Configuration
|
4531
4561
|
extend ::Gapic::Config
|
@@ -4550,6 +4580,7 @@ module Google
|
|
4550
4580
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
4551
4581
|
config_attr :quota_project, nil, ::String, nil
|
4552
4582
|
config_attr :universe_domain, nil, ::String, nil
|
4583
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
4553
4584
|
|
4554
4585
|
# @private
|
4555
4586
|
def initialize parent_config = nil
|
@@ -124,14 +124,6 @@ module Google
|
|
124
124
|
# Lists operations that match the specified filter in the request. If the
|
125
125
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
126
126
|
#
|
127
|
-
# NOTE: the `name` binding allows API services to override the binding
|
128
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
129
|
-
# override the binding, API services can add a binding such as
|
130
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
131
|
-
# For backwards compatibility, the default name includes the operations
|
132
|
-
# collection id, however overriding users must ensure the name binding
|
133
|
-
# is the parent resource, without the operations collection id.
|
134
|
-
#
|
135
127
|
# @overload list_operations(request, options = nil)
|
136
128
|
# Pass arguments to `list_operations` via a request object, either of type
|
137
129
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -221,7 +213,7 @@ module Google
|
|
221
213
|
wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
|
222
214
|
response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
|
223
215
|
yield response, operation if block_given?
|
224
|
-
|
216
|
+
throw :response, response
|
225
217
|
end
|
226
218
|
rescue ::GRPC::BadStatus => e
|
227
219
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -317,7 +309,7 @@ module Google
|
|
317
309
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
318
310
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
319
311
|
yield response, operation if block_given?
|
320
|
-
|
312
|
+
throw :response, response
|
321
313
|
end
|
322
314
|
rescue ::GRPC::BadStatus => e
|
323
315
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -406,7 +398,6 @@ module Google
|
|
406
398
|
|
407
399
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
408
400
|
yield response, operation if block_given?
|
409
|
-
return response
|
410
401
|
end
|
411
402
|
rescue ::GRPC::BadStatus => e
|
412
403
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -421,8 +412,9 @@ module Google
|
|
421
412
|
# other methods to check whether the cancellation succeeded or whether the
|
422
413
|
# operation completed despite cancellation. On successful cancellation,
|
423
414
|
# the operation is not deleted; instead, it becomes an operation with
|
424
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
425
|
-
# corresponding to
|
415
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
416
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
417
|
+
# `Code.CANCELLED`.
|
426
418
|
#
|
427
419
|
# @overload cancel_operation(request, options = nil)
|
428
420
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -501,7 +493,6 @@ module Google
|
|
501
493
|
|
502
494
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
503
495
|
yield response, operation if block_given?
|
504
|
-
return response
|
505
496
|
end
|
506
497
|
rescue ::GRPC::BadStatus => e
|
507
498
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -599,7 +590,7 @@ module Google
|
|
599
590
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
600
591
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
601
592
|
yield response, operation if block_given?
|
602
|
-
|
593
|
+
throw :response, response
|
603
594
|
end
|
604
595
|
rescue ::GRPC::BadStatus => e
|
605
596
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -649,6 +640,13 @@ module Google
|
|
649
640
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
650
641
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
651
642
|
# * (`nil`) indicating no credentials
|
643
|
+
#
|
644
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
645
|
+
# external source for authentication to Google Cloud, you must validate it before
|
646
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
647
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
648
|
+
# For more information, refer to [Validate credential configurations from external
|
649
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
652
650
|
# @return [::Object]
|
653
651
|
# @!attribute [rw] scope
|
654
652
|
# The OAuth scopes
|
@@ -688,6 +686,11 @@ module Google
|
|
688
686
|
# default endpoint URL. The default value of nil uses the environment
|
689
687
|
# universe (usually the default "googleapis.com" universe).
|
690
688
|
# @return [::String,nil]
|
689
|
+
# @!attribute [rw] logger
|
690
|
+
# A custom logger to use for request/response debug logging, or the value
|
691
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
692
|
+
# explicitly disable logging.
|
693
|
+
# @return [::Logger,:default,nil]
|
691
694
|
#
|
692
695
|
class Configuration
|
693
696
|
extend ::Gapic::Config
|
@@ -712,6 +715,7 @@ module Google
|
|
712
715
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
713
716
|
config_attr :quota_project, nil, ::String, nil
|
714
717
|
config_attr :universe_domain, nil, ::String, nil
|
718
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
715
719
|
|
716
720
|
# @private
|
717
721
|
def initialize parent_config = nil
|