google-cloud-cloud_dms-v1 0.1.0 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb +518 -109
- data/lib/google/cloud/cloud_dms/v1/data_migration_service/operations.rb +146 -34
- data/lib/google/cloud/cloud_dms/v1/version.rb +1 -1
- data/lib/google/cloud/clouddms/v1/clouddms_pb.rb +2 -2
- data/lib/google/cloud/clouddms/v1/clouddms_resources_pb.rb +2 -2
- data/lib/google/cloud/clouddms/v1/clouddms_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/cloud/clouddms/v1/clouddms_resources.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 181efb2719d661bc875a1d3884a3b28e45996a054825b147a4315d5d7374f0f4
|
4
|
+
data.tar.gz: aee50b9fddfd1765e69869df2ccaac46521d7b37a6058b86520813c2e3175933
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1ff23822941cb9e1e2904500bc857962ca6d8388036a74de3aac21dd2858dcfb275aa5a1a0283444156932985b816bd588106e1514a918b299674c7a13c8aa8
|
7
|
+
data.tar.gz: c4dc76e51cf05e769fab30bc35f1645906efb8b15428da25f279da20ac46a33ca8f100fd994b8363a3339d37541fd8194beae20ef6742bbdef57b0c660e22042
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-cloud_dms-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::CloudDMS::V1::DataMigrationService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `DATABASE_MIGRATION_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `DATABASE_MIGRATION_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/cloud_dms/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/cloud_dms/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new do |con
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/cloud_dms/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/cloud_dms/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::CloudDMS::V1::ListMigrationJobsRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.list_migration_jobs request
|
38
38
|
```
|
39
39
|
|