Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

fix: allow passing gax instance to client constructor #12

Merged
merged 15 commits into from
Sep 1, 2022
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {
copyright: 'Copyright 2022 Google LLC',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/migration',
systemName: '@google-cloud/bigquery-migration',
theme: 'lumen',
default: {
outputSourceFiles: false
Expand Down
31 changes: 15 additions & 16 deletions linkinator.config.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"recurse": true,
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com",
"img.shields.io",
"https://cloud.google.com/nodejs/docs/reference/bigquery-migration/latest",
"https://github.com/googleapis/nodejs-bigquery-migration/blob/master/CHANGELOG.md",
"https://github.com/googleapis/nodejs-bigquery-migration/blob/addSamples/CHANGELOG.md"
],
"silent": true,
"concurrency": 5,
"retry": true,
"retryErrors": true,
"retryErrorsCount": 5,
"retryErrorsJitter": 3000
}
"recurse": true,
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com",
"img.shields.io",
"https://console.cloud.google.com/cloudshell",
"https://support.google.com"
],
"silent": true,
"concurrency": 5,
"retry": true,
"retryErrors": true,
"retryErrorsCount": 5,
"retryErrorsJitter": 3000
}
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ message MigrationTask {
// Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
// Translation_Snowflake2BQ, Translation_Netezza2BQ,
// Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
// Translation_SQLServer2BQ.
// Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ.
string type = 2;

// Output only. The current state of the task.
Expand Down
18 changes: 18 additions & 0 deletions protos/google/cloud/bigquery/migration/v2/translation_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ message Dialect {

// The SQL Server dialect
SQLServerDialect sql_server_dialect = 11;

// The Postgresql dialect
PostgresqlDialect postgresql_dialect = 12;

// The Presto dialect
PrestoDialect presto_dialect = 13;

// The MySQL dialect
MySQLDialect mysql_dialect = 14;
}
}

Expand Down Expand Up @@ -142,6 +151,15 @@ message VerticaDialect {}
// The dialect definition for SQL Server.
message SQLServerDialect {}

// The dialect definition for Postgresql.
message PostgresqlDialect {}

// The dialect definition for Presto.
message PrestoDialect {}

// The dialect definition for MySQL.
message MySQLDialect {}

// Represents a map of name mappings using a list of key:value proto messages of
// existing name to desired output name.
message ObjectNameMappingList {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import "google/cloud/bigquery/migration/v2alpha/migration_error_details.proto";
import "google/cloud/bigquery/migration/v2alpha/migration_metrics.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/rpc/error_details.proto";

option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2Alpha";
option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2alpha;migration";
Expand Down
293 changes: 292 additions & 1 deletion protos/protos.d.ts

Large diffs are not rendered by default.

634 changes: 632 additions & 2 deletions protos/protos.js

Large diffs are not rendered by default.

26 changes: 25 additions & 1 deletion protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent, migrationWorkflow) {
// [START bigquerymigration_v2_generated_MigrationService_CreateMigrationWorkflow_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -36,7 +39,7 @@ function main(parent, migrationWorkflow) {
// const migrationWorkflow = {}

// Imports the Migration library
const {MigrationServiceClient} = require('@google-cloud/migration').v2;
const {MigrationServiceClient} = require('@google-cloud/bigquery-migration').v2;

// Instantiates a client
const migrationClient = new MigrationServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START bigquerymigration_v2_generated_MigrationService_DeleteMigrationWorkflow_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -32,7 +35,7 @@ function main(name) {
// const name = 'abc123'

// Imports the Migration library
const {MigrationServiceClient} = require('@google-cloud/migration').v2;
const {MigrationServiceClient} = require('@google-cloud/bigquery-migration').v2;

// Instantiates a client
const migrationClient = new MigrationServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START bigquerymigration_v2_generated_MigrationService_GetMigrationSubtask_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -36,7 +39,7 @@ function main(name) {
// const readMask = {}

// Imports the Migration library
const {MigrationServiceClient} = require('@google-cloud/migration').v2;
const {MigrationServiceClient} = require('@google-cloud/bigquery-migration').v2;

// Instantiates a client
const migrationClient = new MigrationServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START bigquerymigration_v2_generated_MigrationService_GetMigrationWorkflow_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -36,7 +39,7 @@ function main(name) {
// const readMask = {}

// Imports the Migration library
const {MigrationServiceClient} = require('@google-cloud/migration').v2;
const {MigrationServiceClient} = require('@google-cloud/bigquery-migration').v2;

// Instantiates a client
const migrationClient = new MigrationServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START bigquerymigration_v2_generated_MigrationService_ListMigrationSubtasks_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down Expand Up @@ -54,7 +57,7 @@ function main(parent) {
// const filter = 'abc123'

// Imports the Migration library
const {MigrationServiceClient} = require('@google-cloud/migration').v2;
const {MigrationServiceClient} = require('@google-cloud/bigquery-migration').v2;

// Instantiates a client
const migrationClient = new MigrationServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START bigquerymigration_v2_generated_MigrationService_ListMigrationWorkflows_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -48,7 +51,7 @@ function main(parent) {
// const pageToken = 'abc123'

// Imports the Migration library
const {MigrationServiceClient} = require('@google-cloud/migration').v2;
const {MigrationServiceClient} = require('@google-cloud/bigquery-migration').v2;

// Instantiates a client
const migrationClient = new MigrationServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START bigquerymigration_v2_generated_MigrationService_StartMigrationWorkflow_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -32,7 +35,7 @@ function main(name) {
// const name = 'abc123'

// Imports the Migration library
const {MigrationServiceClient} = require('@google-cloud/migration').v2;
const {MigrationServiceClient} = require('@google-cloud/bigquery-migration').v2;

// Instantiates a client
const migrationClient = new MigrationServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"segments": [
{
"start": 25,
"end": 56,
"end": 59,
"type": "FULL"
}
],
Expand Down Expand Up @@ -66,7 +66,7 @@
"segments": [
{
"start": 25,
"end": 55,
"end": 58,
"type": "FULL"
}
],
Expand Down Expand Up @@ -110,7 +110,7 @@
"segments": [
{
"start": 25,
"end": 69,
"end": 72,
"type": "FULL"
}
],
Expand Down Expand Up @@ -162,7 +162,7 @@
"segments": [
{
"start": 25,
"end": 51,
"end": 54,
"type": "FULL"
}
],
Expand Down Expand Up @@ -202,7 +202,7 @@
"segments": [
{
"start": 25,
"end": 51,
"end": 54,
"type": "FULL"
}
],
Expand Down Expand Up @@ -242,7 +242,7 @@
"segments": [
{
"start": 25,
"end": 55,
"end": 58,
"type": "FULL"
}
],
Expand Down Expand Up @@ -286,7 +286,7 @@
"segments": [
{
"start": 25,
"end": 75,
"end": 78,
"type": "FULL"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent, migrationWorkflow) {
// [START bigquerymigration_v2alpha_generated_MigrationService_CreateMigrationWorkflow_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -36,7 +39,7 @@ function main(parent, migrationWorkflow) {
// const migrationWorkflow = {}

// Imports the Migration library
const {MigrationServiceClient} = require('@google-cloud/migration').v2alpha;
const {MigrationServiceClient} = require('@google-cloud/bigquery-migration').v2alpha;

// Instantiates a client
const migrationClient = new MigrationServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START bigquerymigration_v2alpha_generated_MigrationService_DeleteMigrationWorkflow_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -32,7 +35,7 @@ function main(name) {
// const name = 'abc123'

// Imports the Migration library
const {MigrationServiceClient} = require('@google-cloud/migration').v2alpha;
const {MigrationServiceClient} = require('@google-cloud/bigquery-migration').v2alpha;

// Instantiates a client
const migrationClient = new MigrationServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START bigquerymigration_v2alpha_generated_MigrationService_GetMigrationSubtask_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -36,7 +39,7 @@ function main(name) {
// const readMask = {}

// Imports the Migration library
const {MigrationServiceClient} = require('@google-cloud/migration').v2alpha;
const {MigrationServiceClient} = require('@google-cloud/bigquery-migration').v2alpha;

// Instantiates a client
const migrationClient = new MigrationServiceClient();
Expand Down
Loading