diff --git a/google-cloud-bigquery-migration-v2/.owlbot-manifest.json b/google-cloud-bigquery-migration-v2/.owlbot-manifest.json index c3e49cc211aa..eafbfacbb54f 100644 --- a/google-cloud-bigquery-migration-v2/.owlbot-manifest.json +++ b/google-cloud-bigquery-migration-v2/.owlbot-manifest.json @@ -15,6 +15,7 @@ "google-cloud-bigquery-migration-v2.gemspec", "lib/google-cloud-bigquery-migration-v2.rb", "lib/google/cloud/bigquery/migration/v2.rb", + "lib/google/cloud/bigquery/migration/v2/assessment_task_pb.rb", "lib/google/cloud/bigquery/migration/v2/migration_entities_pb.rb", "lib/google/cloud/bigquery/migration/v2/migration_error_details_pb.rb", "lib/google/cloud/bigquery/migration/v2/migration_metrics_pb.rb", @@ -41,6 +42,7 @@ "proto_docs/google/api/launch_stage.rb", "proto_docs/google/api/metric.rb", "proto_docs/google/api/resource.rb", + "proto_docs/google/cloud/bigquery/migration/v2/assessment_task.rb", "proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb", "proto_docs/google/cloud/bigquery/migration/v2/migration_error_details.rb", "proto_docs/google/cloud/bigquery/migration/v2/migration_metrics.rb", diff --git a/google-cloud-bigquery-migration-v2/lib/google/cloud/bigquery/migration/v2/assessment_task_pb.rb b/google-cloud-bigquery-migration-v2/lib/google/cloud/bigquery/migration/v2/assessment_task_pb.rb new file mode 100644 index 000000000000..3cc37a0c122d --- /dev/null +++ b/google-cloud-bigquery-migration-v2/lib/google/cloud/bigquery/migration/v2/assessment_task_pb.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/bigquery/migration/v2/assessment_task.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' + + +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" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigquery + module Migration + module V2 + AssessmentTaskDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.AssessmentTaskDetails").msgclass + AssessmentFeatureHandle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.AssessmentFeatureHandle").msgclass + end + end + end + end +end diff --git a/google-cloud-bigquery-migration-v2/lib/google/cloud/bigquery/migration/v2/migration_entities_pb.rb b/google-cloud-bigquery-migration-v2/lib/google/cloud/bigquery/migration/v2/migration_entities_pb.rb index 3b3b88bfbf9f..64ad22c7c8c2 100644 --- a/google-cloud-bigquery-migration-v2/lib/google/cloud/bigquery/migration/v2/migration_entities_pb.rb +++ b/google-cloud-bigquery-migration-v2/lib/google/cloud/bigquery/migration/v2/migration_entities_pb.rb @@ -6,6 +6,7 @@ require 'google/api/field_behavior_pb' require 'google/api/resource_pb' +require 'google/cloud/bigquery/migration/v2/assessment_task_pb' require 'google/cloud/bigquery/migration/v2/migration_error_details_pb' require 'google/cloud/bigquery/migration/v2/migration_metrics_pb' require 'google/cloud/bigquery/migration/v2/translation_config_pb' @@ -15,7 +16,7 @@ require 'google/rpc/error_details_pb' -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\x1agoogle/cloud/bigquery/migration/v2/translation_usability.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/rpc/error_details.proto\"\xf6\x04\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/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10last_update_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\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\x12google/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\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" +descriptor_data = "\n\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" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -18,6 +18,10 @@ module Bigquery module Migration module V2 TranslationDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.TranslationDetails").msgclass + SuggestionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SuggestionConfig").msgclass + SuggestionStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SuggestionStep").msgclass + SuggestionStep::SuggestionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType").enummodule + SuggestionStep::RewriteTarget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget").enummodule SourceTargetMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SourceTargetMapping").msgclass SourceSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SourceSpec").msgclass TargetSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.TargetSpec").msgclass diff --git a/google-cloud-bigquery-migration-v2/proto_docs/google/api/client.rb b/google-cloud-bigquery-migration-v2/proto_docs/google/api/client.rb index 7796382e3a21..e62ceba4577a 100644 --- a/google-cloud-bigquery-migration-v2/proto_docs/google/api/client.rb +++ b/google-cloud-bigquery-migration-v2/proto_docs/google/api/client.rb @@ -31,6 +31,8 @@ module Api # @!attribute [rw] selective_gapic_generation # @return [::Google::Api::SelectiveGapicGeneration] # Configuration for which RPCs should be generated in the GAPIC client. + # + # Note: This field should not be used in most cases. class CommonLanguageSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -441,6 +443,8 @@ class LongRunning # This message is used to configure the generation of a subset of the RPCs in # a service for client libraries. + # + # Note: This feature should not be used in most cases. # @!attribute [rw] methods # @return [::Array<::String>] # An allowlist of the fully qualified names of RPCs that should be included diff --git a/google-cloud-bigquery-migration-v2/proto_docs/google/cloud/bigquery/migration/v2/assessment_task.rb b/google-cloud-bigquery-migration-v2/proto_docs/google/cloud/bigquery/migration/v2/assessment_task.rb new file mode 100644 index 000000000000..51337845e2a2 --- /dev/null +++ b/google-cloud-bigquery-migration-v2/proto_docs/google/cloud/bigquery/migration/v2/assessment_task.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigquery + module Migration + module V2 + # Assessment task config. + # @!attribute [rw] input_path + # @return [::String] + # Required. The Cloud Storage path for assessment input files. + # @!attribute [rw] output_dataset + # @return [::String] + # Required. The BigQuery dataset for output. + # @!attribute [rw] querylogs_path + # @return [::String] + # Optional. An optional Cloud Storage path to write the query logs (which is + # then used as an input path on the translation task) + # @!attribute [rw] data_source + # @return [::String] + # Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + # from which the input data is extracted. + # @!attribute [rw] feature_handle + # @return [::Google::Cloud::Bigquery::Migration::V2::AssessmentFeatureHandle] + # Optional. A collection of additional feature flags for this assessment. + class AssessmentTaskDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # User-definable feature flags for assessment tasks. + # @!attribute [rw] add_shareable_dataset + # @return [::Boolean] + # Optional. Whether to create a dataset containing non-PII data in addition + # to the output dataset. + class AssessmentFeatureHandle + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/google-cloud-bigquery-migration-v2/proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb b/google-cloud-bigquery-migration-v2/proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb index d42061ab324c..1002a735d612 100644 --- a/google-cloud-bigquery-migration-v2/proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb +++ b/google-cloud-bigquery-migration-v2/proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb @@ -42,12 +42,12 @@ module V2 # @!attribute [r] state # @return [::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow::State] # Output only. That status of the workflow. - # @!attribute [rw] create_time + # @!attribute [r] create_time # @return [::Google::Protobuf::Timestamp] - # Time when the workflow was created. - # @!attribute [rw] last_update_time + # Output only. Time when the workflow was created. + # @!attribute [r] last_update_time # @return [::Google::Protobuf::Timestamp] - # Time when the workflow was last updated. + # Output only. Time when the workflow was last updated. class MigrationWorkflow include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -86,29 +86,43 @@ module State # A single task for a migration which has details about the configuration of # the task. + # @!attribute [rw] assessment_task_details + # @return [::Google::Cloud::Bigquery::Migration::V2::AssessmentTaskDetails] + # Task configuration for Assessment. + # + # 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. # @!attribute [rw] translation_config_details # @return [::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails] # Task configuration for CW Batch/Offline SQL Translation. # - # 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. + # 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. # @!attribute [rw] translation_details # @return [::Google::Cloud::Bigquery::Migration::V2::TranslationDetails] # Task details for unified SQL Translation. # - # 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. + # 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. # @!attribute [r] id # @return [::String] # Output only. Immutable. The unique identifier for the migration task. The # ID is server-generated. # @!attribute [rw] type # @return [::String] - # The type of the task. This must be one of the supported task types: - # Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, - # Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - # Translation_Snowflake2BQ, Translation_Netezza2BQ, - # Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - # Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - # Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. + # The type of the task. This must be one of the supported task types. + # + # Assessment: + # + # - `Assessment_Hive` - Assessment for Hive. + # - `Assessment_Redshift` - Assessment for Redshift. + # - `Assessment_Snowflake` - Assessment for Snowflake. + # - `Assessment_Teradata_v2` - Assessment for Teradata. + # - `Assessment_Oracle` - Assessment for Oracle. + # - `Assessment_Hadoop` - Assessment for Hadoop. + # - `Assessment_Informatica` - Assessment for Informatica. + # + # Translation: + # See [Supported Task + # Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) + # for a list of supported task types. # @!attribute [r] state # @return [::Google::Cloud::Bigquery::Migration::V2::MigrationTask::State] # Output only. The current state of the task. @@ -116,35 +130,37 @@ module State # @return [::Google::Rpc::ErrorInfo] # Output only. An explanation that may be populated when the task is in # FAILED state. - # @!attribute [rw] create_time + # @!attribute [r] create_time # @return [::Google::Protobuf::Timestamp] - # Time when the task was created. - # @!attribute [rw] last_update_time + # Output only. Time when the task was created. + # @!attribute [r] last_update_time # @return [::Google::Protobuf::Timestamp] - # Time when the task was last updated. + # Output only. Time when the task was last updated. # @!attribute [r] resource_error_details # @return [::Array<::Google::Cloud::Bigquery::Migration::V2::ResourceErrorDetail>] # Output only. Provides details to errors and issues encountered while # processing the task. Presence of error details does not mean that the task # failed. - # @!attribute [rw] resource_error_count + # @!attribute [r] resource_error_count # @return [::Integer] - # The number or resources with errors. Note: This is not the total - # number of errors as each resource can have more than one error. - # This is used to indicate truncation by having a `resource_error_count` - # that is higher than the size of `resource_error_details`. - # @!attribute [rw] metrics + # Output only. The number or resources with errors. Note: This is not the + # total number of errors as each resource can have more than one error. This + # is used to indicate truncation by having a `resource_error_count` that is + # higher than the size of `resource_error_details`. + # @!attribute [r] metrics # @return [::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>] - # The metrics for the task. + # Output only. The metrics for the task. # @!attribute [r] task_result # @return [::Google::Cloud::Bigquery::Migration::V2::MigrationTaskResult] # Output only. The result of the task. - # @!attribute [rw] total_processing_error_count + # @!attribute [r] total_processing_error_count # @return [::Integer] - # Count of all the processing errors in this task and its subtasks. - # @!attribute [rw] total_resource_error_count + # Output only. Count of all the processing errors in this task and its + # subtasks. + # @!attribute [r] total_resource_error_count # @return [::Integer] - # Count of all the resource errors in this task and its subtasks. + # Output only. Count of all the resource errors in this task and its + # subtasks. class MigrationTask include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -163,7 +179,7 @@ module State # The task is running, i.e. its subtasks are ready for execution. RUNNING = 3 - # Tha task is paused. Assigned subtasks can continue, but no new subtasks + # The task is paused. Assigned subtasks can continue, but no new subtasks # will be scheduled. PAUSED = 4 @@ -205,21 +221,21 @@ module State # Output only. Provides details to errors and issues encountered while # processing the subtask. Presence of error details does not mean that the # subtask failed. - # @!attribute [rw] resource_error_count + # @!attribute [r] resource_error_count # @return [::Integer] - # The number or resources with errors. Note: This is not the total - # number of errors as each resource can have more than one error. - # This is used to indicate truncation by having a `resource_error_count` - # that is higher than the size of `resource_error_details`. - # @!attribute [rw] create_time + # Output only. The number or resources with errors. Note: This is not the + # total number of errors as each resource can have more than one error. This + # is used to indicate truncation by having a `resource_error_count` that is + # higher than the size of `resource_error_details`. + # @!attribute [r] create_time # @return [::Google::Protobuf::Timestamp] - # Time when the subtask was created. - # @!attribute [rw] last_update_time + # Output only. Time when the subtask was created. + # @!attribute [r] last_update_time # @return [::Google::Protobuf::Timestamp] - # Time when the subtask was last updated. - # @!attribute [rw] metrics + # Output only. Time when the subtask was last updated. + # @!attribute [r] metrics # @return [::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>] - # The metrics for the subtask. + # Output only. The metrics for the subtask. class MigrationSubtask include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -267,6 +283,9 @@ class MigrationTaskResult # @!attribute [rw] report_log_messages # @return [::Array<::Google::Cloud::Bigquery::Migration::V2::GcsReportLogMessage>] # The records from the aggregate CSV report for a migration workflow. + # @!attribute [rw] console_uri + # @return [::String] + # The Cloud Console URI for the migration workflow. class TranslationTaskResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-bigquery-migration-v2/proto_docs/google/cloud/bigquery/migration/v2/translation_details.rb b/google-cloud-bigquery-migration-v2/proto_docs/google/cloud/bigquery/migration/v2/translation_details.rb index d8139e922c8d..4921fcd4f8ed 100644 --- a/google-cloud-bigquery-migration-v2/proto_docs/google/cloud/bigquery/migration/v2/translation_details.rb +++ b/google-cloud-bigquery-migration-v2/proto_docs/google/cloud/bigquery/migration/v2/translation_details.rb @@ -44,11 +44,59 @@ module V2 # lineage_from_sql_scripts, etc. If not specified, a default set of # targets will be generated. Some additional target types may be slower to # generate. See the documentation for the set of available target types. + # @!attribute [rw] suggestion_config + # @return [::Google::Cloud::Bigquery::Migration::V2::SuggestionConfig] + # The configuration for the suggestion if requested as a target type. class TranslationDetails include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end + # The configuration for the suggestion if requested as a target type. + # @!attribute [rw] skip_suggestion_steps + # @return [::Array<::Google::Cloud::Bigquery::Migration::V2::SuggestionStep>] + # The list of suggestion steps to skip. + class SuggestionConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Suggestion step to skip. + # @!attribute [rw] suggestion_type + # @return [::Google::Cloud::Bigquery::Migration::V2::SuggestionStep::SuggestionType] + # The type of suggestion. + # @!attribute [rw] rewrite_target + # @return [::Google::Cloud::Bigquery::Migration::V2::SuggestionStep::RewriteTarget] + # The rewrite target. + class SuggestionStep + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Suggestion type. + module SuggestionType + # Suggestion type unspecified. + SUGGESTION_TYPE_UNSPECIFIED = 0 + + # Query customization. + QUERY_CUSTOMIZATION = 1 + + # Translation explanation. + TRANSLATION_EXPLANATION = 2 + end + + # The target to apply the suggestion to. + module RewriteTarget + # Rewrite target unspecified. + REWRITE_TARGET_UNSPECIFIED = 0 + + # Source SQL. + SOURCE_SQL = 1 + + # Target SQL. + TARGET_SQL = 2 + end + end + # Represents one mapping from a source SQL to a target SQL. # @!attribute [rw] source_spec # @return [::Google::Cloud::Bigquery::Migration::V2::SourceSpec] @@ -66,12 +114,17 @@ class SourceTargetMapping # @return [::String] # The base URI for all files to be read in as sources for translation. # - # 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. + # 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. # @!attribute [rw] literal # @return [::Google::Cloud::Bigquery::Migration::V2::Literal] # Source literal. # - # 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. + # 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. + # @!attribute [rw] gcs_file_path + # @return [::String] + # The path to a single source file in Cloud Storage. + # + # 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. # @!attribute [rw] encoding # @return [::String] # Optional. The optional field to specify the encoding of the sql bytes. diff --git a/google-cloud-bigquery-migration-v2/proto_docs/google/rpc/error_details.rb b/google-cloud-bigquery-migration-v2/proto_docs/google/rpc/error_details.rb index f03ded9662e7..2af9829f0062 100644 --- a/google-cloud-bigquery-migration-v2/proto_docs/google/rpc/error_details.rb +++ b/google-cloud-bigquery-migration-v2/proto_docs/google/rpc/error_details.rb @@ -302,17 +302,17 @@ class BadRequest # In this example, in proto `field` could take one of the following values: # # * `full_name` for a violation in the `full_name` value - # * `email_addresses[1].email` for a violation in the `email` field of the + # * `email_addresses[0].email` for a violation in the `email` field of the # first `email_addresses` message - # * `email_addresses[3].type[2]` for a violation in the second `type` + # * `email_addresses[2].type[1]` for a violation in the second `type` # value in the third `email_addresses` message. # # In JSON, the same values are represented as: # # * `fullName` for a violation in the `fullName` value - # * `emailAddresses[1].email` for a violation in the `email` field of the + # * `emailAddresses[0].email` for a violation in the `email` field of the # first `emailAddresses` message - # * `emailAddresses[3].type[2]` for a violation in the second `type` + # * `emailAddresses[2].type[1]` for a violation in the second `type` # value in the third `emailAddresses` message. # @!attribute [rw] description # @return [::String]