google-cloud-bigquery-data_transfer-v1 0.1.1 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/README.md +6 -2
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/client.rb +27 -22
- data/lib/google/cloud/bigquery/data_transfer/v1/version.rb +1 -1
- data/proto_docs/README.md +1 -1
- metadata +36 -9
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8de3c23616ee3ed168042d17e51809ef05a67be28a8447fff386574e5ef7b39
|
4
|
+
data.tar.gz: d3dd4cb2e3fdc61156946e16188012affd6df8d655e6cc5ff02f0b8b96badb7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a615fb75e7796815bb988f0095fd55acd0237d6cc63b18aedf9edc3c55b1effeff4c48b45aa2ba9cf1dfc2ed905e558d42020e7661263bdece324da46e370575
|
7
|
+
data.tar.gz: 694cb8b208220fe2ef7efc04a895baee3c1e653ea3646459aba8a243227c810b39613f1f2a21e11b18239eaf5fa5c16587c0276aec8e5cedc8513e026ad57e26
|
data/.yardopts
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Ruby Client for the BigQuery Data Transfer V1 API
|
1
|
+
# Ruby Client for the BigQuery Data Transfer Service V1 API
|
2
2
|
|
3
|
-
API Client library for the BigQuery Data Transfer V1 API
|
3
|
+
API Client library for the BigQuery Data Transfer Service V1 API
|
4
4
|
|
5
5
|
Schedules queries and transfers external data from SaaS applications to Google BigQuery on a regular basis.
|
6
6
|
|
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
18
18
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/bigquerydatatransfer.googleapis.com)
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
23
|
|
23
24
|
## Quick Start
|
@@ -33,6 +34,9 @@ response = client.get_data_source request
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-bigquery-data_transfer-v1/latest)
|
34
35
|
for class and method documentation.
|
35
36
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/bigquery/transfer)
|
38
|
+
for general usage information.
|
39
|
+
|
36
40
|
## Enabling Logging
|
37
41
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
@@ -74,7 +74,7 @@ module Google
|
|
74
74
|
initial_delay: 0.1,
|
75
75
|
max_delay: 60.0,
|
76
76
|
multiplier: 1.3,
|
77
|
-
retry_codes: [
|
77
|
+
retry_codes: [14, 4]
|
78
78
|
}
|
79
79
|
|
80
80
|
default_config.rpcs.list_data_sources.timeout = 20.0
|
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
initial_delay: 0.1,
|
83
83
|
max_delay: 60.0,
|
84
84
|
multiplier: 1.3,
|
85
|
-
retry_codes: [
|
85
|
+
retry_codes: [14, 4]
|
86
86
|
}
|
87
87
|
|
88
88
|
default_config.rpcs.create_transfer_config.timeout = 30.0
|
@@ -94,7 +94,7 @@ module Google
|
|
94
94
|
initial_delay: 0.1,
|
95
95
|
max_delay: 60.0,
|
96
96
|
multiplier: 1.3,
|
97
|
-
retry_codes: [
|
97
|
+
retry_codes: [14, 4]
|
98
98
|
}
|
99
99
|
|
100
100
|
default_config.rpcs.get_transfer_config.timeout = 20.0
|
@@ -102,7 +102,7 @@ module Google
|
|
102
102
|
initial_delay: 0.1,
|
103
103
|
max_delay: 60.0,
|
104
104
|
multiplier: 1.3,
|
105
|
-
retry_codes: [
|
105
|
+
retry_codes: [14, 4]
|
106
106
|
}
|
107
107
|
|
108
108
|
default_config.rpcs.list_transfer_configs.timeout = 20.0
|
@@ -110,7 +110,7 @@ module Google
|
|
110
110
|
initial_delay: 0.1,
|
111
111
|
max_delay: 60.0,
|
112
112
|
multiplier: 1.3,
|
113
|
-
retry_codes: [
|
113
|
+
retry_codes: [14, 4]
|
114
114
|
}
|
115
115
|
|
116
116
|
default_config.rpcs.schedule_transfer_runs.timeout = 30.0
|
@@ -120,7 +120,7 @@ module Google
|
|
120
120
|
initial_delay: 0.1,
|
121
121
|
max_delay: 60.0,
|
122
122
|
multiplier: 1.3,
|
123
|
-
retry_codes: [
|
123
|
+
retry_codes: [14, 4]
|
124
124
|
}
|
125
125
|
|
126
126
|
default_config.rpcs.delete_transfer_run.timeout = 20.0
|
@@ -128,7 +128,7 @@ module Google
|
|
128
128
|
initial_delay: 0.1,
|
129
129
|
max_delay: 60.0,
|
130
130
|
multiplier: 1.3,
|
131
|
-
retry_codes: [
|
131
|
+
retry_codes: [14, 4]
|
132
132
|
}
|
133
133
|
|
134
134
|
default_config.rpcs.list_transfer_runs.timeout = 20.0
|
@@ -136,7 +136,7 @@ module Google
|
|
136
136
|
initial_delay: 0.1,
|
137
137
|
max_delay: 60.0,
|
138
138
|
multiplier: 1.3,
|
139
|
-
retry_codes: [
|
139
|
+
retry_codes: [14, 4]
|
140
140
|
}
|
141
141
|
|
142
142
|
default_config.rpcs.list_transfer_logs.timeout = 20.0
|
@@ -144,7 +144,7 @@ module Google
|
|
144
144
|
initial_delay: 0.1,
|
145
145
|
max_delay: 60.0,
|
146
146
|
multiplier: 1.3,
|
147
|
-
retry_codes: [
|
147
|
+
retry_codes: [14, 4]
|
148
148
|
}
|
149
149
|
|
150
150
|
default_config.rpcs.check_valid_creds.timeout = 20.0
|
@@ -152,7 +152,7 @@ module Google
|
|
152
152
|
initial_delay: 0.1,
|
153
153
|
max_delay: 60.0,
|
154
154
|
multiplier: 1.3,
|
155
|
-
retry_codes: [
|
155
|
+
retry_codes: [14, 4]
|
156
156
|
}
|
157
157
|
|
158
158
|
default_config
|
@@ -220,7 +220,8 @@ module Google
|
|
220
220
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
221
221
|
credentials = Credentials.new credentials, scope: @config.scope
|
222
222
|
end
|
223
|
-
@quota_project_id =
|
223
|
+
@quota_project_id = @config.quota_project
|
224
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
224
225
|
|
225
226
|
@data_transfer_service_stub = ::Gapic::ServiceStub.new(
|
226
227
|
::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Stub,
|
@@ -1396,24 +1397,28 @@ module Google
|
|
1396
1397
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1397
1398
|
# trigger a retry.
|
1398
1399
|
# @return [::Hash]
|
1400
|
+
# @!attribute [rw] quota_project
|
1401
|
+
# A separate project against which to charge quota.
|
1402
|
+
# @return [::String]
|
1399
1403
|
#
|
1400
1404
|
class Configuration
|
1401
1405
|
extend ::Gapic::Config
|
1402
1406
|
|
1403
|
-
config_attr :endpoint,
|
1404
|
-
config_attr :credentials,
|
1407
|
+
config_attr :endpoint, "bigquerydatatransfer.googleapis.com", ::String
|
1408
|
+
config_attr :credentials, nil do |value|
|
1405
1409
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1406
1410
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1407
1411
|
allowed.any? { |klass| klass === value }
|
1408
1412
|
end
|
1409
|
-
config_attr :scope,
|
1410
|
-
config_attr :lib_name,
|
1411
|
-
config_attr :lib_version,
|
1412
|
-
config_attr(:channel_args,
|
1413
|
-
config_attr :interceptors,
|
1414
|
-
config_attr :timeout,
|
1415
|
-
config_attr :metadata,
|
1416
|
-
config_attr :retry_policy,
|
1413
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
1414
|
+
config_attr :lib_name, nil, ::String, nil
|
1415
|
+
config_attr :lib_version, nil, ::String, nil
|
1416
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1417
|
+
config_attr :interceptors, nil, ::Array, nil
|
1418
|
+
config_attr :timeout, nil, ::Numeric, nil
|
1419
|
+
config_attr :metadata, nil, ::Hash, nil
|
1420
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1421
|
+
config_attr :quota_project, nil, ::String, nil
|
1417
1422
|
|
1418
1423
|
# @private
|
1419
1424
|
def initialize parent_config = nil
|
@@ -1429,7 +1434,7 @@ module Google
|
|
1429
1434
|
def rpcs
|
1430
1435
|
@rpcs ||= begin
|
1431
1436
|
parent_rpcs = nil
|
1432
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
1437
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
1433
1438
|
Rpcs.new parent_rpcs
|
1434
1439
|
end
|
1435
1440
|
end
|
data/proto_docs/README.md
CHANGED
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
|
+
version: 0.2.4
|
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-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,42 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '5.
|
61
|
+
version: '5.14'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '5.
|
68
|
+
version: '5.14'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest-focus
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest-rg
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.2'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.2'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: rake
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,7 +171,6 @@ files:
|
|
143
171
|
- lib/google/cloud/bigquery/datatransfer/v1/datatransfer_pb.rb
|
144
172
|
- lib/google/cloud/bigquery/datatransfer/v1/datatransfer_services_pb.rb
|
145
173
|
- lib/google/cloud/bigquery/datatransfer/v1/transfer_pb.rb
|
146
|
-
- lib/google/cloud/common_resources_pb.rb
|
147
174
|
- proto_docs/README.md
|
148
175
|
- proto_docs/google/api/field_behavior.rb
|
149
176
|
- proto_docs/google/api/resource.rb
|
@@ -176,8 +203,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
203
|
- !ruby/object:Gem::Version
|
177
204
|
version: '0'
|
178
205
|
requirements: []
|
179
|
-
rubygems_version: 3.
|
206
|
+
rubygems_version: 3.1.3
|
180
207
|
signing_key:
|
181
208
|
specification_version: 4
|
182
|
-
summary: API Client library for the BigQuery Data Transfer V1 API
|
209
|
+
summary: API Client library for the BigQuery Data Transfer Service V1 API
|
183
210
|
test_files: []
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/common_resources.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/resource_pb'
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
module Google
|
13
|
-
module Cloud
|
14
|
-
end
|
15
|
-
end
|