google-cloud-bigquery-migration-v2 0.1.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 +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_entities_pb.rb +89 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_error_details_pb.rb +39 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_metrics_pb.rb +52 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_service/client.rb +1016 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_service/credentials.rb +49 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_service/paths.rb +92 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_service.rb +51 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_service_pb.rb +76 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_service_services_pb.rb +62 -0
- data/lib/google/cloud/bigquery/migration/v2/translation_config_pb.rb +127 -0
- data/lib/google/cloud/bigquery/migration/v2/version.rb +30 -0
- data/lib/google/cloud/bigquery/migration/v2.rb +42 -0
- data/lib/google-cloud-bigquery-migration-v2.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/distribution.rb +225 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/label.rb +49 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/metric.rb +276 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb +220 -0
- data/proto_docs/google/cloud/bigquery/migration/v2/migration_error_details.rb +72 -0
- data/proto_docs/google/cloud/bigquery/migration/v2/migration_metrics.rb +119 -0
- data/proto_docs/google/cloud/bigquery/migration/v2/migration_service.rb +166 -0
- data/proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb +275 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/error_details.rb +297 -0
- metadata +227 -0
@@ -0,0 +1,220 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Bigquery
|
23
|
+
module Migration
|
24
|
+
module V2
|
25
|
+
# A migration workflow which specifies what needs to be done for an EDW
|
26
|
+
# migration.
|
27
|
+
# @!attribute [r] name
|
28
|
+
# @return [::String]
|
29
|
+
# Output only. Immutable. The unique identifier for the migration workflow.
|
30
|
+
# The ID is server-generated.
|
31
|
+
#
|
32
|
+
# Example: `projects/123/locations/us/workflows/345`
|
33
|
+
# @!attribute [rw] display_name
|
34
|
+
# @return [::String]
|
35
|
+
# The display name of the workflow. This can be set to give a workflow
|
36
|
+
# a descriptive name. There is no guarantee or enforcement of uniqueness.
|
37
|
+
# @!attribute [rw] tasks
|
38
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigquery::Migration::V2::MigrationTask}]
|
39
|
+
# The tasks in a workflow in a named map. The name (i.e. key) has no
|
40
|
+
# meaning and is merely a convenient way to address a specific task
|
41
|
+
# in a workflow.
|
42
|
+
# @!attribute [r] state
|
43
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow::State]
|
44
|
+
# Output only. That status of the workflow.
|
45
|
+
# @!attribute [rw] create_time
|
46
|
+
# @return [::Google::Protobuf::Timestamp]
|
47
|
+
# Time when the workflow was created.
|
48
|
+
# @!attribute [rw] last_update_time
|
49
|
+
# @return [::Google::Protobuf::Timestamp]
|
50
|
+
# Time when the workflow was last updated.
|
51
|
+
class MigrationWorkflow
|
52
|
+
include ::Google::Protobuf::MessageExts
|
53
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
54
|
+
|
55
|
+
# @!attribute [rw] key
|
56
|
+
# @return [::String]
|
57
|
+
# @!attribute [rw] value
|
58
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::MigrationTask]
|
59
|
+
class TasksEntry
|
60
|
+
include ::Google::Protobuf::MessageExts
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
62
|
+
end
|
63
|
+
|
64
|
+
# Possible migration workflow states.
|
65
|
+
module State
|
66
|
+
# Workflow state is unspecified.
|
67
|
+
STATE_UNSPECIFIED = 0
|
68
|
+
|
69
|
+
# Workflow is in draft status, i.e. tasks are not yet eligible for
|
70
|
+
# execution.
|
71
|
+
DRAFT = 1
|
72
|
+
|
73
|
+
# Workflow is running (i.e. tasks are eligible for execution).
|
74
|
+
RUNNING = 2
|
75
|
+
|
76
|
+
# Workflow is paused. Tasks currently in progress may continue, but no
|
77
|
+
# further tasks will be scheduled.
|
78
|
+
PAUSED = 3
|
79
|
+
|
80
|
+
# Workflow is complete. There should not be any task in a non-terminal
|
81
|
+
# state, but if they are (e.g. forced termination), they will not be
|
82
|
+
# scheduled.
|
83
|
+
COMPLETED = 4
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# A single task for a migration which has details about the configuration of
|
88
|
+
# the task.
|
89
|
+
# @!attribute [rw] translation_config_details
|
90
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails]
|
91
|
+
# Task configuration for Batch SQL Translation.
|
92
|
+
# @!attribute [r] id
|
93
|
+
# @return [::String]
|
94
|
+
# Output only. Immutable. The unique identifier for the migration task. The
|
95
|
+
# ID is server-generated.
|
96
|
+
# @!attribute [rw] type
|
97
|
+
# @return [::String]
|
98
|
+
# The type of the task. This must be one of the supported task types:
|
99
|
+
# Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
|
100
|
+
# Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
|
101
|
+
# Translation_Snowflake2BQ, Translation_Netezza2BQ.
|
102
|
+
# @!attribute [r] state
|
103
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::MigrationTask::State]
|
104
|
+
# Output only. The current state of the task.
|
105
|
+
# @!attribute [r] processing_error
|
106
|
+
# @return [::Google::Rpc::ErrorInfo]
|
107
|
+
# Output only. An explanation that may be populated when the task is in
|
108
|
+
# FAILED state.
|
109
|
+
# @!attribute [rw] create_time
|
110
|
+
# @return [::Google::Protobuf::Timestamp]
|
111
|
+
# Time when the task was created.
|
112
|
+
# @!attribute [rw] last_update_time
|
113
|
+
# @return [::Google::Protobuf::Timestamp]
|
114
|
+
# Time when the task was last updated.
|
115
|
+
class MigrationTask
|
116
|
+
include ::Google::Protobuf::MessageExts
|
117
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
118
|
+
|
119
|
+
# Possible states of a migration task.
|
120
|
+
module State
|
121
|
+
# The state is unspecified.
|
122
|
+
STATE_UNSPECIFIED = 0
|
123
|
+
|
124
|
+
# The task is waiting for orchestration.
|
125
|
+
PENDING = 1
|
126
|
+
|
127
|
+
# The task is assigned to an orchestrator.
|
128
|
+
ORCHESTRATING = 2
|
129
|
+
|
130
|
+
# The task is running, i.e. its subtasks are ready for execution.
|
131
|
+
RUNNING = 3
|
132
|
+
|
133
|
+
# Tha task is paused. Assigned subtasks can continue, but no new subtasks
|
134
|
+
# will be scheduled.
|
135
|
+
PAUSED = 4
|
136
|
+
|
137
|
+
# The task finished successfully.
|
138
|
+
SUCCEEDED = 5
|
139
|
+
|
140
|
+
# The task finished unsuccessfully.
|
141
|
+
FAILED = 6
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
# A subtask for a migration which carries details about the configuration of
|
146
|
+
# the subtask. The content of the details should not matter to the end user,
|
147
|
+
# but is a contract between the subtask creator and subtask worker.
|
148
|
+
# @!attribute [r] name
|
149
|
+
# @return [::String]
|
150
|
+
# Output only. Immutable. The resource name for the migration subtask. The ID
|
151
|
+
# is server-generated.
|
152
|
+
#
|
153
|
+
# Example: `projects/123/locations/us/workflows/345/subtasks/678`
|
154
|
+
# @!attribute [rw] task_id
|
155
|
+
# @return [::String]
|
156
|
+
# The unique ID of the task to which this subtask belongs.
|
157
|
+
# @!attribute [rw] type
|
158
|
+
# @return [::String]
|
159
|
+
# The type of the Subtask. The migration service does not check whether this
|
160
|
+
# is a known type. It is up to the task creator (i.e. orchestrator or worker)
|
161
|
+
# to ensure it only creates subtasks for which there are compatible workers
|
162
|
+
# polling for Subtasks.
|
163
|
+
# @!attribute [r] state
|
164
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::MigrationSubtask::State]
|
165
|
+
# Output only. The current state of the subtask.
|
166
|
+
# @!attribute [r] processing_error
|
167
|
+
# @return [::Google::Rpc::ErrorInfo]
|
168
|
+
# Output only. An explanation that may be populated when the task is in
|
169
|
+
# FAILED state.
|
170
|
+
# @!attribute [r] resource_error_details
|
171
|
+
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::ResourceErrorDetail>]
|
172
|
+
# Output only. Provides details to errors and issues encountered while
|
173
|
+
# processing the subtask. Presence of error details does not mean that the
|
174
|
+
# subtask failed.
|
175
|
+
# @!attribute [rw] resource_error_count
|
176
|
+
# @return [::Integer]
|
177
|
+
# The number or resources with errors. Note: This is not the total
|
178
|
+
# number of errors as each resource can have more than one error.
|
179
|
+
# This is used to indicate truncation by having a `resource_error_count`
|
180
|
+
# that is higher than the size of `resource_error_details`.
|
181
|
+
# @!attribute [rw] create_time
|
182
|
+
# @return [::Google::Protobuf::Timestamp]
|
183
|
+
# Time when the subtask was created.
|
184
|
+
# @!attribute [rw] last_update_time
|
185
|
+
# @return [::Google::Protobuf::Timestamp]
|
186
|
+
# Time when the subtask was last updated.
|
187
|
+
# @!attribute [rw] metrics
|
188
|
+
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>]
|
189
|
+
# The metrics for the subtask.
|
190
|
+
class MigrationSubtask
|
191
|
+
include ::Google::Protobuf::MessageExts
|
192
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
193
|
+
|
194
|
+
# Possible states of a migration subtask.
|
195
|
+
module State
|
196
|
+
# The state is unspecified.
|
197
|
+
STATE_UNSPECIFIED = 0
|
198
|
+
|
199
|
+
# The subtask is ready, i.e. it is ready for execution.
|
200
|
+
ACTIVE = 1
|
201
|
+
|
202
|
+
# The subtask is running, i.e. it is assigned to a worker for execution.
|
203
|
+
RUNNING = 2
|
204
|
+
|
205
|
+
# The subtask finished successfully.
|
206
|
+
SUCCEEDED = 3
|
207
|
+
|
208
|
+
# The subtask finished unsuccessfully.
|
209
|
+
FAILED = 4
|
210
|
+
|
211
|
+
# The subtask is paused, i.e., it will not be scheduled. If it was already
|
212
|
+
# assigned,it might still finish but no new lease renewals will be granted.
|
213
|
+
PAUSED = 5
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
217
|
+
end
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Bigquery
|
23
|
+
module Migration
|
24
|
+
module V2
|
25
|
+
# Provides details for errors and the corresponding resources.
|
26
|
+
# @!attribute [rw] resource_info
|
27
|
+
# @return [::Google::Rpc::ResourceInfo]
|
28
|
+
# Required. Information about the resource where the error is located.
|
29
|
+
# @!attribute [rw] error_details
|
30
|
+
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::ErrorDetail>]
|
31
|
+
# Required. The error details for the resource.
|
32
|
+
# @!attribute [rw] error_count
|
33
|
+
# @return [::Integer]
|
34
|
+
# Required. How many errors there are in total for the resource. Truncation can be
|
35
|
+
# indicated by having an `error_count` that is higher than the size of
|
36
|
+
# `error_details`.
|
37
|
+
class ResourceErrorDetail
|
38
|
+
include ::Google::Protobuf::MessageExts
|
39
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
40
|
+
end
|
41
|
+
|
42
|
+
# Provides details for errors, e.g. issues that where encountered when
|
43
|
+
# processing a subtask.
|
44
|
+
# @!attribute [rw] location
|
45
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::ErrorLocation]
|
46
|
+
# Optional. The exact location within the resource (if applicable).
|
47
|
+
# @!attribute [rw] error_info
|
48
|
+
# @return [::Google::Rpc::ErrorInfo]
|
49
|
+
# Required. Describes the cause of the error with structured detail.
|
50
|
+
class ErrorDetail
|
51
|
+
include ::Google::Protobuf::MessageExts
|
52
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
53
|
+
end
|
54
|
+
|
55
|
+
# Holds information about where the error is located.
|
56
|
+
# @!attribute [rw] line
|
57
|
+
# @return [::Integer]
|
58
|
+
# Optional. If applicable, denotes the line where the error occurred. A zero value
|
59
|
+
# means that there is no line information.
|
60
|
+
# @!attribute [rw] column
|
61
|
+
# @return [::Integer]
|
62
|
+
# Optional. If applicable, denotes the column where the error occurred. A zero value
|
63
|
+
# means that there is no columns information.
|
64
|
+
class ErrorLocation
|
65
|
+
include ::Google::Protobuf::MessageExts
|
66
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,119 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Bigquery
|
23
|
+
module Migration
|
24
|
+
module V2
|
25
|
+
# The metrics object for a SubTask.
|
26
|
+
# @!attribute [rw] metric
|
27
|
+
# @return [::String]
|
28
|
+
# Required. The name of the metric.
|
29
|
+
#
|
30
|
+
# If the metric is not known by the service yet, it will be auto-created.
|
31
|
+
# @!attribute [rw] value_type
|
32
|
+
# @return [::Google::Api::MetricDescriptor::ValueType]
|
33
|
+
# Required. The value type of the time series.
|
34
|
+
# @!attribute [rw] metric_kind
|
35
|
+
# @return [::Google::Api::MetricDescriptor::MetricKind]
|
36
|
+
# Optional. The metric kind of the time series.
|
37
|
+
#
|
38
|
+
# If present, it must be the same as the metric kind of the associated
|
39
|
+
# metric. If the associated metric's descriptor must be auto-created, then
|
40
|
+
# this field specifies the metric kind of the new descriptor and must be
|
41
|
+
# either `GAUGE` (the default) or `CUMULATIVE`.
|
42
|
+
# @!attribute [rw] points
|
43
|
+
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::Point>]
|
44
|
+
# Required. The data points of this time series. When listing time series, points are
|
45
|
+
# returned in reverse time order.
|
46
|
+
#
|
47
|
+
# When creating a time series, this field must contain exactly one point and
|
48
|
+
# the point's type must be the same as the value type of the associated
|
49
|
+
# metric. If the associated metric's descriptor must be auto-created, then
|
50
|
+
# the value type of the descriptor is determined by the point's type, which
|
51
|
+
# must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
|
52
|
+
class TimeSeries
|
53
|
+
include ::Google::Protobuf::MessageExts
|
54
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
55
|
+
end
|
56
|
+
|
57
|
+
# A single data point in a time series.
|
58
|
+
# @!attribute [rw] interval
|
59
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::TimeInterval]
|
60
|
+
# The time interval to which the data point applies. For `GAUGE` metrics,
|
61
|
+
# the start time does not need to be supplied, but if it is supplied, it must
|
62
|
+
# equal the end time. For `DELTA` metrics, the start and end time should
|
63
|
+
# specify a non-zero interval, with subsequent points specifying contiguous
|
64
|
+
# and non-overlapping intervals. For `CUMULATIVE` metrics, the start and end
|
65
|
+
# time should specify a non-zero interval, with subsequent points specifying
|
66
|
+
# the same start time and increasing end times, until an event resets the
|
67
|
+
# cumulative value to zero and sets a new start time for the following
|
68
|
+
# points.
|
69
|
+
# @!attribute [rw] value
|
70
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::TypedValue]
|
71
|
+
# The value of the data point.
|
72
|
+
class Point
|
73
|
+
include ::Google::Protobuf::MessageExts
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
|
+
end
|
76
|
+
|
77
|
+
# A time interval extending just after a start time through an end time.
|
78
|
+
# If the start time is the same as the end time, then the interval
|
79
|
+
# represents a single point in time.
|
80
|
+
# @!attribute [rw] start_time
|
81
|
+
# @return [::Google::Protobuf::Timestamp]
|
82
|
+
# Optional. The beginning of the time interval. The default value
|
83
|
+
# for the start time is the end time. The start time must not be
|
84
|
+
# later than the end time.
|
85
|
+
# @!attribute [rw] end_time
|
86
|
+
# @return [::Google::Protobuf::Timestamp]
|
87
|
+
# Required. The end of the time interval.
|
88
|
+
class TimeInterval
|
89
|
+
include ::Google::Protobuf::MessageExts
|
90
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
91
|
+
end
|
92
|
+
|
93
|
+
# A single strongly-typed value.
|
94
|
+
# @!attribute [rw] bool_value
|
95
|
+
# @return [::Boolean]
|
96
|
+
# A Boolean value: `true` or `false`.
|
97
|
+
# @!attribute [rw] int64_value
|
98
|
+
# @return [::Integer]
|
99
|
+
# A 64-bit integer. Its range is approximately `+/-9.2x10^18`.
|
100
|
+
# @!attribute [rw] double_value
|
101
|
+
# @return [::Float]
|
102
|
+
# A 64-bit double-precision floating-point number. Its magnitude
|
103
|
+
# is approximately `+/-10^(+/-300)` and it has 16 significant digits of
|
104
|
+
# precision.
|
105
|
+
# @!attribute [rw] string_value
|
106
|
+
# @return [::String]
|
107
|
+
# A variable-length string value.
|
108
|
+
# @!attribute [rw] distribution_value
|
109
|
+
# @return [::Google::Api::Distribution]
|
110
|
+
# A distribution value.
|
111
|
+
class TypedValue
|
112
|
+
include ::Google::Protobuf::MessageExts
|
113
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
@@ -0,0 +1,166 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Bigquery
|
23
|
+
module Migration
|
24
|
+
module V2
|
25
|
+
# Request to create a migration workflow resource.
|
26
|
+
# @!attribute [rw] parent
|
27
|
+
# @return [::String]
|
28
|
+
# Required. The name of the project to which this migration workflow belongs.
|
29
|
+
# Example: `projects/foo/locations/bar`
|
30
|
+
# @!attribute [rw] migration_workflow
|
31
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow]
|
32
|
+
# Required. The migration workflow to create.
|
33
|
+
class CreateMigrationWorkflowRequest
|
34
|
+
include ::Google::Protobuf::MessageExts
|
35
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
36
|
+
end
|
37
|
+
|
38
|
+
# A request to get a previously created migration workflow.
|
39
|
+
# @!attribute [rw] name
|
40
|
+
# @return [::String]
|
41
|
+
# Required. The unique identifier for the migration workflow.
|
42
|
+
# Example: `projects/123/locations/us/workflows/1234`
|
43
|
+
# @!attribute [rw] read_mask
|
44
|
+
# @return [::Google::Protobuf::FieldMask]
|
45
|
+
# The list of fields to be retrieved.
|
46
|
+
class GetMigrationWorkflowRequest
|
47
|
+
include ::Google::Protobuf::MessageExts
|
48
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
49
|
+
end
|
50
|
+
|
51
|
+
# A request to list previously created migration workflows.
|
52
|
+
# @!attribute [rw] parent
|
53
|
+
# @return [::String]
|
54
|
+
# Required. The project and location of the migration workflows to list.
|
55
|
+
# Example: `projects/123/locations/us`
|
56
|
+
# @!attribute [rw] read_mask
|
57
|
+
# @return [::Google::Protobuf::FieldMask]
|
58
|
+
# The list of fields to be retrieved.
|
59
|
+
# @!attribute [rw] page_size
|
60
|
+
# @return [::Integer]
|
61
|
+
# The maximum number of migration workflows to return. The service may return
|
62
|
+
# fewer than this number.
|
63
|
+
# @!attribute [rw] page_token
|
64
|
+
# @return [::String]
|
65
|
+
# A page token, received from previous `ListMigrationWorkflows` call.
|
66
|
+
# Provide this to retrieve the subsequent page.
|
67
|
+
#
|
68
|
+
# When paginating, all other parameters provided to `ListMigrationWorkflows`
|
69
|
+
# must match the call that provided the page token.
|
70
|
+
class ListMigrationWorkflowsRequest
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
end
|
74
|
+
|
75
|
+
# Response object for a `ListMigrationWorkflows` call.
|
76
|
+
# @!attribute [rw] migration_workflows
|
77
|
+
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow>]
|
78
|
+
# The migration workflows for the specified project / location.
|
79
|
+
# @!attribute [rw] next_page_token
|
80
|
+
# @return [::String]
|
81
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
82
|
+
# If this field is omitted, there are no subsequent pages.
|
83
|
+
class ListMigrationWorkflowsResponse
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
end
|
87
|
+
|
88
|
+
# A request to delete a previously created migration workflow.
|
89
|
+
# @!attribute [rw] name
|
90
|
+
# @return [::String]
|
91
|
+
# Required. The unique identifier for the migration workflow.
|
92
|
+
# Example: `projects/123/locations/us/workflows/1234`
|
93
|
+
class DeleteMigrationWorkflowRequest
|
94
|
+
include ::Google::Protobuf::MessageExts
|
95
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
96
|
+
end
|
97
|
+
|
98
|
+
# A request to start a previously created migration workflow.
|
99
|
+
# @!attribute [rw] name
|
100
|
+
# @return [::String]
|
101
|
+
# Required. The unique identifier for the migration workflow.
|
102
|
+
# Example: `projects/123/locations/us/workflows/1234`
|
103
|
+
class StartMigrationWorkflowRequest
|
104
|
+
include ::Google::Protobuf::MessageExts
|
105
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
106
|
+
end
|
107
|
+
|
108
|
+
# A request to get a previously created migration subtasks.
|
109
|
+
# @!attribute [rw] name
|
110
|
+
# @return [::String]
|
111
|
+
# Required. The unique identifier for the migration subtask.
|
112
|
+
# Example: `projects/123/locations/us/workflows/1234/subtasks/543`
|
113
|
+
# @!attribute [rw] read_mask
|
114
|
+
# @return [::Google::Protobuf::FieldMask]
|
115
|
+
# Optional. The list of fields to be retrieved.
|
116
|
+
class GetMigrationSubtaskRequest
|
117
|
+
include ::Google::Protobuf::MessageExts
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
119
|
+
end
|
120
|
+
|
121
|
+
# A request to list previously created migration subtasks.
|
122
|
+
# @!attribute [rw] parent
|
123
|
+
# @return [::String]
|
124
|
+
# Required. The migration task of the subtasks to list.
|
125
|
+
# Example: `projects/123/locations/us/workflows/1234`
|
126
|
+
# @!attribute [rw] read_mask
|
127
|
+
# @return [::Google::Protobuf::FieldMask]
|
128
|
+
# Optional. The list of fields to be retrieved.
|
129
|
+
# @!attribute [rw] page_size
|
130
|
+
# @return [::Integer]
|
131
|
+
# Optional. The maximum number of migration tasks to return. The service may return
|
132
|
+
# fewer than this number.
|
133
|
+
# @!attribute [rw] page_token
|
134
|
+
# @return [::String]
|
135
|
+
# Optional. A page token, received from previous `ListMigrationSubtasks` call.
|
136
|
+
# Provide this to retrieve the subsequent page.
|
137
|
+
#
|
138
|
+
# When paginating, all other parameters provided to `ListMigrationSubtasks`
|
139
|
+
# must match the call that provided the page token.
|
140
|
+
# @!attribute [rw] filter
|
141
|
+
# @return [::String]
|
142
|
+
# Optional. The filter to apply. This can be used to get the subtasks of a specific
|
143
|
+
# tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
|
144
|
+
# task ID (not the name in the named map).
|
145
|
+
class ListMigrationSubtasksRequest
|
146
|
+
include ::Google::Protobuf::MessageExts
|
147
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
148
|
+
end
|
149
|
+
|
150
|
+
# Response object for a `ListMigrationSubtasks` call.
|
151
|
+
# @!attribute [rw] migration_subtasks
|
152
|
+
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::MigrationSubtask>]
|
153
|
+
# The migration subtasks for the specified task.
|
154
|
+
# @!attribute [rw] next_page_token
|
155
|
+
# @return [::String]
|
156
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
157
|
+
# If this field is omitted, there are no subsequent pages.
|
158
|
+
class ListMigrationSubtasksResponse
|
159
|
+
include ::Google::Protobuf::MessageExts
|
160
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|