google-cloud-bigquery-data_transfer-v1 0.4.1 → 0.4.2
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/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/client.rb +11 -41
- data/lib/google/cloud/bigquery/data_transfer/v1/version.rb +1 -1
- data/lib/google/cloud/bigquery/datatransfer/v1/datatransfer_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24ae4b3454274e215f40d7158f366a38da00f1d48379e8a6a959ce951761d120
|
4
|
+
data.tar.gz: e509dd369ee6ab15cc5aac337737b690f8d951f4b9814125992dfdf9ea1cd9df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83ae129b251781deb0c22a0cbcdd9f01c2958781c56e349fd343ec830b7d13367d8da1eb5a200a9e08c5b9c3fd4c4c9db9d02717a3609c87191ecdd1ffd0bda1
|
7
|
+
data.tar.gz: 19c757bfffa87c278b0fc51502ce243ddcaebb265e4f67900498c0c43d4aaede65bc9530ab0e36a036493fd2d32020faf8e51ef5f817e32c6ffc80b7f5a201ef
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-bigquery-data_transfer-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `DATA_TRANSFER_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `DATA_TRANSFER_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/bigquery/data_transfer/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Clien
|
|
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/bigquery/data_transfer/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Clien
|
|
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/bigquery/data_transfer/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/bigquery/data_transfer/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Bigquery::DataTransfer::V1::GetDataSourceRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.get_data_source request
|
38
38
|
```
|
39
39
|
|
@@ -71,18 +71,12 @@ module Google
|
|
71
71
|
|
72
72
|
default_config.rpcs.get_data_source.timeout = 20.0
|
73
73
|
default_config.rpcs.get_data_source.retry_policy = {
|
74
|
-
initial_delay: 0.1,
|
75
|
-
max_delay: 60.0,
|
76
|
-
multiplier: 1.3,
|
77
|
-
retry_codes: [14, 4]
|
74
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
78
75
|
}
|
79
76
|
|
80
77
|
default_config.rpcs.list_data_sources.timeout = 20.0
|
81
78
|
default_config.rpcs.list_data_sources.retry_policy = {
|
82
|
-
initial_delay: 0.1,
|
83
|
-
max_delay: 60.0,
|
84
|
-
multiplier: 1.3,
|
85
|
-
retry_codes: [14, 4]
|
79
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
86
80
|
}
|
87
81
|
|
88
82
|
default_config.rpcs.create_transfer_config.timeout = 30.0
|
@@ -91,68 +85,44 @@ module Google
|
|
91
85
|
|
92
86
|
default_config.rpcs.delete_transfer_config.timeout = 20.0
|
93
87
|
default_config.rpcs.delete_transfer_config.retry_policy = {
|
94
|
-
initial_delay: 0.1,
|
95
|
-
max_delay: 60.0,
|
96
|
-
multiplier: 1.3,
|
97
|
-
retry_codes: [14, 4]
|
88
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
98
89
|
}
|
99
90
|
|
100
91
|
default_config.rpcs.get_transfer_config.timeout = 20.0
|
101
92
|
default_config.rpcs.get_transfer_config.retry_policy = {
|
102
|
-
initial_delay: 0.1,
|
103
|
-
max_delay: 60.0,
|
104
|
-
multiplier: 1.3,
|
105
|
-
retry_codes: [14, 4]
|
93
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
106
94
|
}
|
107
95
|
|
108
96
|
default_config.rpcs.list_transfer_configs.timeout = 20.0
|
109
97
|
default_config.rpcs.list_transfer_configs.retry_policy = {
|
110
|
-
initial_delay: 0.1,
|
111
|
-
max_delay: 60.0,
|
112
|
-
multiplier: 1.3,
|
113
|
-
retry_codes: [14, 4]
|
98
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
114
99
|
}
|
115
100
|
|
116
101
|
default_config.rpcs.schedule_transfer_runs.timeout = 30.0
|
117
102
|
|
118
103
|
default_config.rpcs.get_transfer_run.timeout = 20.0
|
119
104
|
default_config.rpcs.get_transfer_run.retry_policy = {
|
120
|
-
initial_delay: 0.1,
|
121
|
-
max_delay: 60.0,
|
122
|
-
multiplier: 1.3,
|
123
|
-
retry_codes: [14, 4]
|
105
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
124
106
|
}
|
125
107
|
|
126
108
|
default_config.rpcs.delete_transfer_run.timeout = 20.0
|
127
109
|
default_config.rpcs.delete_transfer_run.retry_policy = {
|
128
|
-
initial_delay: 0.1,
|
129
|
-
max_delay: 60.0,
|
130
|
-
multiplier: 1.3,
|
131
|
-
retry_codes: [14, 4]
|
110
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
132
111
|
}
|
133
112
|
|
134
113
|
default_config.rpcs.list_transfer_runs.timeout = 20.0
|
135
114
|
default_config.rpcs.list_transfer_runs.retry_policy = {
|
136
|
-
initial_delay: 0.1,
|
137
|
-
max_delay: 60.0,
|
138
|
-
multiplier: 1.3,
|
139
|
-
retry_codes: [14, 4]
|
115
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
140
116
|
}
|
141
117
|
|
142
118
|
default_config.rpcs.list_transfer_logs.timeout = 20.0
|
143
119
|
default_config.rpcs.list_transfer_logs.retry_policy = {
|
144
|
-
initial_delay: 0.1,
|
145
|
-
max_delay: 60.0,
|
146
|
-
multiplier: 1.3,
|
147
|
-
retry_codes: [14, 4]
|
120
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
148
121
|
}
|
149
122
|
|
150
123
|
default_config.rpcs.check_valid_creds.timeout = 20.0
|
151
124
|
default_config.rpcs.check_valid_creds.retry_policy = {
|
152
|
-
initial_delay: 0.1,
|
153
|
-
max_delay: 60.0,
|
154
|
-
multiplier: 1.3,
|
155
|
-
retry_codes: [14, 4]
|
125
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
156
126
|
}
|
157
127
|
|
158
128
|
default_config
|
@@ -223,7 +193,7 @@ module Google
|
|
223
193
|
!@config.endpoint.split(".").first.include?("-")
|
224
194
|
credentials ||= Credentials.default scope: @config.scope,
|
225
195
|
enable_self_signed_jwt: enable_self_signed_jwt
|
226
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
196
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
227
197
|
credentials = Credentials.new credentials, scope: @config.scope
|
228
198
|
end
|
229
199
|
@quota_project_id = @config.quota_project
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigquery-data_transfer-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|