google-cloud-bigquery-migration-v2 0.10.0 → 0.11.1
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/lib/google/cloud/bigquery/migration/v2/migration_entities_pb.rb +7 -1
- data/lib/google/cloud/bigquery/migration/v2/migration_service/client.rb +17 -7
- data/lib/google/cloud/bigquery/migration/v2/migration_service/rest/client.rb +981 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_service/rest/service_stub.rb +486 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_service/rest.rb +54 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_service.rb +6 -0
- data/lib/google/cloud/bigquery/migration/v2/rest.rb +39 -0
- data/lib/google/cloud/bigquery/migration/v2/translation_config_pb.rb +6 -1
- data/lib/google/cloud/bigquery/migration/v2/translation_details_pb.rb +51 -0
- data/lib/google/cloud/bigquery/migration/v2/translation_suggestion_pb.rb +48 -0
- data/lib/google/cloud/bigquery/migration/v2/translation_usability_pb.rb +47 -0
- data/lib/google/cloud/bigquery/migration/v2/version.rb +1 -1
- data/lib/google/cloud/bigquery/migration/v2.rb +5 -0
- data/proto_docs/google/api/client.rb +35 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb +51 -4
- data/proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb +41 -0
- data/proto_docs/google/cloud/bigquery/migration/v2/translation_details.rb +130 -0
- data/proto_docs/google/cloud/bigquery/migration/v2/translation_suggestion.rb +67 -0
- data/proto_docs/google/cloud/bigquery/migration/v2/translation_usability.rb +69 -0
- metadata +12 -2
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/bigquery/migration/v2/translation_details.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n<google/cloud/bigquery/migration/v2/translation_details.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1fgoogle/api/field_behavior.proto\"\x8e\x02\n\x12TranslationDetails\x12V\n\x15source_target_mapping\x18\x01 \x03(\x0b\x32\x37.google.cloud.bigquery.migration.v2.SourceTargetMapping\x12\x17\n\x0ftarget_base_uri\x18\x02 \x01(\t\x12Q\n\x12source_environment\x18\x03 \x01(\x0b\x32\x35.google.cloud.bigquery.migration.v2.SourceEnvironment\x12\x1e\n\x16target_return_literals\x18\x04 \x03(\t\x12\x14\n\x0ctarget_types\x18\x05 \x03(\t\"\x9f\x01\n\x13SourceTargetMapping\x12\x43\n\x0bsource_spec\x18\x01 \x01(\x0b\x32..google.cloud.bigquery.migration.v2.SourceSpec\x12\x43\n\x0btarget_spec\x18\x02 \x01(\x0b\x32..google.cloud.bigquery.migration.v2.TargetSpec\"\x81\x01\n\nSourceSpec\x12\x12\n\x08\x62\x61se_uri\x18\x01 \x01(\tH\x00\x12>\n\x07literal\x18\x02 \x01(\x0b\x32+.google.cloud.bigquery.migration.v2.LiteralH\x00\x12\x15\n\x08\x65ncoding\x18\x03 \x01(\tB\x03\xe0\x41\x01\x42\x08\n\x06source\"#\n\nTargetSpec\x12\x15\n\rrelative_path\x18\x01 \x01(\t\"h\n\x07Literal\x12\x18\n\x0eliteral_string\x18\x02 \x01(\tH\x00\x12\x17\n\rliteral_bytes\x18\x03 \x01(\x0cH\x00\x12\x1a\n\rrelative_path\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\x0e\n\x0cliteral_data\"n\n\x11SourceEnvironment\x12\x18\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\t\x12\x1a\n\x12schema_search_path\x18\x02 \x03(\t\x12#\n\x16metadata_store_dataset\x18\x03 \x01(\tB\x03\xe0\x41\x01\x42\xd3\x01\n&com.google.cloud.bigquery.migration.v2B\x17TranslationDetailsProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xaa\x02\"Google.Cloud.BigQuery.Migration.V2\xca\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
34
|
+
end
|
35
|
+
|
36
|
+
module Google
|
37
|
+
module Cloud
|
38
|
+
module Bigquery
|
39
|
+
module Migration
|
40
|
+
module V2
|
41
|
+
TranslationDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.TranslationDetails").msgclass
|
42
|
+
SourceTargetMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SourceTargetMapping").msgclass
|
43
|
+
SourceSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SourceSpec").msgclass
|
44
|
+
TargetSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.TargetSpec").msgclass
|
45
|
+
Literal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.Literal").msgclass
|
46
|
+
SourceEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SourceEnvironment").msgclass
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/bigquery/migration/v2/translation_suggestion.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/resource_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n?google/cloud/bigquery/migration/v2/translation_suggestion.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x88\x02\n\x17TranslationReportRecord\x12V\n\x08severity\x18\x01 \x01(\x0e\x32\x44.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity\x12\x13\n\x0bscript_line\x18\x02 \x01(\x05\x12\x15\n\rscript_column\x18\x03 \x01(\x05\x12\x10\n\x08\x63\x61tegory\x18\x04 \x01(\t\x12\x0f\n\x07message\x18\x05 \x01(\t\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x42\xd6\x01\n&com.google.cloud.bigquery.migration.v2B\x1aTranslationSuggestionProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xaa\x02\"Google.Cloud.BigQuery.Migration.V2\xca\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
35
|
+
end
|
36
|
+
|
37
|
+
module Google
|
38
|
+
module Cloud
|
39
|
+
module Bigquery
|
40
|
+
module Migration
|
41
|
+
module V2
|
42
|
+
TranslationReportRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.TranslationReportRecord").msgclass
|
43
|
+
TranslationReportRecord::Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity").enummodule
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/bigquery/migration/v2/translation_usability.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/resource_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n>google/cloud/bigquery/migration/v2/translation_usability.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf6\x01\n\x13GcsReportLogMessage\x12\x10\n\x08severity\x18\x01 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x02 \x01(\t\x12\x11\n\tfile_path\x18\x03 \x01(\t\x12\x10\n\x08\x66ilename\x18\x04 \x01(\t\x12\x1a\n\x12source_script_line\x18\x05 \x01(\x05\x12\x1c\n\x14source_script_column\x18\x06 \x01(\x05\x12\x0f\n\x07message\x18\x07 \x01(\t\x12\x16\n\x0escript_context\x18\x08 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\t \x01(\t\x12\x0e\n\x06\x65\x66\x66\x65\x63t\x18\n \x01(\t\x12\x13\n\x0bobject_name\x18\x0b \x01(\tB\xd5\x01\n&com.google.cloud.bigquery.migration.v2B\x19TranslationUsabilityProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xaa\x02\"Google.Cloud.BigQuery.Migration.V2\xca\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
35
|
+
end
|
36
|
+
|
37
|
+
module Google
|
38
|
+
module Cloud
|
39
|
+
module Bigquery
|
40
|
+
module Migration
|
41
|
+
module V2
|
42
|
+
GcsReportLogMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.GcsReportLogMessage").msgclass
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -31,6 +31,11 @@ module Google
|
|
31
31
|
# require "google/cloud/bigquery/migration/v2"
|
32
32
|
# client = ::Google::Cloud::Bigquery::Migration::V2::MigrationService::Client.new
|
33
33
|
#
|
34
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
35
|
+
#
|
36
|
+
# require "google/cloud/bigquery/migration/v2"
|
37
|
+
# client = ::Google::Cloud::Bigquery::Migration::V2::MigrationService::Rest::Client.new
|
38
|
+
#
|
34
39
|
module V2
|
35
40
|
end
|
36
41
|
end
|
@@ -118,6 +118,10 @@ module Google
|
|
118
118
|
# @return [::String]
|
119
119
|
# Optional link to proto reference documentation. Example:
|
120
120
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
121
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
122
|
+
# @return [::String]
|
123
|
+
# Optional link to REST reference documentation. Example:
|
124
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
125
|
class Publishing
|
122
126
|
include ::Google::Protobuf::MessageExts
|
123
127
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -192,9 +196,26 @@ module Google
|
|
192
196
|
# @!attribute [rw] common
|
193
197
|
# @return [::Google::Api::CommonLanguageSettings]
|
194
198
|
# Some settings.
|
199
|
+
# @!attribute [rw] experimental_features
|
200
|
+
# @return [::Google::Api::PythonSettings::ExperimentalFeatures]
|
201
|
+
# Experimental features to be included during client library generation.
|
195
202
|
class PythonSettings
|
196
203
|
include ::Google::Protobuf::MessageExts
|
197
204
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
205
|
+
|
206
|
+
# Experimental features to be included during client library generation.
|
207
|
+
# These fields will be deprecated once the feature graduates and is enabled
|
208
|
+
# by default.
|
209
|
+
# @!attribute [rw] rest_async_io_enabled
|
210
|
+
# @return [::Boolean]
|
211
|
+
# Enables generation of asynchronous REST clients if `rest` transport is
|
212
|
+
# enabled. By default, asynchronous REST clients will not be generated.
|
213
|
+
# This feature will be enabled by default 1 month after launching the
|
214
|
+
# feature in preview packages.
|
215
|
+
class ExperimentalFeatures
|
216
|
+
include ::Google::Protobuf::MessageExts
|
217
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
218
|
+
end
|
198
219
|
end
|
199
220
|
|
200
221
|
# Settings for Node client libraries.
|
@@ -286,6 +307,13 @@ module Google
|
|
286
307
|
# @return [::String]
|
287
308
|
# The fully qualified name of the method, for which the options below apply.
|
288
309
|
# This is used to find the method to apply the options.
|
310
|
+
#
|
311
|
+
# Example:
|
312
|
+
#
|
313
|
+
# publishing:
|
314
|
+
# method_settings:
|
315
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
316
|
+
# # method settings for CreateFolder...
|
289
317
|
# @!attribute [rw] long_running
|
290
318
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
291
319
|
# Describes settings to use for long-running operations when generating
|
@@ -294,17 +322,14 @@ module Google
|
|
294
322
|
#
|
295
323
|
# Example of a YAML configuration::
|
296
324
|
#
|
297
|
-
#
|
298
|
-
#
|
325
|
+
# publishing:
|
326
|
+
# method_settings:
|
299
327
|
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
300
328
|
# long_running:
|
301
|
-
# initial_poll_delay:
|
302
|
-
# seconds: 60 # 1 minute
|
329
|
+
# initial_poll_delay: 60s # 1 minute
|
303
330
|
# poll_delay_multiplier: 1.5
|
304
|
-
# max_poll_delay:
|
305
|
-
#
|
306
|
-
# total_poll_timeout:
|
307
|
-
# seconds: 54000 # 90 minutes
|
331
|
+
# max_poll_delay: 360s # 6 minutes
|
332
|
+
# total_poll_timeout: 54000s # 90 minutes
|
308
333
|
# @!attribute [rw] auto_populated_fields
|
309
334
|
# @return [::Array<::String>]
|
310
335
|
# List of top-level fields of the request message, that should be
|
@@ -313,8 +338,8 @@ module Google
|
|
313
338
|
#
|
314
339
|
# Example of a YAML configuration:
|
315
340
|
#
|
316
|
-
#
|
317
|
-
#
|
341
|
+
# publishing:
|
342
|
+
# method_settings:
|
318
343
|
# - selector: google.example.v1.ExampleService.CreateExample
|
319
344
|
# auto_populated_fields:
|
320
345
|
# - request_id
|
@@ -124,8 +124,13 @@ module Google
|
|
124
124
|
# @return [::String]
|
125
125
|
# The plural name used in the resource name and permission names, such as
|
126
126
|
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
127
|
-
# name of 'cloudresourcemanager.googleapis.com/projects.get'.
|
128
|
-
#
|
127
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
|
128
|
+
# to this is for Nested Collections that have stuttering names, as defined
|
129
|
+
# in [AIP-122](https://google.aip.dev/122#nested-collections), where the
|
130
|
+
# collection ID in the resource name pattern does not necessarily directly
|
131
|
+
# match the `plural` value.
|
132
|
+
#
|
133
|
+
# It is the same concept of the `plural` field in k8s CRD spec
|
129
134
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
130
135
|
#
|
131
136
|
# Note: The plural form is required even for singleton resources. See
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
# migration.
|
27
27
|
# @!attribute [r] name
|
28
28
|
# @return [::String]
|
29
|
-
# Output only. Immutable. The unique identifier for the migration
|
30
|
-
# The ID is server-generated.
|
29
|
+
# Output only. Immutable. Identifier. The unique identifier for the migration
|
30
|
+
# workflow. The ID is server-generated.
|
31
31
|
#
|
32
32
|
# Example: `projects/123/locations/us/workflows/345`
|
33
33
|
# @!attribute [rw] display_name
|
@@ -88,7 +88,10 @@ module Google
|
|
88
88
|
# the task.
|
89
89
|
# @!attribute [rw] translation_config_details
|
90
90
|
# @return [::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails]
|
91
|
-
# Task configuration for Batch SQL Translation.
|
91
|
+
# Task configuration for CW Batch/Offline SQL Translation.
|
92
|
+
# @!attribute [rw] translation_details
|
93
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::TranslationDetails]
|
94
|
+
# Task details for unified SQL Translation.
|
92
95
|
# @!attribute [r] id
|
93
96
|
# @return [::String]
|
94
97
|
# Output only. Immutable. The unique identifier for the migration task. The
|
@@ -101,7 +104,7 @@ module Google
|
|
101
104
|
# Translation_Snowflake2BQ, Translation_Netezza2BQ,
|
102
105
|
# Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
|
103
106
|
# Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ,
|
104
|
-
# Translation_Postgresql2BQ.
|
107
|
+
# Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
|
105
108
|
# @!attribute [r] state
|
106
109
|
# @return [::Google::Cloud::Bigquery::Migration::V2::MigrationTask::State]
|
107
110
|
# Output only. The current state of the task.
|
@@ -115,6 +118,29 @@ module Google
|
|
115
118
|
# @!attribute [rw] last_update_time
|
116
119
|
# @return [::Google::Protobuf::Timestamp]
|
117
120
|
# Time when the task was last updated.
|
121
|
+
# @!attribute [r] resource_error_details
|
122
|
+
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::ResourceErrorDetail>]
|
123
|
+
# Output only. Provides details to errors and issues encountered while
|
124
|
+
# processing the task. Presence of error details does not mean that the task
|
125
|
+
# failed.
|
126
|
+
# @!attribute [rw] resource_error_count
|
127
|
+
# @return [::Integer]
|
128
|
+
# The number or resources with errors. Note: This is not the total
|
129
|
+
# number of errors as each resource can have more than one error.
|
130
|
+
# This is used to indicate truncation by having a `resource_error_count`
|
131
|
+
# that is higher than the size of `resource_error_details`.
|
132
|
+
# @!attribute [rw] metrics
|
133
|
+
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>]
|
134
|
+
# The metrics for the task.
|
135
|
+
# @!attribute [r] task_result
|
136
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::MigrationTaskResult]
|
137
|
+
# Output only. The result of the task.
|
138
|
+
# @!attribute [rw] total_processing_error_count
|
139
|
+
# @return [::Integer]
|
140
|
+
# Count of all the processing errors in this task and its subtasks.
|
141
|
+
# @!attribute [rw] total_resource_error_count
|
142
|
+
# @return [::Integer]
|
143
|
+
# Count of all the resource errors in this task and its subtasks.
|
118
144
|
class MigrationTask
|
119
145
|
include ::Google::Protobuf::MessageExts
|
120
146
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -220,6 +246,27 @@ module Google
|
|
220
246
|
PENDING_DEPENDENCY = 6
|
221
247
|
end
|
222
248
|
end
|
249
|
+
|
250
|
+
# The migration task result.
|
251
|
+
# @!attribute [rw] translation_task_result
|
252
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::TranslationTaskResult]
|
253
|
+
# Details specific to translation task types.
|
254
|
+
class MigrationTaskResult
|
255
|
+
include ::Google::Protobuf::MessageExts
|
256
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
257
|
+
end
|
258
|
+
|
259
|
+
# Translation specific result details from the migration task.
|
260
|
+
# @!attribute [rw] translated_literals
|
261
|
+
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::Literal>]
|
262
|
+
# The list of the translated literals.
|
263
|
+
# @!attribute [rw] report_log_messages
|
264
|
+
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::GcsReportLogMessage>]
|
265
|
+
# The records from the aggregate CSV report for a migration workflow.
|
266
|
+
class TranslationTaskResult
|
267
|
+
include ::Google::Protobuf::MessageExts
|
268
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
269
|
+
end
|
223
270
|
end
|
224
271
|
end
|
225
272
|
end
|
@@ -45,6 +45,12 @@ module Google
|
|
45
45
|
# @!attribute [rw] request_source
|
46
46
|
# @return [::String]
|
47
47
|
# The indicator to show translation request initiator.
|
48
|
+
# @!attribute [rw] target_types
|
49
|
+
# @return [::Array<::String>]
|
50
|
+
# The types of output to generate, e.g. sql, metadata etc. If not specified,
|
51
|
+
# a default set of targets will be generated. Some additional target types
|
52
|
+
# may be slower to generate. See the documentation for the set of available
|
53
|
+
# target types.
|
48
54
|
class TranslationConfigDetails
|
49
55
|
include ::Google::Protobuf::MessageExts
|
50
56
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -93,6 +99,15 @@ module Google
|
|
93
99
|
# @!attribute [rw] mysql_dialect
|
94
100
|
# @return [::Google::Cloud::Bigquery::Migration::V2::MySQLDialect]
|
95
101
|
# The MySQL dialect
|
102
|
+
# @!attribute [rw] db2_dialect
|
103
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::DB2Dialect]
|
104
|
+
# DB2 dialect
|
105
|
+
# @!attribute [rw] sqlite_dialect
|
106
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::SQLiteDialect]
|
107
|
+
# SQLite dialect
|
108
|
+
# @!attribute [rw] greenplum_dialect
|
109
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::GreenplumDialect]
|
110
|
+
# Greenplum dialect
|
96
111
|
class Dialect
|
97
112
|
include ::Google::Protobuf::MessageExts
|
98
113
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -197,6 +212,24 @@ module Google
|
|
197
212
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
198
213
|
end
|
199
214
|
|
215
|
+
# The dialect definition for DB2.
|
216
|
+
class DB2Dialect
|
217
|
+
include ::Google::Protobuf::MessageExts
|
218
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
219
|
+
end
|
220
|
+
|
221
|
+
# The dialect definition for SQLite.
|
222
|
+
class SQLiteDialect
|
223
|
+
include ::Google::Protobuf::MessageExts
|
224
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
225
|
+
end
|
226
|
+
|
227
|
+
# The dialect definition for Greenplum.
|
228
|
+
class GreenplumDialect
|
229
|
+
include ::Google::Protobuf::MessageExts
|
230
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
231
|
+
end
|
232
|
+
|
200
233
|
# Represents a map of name mappings using a list of key:value proto messages of
|
201
234
|
# existing name to desired output name.
|
202
235
|
# @!attribute [rw] name_map
|
@@ -303,6 +336,14 @@ module Google
|
|
303
336
|
# @return [::Array<::String>]
|
304
337
|
# The schema search path. When SQL objects are missing schema name,
|
305
338
|
# translation engine will search through this list to find the value.
|
339
|
+
# @!attribute [rw] metadata_store_dataset
|
340
|
+
# @return [::String]
|
341
|
+
# Optional. Expects a valid BigQuery dataset ID that exists, e.g.,
|
342
|
+
# project-123.metadata_store_123. If specified, translation will search and
|
343
|
+
# read the required schema information from a metadata store in this dataset.
|
344
|
+
# If metadata store doesn't exist, translation will parse the metadata file
|
345
|
+
# and upload the schema info to a temp table in the dataset to speed up
|
346
|
+
# future translation jobs.
|
306
347
|
class SourceEnv
|
307
348
|
include ::Google::Protobuf::MessageExts
|
308
349
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,130 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 translation details to capture the necessary settings for a translation
|
26
|
+
# job.
|
27
|
+
# @!attribute [rw] source_target_mapping
|
28
|
+
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::SourceTargetMapping>]
|
29
|
+
# The mapping from source to target SQL.
|
30
|
+
# @!attribute [rw] target_base_uri
|
31
|
+
# @return [::String]
|
32
|
+
# The base URI for all writes to persistent storage.
|
33
|
+
# @!attribute [rw] source_environment
|
34
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::SourceEnvironment]
|
35
|
+
# The default source environment values for the translation.
|
36
|
+
# @!attribute [rw] target_return_literals
|
37
|
+
# @return [::Array<::String>]
|
38
|
+
# The list of literal targets that will be directly returned to the response.
|
39
|
+
# Each entry consists of the constructed path, EXCLUDING the base path. Not
|
40
|
+
# providing a target_base_uri will prevent writing to persistent storage.
|
41
|
+
# @!attribute [rw] target_types
|
42
|
+
# @return [::Array<::String>]
|
43
|
+
# The types of output to generate, e.g. sql, metadata,
|
44
|
+
# lineage_from_sql_scripts, etc. If not specified, a default set of
|
45
|
+
# targets will be generated. Some additional target types may be slower to
|
46
|
+
# generate. See the documentation for the set of available target types.
|
47
|
+
class TranslationDetails
|
48
|
+
include ::Google::Protobuf::MessageExts
|
49
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
50
|
+
end
|
51
|
+
|
52
|
+
# Represents one mapping from a source SQL to a target SQL.
|
53
|
+
# @!attribute [rw] source_spec
|
54
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::SourceSpec]
|
55
|
+
# The source SQL or the path to it.
|
56
|
+
# @!attribute [rw] target_spec
|
57
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::TargetSpec]
|
58
|
+
# The target SQL or the path for it.
|
59
|
+
class SourceTargetMapping
|
60
|
+
include ::Google::Protobuf::MessageExts
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
62
|
+
end
|
63
|
+
|
64
|
+
# Represents one path to the location that holds source data.
|
65
|
+
# @!attribute [rw] base_uri
|
66
|
+
# @return [::String]
|
67
|
+
# The base URI for all files to be read in as sources for translation.
|
68
|
+
# @!attribute [rw] literal
|
69
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::Literal]
|
70
|
+
# Source literal.
|
71
|
+
# @!attribute [rw] encoding
|
72
|
+
# @return [::String]
|
73
|
+
# Optional. The optional field to specify the encoding of the sql bytes.
|
74
|
+
class SourceSpec
|
75
|
+
include ::Google::Protobuf::MessageExts
|
76
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
|
+
end
|
78
|
+
|
79
|
+
# Represents one path to the location that holds target data.
|
80
|
+
# @!attribute [rw] relative_path
|
81
|
+
# @return [::String]
|
82
|
+
# The relative path for the target data. Given source file
|
83
|
+
# `base_uri/input/sql`, the output would be
|
84
|
+
# `target_base_uri/sql/relative_path/input.sql`.
|
85
|
+
class TargetSpec
|
86
|
+
include ::Google::Protobuf::MessageExts
|
87
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
88
|
+
end
|
89
|
+
|
90
|
+
# Literal data.
|
91
|
+
# @!attribute [rw] literal_string
|
92
|
+
# @return [::String]
|
93
|
+
# Literal string data.
|
94
|
+
# @!attribute [rw] literal_bytes
|
95
|
+
# @return [::String]
|
96
|
+
# Literal byte data.
|
97
|
+
# @!attribute [rw] relative_path
|
98
|
+
# @return [::String]
|
99
|
+
# Required. The identifier of the literal entry.
|
100
|
+
class Literal
|
101
|
+
include ::Google::Protobuf::MessageExts
|
102
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
103
|
+
end
|
104
|
+
|
105
|
+
# Represents the default source environment values for the translation.
|
106
|
+
# @!attribute [rw] default_database
|
107
|
+
# @return [::String]
|
108
|
+
# The default database name to fully qualify SQL objects when their database
|
109
|
+
# name is missing.
|
110
|
+
# @!attribute [rw] schema_search_path
|
111
|
+
# @return [::Array<::String>]
|
112
|
+
# The schema search path. When SQL objects are missing schema name,
|
113
|
+
# translation engine will search through this list to find the value.
|
114
|
+
# @!attribute [rw] metadata_store_dataset
|
115
|
+
# @return [::String]
|
116
|
+
# Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
|
117
|
+
# project-123.metadata_store_123. If specified, translation will search and
|
118
|
+
# read the required schema information from a metadata store in this dataset.
|
119
|
+
# If metadata store doesn't exist, translation will parse the metadata file
|
120
|
+
# and upload the schema info to a temp table in the dataset to speed up
|
121
|
+
# future translation jobs.
|
122
|
+
class SourceEnvironment
|
123
|
+
include ::Google::Protobuf::MessageExts
|
124
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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
|
+
# Details about a record.
|
26
|
+
# @!attribute [rw] severity
|
27
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::TranslationReportRecord::Severity]
|
28
|
+
# Severity of the translation record.
|
29
|
+
# @!attribute [rw] script_line
|
30
|
+
# @return [::Integer]
|
31
|
+
# Specifies the row from the source text where the error occurred (0 based).
|
32
|
+
# Example: 2
|
33
|
+
# @!attribute [rw] script_column
|
34
|
+
# @return [::Integer]
|
35
|
+
# Specifies the column from the source texts where the error occurred. (0
|
36
|
+
# based) example: 6
|
37
|
+
# @!attribute [rw] category
|
38
|
+
# @return [::String]
|
39
|
+
# Category of the error/warning. Example: SyntaxError
|
40
|
+
# @!attribute [rw] message
|
41
|
+
# @return [::String]
|
42
|
+
# Detailed message of the record.
|
43
|
+
class TranslationReportRecord
|
44
|
+
include ::Google::Protobuf::MessageExts
|
45
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
46
|
+
|
47
|
+
# The severity type of the record.
|
48
|
+
module Severity
|
49
|
+
# SeverityType not specified.
|
50
|
+
SEVERITY_UNSPECIFIED = 0
|
51
|
+
|
52
|
+
# INFO type.
|
53
|
+
INFO = 1
|
54
|
+
|
55
|
+
# WARNING type. The translated query may still provide useful information
|
56
|
+
# if all the report records are WARNING.
|
57
|
+
WARNING = 2
|
58
|
+
|
59
|
+
# ERROR type. Translation failed.
|
60
|
+
ERROR = 3
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|