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

Commit

Permalink
fix: allow passing gax instance to client constructor (#12)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 470911839

Source-Link: googleapis/googleapis@3527566

Source-Link: https://github.com/googleapis/googleapis-gen/commit/f16a1d224f00a630ea43d6a9a1a31f566f45cdea
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjE2YTFkMjI0ZjAwYTYzMGVhNDNkNmE5YTFhMzFmNTY2ZjQ1Y2RlYSJ9

feat: accept google-gax instance as a parameter
Please see the documentation of the client constructor for details.

PiperOrigin-RevId: 470332808

Source-Link: googleapis/googleapis@d4a2367

Source-Link: https://github.com/googleapis/googleapis-gen/commit/e97a1ac204ead4fe7341f91e72db7c6ac6016341
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTk3YTFhYzIwNGVhZDRmZTczNDFmOTFlNzJkYjdjNmFjNjAxNjM0MSJ9

build: fix artifact name for bigquery migration
PiperOrigin-RevId: 469790470

Source-Link: googleapis/googleapis@842682e

Source-Link: https://github.com/googleapis/googleapis-gen/commit/ff37d3431a178aa1601fe688767f7a3306dde149
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmYzN2QzNDMxYTE3OGFhMTYwMWZlNjg4NzY3ZjdhMzMwNmRkZTE0OSJ9

fix: better support for fallback mode
PiperOrigin-RevId: 468790263

Source-Link: googleapis/googleapis@873ab45

Source-Link: https://github.com/googleapis/googleapis-gen/commit/cb6f37aeff2a3472e40a7bbace8c67d75e24bee5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9

chore: remove unused proto imports
PiperOrigin-RevId: 468735472

Source-Link: googleapis/googleapis@cfa1b37

Source-Link: https://github.com/googleapis/googleapis-gen/commit/09b7666656510f5b00b893f003a0ba5766f9e250
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDliNzY2NjY1NjUxMGY1YjAwYjg5M2YwMDNhMGJhNTc2NmY5ZTI1MCJ9

feat: Add MySQL dialect to bigquerymigration v2 client library
PiperOrigin-RevId: 466417698

Source-Link: googleapis/googleapis@2bafaf1

Source-Link: https://github.com/googleapis/googleapis-gen/commit/15db99606c2f37840475be9dfa5faa32d0844dbf
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTVkYjk5NjA2YzJmMzc4NDA0NzViZTlkZmE1ZmFhMzJkMDg0NGRiZiJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 1, 2022
1 parent c7ed184 commit b86b901
Show file tree
Hide file tree
Showing 30 changed files with 1,293 additions and 259 deletions.
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

0 comments on commit b86b901

Please sign in to comment.