google-cloud-bigquery-data_transfer 0.7.0 → 0.8.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/AUTHENTICATION.md +0 -5
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service_client.rb +53 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb +5 -0
- data/lib/google/cloud/bigquery/data_transfer/version.rb +1 -1
- data/lib/google/cloud/bigquery/datatransfer/v1/datatransfer_pb.rb +1 -0
- data/lib/google/cloud/bigquery/datatransfer/v1/datatransfer_services_pb.rb +1 -2
- 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: 111c1b4608f98f35a61be1dbb77a7c05239f1fb8f31292221fe66c25a5b09b69
|
|
4
|
+
data.tar.gz: 668f06eb866fd1cfd0386c0a1f6d72f0e109c5846bdd0fa0b9b30d28ae28074e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a002ea2a81f17eeb04c290aa22c3c7867bc199c5d9104d4cee597004d4f10c2f8a0cf70974a1557d4c32bbaac174872c337e60fb9d5957f6223ed7b6380dc05
|
|
7
|
+
data.tar.gz: bf49d24ddd8c331c77126ddab1c9e3f7992046d62eaf750c43fe0c129a2d8ca1f5bda67b17a20ccffda18a2f4e86075e9d865bcb9312cd9efa0e9cc28219b548
|
data/AUTHENTICATION.md
CHANGED
|
@@ -170,8 +170,3 @@ Developers service account.
|
|
|
170
170
|
|
|
171
171
|
The key file you download will be used by this library to authenticate API
|
|
172
172
|
requests and should be stored in a secure location.
|
|
173
|
-
|
|
174
|
-
## Troubleshooting
|
|
175
|
-
|
|
176
|
-
If you're having trouble authenticating you can ask for help by following the
|
|
177
|
-
{file:TROUBLESHOOTING.md Troubleshooting Guide}.
|
|
@@ -84,6 +84,12 @@ module Google
|
|
|
84
84
|
].freeze
|
|
85
85
|
|
|
86
86
|
|
|
87
|
+
DATA_SOURCE_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
|
88
|
+
"projects/{project}/dataSources/{data_source}"
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
private_constant :DATA_SOURCE_PATH_TEMPLATE
|
|
92
|
+
|
|
87
93
|
LOCATION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
|
88
94
|
"projects/{project}/locations/{location}"
|
|
89
95
|
)
|
|
@@ -132,6 +138,29 @@ module Google
|
|
|
132
138
|
|
|
133
139
|
private_constant :PROJECT_TRANSFER_CONFIG_PATH_TEMPLATE
|
|
134
140
|
|
|
141
|
+
RUN_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
|
142
|
+
"projects/{project}/transferConfigs/{transfer_config}/runs/{run}"
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
private_constant :RUN_PATH_TEMPLATE
|
|
146
|
+
|
|
147
|
+
TRANSFER_CONFIG_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
|
148
|
+
"projects/{project}/transferConfigs/{transfer_config}"
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
private_constant :TRANSFER_CONFIG_PATH_TEMPLATE
|
|
152
|
+
|
|
153
|
+
# Returns a fully-qualified data_source resource name string.
|
|
154
|
+
# @param project [String]
|
|
155
|
+
# @param data_source [String]
|
|
156
|
+
# @return [String]
|
|
157
|
+
def self.data_source_path project, data_source
|
|
158
|
+
DATA_SOURCE_PATH_TEMPLATE.render(
|
|
159
|
+
:"project" => project,
|
|
160
|
+
:"data_source" => data_source
|
|
161
|
+
)
|
|
162
|
+
end
|
|
163
|
+
|
|
135
164
|
# Returns a fully-qualified location resource name string.
|
|
136
165
|
# @param project [String]
|
|
137
166
|
# @param location [String]
|
|
@@ -240,6 +269,30 @@ module Google
|
|
|
240
269
|
)
|
|
241
270
|
end
|
|
242
271
|
|
|
272
|
+
# Returns a fully-qualified run resource name string.
|
|
273
|
+
# @param project [String]
|
|
274
|
+
# @param transfer_config [String]
|
|
275
|
+
# @param run [String]
|
|
276
|
+
# @return [String]
|
|
277
|
+
def self.run_path project, transfer_config, run
|
|
278
|
+
RUN_PATH_TEMPLATE.render(
|
|
279
|
+
:"project" => project,
|
|
280
|
+
:"transfer_config" => transfer_config,
|
|
281
|
+
:"run" => run
|
|
282
|
+
)
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Returns a fully-qualified transfer_config resource name string.
|
|
286
|
+
# @param project [String]
|
|
287
|
+
# @param transfer_config [String]
|
|
288
|
+
# @return [String]
|
|
289
|
+
def self.transfer_config_path project, transfer_config
|
|
290
|
+
TRANSFER_CONFIG_PATH_TEMPLATE.render(
|
|
291
|
+
:"project" => project,
|
|
292
|
+
:"transfer_config" => transfer_config
|
|
293
|
+
)
|
|
294
|
+
end
|
|
295
|
+
|
|
243
296
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
|
244
297
|
# Provides the means for authenticating requests made by the client. This parameter can
|
|
245
298
|
# be many types.
|
|
@@ -184,6 +184,11 @@ module Google
|
|
|
184
184
|
# Return an authorization code for a given Google+ page that can then be
|
|
185
185
|
# exchanged for a refresh token on the backend.
|
|
186
186
|
GOOGLE_PLUS_AUTHORIZATION_CODE = 2
|
|
187
|
+
|
|
188
|
+
# Use First Party Client OAuth. First Party Client OAuth doesn't require a
|
|
189
|
+
# refresh token to get an offline access token. Instead, it uses a
|
|
190
|
+
# client-signed JWT assertion to retrieve an access token.
|
|
191
|
+
FIRST_PARTY_OAUTH = 3
|
|
187
192
|
end
|
|
188
193
|
|
|
189
194
|
# Represents how the data source supports data auto refresh.
|
|
@@ -66,6 +66,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
66
66
|
value :AUTHORIZATION_TYPE_UNSPECIFIED, 0
|
|
67
67
|
value :AUTHORIZATION_CODE, 1
|
|
68
68
|
value :GOOGLE_PLUS_AUTHORIZATION_CODE, 2
|
|
69
|
+
value :FIRST_PARTY_OAUTH, 3
|
|
69
70
|
end
|
|
70
71
|
add_enum "google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType" do
|
|
71
72
|
value :DATA_REFRESH_TYPE_UNSPECIFIED, 0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# Source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto for package 'google.cloud.bigquery.datatransfer.v1'
|
|
3
3
|
# Original file comments:
|
|
4
|
-
# Copyright
|
|
4
|
+
# Copyright 2020 Google LLC
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# See the License for the specific language governing permissions and
|
|
16
16
|
# limitations under the License.
|
|
17
17
|
#
|
|
18
|
-
#
|
|
19
18
|
|
|
20
19
|
|
|
21
20
|
require 'grpc'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-bigquery-data_transfer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-04-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-gax
|