google-cloud-bigquery-data_transfer 0.1.0 → 0.2.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.
@@ -0,0 +1,86 @@
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 2018 Google Inc.
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
+ require 'grpc'
20
+ require 'google/cloud/bigquery/datatransfer/v1/datatransfer_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Bigquery
25
+ module Datatransfer
26
+ module V1
27
+ module DataTransferService
28
+ # The Google BigQuery Data Transfer Service API enables BigQuery users to
29
+ # configure the transfer of their data from other Google Products into BigQuery.
30
+ # This service contains methods that are end user exposed. It backs up the
31
+ # frontend.
32
+ class Service
33
+
34
+ include GRPC::GenericService
35
+
36
+ self.marshal_class_method = :encode
37
+ self.unmarshal_class_method = :decode
38
+ self.service_name = 'google.cloud.bigquery.datatransfer.v1.DataTransferService'
39
+
40
+ # Retrieves a supported data source and returns its settings,
41
+ # which can be used for UI rendering.
42
+ rpc :GetDataSource, GetDataSourceRequest, DataSource
43
+ # Lists supported data sources and returns their settings,
44
+ # which can be used for UI rendering.
45
+ rpc :ListDataSources, ListDataSourcesRequest, ListDataSourcesResponse
46
+ # Creates a new data transfer configuration.
47
+ rpc :CreateTransferConfig, CreateTransferConfigRequest, TransferConfig
48
+ # Updates a data transfer configuration.
49
+ # All fields must be set, even if they are not updated.
50
+ rpc :UpdateTransferConfig, UpdateTransferConfigRequest, TransferConfig
51
+ # Deletes a data transfer configuration,
52
+ # including any associated transfer runs and logs.
53
+ rpc :DeleteTransferConfig, DeleteTransferConfigRequest, Google::Protobuf::Empty
54
+ # Returns information about a data transfer config.
55
+ rpc :GetTransferConfig, GetTransferConfigRequest, TransferConfig
56
+ # Returns information about all data transfers in the project.
57
+ rpc :ListTransferConfigs, ListTransferConfigsRequest, ListTransferConfigsResponse
58
+ # Creates transfer runs for a time range [start_time, end_time].
59
+ # For each date - or whatever granularity the data source supports - in the
60
+ # range, one transfer run is created.
61
+ # Note that runs are created per UTC time in the time range.
62
+ rpc :ScheduleTransferRuns, ScheduleTransferRunsRequest, ScheduleTransferRunsResponse
63
+ # Returns information about the particular transfer run.
64
+ rpc :GetTransferRun, GetTransferRunRequest, TransferRun
65
+ # Deletes the specified transfer run.
66
+ rpc :DeleteTransferRun, DeleteTransferRunRequest, Google::Protobuf::Empty
67
+ # Returns information about running and completed jobs.
68
+ rpc :ListTransferRuns, ListTransferRunsRequest, ListTransferRunsResponse
69
+ # Returns user facing log messages for the data transfer run.
70
+ rpc :ListTransferLogs, ListTransferLogsRequest, ListTransferLogsResponse
71
+ # Returns true if valid credentials exist for the given data source and
72
+ # requesting user.
73
+ # Some data sources doesn't support service account, so we need to talk to
74
+ # them on behalf of the end user. This API just checks whether we have OAuth
75
+ # token for the particular user, which is a pre-requisite before user can
76
+ # create a transfer config.
77
+ rpc :CheckValidCreds, CheckValidCredsRequest, CheckValidCredsResponse
78
+ end
79
+
80
+ Stub = Service.rpc_stub_class
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,82 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/bigquery/datatransfer/v1/transfer.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/protobuf/struct_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+ require 'google/rpc/status_pb'
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_message "google.cloud.bigquery.datatransfer.v1.TransferConfig" do
12
+ optional :name, :string, 1
13
+ optional :destination_dataset_id, :string, 2
14
+ optional :display_name, :string, 3
15
+ optional :data_source_id, :string, 5
16
+ optional :params, :message, 9, "google.protobuf.Struct"
17
+ optional :schedule, :string, 7
18
+ optional :data_refresh_window_days, :int32, 12
19
+ optional :disabled, :bool, 13
20
+ optional :update_time, :message, 4, "google.protobuf.Timestamp"
21
+ optional :next_run_time, :message, 8, "google.protobuf.Timestamp"
22
+ optional :state, :enum, 10, "google.cloud.bigquery.datatransfer.v1.TransferState"
23
+ optional :user_id, :int64, 11
24
+ optional :dataset_region, :string, 14
25
+ end
26
+ add_message "google.cloud.bigquery.datatransfer.v1.TransferRun" do
27
+ optional :name, :string, 1
28
+ optional :schedule_time, :message, 3, "google.protobuf.Timestamp"
29
+ optional :run_time, :message, 10, "google.protobuf.Timestamp"
30
+ optional :error_status, :message, 21, "google.rpc.Status"
31
+ optional :start_time, :message, 4, "google.protobuf.Timestamp"
32
+ optional :end_time, :message, 5, "google.protobuf.Timestamp"
33
+ optional :update_time, :message, 6, "google.protobuf.Timestamp"
34
+ optional :params, :message, 9, "google.protobuf.Struct"
35
+ optional :destination_dataset_id, :string, 2
36
+ optional :data_source_id, :string, 7
37
+ optional :state, :enum, 8, "google.cloud.bigquery.datatransfer.v1.TransferState"
38
+ optional :user_id, :int64, 11
39
+ optional :schedule, :string, 12
40
+ end
41
+ add_message "google.cloud.bigquery.datatransfer.v1.TransferMessage" do
42
+ optional :message_time, :message, 1, "google.protobuf.Timestamp"
43
+ optional :severity, :enum, 2, "google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity"
44
+ optional :message_text, :string, 3
45
+ end
46
+ add_enum "google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity" do
47
+ value :MESSAGE_SEVERITY_UNSPECIFIED, 0
48
+ value :INFO, 1
49
+ value :WARNING, 2
50
+ value :ERROR, 3
51
+ end
52
+ add_enum "google.cloud.bigquery.datatransfer.v1.TransferType" do
53
+ value :TRANSFER_TYPE_UNSPECIFIED, 0
54
+ value :BATCH, 1
55
+ value :STREAMING, 2
56
+ end
57
+ add_enum "google.cloud.bigquery.datatransfer.v1.TransferState" do
58
+ value :TRANSFER_STATE_UNSPECIFIED, 0
59
+ value :PENDING, 2
60
+ value :RUNNING, 3
61
+ value :SUCCEEDED, 4
62
+ value :FAILED, 5
63
+ value :CANCELLED, 6
64
+ end
65
+ end
66
+
67
+ module Google
68
+ module Cloud
69
+ module Bigquery
70
+ module Datatransfer
71
+ module V1
72
+ TransferConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferConfig").msgclass
73
+ TransferRun = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferRun").msgclass
74
+ TransferMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferMessage").msgclass
75
+ TransferMessage::MessageSeverity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity").enummodule
76
+ TransferType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferType").enummodule
77
+ TransferState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datatransfer.v1.TransferState").enummodule
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end
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.1.0
4
+ version: 0.2.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: 2018-03-15 00:00:00.000000000 Z
11
+ date: 2018-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '1.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: '1.0'
26
+ version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,34 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.9'
69
- - !ruby/object:Gem::Dependency
70
- name: yard
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '0.9'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '0.9'
83
- - !ruby/object:Gem::Dependency
84
- name: yard-doctest
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "<="
88
- - !ruby/object:Gem::Version
89
- version: 0.1.8
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "<="
95
- - !ruby/object:Gem::Version
96
- version: 0.1.8
97
69
  description: google-cloud-bigquery-data_transfer is the official library for BigQuery
98
70
  Data Transfer API.
99
71
  email: googleapis-packages@google.com
@@ -107,14 +79,18 @@ files:
107
79
  - lib/google/cloud/bigquery/data_transfer.rb
108
80
  - lib/google/cloud/bigquery/data_transfer/credentials.rb
109
81
  - lib/google/cloud/bigquery/data_transfer/v1.rb
82
+ - lib/google/cloud/bigquery/data_transfer/v1/credentials.rb
110
83
  - lib/google/cloud/bigquery/data_transfer/v1/data_transfer_pb.rb
111
84
  - lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service_client.rb
112
85
  - lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service_client_config.json
113
86
  - lib/google/cloud/bigquery/data_transfer/v1/data_transfer_services_pb.rb
114
87
  - lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/data_transfer/v1/data_transfer.rb
115
88
  - lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/data_transfer/v1/transfer.rb
89
+ - lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/datatransfer.rb
90
+ - lib/google/cloud/bigquery/data_transfer/v1/doc/google/cloud/bigquery/datatransfer/v1/transfer.rb
116
91
  - lib/google/cloud/bigquery/data_transfer/v1/doc/google/protobuf/any.rb
117
92
  - lib/google/cloud/bigquery/data_transfer/v1/doc/google/protobuf/duration.rb
93
+ - lib/google/cloud/bigquery/data_transfer/v1/doc/google/protobuf/empty.rb
118
94
  - lib/google/cloud/bigquery/data_transfer/v1/doc/google/protobuf/field_mask.rb
119
95
  - lib/google/cloud/bigquery/data_transfer/v1/doc/google/protobuf/struct.rb
120
96
  - lib/google/cloud/bigquery/data_transfer/v1/doc/google/protobuf/timestamp.rb
@@ -122,7 +98,10 @@ files:
122
98
  - lib/google/cloud/bigquery/data_transfer/v1/doc/google/rpc/status.rb
123
99
  - lib/google/cloud/bigquery/data_transfer/v1/doc/overview.rb
124
100
  - lib/google/cloud/bigquery/data_transfer/v1/transfer_pb.rb
125
- homepage: https://github.com/googleapis/googleapis
101
+ - lib/google/cloud/bigquery/datatransfer/v1/datatransfer_pb.rb
102
+ - lib/google/cloud/bigquery/datatransfer/v1/datatransfer_services_pb.rb
103
+ - lib/google/cloud/bigquery/datatransfer/v1/transfer_pb.rb
104
+ homepage: https://github.com/GoogleCloudPlatform/google-cloud-ruby/tree/master/google-cloud-bigquery-data_transfer
126
105
  licenses:
127
106
  - Apache-2.0
128
107
  metadata: {}
@@ -142,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
121
  version: '0'
143
122
  requirements: []
144
123
  rubyforge_project:
145
- rubygems_version: 2.7.6
124
+ rubygems_version: 2.7.7
146
125
  signing_key:
147
126
  specification_version: 4
148
127
  summary: API Client library for BigQuery Data Transfer API