@google-cloud/bigquery-migration
Version:
bigquery-migration client for Node.js
1,143 lines • 169 kB
JSON
{
"nested": {
"google": {
"nested": {
"cloud": {
"nested": {
"bigquery": {
"nested": {
"migration": {
"nested": {
"v2": {
"options": {
"csharp_namespace": "Google.Cloud.BigQuery.Migration.V2",
"go_package": "cloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb",
"java_multiple_files": true,
"java_outer_classname": "TranslationSuggestionProto",
"java_package": "com.google.cloud.bigquery.migration.v2",
"php_namespace": "Google\\Cloud\\BigQuery\\Migration\\V2"
},
"nested": {
"MigrationWorkflow": {
"options": {
"(google.api.resource).type": "bigquerymigration.googleapis.com/MigrationWorkflow",
"(google.api.resource).pattern": "projects/{project}/locations/{location}/workflows/{workflow}"
},
"fields": {
"name": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "IDENTIFIER"
}
},
"displayName": {
"type": "string",
"id": 6
},
"tasks": {
"keyType": "string",
"type": "MigrationTask",
"id": 2
},
"state": {
"type": "State",
"id": 3,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"createTime": {
"type": "google.protobuf.Timestamp",
"id": 4
},
"lastUpdateTime": {
"type": "google.protobuf.Timestamp",
"id": 5
}
},
"nested": {
"State": {
"values": {
"STATE_UNSPECIFIED": 0,
"DRAFT": 1,
"RUNNING": 2,
"PAUSED": 3,
"COMPLETED": 4
}
}
}
},
"MigrationTask": {
"oneofs": {
"taskDetails": {
"oneof": [
"translationConfigDetails",
"translationDetails"
]
}
},
"fields": {
"translationConfigDetails": {
"type": "TranslationConfigDetails",
"id": 14
},
"translationDetails": {
"type": "TranslationDetails",
"id": 16
},
"id": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "IMMUTABLE"
}
},
"type": {
"type": "string",
"id": 2
},
"state": {
"type": "State",
"id": 4,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"processingError": {
"type": "google.rpc.ErrorInfo",
"id": 5,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"createTime": {
"type": "google.protobuf.Timestamp",
"id": 6
},
"lastUpdateTime": {
"type": "google.protobuf.Timestamp",
"id": 7
},
"resourceErrorDetails": {
"rule": "repeated",
"type": "ResourceErrorDetail",
"id": 17,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"resourceErrorCount": {
"type": "int32",
"id": 18
},
"metrics": {
"rule": "repeated",
"type": "TimeSeries",
"id": 19
},
"taskResult": {
"type": "MigrationTaskResult",
"id": 20,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"totalProcessingErrorCount": {
"type": "int32",
"id": 21
},
"totalResourceErrorCount": {
"type": "int32",
"id": 22
}
},
"nested": {
"State": {
"values": {
"STATE_UNSPECIFIED": 0,
"PENDING": 1,
"ORCHESTRATING": 2,
"RUNNING": 3,
"PAUSED": 4,
"SUCCEEDED": 5,
"FAILED": 6
}
}
}
},
"MigrationSubtask": {
"options": {
"(google.api.resource).type": "bigquerymigration.googleapis.com/MigrationSubtask",
"(google.api.resource).pattern": "projects/{project}/locations/{location}/workflows/{workflow}/subtasks/{subtask}"
},
"fields": {
"name": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "IMMUTABLE"
}
},
"taskId": {
"type": "string",
"id": 2
},
"type": {
"type": "string",
"id": 3
},
"state": {
"type": "State",
"id": 5,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"processingError": {
"type": "google.rpc.ErrorInfo",
"id": 6,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"resourceErrorDetails": {
"rule": "repeated",
"type": "ResourceErrorDetail",
"id": 12,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"resourceErrorCount": {
"type": "int32",
"id": 13
},
"createTime": {
"type": "google.protobuf.Timestamp",
"id": 7
},
"lastUpdateTime": {
"type": "google.protobuf.Timestamp",
"id": 8
},
"metrics": {
"rule": "repeated",
"type": "TimeSeries",
"id": 11
}
},
"nested": {
"State": {
"values": {
"STATE_UNSPECIFIED": 0,
"ACTIVE": 1,
"RUNNING": 2,
"SUCCEEDED": 3,
"FAILED": 4,
"PAUSED": 5,
"PENDING_DEPENDENCY": 6
}
}
}
},
"MigrationTaskResult": {
"oneofs": {
"details": {
"oneof": [
"translationTaskResult"
]
}
},
"fields": {
"translationTaskResult": {
"type": "TranslationTaskResult",
"id": 2
}
}
},
"TranslationTaskResult": {
"fields": {
"translatedLiterals": {
"rule": "repeated",
"type": "Literal",
"id": 1
},
"reportLogMessages": {
"rule": "repeated",
"type": "GcsReportLogMessage",
"id": 2
}
}
},
"ResourceErrorDetail": {
"fields": {
"resourceInfo": {
"type": "google.rpc.ResourceInfo",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"errorDetails": {
"rule": "repeated",
"type": "ErrorDetail",
"id": 2,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"errorCount": {
"type": "int32",
"id": 3,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
}
}
},
"ErrorDetail": {
"fields": {
"location": {
"type": "ErrorLocation",
"id": 1,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"errorInfo": {
"type": "google.rpc.ErrorInfo",
"id": 2,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
}
}
},
"ErrorLocation": {
"fields": {
"line": {
"type": "int32",
"id": 1,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"column": {
"type": "int32",
"id": 2,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
}
}
},
"TimeSeries": {
"fields": {
"metric": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"valueType": {
"type": "google.api.MetricDescriptor.ValueType",
"id": 2,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"metricKind": {
"type": "google.api.MetricDescriptor.MetricKind",
"id": 3,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"points": {
"rule": "repeated",
"type": "Point",
"id": 4,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
}
}
},
"Point": {
"fields": {
"interval": {
"type": "TimeInterval",
"id": 1
},
"value": {
"type": "TypedValue",
"id": 2
}
}
},
"TimeInterval": {
"fields": {
"startTime": {
"type": "google.protobuf.Timestamp",
"id": 1,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"endTime": {
"type": "google.protobuf.Timestamp",
"id": 2,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
}
}
},
"TypedValue": {
"oneofs": {
"value": {
"oneof": [
"boolValue",
"int64Value",
"doubleValue",
"stringValue",
"distributionValue"
]
}
},
"fields": {
"boolValue": {
"type": "bool",
"id": 1
},
"int64Value": {
"type": "int64",
"id": 2
},
"doubleValue": {
"type": "double",
"id": 3
},
"stringValue": {
"type": "string",
"id": 4
},
"distributionValue": {
"type": "google.api.Distribution",
"id": 5
}
}
},
"TranslationConfigDetails": {
"oneofs": {
"sourceLocation": {
"oneof": [
"gcsSourcePath"
]
},
"targetLocation": {
"oneof": [
"gcsTargetPath"
]
},
"outputNameMapping": {
"oneof": [
"nameMappingList"
]
}
},
"fields": {
"gcsSourcePath": {
"type": "string",
"id": 1
},
"gcsTargetPath": {
"type": "string",
"id": 2
},
"nameMappingList": {
"type": "ObjectNameMappingList",
"id": 5
},
"sourceDialect": {
"type": "Dialect",
"id": 3
},
"targetDialect": {
"type": "Dialect",
"id": 4
},
"sourceEnv": {
"type": "SourceEnv",
"id": 6
},
"requestSource": {
"type": "string",
"id": 8
},
"targetTypes": {
"rule": "repeated",
"type": "string",
"id": 9
}
}
},
"Dialect": {
"oneofs": {
"dialectValue": {
"oneof": [
"bigqueryDialect",
"hiveqlDialect",
"redshiftDialect",
"teradataDialect",
"oracleDialect",
"sparksqlDialect",
"snowflakeDialect",
"netezzaDialect",
"azureSynapseDialect",
"verticaDialect",
"sqlServerDialect",
"postgresqlDialect",
"prestoDialect",
"mysqlDialect",
"db2Dialect",
"sqliteDialect",
"greenplumDialect"
]
}
},
"fields": {
"bigqueryDialect": {
"type": "BigQueryDialect",
"id": 1
},
"hiveqlDialect": {
"type": "HiveQLDialect",
"id": 2
},
"redshiftDialect": {
"type": "RedshiftDialect",
"id": 3
},
"teradataDialect": {
"type": "TeradataDialect",
"id": 4
},
"oracleDialect": {
"type": "OracleDialect",
"id": 5
},
"sparksqlDialect": {
"type": "SparkSQLDialect",
"id": 6
},
"snowflakeDialect": {
"type": "SnowflakeDialect",
"id": 7
},
"netezzaDialect": {
"type": "NetezzaDialect",
"id": 8
},
"azureSynapseDialect": {
"type": "AzureSynapseDialect",
"id": 9
},
"verticaDialect": {
"type": "VerticaDialect",
"id": 10
},
"sqlServerDialect": {
"type": "SQLServerDialect",
"id": 11
},
"postgresqlDialect": {
"type": "PostgresqlDialect",
"id": 12
},
"prestoDialect": {
"type": "PrestoDialect",
"id": 13
},
"mysqlDialect": {
"type": "MySQLDialect",
"id": 14
},
"db2Dialect": {
"type": "DB2Dialect",
"id": 15
},
"sqliteDialect": {
"type": "SQLiteDialect",
"id": 16
},
"greenplumDialect": {
"type": "GreenplumDialect",
"id": 17
}
}
},
"BigQueryDialect": {
"fields": {}
},
"HiveQLDialect": {
"fields": {}
},
"RedshiftDialect": {
"fields": {}
},
"TeradataDialect": {
"fields": {
"mode": {
"type": "Mode",
"id": 1
}
},
"nested": {
"Mode": {
"values": {
"MODE_UNSPECIFIED": 0,
"SQL": 1,
"BTEQ": 2
}
}
}
},
"OracleDialect": {
"fields": {}
},
"SparkSQLDialect": {
"fields": {}
},
"SnowflakeDialect": {
"fields": {}
},
"NetezzaDialect": {
"fields": {}
},
"AzureSynapseDialect": {
"fields": {}
},
"VerticaDialect": {
"fields": {}
},
"SQLServerDialect": {
"fields": {}
},
"PostgresqlDialect": {
"fields": {}
},
"PrestoDialect": {
"fields": {}
},
"MySQLDialect": {
"fields": {}
},
"DB2Dialect": {
"fields": {}
},
"SQLiteDialect": {
"fields": {}
},
"GreenplumDialect": {
"fields": {}
},
"ObjectNameMappingList": {
"fields": {
"nameMap": {
"rule": "repeated",
"type": "ObjectNameMapping",
"id": 1
}
}
},
"ObjectNameMapping": {
"fields": {
"source": {
"type": "NameMappingKey",
"id": 1
},
"target": {
"type": "NameMappingValue",
"id": 2
}
}
},
"NameMappingKey": {
"fields": {
"type": {
"type": "Type",
"id": 1
},
"database": {
"type": "string",
"id": 2
},
"schema": {
"type": "string",
"id": 3
},
"relation": {
"type": "string",
"id": 4
},
"attribute": {
"type": "string",
"id": 5
}
},
"nested": {
"Type": {
"values": {
"TYPE_UNSPECIFIED": 0,
"DATABASE": 1,
"SCHEMA": 2,
"RELATION": 3,
"ATTRIBUTE": 4,
"RELATION_ALIAS": 5,
"ATTRIBUTE_ALIAS": 6,
"FUNCTION": 7
}
}
}
},
"NameMappingValue": {
"fields": {
"database": {
"type": "string",
"id": 1
},
"schema": {
"type": "string",
"id": 2
},
"relation": {
"type": "string",
"id": 3
},
"attribute": {
"type": "string",
"id": 4
}
}
},
"SourceEnv": {
"fields": {
"defaultDatabase": {
"type": "string",
"id": 1
},
"schemaSearchPath": {
"rule": "repeated",
"type": "string",
"id": 2
},
"metadataStoreDataset": {
"type": "string",
"id": 3,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
}
}
},
"TranslationDetails": {
"fields": {
"sourceTargetMapping": {
"rule": "repeated",
"type": "SourceTargetMapping",
"id": 1
},
"targetBaseUri": {
"type": "string",
"id": 2
},
"sourceEnvironment": {
"type": "SourceEnvironment",
"id": 3
},
"targetReturnLiterals": {
"rule": "repeated",
"type": "string",
"id": 4
},
"targetTypes": {
"rule": "repeated",
"type": "string",
"id": 5
}
}
},
"SourceTargetMapping": {
"fields": {
"sourceSpec": {
"type": "SourceSpec",
"id": 1
},
"targetSpec": {
"type": "TargetSpec",
"id": 2
}
}
},
"SourceSpec": {
"oneofs": {
"source": {
"oneof": [
"baseUri",
"literal"
]
}
},
"fields": {
"baseUri": {
"type": "string",
"id": 1
},
"literal": {
"type": "Literal",
"id": 2
},
"encoding": {
"type": "string",
"id": 3,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
}
}
},
"TargetSpec": {
"fields": {
"relativePath": {
"type": "string",
"id": 1
}
}
},
"Literal": {
"oneofs": {
"literalData": {
"oneof": [
"literalString",
"literalBytes"
]
}
},
"fields": {
"literalString": {
"type": "string",
"id": 2
},
"literalBytes": {
"type": "bytes",
"id": 3
},
"relativePath": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
}
}
},
"SourceEnvironment": {
"fields": {
"defaultDatabase": {
"type": "string",
"id": 1
},
"schemaSearchPath": {
"rule": "repeated",
"type": "string",
"id": 2
},
"metadataStoreDataset": {
"type": "string",
"id": 3,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
}
}
},
"GcsReportLogMessage": {
"fields": {
"severity": {
"type": "string",
"id": 1
},
"category": {
"type": "string",
"id": 2
},
"filePath": {
"type": "string",
"id": 3
},
"filename": {
"type": "string",
"id": 4
},
"sourceScriptLine": {
"type": "int32",
"id": 5
},
"sourceScriptColumn": {
"type": "int32",
"id": 6
},
"message": {
"type": "string",
"id": 7
},
"scriptContext": {
"type": "string",
"id": 8
},
"action": {
"type": "string",
"id": 9
},
"effect": {
"type": "string",
"id": 10
},
"objectName": {
"type": "string",
"id": 11
}
}
},
"MigrationService": {
"options": {
"(google.api.default_host)": "bigquerymigration.googleapis.com",
"(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform"
},
"methods": {
"CreateMigrationWorkflow": {
"requestType": "CreateMigrationWorkflowRequest",
"responseType": "MigrationWorkflow",
"options": {
"(google.api.http).post": "/v2/{parent=projects/*/locations/*}/workflows",
"(google.api.http).body": "migration_workflow",
"(google.api.method_signature)": "parent,migration_workflow"
},
"parsedOptions": [
{
"(google.api.http)": {
"post": "/v2/{parent=projects/*/locations/*}/workflows",
"body": "migration_workflow"
}
},
{
"(google.api.method_signature)": "parent,migration_workflow"
}
]
},
"GetMigrationWorkflow": {
"requestType": "GetMigrationWorkflowRequest",
"responseType": "MigrationWorkflow",
"options": {
"(google.api.http).get": "/v2/{name=projects/*/locations/*/workflows/*}",
"(google.api.method_signature)": "name"
},
"parsedOptions": [
{
"(google.api.http)": {
"get": "/v2/{name=projects/*/locations/*/workflows/*}"
}
},
{
"(google.api.method_signature)": "name"
}
]
},
"ListMigrationWorkflows": {
"requestType": "ListMigrationWorkflowsRequest",
"responseType": "ListMigrationWorkflowsResponse",
"options": {
"(google.api.http).get": "/v2/{parent=projects/*/locations/*}/workflows",
"(google.api.method_signature)": "parent"
},
"parsedOptions": [
{
"(google.api.http)": {
"get": "/v2/{parent=projects/*/locations/*}/workflows"
}
},
{
"(google.api.method_signature)": "parent"
}
]
},
"DeleteMigrationWorkflow": {
"requestType": "DeleteMigrationWorkflowRequest",
"responseType": "google.protobuf.Empty",
"options": {
"(google.api.http).delete": "/v2/{name=projects/*/locations/*/workflows/*}",
"(google.api.method_signature)": "name"
},
"parsedOptions": [
{
"(google.api.http)": {
"delete": "/v2/{name=projects/*/locations/*/workflows/*}"
}
},
{
"(google.api.method_signature)": "name"
}
]
},
"StartMigrationWorkflow": {
"requestType": "StartMigrationWorkflowRequest",
"responseType": "google.protobuf.Empty",
"options": {
"(google.api.http).post": "/v2/{name=projects/*/locations/*/workflows/*}:start",
"(google.api.http).body": "*",
"(google.api.method_signature)": "name"
},
"parsedOptions": [
{
"(google.api.http)": {
"post": "/v2/{name=projects/*/locations/*/workflows/*}:start",
"body": "*"
}
},
{
"(google.api.method_signature)": "name"
}
]
},
"GetMigrationSubtask": {
"requestType": "GetMigrationSubtaskRequest",
"responseType": "MigrationSubtask",
"options": {
"(google.api.http).get": "/v2/{name=projects/*/locations/*/workflows/*/subtasks/*}",
"(google.api.method_signature)": "name"
},
"parsedOptions": [
{
"(google.api.http)": {
"get": "/v2/{name=projects/*/locations/*/workflows/*/subtasks/*}"
}
},
{
"(google.api.method_signature)": "name"
}
]
},
"ListMigrationSubtasks": {
"requestType": "ListMigrationSubtasksRequest",
"responseType": "ListMigrationSubtasksResponse",
"options": {
"(google.api.http).get": "/v2/{parent=projects/*/locations/*/workflows/*}/subtasks",
"(google.api.method_signature)": "parent"
},
"parsedOptions": [
{
"(google.api.http)": {
"get": "/v2/{parent=projects/*/locations/*/workflows/*}/subtasks"
}
},
{
"(google.api.method_signature)": "parent"
}
]
}
}
},
"CreateMigrationWorkflowRequest": {
"fields": {
"parent": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED",
"(google.api.resource_reference).type": "locations.googleapis.com/Location"
}
},
"migrationWorkflow": {
"type": "MigrationWorkflow",
"id": 2,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
}
}
},
"GetMigrationWorkflowRequest": {
"fields": {
"name": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED",
"(google.api.resource_reference).type": "bigquerymigration.googleapis.com/MigrationWorkflow"
}
},
"readMask": {
"type": "google.protobuf.FieldMask",
"id": 2
}
}
},
"ListMigrationWorkflowsRequest": {
"fields": {
"parent": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED",
"(google.api.resource_reference).type": "locations.googleapis.com/Location"
}
},
"readMask": {
"type": "google.protobuf.FieldMask",
"id": 2
},
"pageSize": {
"type": "int32",
"id": 3
},
"pageToken": {
"type": "string",
"id": 4
}
}
},
"ListMigrationWorkflowsResponse": {
"fields": {
"migrationWorkflows": {
"rule": "repeated",
"type": "MigrationWorkflow",
"id": 1
},
"nextPageToken": {
"type": "string",
"id": 2
}
}
},
"DeleteMigrationWorkflowRequest": {
"fields": {
"name": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED",
"(google.api.resource_reference).type": "bigquerymigration.googleapis.com/MigrationWorkflow"
}
}
}
},
"StartMigrationWorkflowRequest": {
"fields": {
"name": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRE