google-cloud-bigquery-data_transfer 0.9.0 → 1.0.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/.yardopts +2 -1
- data/AUTHENTICATION.md +51 -54
- 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 +82 -140
- data/lib/google/cloud/bigquery/data_transfer/version.rb +6 -2
- metadata +85 -65
- 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 -1230
- 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 -570
- 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 -217
- data/lib/google/cloud/bigquery/datatransfer/v1/datatransfer_services_pb.rb +0 -94
- data/lib/google/cloud/bigquery/datatransfer/v1/transfer_pb.rb +0 -104
@@ -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 2020 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
|
-
require 'grpc'
|
21
|
-
require 'google/cloud/bigquery/datatransfer/v1/datatransfer_pb'
|
22
|
-
|
23
|
-
module Google
|
24
|
-
module Cloud
|
25
|
-
module Bigquery
|
26
|
-
module DataTransfer
|
27
|
-
end
|
28
|
-
Datatransfer = DataTransfer unless const_defined? :Datatransfer
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
module Google::Cloud::Bigquery::DataTransfer::V1
|
33
|
-
module DataTransferService
|
34
|
-
# The Google BigQuery Data Transfer Service API enables BigQuery users to
|
35
|
-
# configure the transfer of their data from other Google Products into
|
36
|
-
# BigQuery. This service contains methods that are end user exposed. It backs
|
37
|
-
# up the frontend.
|
38
|
-
class Service
|
39
|
-
|
40
|
-
include GRPC::GenericService
|
41
|
-
|
42
|
-
self.marshal_class_method = :encode
|
43
|
-
self.unmarshal_class_method = :decode
|
44
|
-
self.service_name = 'google.cloud.bigquery.datatransfer.v1.DataTransferService'
|
45
|
-
|
46
|
-
# Retrieves a supported data source and returns its settings,
|
47
|
-
# which can be used for UI rendering.
|
48
|
-
rpc :GetDataSource, GetDataSourceRequest, DataSource
|
49
|
-
# Lists supported data sources and returns their settings,
|
50
|
-
# which can be used for UI rendering.
|
51
|
-
rpc :ListDataSources, ListDataSourcesRequest, ListDataSourcesResponse
|
52
|
-
# Creates a new data transfer configuration.
|
53
|
-
rpc :CreateTransferConfig, CreateTransferConfigRequest, TransferConfig
|
54
|
-
# Updates a data transfer configuration.
|
55
|
-
# All fields must be set, even if they are not updated.
|
56
|
-
rpc :UpdateTransferConfig, UpdateTransferConfigRequest, TransferConfig
|
57
|
-
# Deletes a data transfer configuration,
|
58
|
-
# including any associated transfer runs and logs.
|
59
|
-
rpc :DeleteTransferConfig, DeleteTransferConfigRequest, Google::Protobuf::Empty
|
60
|
-
# Returns information about a data transfer config.
|
61
|
-
rpc :GetTransferConfig, GetTransferConfigRequest, TransferConfig
|
62
|
-
# Returns information about all data transfers in the project.
|
63
|
-
rpc :ListTransferConfigs, ListTransferConfigsRequest, ListTransferConfigsResponse
|
64
|
-
# Creates transfer runs for a time range [start_time, end_time].
|
65
|
-
# For each date - or whatever granularity the data source supports - in the
|
66
|
-
# range, one transfer run is created.
|
67
|
-
# Note that runs are created per UTC time in the time range.
|
68
|
-
# DEPRECATED: use StartManualTransferRuns instead.
|
69
|
-
rpc :ScheduleTransferRuns, ScheduleTransferRunsRequest, ScheduleTransferRunsResponse
|
70
|
-
# Start manual transfer runs to be executed now with schedule_time equal to
|
71
|
-
# current time. The transfer runs can be created for a time range where the
|
72
|
-
# run_time is between start_time (inclusive) and end_time (exclusive), or for
|
73
|
-
# a specific run_time.
|
74
|
-
rpc :StartManualTransferRuns, StartManualTransferRunsRequest, StartManualTransferRunsResponse
|
75
|
-
# Returns information about the particular transfer run.
|
76
|
-
rpc :GetTransferRun, GetTransferRunRequest, TransferRun
|
77
|
-
# Deletes the specified transfer run.
|
78
|
-
rpc :DeleteTransferRun, DeleteTransferRunRequest, Google::Protobuf::Empty
|
79
|
-
# Returns information about running and completed jobs.
|
80
|
-
rpc :ListTransferRuns, ListTransferRunsRequest, ListTransferRunsResponse
|
81
|
-
# Returns user facing log messages for the data transfer run.
|
82
|
-
rpc :ListTransferLogs, ListTransferLogsRequest, ListTransferLogsResponse
|
83
|
-
# Returns true if valid credentials exist for the given data source and
|
84
|
-
# requesting user.
|
85
|
-
# Some data sources doesn't support service account, so we need to talk to
|
86
|
-
# them on behalf of the end user. This API just checks whether we have OAuth
|
87
|
-
# token for the particular user, which is a pre-requisite before user can
|
88
|
-
# create a transfer config.
|
89
|
-
rpc :CheckValidCreds, CheckValidCredsRequest, CheckValidCredsResponse
|
90
|
-
end
|
91
|
-
|
92
|
-
Stub = Service.rpc_stub_class
|
93
|
-
end
|
94
|
-
end
|
@@ -1,104 +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
|
-
end
|
91
|
-
Datatransfer = DataTransfer unless const_defined? :Datatransfer
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end
|
95
|
-
module Google::Cloud::Bigquery::DataTransfer::V1
|
96
|
-
EmailPreferences = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.EmailPreferences").msgclass
|
97
|
-
ScheduleOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.ScheduleOptions").msgclass
|
98
|
-
TransferConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferConfig").msgclass
|
99
|
-
TransferRun = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferRun").msgclass
|
100
|
-
TransferMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferMessage").msgclass
|
101
|
-
TransferMessage::MessageSeverity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity").enummodule
|
102
|
-
TransferType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferType").enummodule
|
103
|
-
TransferState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferState").enummodule
|
104
|
-
end
|