google-cloud-cloud_dms-v1 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb +2317 -204
- data/lib/google/cloud/cloud_dms/v1/data_migration_service/operations.rb +14 -16
- data/lib/google/cloud/cloud_dms/v1/data_migration_service/paths.rb +55 -0
- data/lib/google/cloud/cloud_dms/v1/data_migration_service.rb +1 -1
- data/lib/google/cloud/cloud_dms/v1/version.rb +1 -1
- data/lib/google/cloud/cloud_dms/v1.rb +2 -2
- data/lib/google/cloud/clouddms/v1/clouddms_pb.rb +168 -0
- data/lib/google/cloud/clouddms/v1/clouddms_resources_pb.rb +149 -1
- data/lib/google/cloud/clouddms/v1/clouddms_services_pb.rb +54 -1
- data/lib/google/cloud/clouddms/v1/conversionworkspace_resources_pb.rb +252 -0
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/clouddms/v1/clouddms.rb +545 -35
- data/proto_docs/google/cloud/clouddms/v1/clouddms_resources.rb +505 -38
- data/proto_docs/google/cloud/clouddms/v1/conversionworkspace_resources.rb +663 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +53 -8
@@ -0,0 +1,663 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 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 CloudDMS
|
23
|
+
module V1
|
24
|
+
# The type and version of a source or destination database.
|
25
|
+
# @!attribute [rw] engine
|
26
|
+
# @return [::Google::Cloud::CloudDMS::V1::DatabaseEngine]
|
27
|
+
# Required. Engine type.
|
28
|
+
# @!attribute [rw] version
|
29
|
+
# @return [::String]
|
30
|
+
# Required. Engine named version, for example 12.c.1.
|
31
|
+
class DatabaseEngineInfo
|
32
|
+
include ::Google::Protobuf::MessageExts
|
33
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
34
|
+
end
|
35
|
+
|
36
|
+
# The main conversion workspace resource entity.
|
37
|
+
# @!attribute [rw] name
|
38
|
+
# @return [::String]
|
39
|
+
# Full name of the workspace resource, in the form of:
|
40
|
+
# projects/\\{project}/locations/\\{location}/conversionWorkspaces/\\{conversion_workspace}.
|
41
|
+
# @!attribute [rw] source
|
42
|
+
# @return [::Google::Cloud::CloudDMS::V1::DatabaseEngineInfo]
|
43
|
+
# Required. The source engine details.
|
44
|
+
# @!attribute [rw] destination
|
45
|
+
# @return [::Google::Cloud::CloudDMS::V1::DatabaseEngineInfo]
|
46
|
+
# Required. The destination engine details.
|
47
|
+
# @!attribute [rw] global_settings
|
48
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
49
|
+
# A generic list of settings for the workspace.
|
50
|
+
# The settings are database pair dependant and can indicate default behavior
|
51
|
+
# for the mapping rules engine or turn on or off specific features.
|
52
|
+
# Such examples can be: convert_foreign_key_to_interleave=true,
|
53
|
+
# skip_triggers=false, ignore_non_table_synonyms=true
|
54
|
+
# @!attribute [r] has_uncommitted_changes
|
55
|
+
# @return [::Boolean]
|
56
|
+
# Output only. Whether the workspace has uncommitted changes (changes which
|
57
|
+
# were made after the workspace was committed).
|
58
|
+
# @!attribute [r] latest_commit_id
|
59
|
+
# @return [::String]
|
60
|
+
# Output only. The latest commit ID.
|
61
|
+
# @!attribute [r] latest_commit_time
|
62
|
+
# @return [::Google::Protobuf::Timestamp]
|
63
|
+
# Output only. The timestamp when the workspace was committed.
|
64
|
+
# @!attribute [r] create_time
|
65
|
+
# @return [::Google::Protobuf::Timestamp]
|
66
|
+
# Output only. The timestamp when the workspace resource was created.
|
67
|
+
# @!attribute [r] update_time
|
68
|
+
# @return [::Google::Protobuf::Timestamp]
|
69
|
+
# Output only. The timestamp when the workspace resource was last updated.
|
70
|
+
# @!attribute [rw] display_name
|
71
|
+
# @return [::String]
|
72
|
+
# The display name for the workspace.
|
73
|
+
class ConversionWorkspace
|
74
|
+
include ::Google::Protobuf::MessageExts
|
75
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
76
|
+
|
77
|
+
# @!attribute [rw] key
|
78
|
+
# @return [::String]
|
79
|
+
# @!attribute [rw] value
|
80
|
+
# @return [::String]
|
81
|
+
class GlobalSettingsEntry
|
82
|
+
include ::Google::Protobuf::MessageExts
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# Execution log of a background job.
|
88
|
+
# @!attribute [rw] id
|
89
|
+
# @return [::String]
|
90
|
+
# The background job log entry ID.
|
91
|
+
# @!attribute [rw] job_type
|
92
|
+
# @return [::Google::Cloud::CloudDMS::V1::BackgroundJobType]
|
93
|
+
# The type of job that was executed.
|
94
|
+
# @!attribute [rw] start_time
|
95
|
+
# @return [::Google::Protobuf::Timestamp]
|
96
|
+
# The timestamp when the background job was started.
|
97
|
+
# @!attribute [rw] finish_time
|
98
|
+
# @return [::Google::Protobuf::Timestamp]
|
99
|
+
# The timestamp when the background job was finished.
|
100
|
+
# @!attribute [rw] completion_state
|
101
|
+
# @return [::Google::Cloud::CloudDMS::V1::BackgroundJobLogEntry::JobCompletionState]
|
102
|
+
# Job completion state, i.e. the final state after the job completed.
|
103
|
+
# @!attribute [rw] completion_comment
|
104
|
+
# @return [::String]
|
105
|
+
# Job completion comment, such as how many entities were seeded,
|
106
|
+
# how many warnings were found during conversion, and similar information.
|
107
|
+
# @!attribute [rw] request_autocommit
|
108
|
+
# @return [::Boolean]
|
109
|
+
# Whether the client requested the conversion workspace to be committed after
|
110
|
+
# a successful completion of the job.
|
111
|
+
# @!attribute [rw] seed_job_details
|
112
|
+
# @return [::Google::Cloud::CloudDMS::V1::BackgroundJobLogEntry::SeedJobDetails]
|
113
|
+
# Seed job details.
|
114
|
+
# @!attribute [rw] import_rules_job_details
|
115
|
+
# @return [::Google::Cloud::CloudDMS::V1::BackgroundJobLogEntry::ImportRulesJobDetails]
|
116
|
+
# Import rules job details.
|
117
|
+
# @!attribute [rw] convert_job_details
|
118
|
+
# @return [::Google::Cloud::CloudDMS::V1::BackgroundJobLogEntry::ConvertJobDetails]
|
119
|
+
# Convert job details.
|
120
|
+
# @!attribute [rw] apply_job_details
|
121
|
+
# @return [::Google::Cloud::CloudDMS::V1::BackgroundJobLogEntry::ApplyJobDetails]
|
122
|
+
# Apply job details.
|
123
|
+
class BackgroundJobLogEntry
|
124
|
+
include ::Google::Protobuf::MessageExts
|
125
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
126
|
+
|
127
|
+
# Details regarding a Seed background job.
|
128
|
+
# @!attribute [rw] connection_profile
|
129
|
+
# @return [::String]
|
130
|
+
# The connection profile which was used for the seed job.
|
131
|
+
class SeedJobDetails
|
132
|
+
include ::Google::Protobuf::MessageExts
|
133
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
134
|
+
end
|
135
|
+
|
136
|
+
# Details regarding an Import Rules background job.
|
137
|
+
# @!attribute [rw] files
|
138
|
+
# @return [::Array<::String>]
|
139
|
+
# File names used for the import rules job.
|
140
|
+
# @!attribute [rw] file_format
|
141
|
+
# @return [::Google::Cloud::CloudDMS::V1::ImportRulesFileFormat]
|
142
|
+
# The requested file format.
|
143
|
+
class ImportRulesJobDetails
|
144
|
+
include ::Google::Protobuf::MessageExts
|
145
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
146
|
+
end
|
147
|
+
|
148
|
+
# Details regarding a Convert background job.
|
149
|
+
# @!attribute [rw] filter
|
150
|
+
# @return [::String]
|
151
|
+
# AIP-160 based filter used to specify the entities to convert
|
152
|
+
class ConvertJobDetails
|
153
|
+
include ::Google::Protobuf::MessageExts
|
154
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
155
|
+
end
|
156
|
+
|
157
|
+
# Details regarding an Apply background job.
|
158
|
+
# @!attribute [rw] connection_profile
|
159
|
+
# @return [::String]
|
160
|
+
# The connection profile which was used for the apply job.
|
161
|
+
# @!attribute [rw] filter
|
162
|
+
# @return [::String]
|
163
|
+
# AIP-160 based filter used to specify the entities to apply
|
164
|
+
class ApplyJobDetails
|
165
|
+
include ::Google::Protobuf::MessageExts
|
166
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
167
|
+
end
|
168
|
+
|
169
|
+
# Final state after a job completes.
|
170
|
+
module JobCompletionState
|
171
|
+
# The status is not specified. This state is used when job is not yet
|
172
|
+
# finished.
|
173
|
+
JOB_COMPLETION_STATE_UNSPECIFIED = 0
|
174
|
+
|
175
|
+
# Success.
|
176
|
+
SUCCEEDED = 1
|
177
|
+
|
178
|
+
# Error.
|
179
|
+
FAILED = 2
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
# The base entity type for all the database related entities.
|
184
|
+
# The message contains the entity name, the name of its parent, the entity
|
185
|
+
# type, and the specific details per entity type.
|
186
|
+
# @!attribute [rw] short_name
|
187
|
+
# @return [::String]
|
188
|
+
# The short name (e.g. table name) of the entity.
|
189
|
+
# @!attribute [rw] parent_entity
|
190
|
+
# @return [::String]
|
191
|
+
# The full name of the parent entity (e.g. schema name).
|
192
|
+
# @!attribute [rw] tree
|
193
|
+
# @return [::Google::Cloud::CloudDMS::V1::DatabaseEntity::TreeType]
|
194
|
+
# The type of tree the entity belongs to.
|
195
|
+
# @!attribute [rw] entity_type
|
196
|
+
# @return [::Google::Cloud::CloudDMS::V1::DatabaseEntityType]
|
197
|
+
# The type of the database entity (table, view, index, ...).
|
198
|
+
# @!attribute [rw] mappings
|
199
|
+
# @return [::Array<::Google::Cloud::CloudDMS::V1::EntityMapping>]
|
200
|
+
# Details about entity mappings.
|
201
|
+
# For source tree entities, this holds the draft entities which were
|
202
|
+
# generated by the mapping rules.
|
203
|
+
# For draft tree entities, this holds the source entities which were
|
204
|
+
# converted to form the draft entity.
|
205
|
+
# Destination entities will have no mapping details.
|
206
|
+
# @!attribute [rw] schema
|
207
|
+
# @return [::Google::Cloud::CloudDMS::V1::SchemaEntity]
|
208
|
+
# Schema.
|
209
|
+
# @!attribute [rw] table
|
210
|
+
# @return [::Google::Cloud::CloudDMS::V1::TableEntity]
|
211
|
+
# Table.
|
212
|
+
# @!attribute [rw] view
|
213
|
+
# @return [::Google::Cloud::CloudDMS::V1::ViewEntity]
|
214
|
+
# View.
|
215
|
+
# @!attribute [rw] sequence
|
216
|
+
# @return [::Google::Cloud::CloudDMS::V1::SequenceEntity]
|
217
|
+
# Sequence.
|
218
|
+
# @!attribute [rw] stored_procedure
|
219
|
+
# @return [::Google::Cloud::CloudDMS::V1::StoredProcedureEntity]
|
220
|
+
# Stored procedure.
|
221
|
+
# @!attribute [rw] database_function
|
222
|
+
# @return [::Google::Cloud::CloudDMS::V1::FunctionEntity]
|
223
|
+
# Function.
|
224
|
+
# @!attribute [rw] synonym
|
225
|
+
# @return [::Google::Cloud::CloudDMS::V1::SynonymEntity]
|
226
|
+
# Synonym.
|
227
|
+
# @!attribute [rw] database_package
|
228
|
+
# @return [::Google::Cloud::CloudDMS::V1::PackageEntity]
|
229
|
+
# Package.
|
230
|
+
class DatabaseEntity
|
231
|
+
include ::Google::Protobuf::MessageExts
|
232
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
233
|
+
|
234
|
+
# The type of database entities tree.
|
235
|
+
module TreeType
|
236
|
+
# Tree type unspecified.
|
237
|
+
TREE_TYPE_UNSPECIFIED = 0
|
238
|
+
|
239
|
+
# Tree of entities loaded from a source database.
|
240
|
+
SOURCE = 1
|
241
|
+
|
242
|
+
# Tree of entities converted from the source tree using the mapping rules.
|
243
|
+
DRAFT = 2
|
244
|
+
|
245
|
+
# Tree of entities observed on the destination database.
|
246
|
+
DESTINATION = 3
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
# Schema typically has no parent entity, but can have a parent entity
|
251
|
+
# DatabaseInstance (for database engines which support it). For some database
|
252
|
+
# engines, the terms schema and user can be used interchangeably when they
|
253
|
+
# refer to a namespace or a collection of other database entities. Can store
|
254
|
+
# additional information which is schema specific.
|
255
|
+
# @!attribute [rw] custom_features
|
256
|
+
# @return [::Google::Protobuf::Struct]
|
257
|
+
# Custom engine specific features.
|
258
|
+
class SchemaEntity
|
259
|
+
include ::Google::Protobuf::MessageExts
|
260
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
261
|
+
end
|
262
|
+
|
263
|
+
# Table's parent is a schema.
|
264
|
+
# @!attribute [rw] columns
|
265
|
+
# @return [::Array<::Google::Cloud::CloudDMS::V1::ColumnEntity>]
|
266
|
+
# Table columns.
|
267
|
+
# @!attribute [rw] constraints
|
268
|
+
# @return [::Array<::Google::Cloud::CloudDMS::V1::ConstraintEntity>]
|
269
|
+
# Table constraints.
|
270
|
+
# @!attribute [rw] indices
|
271
|
+
# @return [::Array<::Google::Cloud::CloudDMS::V1::IndexEntity>]
|
272
|
+
# Table indices.
|
273
|
+
# @!attribute [rw] triggers
|
274
|
+
# @return [::Array<::Google::Cloud::CloudDMS::V1::TriggerEntity>]
|
275
|
+
# Table triggers.
|
276
|
+
# @!attribute [rw] custom_features
|
277
|
+
# @return [::Google::Protobuf::Struct]
|
278
|
+
# Custom engine specific features.
|
279
|
+
# @!attribute [rw] comment
|
280
|
+
# @return [::String]
|
281
|
+
# Comment associated with the table.
|
282
|
+
class TableEntity
|
283
|
+
include ::Google::Protobuf::MessageExts
|
284
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
285
|
+
end
|
286
|
+
|
287
|
+
# Column is not used as an independent entity, it is retrieved as part of a
|
288
|
+
# Table entity.
|
289
|
+
# @!attribute [rw] name
|
290
|
+
# @return [::String]
|
291
|
+
# Column name.
|
292
|
+
# @!attribute [rw] data_type
|
293
|
+
# @return [::String]
|
294
|
+
# Column data type.
|
295
|
+
# @!attribute [rw] charset
|
296
|
+
# @return [::String]
|
297
|
+
# Charset override - instead of table level charset.
|
298
|
+
# @!attribute [rw] collation
|
299
|
+
# @return [::String]
|
300
|
+
# Collation override - instead of table level collation.
|
301
|
+
# @!attribute [rw] length
|
302
|
+
# @return [::Integer]
|
303
|
+
# Column length - e.g. varchar (50).
|
304
|
+
# @!attribute [rw] precision
|
305
|
+
# @return [::Integer]
|
306
|
+
# Column precision - when relevant.
|
307
|
+
# @!attribute [rw] scale
|
308
|
+
# @return [::Integer]
|
309
|
+
# Column scale - when relevant.
|
310
|
+
# @!attribute [rw] fractional_seconds_precision
|
311
|
+
# @return [::Integer]
|
312
|
+
# Column fractional second precision - used for timestamp based datatypes.
|
313
|
+
# @!attribute [rw] array
|
314
|
+
# @return [::Boolean]
|
315
|
+
# Is the column of array type.
|
316
|
+
# @!attribute [rw] array_length
|
317
|
+
# @return [::Integer]
|
318
|
+
# If the column is array, of which length.
|
319
|
+
# @!attribute [rw] nullable
|
320
|
+
# @return [::Boolean]
|
321
|
+
# Is the column nullable.
|
322
|
+
# @!attribute [rw] auto_generated
|
323
|
+
# @return [::Boolean]
|
324
|
+
# Is the column auto-generated/identity.
|
325
|
+
# @!attribute [rw] udt
|
326
|
+
# @return [::Boolean]
|
327
|
+
# Is the column a UDT.
|
328
|
+
# @!attribute [rw] custom_features
|
329
|
+
# @return [::Google::Protobuf::Struct]
|
330
|
+
# Custom engine specific features.
|
331
|
+
# @!attribute [rw] set_values
|
332
|
+
# @return [::Array<::String>]
|
333
|
+
# Specifies the list of values allowed in the column.
|
334
|
+
# Only used for set data type.
|
335
|
+
# @!attribute [rw] comment
|
336
|
+
# @return [::String]
|
337
|
+
# Comment associated with the column.
|
338
|
+
# @!attribute [rw] ordinal_position
|
339
|
+
# @return [::Integer]
|
340
|
+
# Column order in the table.
|
341
|
+
# @!attribute [rw] default_value
|
342
|
+
# @return [::String]
|
343
|
+
# Default value of the column.
|
344
|
+
class ColumnEntity
|
345
|
+
include ::Google::Protobuf::MessageExts
|
346
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
347
|
+
end
|
348
|
+
|
349
|
+
# Constraint is not used as an independent entity, it is retrieved
|
350
|
+
# as part of another entity such as Table or View.
|
351
|
+
# @!attribute [rw] name
|
352
|
+
# @return [::String]
|
353
|
+
# The name of the table constraint.
|
354
|
+
# @!attribute [rw] type
|
355
|
+
# @return [::String]
|
356
|
+
# Type of constraint, for example unique, primary key, foreign key (currently
|
357
|
+
# only primary key is supported).
|
358
|
+
# @!attribute [rw] table_columns
|
359
|
+
# @return [::Array<::String>]
|
360
|
+
# Table columns used as part of the Constraint, for example primary key
|
361
|
+
# constraint should list the columns which constitutes the key.
|
362
|
+
# @!attribute [rw] custom_features
|
363
|
+
# @return [::Google::Protobuf::Struct]
|
364
|
+
# Custom engine specific features.
|
365
|
+
# @!attribute [rw] reference_columns
|
366
|
+
# @return [::Array<::String>]
|
367
|
+
# Reference columns which may be associated with the constraint. For example,
|
368
|
+
# if the constraint is a FOREIGN_KEY, this represents the list of full names
|
369
|
+
# of referenced columns by the foreign key.
|
370
|
+
# @!attribute [rw] reference_table
|
371
|
+
# @return [::String]
|
372
|
+
# Reference table which may be associated with the constraint. For example,
|
373
|
+
# if the constraint is a FOREIGN_KEY, this represents the list of full name
|
374
|
+
# of the referenced table by the foreign key.
|
375
|
+
# @!attribute [rw] table_name
|
376
|
+
# @return [::String]
|
377
|
+
# Table which is associated with the constraint. In case the constraint
|
378
|
+
# is defined on a table, this field is left empty as this information is
|
379
|
+
# stored in parent_name. However, if constraint is defined on a view, this
|
380
|
+
# field stores the table name on which the view is defined.
|
381
|
+
class ConstraintEntity
|
382
|
+
include ::Google::Protobuf::MessageExts
|
383
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
384
|
+
end
|
385
|
+
|
386
|
+
# Index is not used as an independent entity, it is retrieved as part of a
|
387
|
+
# Table entity.
|
388
|
+
# @!attribute [rw] name
|
389
|
+
# @return [::String]
|
390
|
+
# The name of the index.
|
391
|
+
# @!attribute [rw] type
|
392
|
+
# @return [::String]
|
393
|
+
# Type of index, for example B-TREE.
|
394
|
+
# @!attribute [rw] table_columns
|
395
|
+
# @return [::Array<::String>]
|
396
|
+
# Table columns used as part of the Index, for example B-TREE index should
|
397
|
+
# list the columns which constitutes the index.
|
398
|
+
# @!attribute [rw] unique
|
399
|
+
# @return [::Boolean]
|
400
|
+
# Boolean value indicating whether the index is unique.
|
401
|
+
# @!attribute [rw] custom_features
|
402
|
+
# @return [::Google::Protobuf::Struct]
|
403
|
+
# Custom engine specific features.
|
404
|
+
class IndexEntity
|
405
|
+
include ::Google::Protobuf::MessageExts
|
406
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
407
|
+
end
|
408
|
+
|
409
|
+
# Trigger is not used as an independent entity, it is retrieved as part of a
|
410
|
+
# Table entity.
|
411
|
+
# @!attribute [rw] name
|
412
|
+
# @return [::String]
|
413
|
+
# The name of the trigger.
|
414
|
+
# @!attribute [rw] triggering_events
|
415
|
+
# @return [::Array<::String>]
|
416
|
+
# The DML, DDL, or database events that fire the trigger, for example
|
417
|
+
# INSERT, UPDATE.
|
418
|
+
# @!attribute [rw] trigger_type
|
419
|
+
# @return [::String]
|
420
|
+
# Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH
|
421
|
+
# ROW.
|
422
|
+
# @!attribute [rw] sql_code
|
423
|
+
# @return [::String]
|
424
|
+
# The SQL code which creates the trigger.
|
425
|
+
# @!attribute [rw] custom_features
|
426
|
+
# @return [::Google::Protobuf::Struct]
|
427
|
+
# Custom engine specific features.
|
428
|
+
class TriggerEntity
|
429
|
+
include ::Google::Protobuf::MessageExts
|
430
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
431
|
+
end
|
432
|
+
|
433
|
+
# View's parent is a schema.
|
434
|
+
# @!attribute [rw] sql_code
|
435
|
+
# @return [::String]
|
436
|
+
# The SQL code which creates the view.
|
437
|
+
# @!attribute [rw] custom_features
|
438
|
+
# @return [::Google::Protobuf::Struct]
|
439
|
+
# Custom engine specific features.
|
440
|
+
# @!attribute [rw] constraints
|
441
|
+
# @return [::Array<::Google::Cloud::CloudDMS::V1::ConstraintEntity>]
|
442
|
+
# View constraints.
|
443
|
+
class ViewEntity
|
444
|
+
include ::Google::Protobuf::MessageExts
|
445
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
446
|
+
end
|
447
|
+
|
448
|
+
# Sequence's parent is a schema.
|
449
|
+
# @!attribute [rw] increment
|
450
|
+
# @return [::Integer]
|
451
|
+
# Increment value for the sequence.
|
452
|
+
# @!attribute [rw] start_value
|
453
|
+
# @return [::String]
|
454
|
+
# Start number for the sequence represented as bytes to accommodate large.
|
455
|
+
# numbers
|
456
|
+
# @!attribute [rw] max_value
|
457
|
+
# @return [::String]
|
458
|
+
# Maximum number for the sequence represented as bytes to accommodate large.
|
459
|
+
# numbers
|
460
|
+
# @!attribute [rw] min_value
|
461
|
+
# @return [::String]
|
462
|
+
# Minimum number for the sequence represented as bytes to accommodate large.
|
463
|
+
# numbers
|
464
|
+
# @!attribute [rw] cycle
|
465
|
+
# @return [::Boolean]
|
466
|
+
# Indicates whether the sequence value should cycle through.
|
467
|
+
# @!attribute [rw] cache
|
468
|
+
# @return [::Integer]
|
469
|
+
# Indicates number of entries to cache / precreate.
|
470
|
+
# @!attribute [rw] custom_features
|
471
|
+
# @return [::Google::Protobuf::Struct]
|
472
|
+
# Custom engine specific features.
|
473
|
+
class SequenceEntity
|
474
|
+
include ::Google::Protobuf::MessageExts
|
475
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
476
|
+
end
|
477
|
+
|
478
|
+
# Stored procedure's parent is a schema.
|
479
|
+
# @!attribute [rw] sql_code
|
480
|
+
# @return [::String]
|
481
|
+
# The SQL code which creates the stored procedure.
|
482
|
+
# @!attribute [rw] custom_features
|
483
|
+
# @return [::Google::Protobuf::Struct]
|
484
|
+
# Custom engine specific features.
|
485
|
+
class StoredProcedureEntity
|
486
|
+
include ::Google::Protobuf::MessageExts
|
487
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
488
|
+
end
|
489
|
+
|
490
|
+
# Function's parent is a schema.
|
491
|
+
# @!attribute [rw] sql_code
|
492
|
+
# @return [::String]
|
493
|
+
# The SQL code which creates the function.
|
494
|
+
# @!attribute [rw] custom_features
|
495
|
+
# @return [::Google::Protobuf::Struct]
|
496
|
+
# Custom engine specific features.
|
497
|
+
class FunctionEntity
|
498
|
+
include ::Google::Protobuf::MessageExts
|
499
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
500
|
+
end
|
501
|
+
|
502
|
+
# Synonym's parent is a schema.
|
503
|
+
# @!attribute [rw] source_entity
|
504
|
+
# @return [::String]
|
505
|
+
# The name of the entity for which the synonym is being created (the source).
|
506
|
+
# @!attribute [rw] source_type
|
507
|
+
# @return [::Google::Cloud::CloudDMS::V1::DatabaseEntityType]
|
508
|
+
# The type of the entity for which the synonym is being created
|
509
|
+
# (usually a table or a sequence).
|
510
|
+
# @!attribute [rw] custom_features
|
511
|
+
# @return [::Google::Protobuf::Struct]
|
512
|
+
# Custom engine specific features.
|
513
|
+
class SynonymEntity
|
514
|
+
include ::Google::Protobuf::MessageExts
|
515
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
516
|
+
end
|
517
|
+
|
518
|
+
# Package's parent is a schema.
|
519
|
+
# @!attribute [rw] package_sql_code
|
520
|
+
# @return [::String]
|
521
|
+
# The SQL code which creates the package.
|
522
|
+
# @!attribute [rw] package_body
|
523
|
+
# @return [::String]
|
524
|
+
# The SQL code which creates the package body. If the package specification
|
525
|
+
# has cursors or subprograms, then the package body is mandatory.
|
526
|
+
# @!attribute [rw] custom_features
|
527
|
+
# @return [::Google::Protobuf::Struct]
|
528
|
+
# Custom engine specific features.
|
529
|
+
class PackageEntity
|
530
|
+
include ::Google::Protobuf::MessageExts
|
531
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
532
|
+
end
|
533
|
+
|
534
|
+
# Details of the mappings of a database entity.
|
535
|
+
# @!attribute [rw] source_entity
|
536
|
+
# @return [::String]
|
537
|
+
# Source entity full name.
|
538
|
+
# The source entity can also be a column, index or constraint using the
|
539
|
+
# same naming notation schema.table.column.
|
540
|
+
# @!attribute [rw] draft_entity
|
541
|
+
# @return [::String]
|
542
|
+
# Target entity full name.
|
543
|
+
# The draft entity can also include a column, index or constraint using the
|
544
|
+
# same naming notation schema.table.column.
|
545
|
+
# @!attribute [rw] source_type
|
546
|
+
# @return [::Google::Cloud::CloudDMS::V1::DatabaseEntityType]
|
547
|
+
# Type of source entity.
|
548
|
+
# @!attribute [rw] draft_type
|
549
|
+
# @return [::Google::Cloud::CloudDMS::V1::DatabaseEntityType]
|
550
|
+
# Type of draft entity.
|
551
|
+
# @!attribute [rw] mapping_log
|
552
|
+
# @return [::Array<::Google::Cloud::CloudDMS::V1::EntityMappingLogEntry>]
|
553
|
+
# Entity mapping log entries.
|
554
|
+
# Multiple rules can be effective and contribute changes to a converted
|
555
|
+
# entity, such as a rule can handle the entity name, another rule can handle
|
556
|
+
# an entity type. In addition, rules which did not change the entity are also
|
557
|
+
# logged along with the reason preventing them to do so.
|
558
|
+
class EntityMapping
|
559
|
+
include ::Google::Protobuf::MessageExts
|
560
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
561
|
+
end
|
562
|
+
|
563
|
+
# A single record of a rule which was used for a mapping.
|
564
|
+
# @!attribute [rw] rule_id
|
565
|
+
# @return [::String]
|
566
|
+
# Which rule caused this log entry.
|
567
|
+
# @!attribute [rw] rule_revision_id
|
568
|
+
# @return [::String]
|
569
|
+
# Rule revision ID.
|
570
|
+
# @!attribute [rw] mapping_comment
|
571
|
+
# @return [::String]
|
572
|
+
# Comment.
|
573
|
+
class EntityMappingLogEntry
|
574
|
+
include ::Google::Protobuf::MessageExts
|
575
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
576
|
+
end
|
577
|
+
|
578
|
+
# The type of database entities supported,
|
579
|
+
module DatabaseEntityType
|
580
|
+
# Unspecified database entity type.
|
581
|
+
DATABASE_ENTITY_TYPE_UNSPECIFIED = 0
|
582
|
+
|
583
|
+
# Schema.
|
584
|
+
DATABASE_ENTITY_TYPE_SCHEMA = 1
|
585
|
+
|
586
|
+
# Table.
|
587
|
+
DATABASE_ENTITY_TYPE_TABLE = 2
|
588
|
+
|
589
|
+
# Column.
|
590
|
+
DATABASE_ENTITY_TYPE_COLUMN = 3
|
591
|
+
|
592
|
+
# Constraint.
|
593
|
+
DATABASE_ENTITY_TYPE_CONSTRAINT = 4
|
594
|
+
|
595
|
+
# Index.
|
596
|
+
DATABASE_ENTITY_TYPE_INDEX = 5
|
597
|
+
|
598
|
+
# Trigger.
|
599
|
+
DATABASE_ENTITY_TYPE_TRIGGER = 6
|
600
|
+
|
601
|
+
# View.
|
602
|
+
DATABASE_ENTITY_TYPE_VIEW = 7
|
603
|
+
|
604
|
+
# Sequence.
|
605
|
+
DATABASE_ENTITY_TYPE_SEQUENCE = 8
|
606
|
+
|
607
|
+
# Stored Procedure.
|
608
|
+
DATABASE_ENTITY_TYPE_STORED_PROCEDURE = 9
|
609
|
+
|
610
|
+
# Function.
|
611
|
+
DATABASE_ENTITY_TYPE_FUNCTION = 10
|
612
|
+
|
613
|
+
# Synonym.
|
614
|
+
DATABASE_ENTITY_TYPE_SYNONYM = 11
|
615
|
+
|
616
|
+
# Package.
|
617
|
+
DATABASE_ENTITY_TYPE_DATABASE_PACKAGE = 12
|
618
|
+
|
619
|
+
# UDT.
|
620
|
+
DATABASE_ENTITY_TYPE_UDT = 13
|
621
|
+
|
622
|
+
# Materialized View.
|
623
|
+
DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW = 14
|
624
|
+
|
625
|
+
# Database.
|
626
|
+
DATABASE_ENTITY_TYPE_DATABASE = 15
|
627
|
+
end
|
628
|
+
|
629
|
+
# The types of jobs that can be executed in the background.
|
630
|
+
module BackgroundJobType
|
631
|
+
# Unspecified background job type.
|
632
|
+
BACKGROUND_JOB_TYPE_UNSPECIFIED = 0
|
633
|
+
|
634
|
+
# Job to seed from the source database.
|
635
|
+
BACKGROUND_JOB_TYPE_SOURCE_SEED = 1
|
636
|
+
|
637
|
+
# Job to convert the source database into a draft of the destination
|
638
|
+
# database.
|
639
|
+
BACKGROUND_JOB_TYPE_CONVERT = 2
|
640
|
+
|
641
|
+
# Job to apply the draft tree onto the destination.
|
642
|
+
BACKGROUND_JOB_TYPE_APPLY_DESTINATION = 3
|
643
|
+
|
644
|
+
# Job to import and convert mapping rules from an external source such as an
|
645
|
+
# ora2pg config file.
|
646
|
+
BACKGROUND_JOB_TYPE_IMPORT_RULES_FILE = 5
|
647
|
+
end
|
648
|
+
|
649
|
+
# The format for the import rules file.
|
650
|
+
module ImportRulesFileFormat
|
651
|
+
# Unspecified rules format.
|
652
|
+
IMPORT_RULES_FILE_FORMAT_UNSPECIFIED = 0
|
653
|
+
|
654
|
+
# HarbourBridge session file.
|
655
|
+
IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE = 1
|
656
|
+
|
657
|
+
# Ora2Pg configuration file.
|
658
|
+
IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE = 2
|
659
|
+
end
|
660
|
+
end
|
661
|
+
end
|
662
|
+
end
|
663
|
+
end
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|