google-cloud-bigquery-data_transfer 0.7.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +3 -2
- data/AUTHENTICATION.md +51 -59
- data/LICENSE.md +203 -0
- data/MIGRATING.md +301 -0
- data/README.md +33 -45
- data/lib/{google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datasource.rb → google-cloud-bigquery-data_transfer.rb} +5 -11
- data/lib/google/cloud/bigquery/data_transfer.rb +88 -140
- data/lib/google/cloud/bigquery/data_transfer/version.rb +6 -2
- metadata +60 -68
- data/LICENSE +0 -201
- data/lib/google/cloud/bigquery/data_transfer/credentials.rb +0 -33
- data/lib/google/cloud/bigquery/data_transfer/v1.rb +0 -173
- data/lib/google/cloud/bigquery/data_transfer/v1/credentials.rb +0 -43
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_pb.rb +0 -190
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service_client.rb +0 -1177
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service_client_config.json +0 -96
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_services_pb.rb +0 -87
- data/lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/data_transfer/v1/data_transfer.rb +0 -500
- data/lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/data_transfer/v1/transfer.rb +0 -217
- data/lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb +0 -565
- data/lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/transfer.rb +0 -257
- data/lib/google/cloud/bigquery/data_transfer/v1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/bigquery/data_transfer/v1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/bigquery/data_transfer/v1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/bigquery/data_transfer/v1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/bigquery/data_transfer/v1/doc/google/protobuf/struct.rb +0 -74
- data/lib/google/cloud/bigquery/data_transfer/v1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/bigquery/data_transfer/v1/doc/google/protobuf/wrappers.rb +0 -26
- data/lib/google/cloud/bigquery/data_transfer/v1/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/bigquery/data_transfer/v1/transfer_pb.rb +0 -83
- data/lib/google/cloud/bigquery/datatransfer/v1/datasource_pb.rb +0 -170
- data/lib/google/cloud/bigquery/datatransfer/v1/datasource_services_pb.rb +0 -103
- data/lib/google/cloud/bigquery/datatransfer/v1/datatransfer_pb.rb +0 -215
- data/lib/google/cloud/bigquery/datatransfer/v1/datatransfer_services_pb.rb +0 -94
- data/lib/google/cloud/bigquery/datatransfer/v1/transfer_pb.rb +0 -103
@@ -1,94 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto for package 'google.cloud.bigquery.datatransfer.v1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2019 Google LLC.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
#
|
19
|
-
|
20
|
-
|
21
|
-
require 'grpc'
|
22
|
-
require 'google/cloud/bigquery/datatransfer/v1/datatransfer_pb'
|
23
|
-
|
24
|
-
module Google
|
25
|
-
module Cloud
|
26
|
-
module Bigquery
|
27
|
-
module Datatransfer
|
28
|
-
module V1
|
29
|
-
module DataTransferService
|
30
|
-
# The Google BigQuery Data Transfer Service API enables BigQuery users to
|
31
|
-
# configure the transfer of their data from other Google Products into
|
32
|
-
# BigQuery. This service contains methods that are end user exposed. It backs
|
33
|
-
# up the frontend.
|
34
|
-
class Service
|
35
|
-
|
36
|
-
include GRPC::GenericService
|
37
|
-
|
38
|
-
self.marshal_class_method = :encode
|
39
|
-
self.unmarshal_class_method = :decode
|
40
|
-
self.service_name = 'google.cloud.bigquery.datatransfer.v1.DataTransferService'
|
41
|
-
|
42
|
-
# Retrieves a supported data source and returns its settings,
|
43
|
-
# which can be used for UI rendering.
|
44
|
-
rpc :GetDataSource, GetDataSourceRequest, DataSource
|
45
|
-
# Lists supported data sources and returns their settings,
|
46
|
-
# which can be used for UI rendering.
|
47
|
-
rpc :ListDataSources, ListDataSourcesRequest, ListDataSourcesResponse
|
48
|
-
# Creates a new data transfer configuration.
|
49
|
-
rpc :CreateTransferConfig, CreateTransferConfigRequest, TransferConfig
|
50
|
-
# Updates a data transfer configuration.
|
51
|
-
# All fields must be set, even if they are not updated.
|
52
|
-
rpc :UpdateTransferConfig, UpdateTransferConfigRequest, TransferConfig
|
53
|
-
# Deletes a data transfer configuration,
|
54
|
-
# including any associated transfer runs and logs.
|
55
|
-
rpc :DeleteTransferConfig, DeleteTransferConfigRequest, Google::Protobuf::Empty
|
56
|
-
# Returns information about a data transfer config.
|
57
|
-
rpc :GetTransferConfig, GetTransferConfigRequest, TransferConfig
|
58
|
-
# Returns information about all data transfers in the project.
|
59
|
-
rpc :ListTransferConfigs, ListTransferConfigsRequest, ListTransferConfigsResponse
|
60
|
-
# Creates transfer runs for a time range [start_time, end_time].
|
61
|
-
# For each date - or whatever granularity the data source supports - in the
|
62
|
-
# range, one transfer run is created.
|
63
|
-
# Note that runs are created per UTC time in the time range.
|
64
|
-
# DEPRECATED: use StartManualTransferRuns instead.
|
65
|
-
rpc :ScheduleTransferRuns, ScheduleTransferRunsRequest, ScheduleTransferRunsResponse
|
66
|
-
# Start manual transfer runs to be executed now with schedule_time equal to
|
67
|
-
# current time. The transfer runs can be created for a time range where the
|
68
|
-
# run_time is between start_time (inclusive) and end_time (exclusive), or for
|
69
|
-
# a specific run_time.
|
70
|
-
rpc :StartManualTransferRuns, StartManualTransferRunsRequest, StartManualTransferRunsResponse
|
71
|
-
# Returns information about the particular transfer run.
|
72
|
-
rpc :GetTransferRun, GetTransferRunRequest, TransferRun
|
73
|
-
# Deletes the specified transfer run.
|
74
|
-
rpc :DeleteTransferRun, DeleteTransferRunRequest, Google::Protobuf::Empty
|
75
|
-
# Returns information about running and completed jobs.
|
76
|
-
rpc :ListTransferRuns, ListTransferRunsRequest, ListTransferRunsResponse
|
77
|
-
# Returns user facing log messages for the data transfer run.
|
78
|
-
rpc :ListTransferLogs, ListTransferLogsRequest, ListTransferLogsResponse
|
79
|
-
# Returns true if valid credentials exist for the given data source and
|
80
|
-
# requesting user.
|
81
|
-
# Some data sources doesn't support service account, so we need to talk to
|
82
|
-
# them on behalf of the end user. This API just checks whether we have OAuth
|
83
|
-
# token for the particular user, which is a pre-requisite before user can
|
84
|
-
# create a transfer config.
|
85
|
-
rpc :CheckValidCreds, CheckValidCredsRequest, CheckValidCredsResponse
|
86
|
-
end
|
87
|
-
|
88
|
-
Stub = Service.rpc_stub_class
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end
|
@@ -1,103 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/bigquery/datatransfer/v1/transfer.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/field_behavior_pb'
|
8
|
-
require 'google/api/resource_pb'
|
9
|
-
require 'google/protobuf/struct_pb'
|
10
|
-
require 'google/protobuf/timestamp_pb'
|
11
|
-
require 'google/rpc/status_pb'
|
12
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
-
add_message "google.cloud.bigquery.datatransfer.v1.EmailPreferences" do
|
14
|
-
optional :enable_failure_email, :bool, 1
|
15
|
-
end
|
16
|
-
add_message "google.cloud.bigquery.datatransfer.v1.ScheduleOptions" do
|
17
|
-
optional :disable_auto_scheduling, :bool, 3
|
18
|
-
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
19
|
-
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
20
|
-
end
|
21
|
-
add_message "google.cloud.bigquery.datatransfer.v1.TransferConfig" do
|
22
|
-
optional :name, :string, 1
|
23
|
-
optional :display_name, :string, 3
|
24
|
-
optional :data_source_id, :string, 5
|
25
|
-
optional :params, :message, 9, "google.protobuf.Struct"
|
26
|
-
optional :schedule, :string, 7
|
27
|
-
optional :schedule_options, :message, 24, "google.cloud.bigquery.datatransfer.v1.ScheduleOptions"
|
28
|
-
optional :data_refresh_window_days, :int32, 12
|
29
|
-
optional :disabled, :bool, 13
|
30
|
-
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
31
|
-
optional :next_run_time, :message, 8, "google.protobuf.Timestamp"
|
32
|
-
optional :state, :enum, 10, "google.cloud.bigquery.datatransfer.v1.TransferState"
|
33
|
-
optional :user_id, :int64, 11
|
34
|
-
optional :dataset_region, :string, 14
|
35
|
-
optional :notification_pubsub_topic, :string, 15
|
36
|
-
optional :email_preferences, :message, 18, "google.cloud.bigquery.datatransfer.v1.EmailPreferences"
|
37
|
-
oneof :destination do
|
38
|
-
optional :destination_dataset_id, :string, 2
|
39
|
-
end
|
40
|
-
end
|
41
|
-
add_message "google.cloud.bigquery.datatransfer.v1.TransferRun" do
|
42
|
-
optional :name, :string, 1
|
43
|
-
optional :schedule_time, :message, 3, "google.protobuf.Timestamp"
|
44
|
-
optional :run_time, :message, 10, "google.protobuf.Timestamp"
|
45
|
-
optional :error_status, :message, 21, "google.rpc.Status"
|
46
|
-
optional :start_time, :message, 4, "google.protobuf.Timestamp"
|
47
|
-
optional :end_time, :message, 5, "google.protobuf.Timestamp"
|
48
|
-
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
49
|
-
optional :params, :message, 9, "google.protobuf.Struct"
|
50
|
-
optional :data_source_id, :string, 7
|
51
|
-
optional :state, :enum, 8, "google.cloud.bigquery.datatransfer.v1.TransferState"
|
52
|
-
optional :user_id, :int64, 11
|
53
|
-
optional :schedule, :string, 12
|
54
|
-
optional :notification_pubsub_topic, :string, 23
|
55
|
-
optional :email_preferences, :message, 25, "google.cloud.bigquery.datatransfer.v1.EmailPreferences"
|
56
|
-
oneof :destination do
|
57
|
-
optional :destination_dataset_id, :string, 2
|
58
|
-
end
|
59
|
-
end
|
60
|
-
add_message "google.cloud.bigquery.datatransfer.v1.TransferMessage" do
|
61
|
-
optional :message_time, :message, 1, "google.protobuf.Timestamp"
|
62
|
-
optional :severity, :enum, 2, "google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity"
|
63
|
-
optional :message_text, :string, 3
|
64
|
-
end
|
65
|
-
add_enum "google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity" do
|
66
|
-
value :MESSAGE_SEVERITY_UNSPECIFIED, 0
|
67
|
-
value :INFO, 1
|
68
|
-
value :WARNING, 2
|
69
|
-
value :ERROR, 3
|
70
|
-
end
|
71
|
-
add_enum "google.cloud.bigquery.datatransfer.v1.TransferType" do
|
72
|
-
value :TRANSFER_TYPE_UNSPECIFIED, 0
|
73
|
-
value :BATCH, 1
|
74
|
-
value :STREAMING, 2
|
75
|
-
end
|
76
|
-
add_enum "google.cloud.bigquery.datatransfer.v1.TransferState" do
|
77
|
-
value :TRANSFER_STATE_UNSPECIFIED, 0
|
78
|
-
value :PENDING, 2
|
79
|
-
value :RUNNING, 3
|
80
|
-
value :SUCCEEDED, 4
|
81
|
-
value :FAILED, 5
|
82
|
-
value :CANCELLED, 6
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
|
-
module Google
|
87
|
-
module Cloud
|
88
|
-
module Bigquery
|
89
|
-
module Datatransfer
|
90
|
-
module V1
|
91
|
-
EmailPreferences = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.EmailPreferences").msgclass
|
92
|
-
ScheduleOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.ScheduleOptions").msgclass
|
93
|
-
TransferConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferConfig").msgclass
|
94
|
-
TransferRun = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferRun").msgclass
|
95
|
-
TransferMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferMessage").msgclass
|
96
|
-
TransferMessage::MessageSeverity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity").enummodule
|
97
|
-
TransferType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferType").enummodule
|
98
|
-
TransferState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferState").enummodule
|
99
|
-
end
|
100
|
-
end
|
101
|
-
end
|
102
|
-
end
|
103
|
-
end
|