google-cloud-bigquery-data_transfer 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24fbf3178638affd82ff4963497cd418769843aa3960365ba483359949bd19b9
4
- data.tar.gz: 76c79dccd57d3b2326bb69172ce27442b2cd864d9705a95c110f77d9c1d2a42a
3
+ metadata.gz: 111c1b4608f98f35a61be1dbb77a7c05239f1fb8f31292221fe66c25a5b09b69
4
+ data.tar.gz: 668f06eb866fd1cfd0386c0a1f6d72f0e109c5846bdd0fa0b9b30d28ae28074e
5
5
  SHA512:
6
- metadata.gz: e891be868bc7725d026310ad43100d852ad2c01179a76bd0f4509361ac7c21cb9f55d59ed69d58d76d249414abf96dd9c9e6f3f4ccc6f21a467dd324481d9386
7
- data.tar.gz: 4e0891884158baf2b2939faccf9f137119b56b6b7461f508e22bd61c4e7d94444c0f83eef694b12e19a00d153cff8337da60f57ed21787bc1877f04d4ac5689a
6
+ metadata.gz: 3a002ea2a81f17eeb04c290aa22c3c7867bc199c5d9104d4cee597004d4f10c2f8a0cf70974a1557d4c32bbaac174872c337e60fb9d5957f6223ed7b6380dc05
7
+ data.tar.gz: bf49d24ddd8c331c77126ddab1c9e3f7992046d62eaf750c43fe0c129a2d8ca1f5bda67b17a20ccffda18a2f4e86075e9d865bcb9312cd9efa0e9cc28219b548
@@ -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.
@@ -17,7 +17,7 @@ module Google
17
17
  module Cloud
18
18
  module Bigquery
19
19
  module DataTransfer
20
- VERSION = "0.7.0".freeze
20
+ VERSION = "0.8.0".freeze
21
21
  end
22
22
  end
23
23
  end
@@ -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 2019 Google LLC.
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.7.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-03-11 00:00:00.000000000 Z
11
+ date: 2020-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax