google-cloud-bigquery-migration-v2 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/bigquery/migration/v2/assessment_task_pb.rb +26 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_entities_pb.rb +2 -1
- data/lib/google/cloud/bigquery/migration/v2/translation_details_pb.rb +5 -1
- data/lib/google/cloud/bigquery/migration/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/bigquery/migration/v2/assessment_task.rb +61 -0
- data/proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb +59 -40
- data/proto_docs/google/cloud/bigquery/migration/v2/translation_details.rb +55 -2
- data/proto_docs/google/rpc/error_details.rb +4 -4
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 672ef1be14bd2e86c7e1a7900d73f7df5dadfc419714f1e6e6068bfe582e0b89
|
|
4
|
+
data.tar.gz: 6769157dd469f41fab4114459225970d82bcc9a5f5cc3e21cf22339b29ab0134
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5f7c5d6cb3d47b5d80611c6ec88ec96ab58bf5631419d1dda8bc9656ba093a5f744f397c4348d6a4e3f376e769153e6ccd9e952cc40b528efe6b3a25314937a
|
|
7
|
+
data.tar.gz: a04707b496b0d71fffa25d313c9d0c50cbb77fe7deb7e92d3ec787084f38d30809dea0d771c40218af74afa6ade36a97b4fba050048cbfb348d488743e9a7aec
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/bigquery/migration/v2/assessment_task.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n8google/cloud/bigquery/migration/v2/assessment_task.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xf6\x01\n\x15\x41ssessmentTaskDetails\x12\x17\n\ninput_path\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0eoutput_dataset\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0equerylogs_path\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x61ta_source\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12]\n\x0e\x66\x65\x61ture_handle\x18\x06 \x01(\x0b\x32;.google.cloud.bigquery.migration.v2.AssessmentFeatureHandleB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x11\n\x0f_feature_handle\"\\\n\x17\x41ssessmentFeatureHandle\x12\'\n\x15\x61\x64\x64_shareable_dataset\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x18\n\x16_add_shareable_datasetB\xcf\x01\n&com.google.cloud.bigquery.migration.v2B\x13\x41ssessmentTaskProtoP\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
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Google
|
|
16
|
+
module Cloud
|
|
17
|
+
module Bigquery
|
|
18
|
+
module Migration
|
|
19
|
+
module V2
|
|
20
|
+
AssessmentTaskDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.AssessmentTaskDetails").msgclass
|
|
21
|
+
AssessmentFeatureHandle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.AssessmentFeatureHandle").msgclass
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -6,6 +6,7 @@ require 'google/protobuf'
|
|
|
6
6
|
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/api/resource_pb'
|
|
9
|
+
require 'google/cloud/bigquery/migration/v2/assessment_task_pb'
|
|
9
10
|
require 'google/cloud/bigquery/migration/v2/migration_error_details_pb'
|
|
10
11
|
require 'google/cloud/bigquery/migration/v2/migration_metrics_pb'
|
|
11
12
|
require 'google/cloud/bigquery/migration/v2/translation_config_pb'
|
|
@@ -15,7 +16,7 @@ require 'google/protobuf/timestamp_pb'
|
|
|
15
16
|
require 'google/rpc/error_details_pb'
|
|
16
17
|
|
|
17
18
|
|
|
18
|
-
descriptor_data = "\n;google/cloud/bigquery/migration/v2/migration_entities.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a@google/cloud/bigquery/migration/v2/migration_error_details.proto\x1a:google/cloud/bigquery/migration/v2/migration_metrics.proto\x1a;google/cloud/bigquery/migration/v2/translation_config.proto\x1a<google/cloud/bigquery/migration/v2/translation_details.proto\x1a>google/cloud/bigquery/migration/v2/translation_usability.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/rpc/error_details.proto\"\
|
|
19
|
+
descriptor_data = "\n;google/cloud/bigquery/migration/v2/migration_entities.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/bigquery/migration/v2/assessment_task.proto\x1a@google/cloud/bigquery/migration/v2/migration_error_details.proto\x1a:google/cloud/bigquery/migration/v2/migration_metrics.proto\x1a;google/cloud/bigquery/migration/v2/translation_config.proto\x1a<google/cloud/bigquery/migration/v2/translation_details.proto\x1a>google/cloud/bigquery/migration/v2/translation_usability.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/rpc/error_details.proto\"\x80\x05\n\x11MigrationWorkflow\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x03\xe0\x41\x05\xe0\x41\x08\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12O\n\x05tasks\x18\x02 \x03(\x0b\x32@.google.cloud.bigquery.migration.v2.MigrationWorkflow.TasksEntry\x12O\n\x05state\x18\x03 \x01(\x0e\x32;.google.cloud.bigquery.migration.v2.MigrationWorkflow.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x39\n\x10last_update_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a_\n\nTasksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.google.cloud.bigquery.migration.v2.MigrationTask:\x02\x38\x01\"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05\x44RAFT\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\r\n\tCOMPLETED\x10\x04:u\xea\x41r\n2bigquerymigration.googleapis.com/MigrationWorkflow\x12<projects/{project}/locations/{location}/workflows/{workflow}\"\xb0\x08\n\rMigrationTask\x12\\\n\x17\x61ssessment_task_details\x18\x0c \x01(\x0b\x32\x39.google.cloud.bigquery.migration.v2.AssessmentTaskDetailsH\x00\x12\x62\n\x1atranslation_config_details\x18\x0e \x01(\x0b\x32<.google.cloud.bigquery.migration.v2.TranslationConfigDetailsH\x00\x12U\n\x13translation_details\x18\x10 \x01(\x0b\x32\x36.google.cloud.bigquery.migration.v2.TranslationDetailsH\x00\x12\x12\n\x02id\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12\x0c\n\x04type\x18\x02 \x01(\t\x12K\n\x05state\x18\x04 \x01(\x0e\x32\x37.google.cloud.bigquery.migration.v2.MigrationTask.StateB\x03\xe0\x41\x03\x12\x34\n\x10processing_error\x18\x05 \x01(\x0b\x32\x15.google.rpc.ErrorInfoB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x39\n\x10last_update_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\\\n\x16resource_error_details\x18\x11 \x03(\x0b\x32\x37.google.cloud.bigquery.migration.v2.ResourceErrorDetailB\x03\xe0\x41\x03\x12!\n\x14resource_error_count\x18\x12 \x01(\x05\x42\x03\xe0\x41\x03\x12\x44\n\x07metrics\x18\x13 \x03(\x0b\x32..google.cloud.bigquery.migration.v2.TimeSeriesB\x03\xe0\x41\x03\x12Q\n\x0btask_result\x18\x14 \x01(\x0b\x32\x37.google.cloud.bigquery.migration.v2.MigrationTaskResultB\x03\xe0\x41\x03\x12)\n\x1ctotal_processing_error_count\x18\x15 \x01(\x05\x42\x03\xe0\x41\x03\x12\'\n\x1atotal_resource_error_count\x18\x16 \x01(\x05\x42\x03\xe0\x41\x03\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x11\n\rORCHESTRATING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\n\n\x06PAUSED\x10\x04\x12\r\n\tSUCCEEDED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x42\x0e\n\x0ctask_details\"\x88\x06\n\x10MigrationSubtask\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12\x0f\n\x07task_id\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12N\n\x05state\x18\x05 \x01(\x0e\x32:.google.cloud.bigquery.migration.v2.MigrationSubtask.StateB\x03\xe0\x41\x03\x12\x34\n\x10processing_error\x18\x06 \x01(\x0b\x32\x15.google.rpc.ErrorInfoB\x03\xe0\x41\x03\x12\\\n\x16resource_error_details\x18\x0c \x03(\x0b\x32\x37.google.cloud.bigquery.migration.v2.ResourceErrorDetailB\x03\xe0\x41\x03\x12!\n\x14resource_error_count\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x39\n\x10last_update_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x44\n\x07metrics\x18\x0b \x03(\x0b\x32..google.cloud.bigquery.migration.v2.TimeSeriesB\x03\xe0\x41\x03\"v\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\n\n\x06PAUSED\x10\x05\x12\x16\n\x12PENDING_DEPENDENCY\x10\x06:\x88\x01\xea\x41\x84\x01\n1bigquerymigration.googleapis.com/MigrationSubtask\x12Oprojects/{project}/locations/{location}/workflows/{workflow}/subtasks/{subtask}\"~\n\x13MigrationTaskResult\x12\\\n\x17translation_task_result\x18\x02 \x01(\x0b\x32\x39.google.cloud.bigquery.migration.v2.TranslationTaskResultH\x00\x42\t\n\x07\x64\x65tails\"\xcc\x01\n\x15TranslationTaskResult\x12H\n\x13translated_literals\x18\x01 \x03(\x0b\x32+.google.cloud.bigquery.migration.v2.Literal\x12T\n\x13report_log_messages\x18\x02 \x03(\x0b\x32\x37.google.cloud.bigquery.migration.v2.GcsReportLogMessage\x12\x13\n\x0b\x63onsole_uri\x18\x03 \x01(\tB\xd2\x01\n&com.google.cloud.bigquery.migration.v2B\x16MigrationEntitiesProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xaa\x02\"Google.Cloud.BigQuery.Migration.V2\xca\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3"
|
|
19
20
|
|
|
20
21
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
21
22
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -7,7 +7,7 @@ require 'google/protobuf'
|
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
|
8
8
|
|
|
9
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\"\
|
|
10
|
+
descriptor_data = "\n<google/cloud/bigquery/migration/v2/translation_details.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xdf\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\x12O\n\x11suggestion_config\x18\x06 \x01(\x0b\x32\x34.google.cloud.bigquery.migration.v2.SuggestionConfig\"e\n\x10SuggestionConfig\x12Q\n\x15skip_suggestion_steps\x18\x01 \x03(\x0b\x32\x32.google.cloud.bigquery.migration.v2.SuggestionStep\"\x80\x03\n\x0eSuggestionStep\x12Z\n\x0fsuggestion_type\x18\x01 \x01(\x0e\x32\x41.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType\x12X\n\x0erewrite_target\x18\x02 \x01(\x0e\x32@.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget\"g\n\x0eSuggestionType\x12\x1f\n\x1bSUGGESTION_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13QUERY_CUSTOMIZATION\x10\x01\x12\x1b\n\x17TRANSLATION_EXPLANATION\x10\x02\"O\n\rRewriteTarget\x12\x1e\n\x1aREWRITE_TARGET_UNSPECIFIED\x10\x00\x12\x0e\n\nSOURCE_SQL\x10\x01\x12\x0e\n\nTARGET_SQL\x10\x02\"\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\"\x9a\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\x17\n\rgcs_file_path\x18\x04 \x01(\tH\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
11
|
|
|
12
12
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
13
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -18,6 +18,10 @@ module Google
|
|
|
18
18
|
module Migration
|
|
19
19
|
module V2
|
|
20
20
|
TranslationDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.TranslationDetails").msgclass
|
|
21
|
+
SuggestionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SuggestionConfig").msgclass
|
|
22
|
+
SuggestionStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SuggestionStep").msgclass
|
|
23
|
+
SuggestionStep::SuggestionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType").enummodule
|
|
24
|
+
SuggestionStep::RewriteTarget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget").enummodule
|
|
21
25
|
SourceTargetMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SourceTargetMapping").msgclass
|
|
22
26
|
SourceSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SourceSpec").msgclass
|
|
23
27
|
TargetSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.TargetSpec").msgclass
|
|
@@ -31,6 +31,8 @@ module Google
|
|
|
31
31
|
# @!attribute [rw] selective_gapic_generation
|
|
32
32
|
# @return [::Google::Api::SelectiveGapicGeneration]
|
|
33
33
|
# Configuration for which RPCs should be generated in the GAPIC client.
|
|
34
|
+
#
|
|
35
|
+
# Note: This field should not be used in most cases.
|
|
34
36
|
class CommonLanguageSettings
|
|
35
37
|
include ::Google::Protobuf::MessageExts
|
|
36
38
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -441,6 +443,8 @@ module Google
|
|
|
441
443
|
|
|
442
444
|
# This message is used to configure the generation of a subset of the RPCs in
|
|
443
445
|
# a service for client libraries.
|
|
446
|
+
#
|
|
447
|
+
# Note: This feature should not be used in most cases.
|
|
444
448
|
# @!attribute [rw] methods
|
|
445
449
|
# @return [::Array<::String>]
|
|
446
450
|
# An allowlist of the fully qualified names of RPCs that should be included
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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
|
+
# Assessment task config.
|
|
26
|
+
# @!attribute [rw] input_path
|
|
27
|
+
# @return [::String]
|
|
28
|
+
# Required. The Cloud Storage path for assessment input files.
|
|
29
|
+
# @!attribute [rw] output_dataset
|
|
30
|
+
# @return [::String]
|
|
31
|
+
# Required. The BigQuery dataset for output.
|
|
32
|
+
# @!attribute [rw] querylogs_path
|
|
33
|
+
# @return [::String]
|
|
34
|
+
# Optional. An optional Cloud Storage path to write the query logs (which is
|
|
35
|
+
# then used as an input path on the translation task)
|
|
36
|
+
# @!attribute [rw] data_source
|
|
37
|
+
# @return [::String]
|
|
38
|
+
# Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT)
|
|
39
|
+
# from which the input data is extracted.
|
|
40
|
+
# @!attribute [rw] feature_handle
|
|
41
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::AssessmentFeatureHandle]
|
|
42
|
+
# Optional. A collection of additional feature flags for this assessment.
|
|
43
|
+
class AssessmentTaskDetails
|
|
44
|
+
include ::Google::Protobuf::MessageExts
|
|
45
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# User-definable feature flags for assessment tasks.
|
|
49
|
+
# @!attribute [rw] add_shareable_dataset
|
|
50
|
+
# @return [::Boolean]
|
|
51
|
+
# Optional. Whether to create a dataset containing non-PII data in addition
|
|
52
|
+
# to the output dataset.
|
|
53
|
+
class AssessmentFeatureHandle
|
|
54
|
+
include ::Google::Protobuf::MessageExts
|
|
55
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -42,12 +42,12 @@ module Google
|
|
|
42
42
|
# @!attribute [r] state
|
|
43
43
|
# @return [::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow::State]
|
|
44
44
|
# Output only. That status of the workflow.
|
|
45
|
-
# @!attribute [
|
|
45
|
+
# @!attribute [r] create_time
|
|
46
46
|
# @return [::Google::Protobuf::Timestamp]
|
|
47
|
-
# Time when the workflow was created.
|
|
48
|
-
# @!attribute [
|
|
47
|
+
# Output only. Time when the workflow was created.
|
|
48
|
+
# @!attribute [r] last_update_time
|
|
49
49
|
# @return [::Google::Protobuf::Timestamp]
|
|
50
|
-
# Time when the workflow was last updated.
|
|
50
|
+
# Output only. Time when the workflow was last updated.
|
|
51
51
|
class MigrationWorkflow
|
|
52
52
|
include ::Google::Protobuf::MessageExts
|
|
53
53
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -86,29 +86,43 @@ module Google
|
|
|
86
86
|
|
|
87
87
|
# A single task for a migration which has details about the configuration of
|
|
88
88
|
# the task.
|
|
89
|
+
# @!attribute [rw] assessment_task_details
|
|
90
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::AssessmentTaskDetails]
|
|
91
|
+
# Task configuration for Assessment.
|
|
92
|
+
#
|
|
93
|
+
# Note: The following fields are mutually exclusive: `assessment_task_details`, `translation_config_details`, `translation_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
89
94
|
# @!attribute [rw] translation_config_details
|
|
90
95
|
# @return [::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails]
|
|
91
96
|
# Task configuration for CW Batch/Offline SQL Translation.
|
|
92
97
|
#
|
|
93
|
-
# Note: The following fields are mutually exclusive: `translation_config_details`, `translation_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
98
|
+
# Note: The following fields are mutually exclusive: `translation_config_details`, `assessment_task_details`, `translation_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
94
99
|
# @!attribute [rw] translation_details
|
|
95
100
|
# @return [::Google::Cloud::Bigquery::Migration::V2::TranslationDetails]
|
|
96
101
|
# Task details for unified SQL Translation.
|
|
97
102
|
#
|
|
98
|
-
# Note: The following fields are mutually exclusive: `translation_details`, `translation_config_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
103
|
+
# Note: The following fields are mutually exclusive: `translation_details`, `assessment_task_details`, `translation_config_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
99
104
|
# @!attribute [r] id
|
|
100
105
|
# @return [::String]
|
|
101
106
|
# Output only. Immutable. The unique identifier for the migration task. The
|
|
102
107
|
# ID is server-generated.
|
|
103
108
|
# @!attribute [rw] type
|
|
104
109
|
# @return [::String]
|
|
105
|
-
# The type of the task. This must be one of the supported task types
|
|
106
|
-
#
|
|
107
|
-
#
|
|
108
|
-
#
|
|
109
|
-
#
|
|
110
|
-
#
|
|
111
|
-
#
|
|
110
|
+
# The type of the task. This must be one of the supported task types.
|
|
111
|
+
#
|
|
112
|
+
# Assessment:
|
|
113
|
+
#
|
|
114
|
+
# - `Assessment_Hive` - Assessment for Hive.
|
|
115
|
+
# - `Assessment_Redshift` - Assessment for Redshift.
|
|
116
|
+
# - `Assessment_Snowflake` - Assessment for Snowflake.
|
|
117
|
+
# - `Assessment_Teradata_v2` - Assessment for Teradata.
|
|
118
|
+
# - `Assessment_Oracle` - Assessment for Oracle.
|
|
119
|
+
# - `Assessment_Hadoop` - Assessment for Hadoop.
|
|
120
|
+
# - `Assessment_Informatica` - Assessment for Informatica.
|
|
121
|
+
#
|
|
122
|
+
# Translation:
|
|
123
|
+
# See [Supported Task
|
|
124
|
+
# Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types)
|
|
125
|
+
# for a list of supported task types.
|
|
112
126
|
# @!attribute [r] state
|
|
113
127
|
# @return [::Google::Cloud::Bigquery::Migration::V2::MigrationTask::State]
|
|
114
128
|
# Output only. The current state of the task.
|
|
@@ -116,35 +130,37 @@ module Google
|
|
|
116
130
|
# @return [::Google::Rpc::ErrorInfo]
|
|
117
131
|
# Output only. An explanation that may be populated when the task is in
|
|
118
132
|
# FAILED state.
|
|
119
|
-
# @!attribute [
|
|
133
|
+
# @!attribute [r] create_time
|
|
120
134
|
# @return [::Google::Protobuf::Timestamp]
|
|
121
|
-
# Time when the task was created.
|
|
122
|
-
# @!attribute [
|
|
135
|
+
# Output only. Time when the task was created.
|
|
136
|
+
# @!attribute [r] last_update_time
|
|
123
137
|
# @return [::Google::Protobuf::Timestamp]
|
|
124
|
-
# Time when the task was last updated.
|
|
138
|
+
# Output only. Time when the task was last updated.
|
|
125
139
|
# @!attribute [r] resource_error_details
|
|
126
140
|
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::ResourceErrorDetail>]
|
|
127
141
|
# Output only. Provides details to errors and issues encountered while
|
|
128
142
|
# processing the task. Presence of error details does not mean that the task
|
|
129
143
|
# failed.
|
|
130
|
-
# @!attribute [
|
|
144
|
+
# @!attribute [r] resource_error_count
|
|
131
145
|
# @return [::Integer]
|
|
132
|
-
# The number or resources with errors. Note: This is not the
|
|
133
|
-
# number of errors as each resource can have more than one error.
|
|
134
|
-
#
|
|
135
|
-
#
|
|
136
|
-
# @!attribute [
|
|
146
|
+
# Output only. The number or resources with errors. Note: This is not the
|
|
147
|
+
# total number of errors as each resource can have more than one error. This
|
|
148
|
+
# is used to indicate truncation by having a `resource_error_count` that is
|
|
149
|
+
# higher than the size of `resource_error_details`.
|
|
150
|
+
# @!attribute [r] metrics
|
|
137
151
|
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>]
|
|
138
|
-
# The metrics for the task.
|
|
152
|
+
# Output only. The metrics for the task.
|
|
139
153
|
# @!attribute [r] task_result
|
|
140
154
|
# @return [::Google::Cloud::Bigquery::Migration::V2::MigrationTaskResult]
|
|
141
155
|
# Output only. The result of the task.
|
|
142
|
-
# @!attribute [
|
|
156
|
+
# @!attribute [r] total_processing_error_count
|
|
143
157
|
# @return [::Integer]
|
|
144
|
-
# Count of all the processing errors in this task and its
|
|
145
|
-
#
|
|
158
|
+
# Output only. Count of all the processing errors in this task and its
|
|
159
|
+
# subtasks.
|
|
160
|
+
# @!attribute [r] total_resource_error_count
|
|
146
161
|
# @return [::Integer]
|
|
147
|
-
# Count of all the resource errors in this task and its
|
|
162
|
+
# Output only. Count of all the resource errors in this task and its
|
|
163
|
+
# subtasks.
|
|
148
164
|
class MigrationTask
|
|
149
165
|
include ::Google::Protobuf::MessageExts
|
|
150
166
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -163,7 +179,7 @@ module Google
|
|
|
163
179
|
# The task is running, i.e. its subtasks are ready for execution.
|
|
164
180
|
RUNNING = 3
|
|
165
181
|
|
|
166
|
-
#
|
|
182
|
+
# The task is paused. Assigned subtasks can continue, but no new subtasks
|
|
167
183
|
# will be scheduled.
|
|
168
184
|
PAUSED = 4
|
|
169
185
|
|
|
@@ -205,21 +221,21 @@ module Google
|
|
|
205
221
|
# Output only. Provides details to errors and issues encountered while
|
|
206
222
|
# processing the subtask. Presence of error details does not mean that the
|
|
207
223
|
# subtask failed.
|
|
208
|
-
# @!attribute [
|
|
224
|
+
# @!attribute [r] resource_error_count
|
|
209
225
|
# @return [::Integer]
|
|
210
|
-
# The number or resources with errors. Note: This is not the
|
|
211
|
-
# number of errors as each resource can have more than one error.
|
|
212
|
-
#
|
|
213
|
-
#
|
|
214
|
-
# @!attribute [
|
|
226
|
+
# Output only. The number or resources with errors. Note: This is not the
|
|
227
|
+
# total number of errors as each resource can have more than one error. This
|
|
228
|
+
# is used to indicate truncation by having a `resource_error_count` that is
|
|
229
|
+
# higher than the size of `resource_error_details`.
|
|
230
|
+
# @!attribute [r] create_time
|
|
215
231
|
# @return [::Google::Protobuf::Timestamp]
|
|
216
|
-
# Time when the subtask was created.
|
|
217
|
-
# @!attribute [
|
|
232
|
+
# Output only. Time when the subtask was created.
|
|
233
|
+
# @!attribute [r] last_update_time
|
|
218
234
|
# @return [::Google::Protobuf::Timestamp]
|
|
219
|
-
# Time when the subtask was last updated.
|
|
220
|
-
# @!attribute [
|
|
235
|
+
# Output only. Time when the subtask was last updated.
|
|
236
|
+
# @!attribute [r] metrics
|
|
221
237
|
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>]
|
|
222
|
-
# The metrics for the subtask.
|
|
238
|
+
# Output only. The metrics for the subtask.
|
|
223
239
|
class MigrationSubtask
|
|
224
240
|
include ::Google::Protobuf::MessageExts
|
|
225
241
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -267,6 +283,9 @@ module Google
|
|
|
267
283
|
# @!attribute [rw] report_log_messages
|
|
268
284
|
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::GcsReportLogMessage>]
|
|
269
285
|
# The records from the aggregate CSV report for a migration workflow.
|
|
286
|
+
# @!attribute [rw] console_uri
|
|
287
|
+
# @return [::String]
|
|
288
|
+
# The Cloud Console URI for the migration workflow.
|
|
270
289
|
class TranslationTaskResult
|
|
271
290
|
include ::Google::Protobuf::MessageExts
|
|
272
291
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -44,11 +44,59 @@ module Google
|
|
|
44
44
|
# lineage_from_sql_scripts, etc. If not specified, a default set of
|
|
45
45
|
# targets will be generated. Some additional target types may be slower to
|
|
46
46
|
# generate. See the documentation for the set of available target types.
|
|
47
|
+
# @!attribute [rw] suggestion_config
|
|
48
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::SuggestionConfig]
|
|
49
|
+
# The configuration for the suggestion if requested as a target type.
|
|
47
50
|
class TranslationDetails
|
|
48
51
|
include ::Google::Protobuf::MessageExts
|
|
49
52
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
50
53
|
end
|
|
51
54
|
|
|
55
|
+
# The configuration for the suggestion if requested as a target type.
|
|
56
|
+
# @!attribute [rw] skip_suggestion_steps
|
|
57
|
+
# @return [::Array<::Google::Cloud::Bigquery::Migration::V2::SuggestionStep>]
|
|
58
|
+
# The list of suggestion steps to skip.
|
|
59
|
+
class SuggestionConfig
|
|
60
|
+
include ::Google::Protobuf::MessageExts
|
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Suggestion step to skip.
|
|
65
|
+
# @!attribute [rw] suggestion_type
|
|
66
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::SuggestionStep::SuggestionType]
|
|
67
|
+
# The type of suggestion.
|
|
68
|
+
# @!attribute [rw] rewrite_target
|
|
69
|
+
# @return [::Google::Cloud::Bigquery::Migration::V2::SuggestionStep::RewriteTarget]
|
|
70
|
+
# The rewrite target.
|
|
71
|
+
class SuggestionStep
|
|
72
|
+
include ::Google::Protobuf::MessageExts
|
|
73
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
74
|
+
|
|
75
|
+
# Suggestion type.
|
|
76
|
+
module SuggestionType
|
|
77
|
+
# Suggestion type unspecified.
|
|
78
|
+
SUGGESTION_TYPE_UNSPECIFIED = 0
|
|
79
|
+
|
|
80
|
+
# Query customization.
|
|
81
|
+
QUERY_CUSTOMIZATION = 1
|
|
82
|
+
|
|
83
|
+
# Translation explanation.
|
|
84
|
+
TRANSLATION_EXPLANATION = 2
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# The target to apply the suggestion to.
|
|
88
|
+
module RewriteTarget
|
|
89
|
+
# Rewrite target unspecified.
|
|
90
|
+
REWRITE_TARGET_UNSPECIFIED = 0
|
|
91
|
+
|
|
92
|
+
# Source SQL.
|
|
93
|
+
SOURCE_SQL = 1
|
|
94
|
+
|
|
95
|
+
# Target SQL.
|
|
96
|
+
TARGET_SQL = 2
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
52
100
|
# Represents one mapping from a source SQL to a target SQL.
|
|
53
101
|
# @!attribute [rw] source_spec
|
|
54
102
|
# @return [::Google::Cloud::Bigquery::Migration::V2::SourceSpec]
|
|
@@ -66,12 +114,17 @@ module Google
|
|
|
66
114
|
# @return [::String]
|
|
67
115
|
# The base URI for all files to be read in as sources for translation.
|
|
68
116
|
#
|
|
69
|
-
# Note: The following fields are mutually exclusive: `base_uri`, `literal`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
117
|
+
# Note: The following fields are mutually exclusive: `base_uri`, `literal`, `gcs_file_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
70
118
|
# @!attribute [rw] literal
|
|
71
119
|
# @return [::Google::Cloud::Bigquery::Migration::V2::Literal]
|
|
72
120
|
# Source literal.
|
|
73
121
|
#
|
|
74
|
-
# Note: The following fields are mutually exclusive: `literal`, `base_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
122
|
+
# Note: The following fields are mutually exclusive: `literal`, `base_uri`, `gcs_file_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
123
|
+
# @!attribute [rw] gcs_file_path
|
|
124
|
+
# @return [::String]
|
|
125
|
+
# The path to a single source file in Cloud Storage.
|
|
126
|
+
#
|
|
127
|
+
# Note: The following fields are mutually exclusive: `gcs_file_path`, `base_uri`, `literal`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
75
128
|
# @!attribute [rw] encoding
|
|
76
129
|
# @return [::String]
|
|
77
130
|
# Optional. The optional field to specify the encoding of the sql bytes.
|
|
@@ -302,17 +302,17 @@ module Google
|
|
|
302
302
|
# In this example, in proto `field` could take one of the following values:
|
|
303
303
|
#
|
|
304
304
|
# * `full_name` for a violation in the `full_name` value
|
|
305
|
-
# * `email_addresses[
|
|
305
|
+
# * `email_addresses[0].email` for a violation in the `email` field of the
|
|
306
306
|
# first `email_addresses` message
|
|
307
|
-
# * `email_addresses[
|
|
307
|
+
# * `email_addresses[2].type[1]` for a violation in the second `type`
|
|
308
308
|
# value in the third `email_addresses` message.
|
|
309
309
|
#
|
|
310
310
|
# In JSON, the same values are represented as:
|
|
311
311
|
#
|
|
312
312
|
# * `fullName` for a violation in the `fullName` value
|
|
313
|
-
# * `emailAddresses[
|
|
313
|
+
# * `emailAddresses[0].email` for a violation in the `email` field of the
|
|
314
314
|
# first `emailAddresses` message
|
|
315
|
-
# * `emailAddresses[
|
|
315
|
+
# * `emailAddresses[2].type[1]` for a violation in the second `type`
|
|
316
316
|
# value in the third `emailAddresses` message.
|
|
317
317
|
# @!attribute [rw] description
|
|
318
318
|
# @return [::String]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-bigquery-migration-v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.21.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -53,6 +53,7 @@ files:
|
|
|
53
53
|
- README.md
|
|
54
54
|
- lib/google-cloud-bigquery-migration-v2.rb
|
|
55
55
|
- lib/google/cloud/bigquery/migration/v2.rb
|
|
56
|
+
- lib/google/cloud/bigquery/migration/v2/assessment_task_pb.rb
|
|
56
57
|
- lib/google/cloud/bigquery/migration/v2/migration_entities_pb.rb
|
|
57
58
|
- lib/google/cloud/bigquery/migration/v2/migration_error_details_pb.rb
|
|
58
59
|
- lib/google/cloud/bigquery/migration/v2/migration_metrics_pb.rb
|
|
@@ -79,6 +80,7 @@ files:
|
|
|
79
80
|
- proto_docs/google/api/launch_stage.rb
|
|
80
81
|
- proto_docs/google/api/metric.rb
|
|
81
82
|
- proto_docs/google/api/resource.rb
|
|
83
|
+
- proto_docs/google/cloud/bigquery/migration/v2/assessment_task.rb
|
|
82
84
|
- proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb
|
|
83
85
|
- proto_docs/google/cloud/bigquery/migration/v2/migration_error_details.rb
|
|
84
86
|
- proto_docs/google/cloud/bigquery/migration/v2/migration_metrics.rb
|