google-cloud-bigquery-migration-v2 0.9.2 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/bigquery/migration/v2/migration_entities_pb.rb +7 -1
- data/lib/google/cloud/bigquery/migration/v2/migration_error_details_pb.rb +1 -1
- data/lib/google/cloud/bigquery/migration/v2/migration_metrics_pb.rb +1 -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/migration_service_pb.rb +1 -1
- 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 +18 -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 +14 -116
@@ -4,8 +4,10 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
7
8
|
|
8
|
-
|
9
|
+
|
10
|
+
descriptor_data = "\n;google/cloud/bigquery/migration/v2/translation_config.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xe0\x03\n\x18TranslationConfigDetails\x12\x19\n\x0fgcs_source_path\x18\x01 \x01(\tH\x00\x12\x19\n\x0fgcs_target_path\x18\x02 \x01(\tH\x01\x12V\n\x11name_mapping_list\x18\x05 \x01(\x0b\x32\x39.google.cloud.bigquery.migration.v2.ObjectNameMappingListH\x02\x12\x43\n\x0esource_dialect\x18\x03 \x01(\x0b\x32+.google.cloud.bigquery.migration.v2.Dialect\x12\x43\n\x0etarget_dialect\x18\x04 \x01(\x0b\x32+.google.cloud.bigquery.migration.v2.Dialect\x12\x41\n\nsource_env\x18\x06 \x01(\x0b\x32-.google.cloud.bigquery.migration.v2.SourceEnv\x12\x16\n\x0erequest_source\x18\x08 \x01(\t\x12\x14\n\x0ctarget_types\x18\t \x03(\tB\x11\n\x0fsource_locationB\x11\n\x0ftarget_locationB\x15\n\x13output_name_mapping\"\xeb\n\n\x07\x44ialect\x12O\n\x10\x62igquery_dialect\x18\x01 \x01(\x0b\x32\x33.google.cloud.bigquery.migration.v2.BigQueryDialectH\x00\x12K\n\x0ehiveql_dialect\x18\x02 \x01(\x0b\x32\x31.google.cloud.bigquery.migration.v2.HiveQLDialectH\x00\x12O\n\x10redshift_dialect\x18\x03 \x01(\x0b\x32\x33.google.cloud.bigquery.migration.v2.RedshiftDialectH\x00\x12O\n\x10teradata_dialect\x18\x04 \x01(\x0b\x32\x33.google.cloud.bigquery.migration.v2.TeradataDialectH\x00\x12K\n\x0eoracle_dialect\x18\x05 \x01(\x0b\x32\x31.google.cloud.bigquery.migration.v2.OracleDialectH\x00\x12O\n\x10sparksql_dialect\x18\x06 \x01(\x0b\x32\x33.google.cloud.bigquery.migration.v2.SparkSQLDialectH\x00\x12Q\n\x11snowflake_dialect\x18\x07 \x01(\x0b\x32\x34.google.cloud.bigquery.migration.v2.SnowflakeDialectH\x00\x12M\n\x0fnetezza_dialect\x18\x08 \x01(\x0b\x32\x32.google.cloud.bigquery.migration.v2.NetezzaDialectH\x00\x12X\n\x15\x61zure_synapse_dialect\x18\t \x01(\x0b\x32\x37.google.cloud.bigquery.migration.v2.AzureSynapseDialectH\x00\x12M\n\x0fvertica_dialect\x18\n \x01(\x0b\x32\x32.google.cloud.bigquery.migration.v2.VerticaDialectH\x00\x12R\n\x12sql_server_dialect\x18\x0b \x01(\x0b\x32\x34.google.cloud.bigquery.migration.v2.SQLServerDialectH\x00\x12S\n\x12postgresql_dialect\x18\x0c \x01(\x0b\x32\x35.google.cloud.bigquery.migration.v2.PostgresqlDialectH\x00\x12K\n\x0epresto_dialect\x18\r \x01(\x0b\x32\x31.google.cloud.bigquery.migration.v2.PrestoDialectH\x00\x12I\n\rmysql_dialect\x18\x0e \x01(\x0b\x32\x30.google.cloud.bigquery.migration.v2.MySQLDialectH\x00\x12\x45\n\x0b\x64\x62\x32_dialect\x18\x0f \x01(\x0b\x32..google.cloud.bigquery.migration.v2.DB2DialectH\x00\x12K\n\x0esqlite_dialect\x18\x10 \x01(\x0b\x32\x31.google.cloud.bigquery.migration.v2.SQLiteDialectH\x00\x12Q\n\x11greenplum_dialect\x18\x11 \x01(\x0b\x32\x34.google.cloud.bigquery.migration.v2.GreenplumDialectH\x00\x42\x0f\n\rdialect_value\"\x11\n\x0f\x42igQueryDialect\"\x0f\n\rHiveQLDialect\"\x11\n\x0fRedshiftDialect\"\x8a\x01\n\x0fTeradataDialect\x12\x46\n\x04mode\x18\x01 \x01(\x0e\x32\x38.google.cloud.bigquery.migration.v2.TeradataDialect.Mode\"/\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x07\n\x03SQL\x10\x01\x12\x08\n\x04\x42TEQ\x10\x02\"\x0f\n\rOracleDialect\"\x11\n\x0fSparkSQLDialect\"\x12\n\x10SnowflakeDialect\"\x10\n\x0eNetezzaDialect\"\x15\n\x13\x41zureSynapseDialect\"\x10\n\x0eVerticaDialect\"\x12\n\x10SQLServerDialect\"\x13\n\x11PostgresqlDialect\"\x0f\n\rPrestoDialect\"\x0e\n\x0cMySQLDialect\"\x0c\n\nDB2Dialect\"\x0f\n\rSQLiteDialect\"\x12\n\x10GreenplumDialect\"`\n\x15ObjectNameMappingList\x12G\n\x08name_map\x18\x01 \x03(\x0b\x32\x35.google.cloud.bigquery.migration.v2.ObjectNameMapping\"\x9d\x01\n\x11ObjectNameMapping\x12\x42\n\x06source\x18\x01 \x01(\x0b\x32\x32.google.cloud.bigquery.migration.v2.NameMappingKey\x12\x44\n\x06target\x18\x02 \x01(\x0b\x32\x34.google.cloud.bigquery.migration.v2.NameMappingValue\"\xab\x02\n\x0eNameMappingKey\x12\x45\n\x04type\x18\x01 \x01(\x0e\x32\x37.google.cloud.bigquery.migration.v2.NameMappingKey.Type\x12\x10\n\x08\x64\x61tabase\x18\x02 \x01(\t\x12\x0e\n\x06schema\x18\x03 \x01(\t\x12\x10\n\x08relation\x18\x04 \x01(\t\x12\x11\n\tattribute\x18\x05 \x01(\t\"\x8a\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x41TABASE\x10\x01\x12\n\n\x06SCHEMA\x10\x02\x12\x0c\n\x08RELATION\x10\x03\x12\r\n\tATTRIBUTE\x10\x04\x12\x12\n\x0eRELATION_ALIAS\x10\x05\x12\x13\n\x0f\x41TTRIBUTE_ALIAS\x10\x06\x12\x0c\n\x08\x46UNCTION\x10\x07\"Y\n\x10NameMappingValue\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x0e\n\x06schema\x18\x02 \x01(\t\x12\x10\n\x08relation\x18\x03 \x01(\t\x12\x11\n\tattribute\x18\x04 \x01(\t\"f\n\tSourceEnv\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\xd2\x01\n&com.google.cloud.bigquery.migration.v2B\x16TranslationConfigProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xaa\x02\"Google.Cloud.BigQuery.Migration.V2\xca\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3"
|
9
11
|
|
10
12
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
13
|
|
@@ -53,6 +55,9 @@ module Google
|
|
53
55
|
PostgresqlDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.PostgresqlDialect").msgclass
|
54
56
|
PrestoDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.PrestoDialect").msgclass
|
55
57
|
MySQLDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.MySQLDialect").msgclass
|
58
|
+
DB2Dialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.DB2Dialect").msgclass
|
59
|
+
SQLiteDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SQLiteDialect").msgclass
|
60
|
+
GreenplumDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.GreenplumDialect").msgclass
|
56
61
|
ObjectNameMappingList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.ObjectNameMappingList").msgclass
|
57
62
|
ObjectNameMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.ObjectNameMapping").msgclass
|
58
63
|
NameMappingKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.NameMappingKey").msgclass
|
@@ -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
|
@@ -286,6 +290,13 @@ module Google
|
|
286
290
|
# @return [::String]
|
287
291
|
# The fully qualified name of the method, for which the options below apply.
|
288
292
|
# This is used to find the method to apply the options.
|
293
|
+
#
|
294
|
+
# Example:
|
295
|
+
#
|
296
|
+
# publishing:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
299
|
+
# # method settings for CreateFolder...
|
289
300
|
# @!attribute [rw] long_running
|
290
301
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
291
302
|
# Describes settings to use for long-running operations when generating
|
@@ -294,17 +305,14 @@ module Google
|
|
294
305
|
#
|
295
306
|
# Example of a YAML configuration::
|
296
307
|
#
|
297
|
-
#
|
298
|
-
#
|
308
|
+
# publishing:
|
309
|
+
# method_settings:
|
299
310
|
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
300
311
|
# long_running:
|
301
|
-
# initial_poll_delay:
|
302
|
-
# seconds: 60 # 1 minute
|
312
|
+
# initial_poll_delay: 60s # 1 minute
|
303
313
|
# poll_delay_multiplier: 1.5
|
304
|
-
# max_poll_delay:
|
305
|
-
#
|
306
|
-
# total_poll_timeout:
|
307
|
-
# seconds: 54000 # 90 minutes
|
314
|
+
# max_poll_delay: 360s # 6 minutes
|
315
|
+
# total_poll_timeout: 54000s # 90 minutes
|
308
316
|
# @!attribute [rw] auto_populated_fields
|
309
317
|
# @return [::Array<::String>]
|
310
318
|
# List of top-level fields of the request message, that should be
|
@@ -313,8 +321,8 @@ module Google
|
|
313
321
|
#
|
314
322
|
# Example of a YAML configuration:
|
315
323
|
#
|
316
|
-
#
|
317
|
-
#
|
324
|
+
# publishing:
|
325
|
+
# method_settings:
|
318
326
|
# - selector: google.example.v1.ExampleService.CreateExample
|
319
327
|
# auto_populated_fields:
|
320
328
|
# - 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
|