Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/data-fusion

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/data-fusion - npm Package Compare versions

Comparing version 0.2.0 to 1.0.0

294

build/src/v1/data_fusion_client.d.ts

@@ -107,2 +107,20 @@ /// <reference types="node" />

getProjectId(callback: Callback<string, undefined, undefined>): void;
/**
* Gets details of a single Data Fusion instance.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. The instance resource name in the format
* projects/{project}/locations/{location}/instances/{instance}.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [Instance]{@link google.cloud.datafusion.v1.Instance}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example <caption>include:samples/generated/v1/data_fusion.get_instance.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_GetInstance_async
*/
getInstance(request?: protos.google.cloud.datafusion.v1.IGetInstanceRequest, options?: CallOptions): Promise<[

@@ -115,2 +133,26 @@ protos.google.cloud.datafusion.v1.IInstance,

getInstance(request: protos.google.cloud.datafusion.v1.IGetInstanceRequest, callback: Callback<protos.google.cloud.datafusion.v1.IInstance, protos.google.cloud.datafusion.v1.IGetInstanceRequest | null | undefined, {} | null | undefined>): void;
/**
* Creates a new Data Fusion instance in the specified project and location.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The instance's project and location in the format
* projects/{project}/locations/{location}.
* @param {string} request.instanceId
* Required. The name of the instance to create.
* @param {google.cloud.datafusion.v1.Instance} request.instance
* An instance resource.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example <caption>include:samples/generated/v1/data_fusion.create_instance.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_CreateInstance_async
*/
createInstance(request?: protos.google.cloud.datafusion.v1.ICreateInstanceRequest, options?: CallOptions): Promise<[

@@ -132,9 +174,26 @@ LROperation<protos.google.cloud.datafusion.v1.IInstance, protos.google.cloud.datafusion.v1.IOperationMetadata>,

* for more details and examples.
* @example
* const decodedOperation = await checkCreateInstanceProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1/data_fusion.create_instance.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_CreateInstance_async
*/
checkCreateInstanceProgress(name: string): Promise<LROperation<protos.google.cloud.datafusion.v1.Instance, protos.google.cloud.datafusion.v1.OperationMetadata>>;
/**
* Deletes a single Date Fusion instance.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. The instance resource name in the format
* projects/{project}/locations/{location}/instances/{instance}
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example <caption>include:samples/generated/v1/data_fusion.delete_instance.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_DeleteInstance_async
*/
deleteInstance(request?: protos.google.cloud.datafusion.v1.IDeleteInstanceRequest, options?: CallOptions): Promise<[

@@ -156,9 +215,34 @@ LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.datafusion.v1.IOperationMetadata>,

* for more details and examples.
* @example
* const decodedOperation = await checkDeleteInstanceProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1/data_fusion.delete_instance.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_DeleteInstance_async
*/
checkDeleteInstanceProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.datafusion.v1.OperationMetadata>>;
/**
* Updates a single Data Fusion instance.
*
* @param {Object} request
* The request object that will be sent.
* @param {google.cloud.datafusion.v1.Instance} request.instance
* Required. The instance resource that replaces the resource on the server. Currently,
* Data Fusion only allows replacing labels, options, and stack driver
* settings. All other fields will be ignored.
* @param {google.protobuf.FieldMask} request.updateMask
* Field mask is used to specify the fields that the update will overwrite
* in an instance resource. The fields specified in the update_mask are
* relative to the resource, not the full request.
* A field will be overwritten if it is in the mask.
* If the user does not provide a mask, all the supported fields (labels,
* options, and version currently) will be overwritten.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example <caption>include:samples/generated/v1/data_fusion.update_instance.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_UpdateInstance_async
*/
updateInstance(request?: protos.google.cloud.datafusion.v1.IUpdateInstanceRequest, options?: CallOptions): Promise<[

@@ -180,9 +264,27 @@ LROperation<protos.google.cloud.datafusion.v1.IInstance, protos.google.cloud.datafusion.v1.IOperationMetadata>,

* for more details and examples.
* @example
* const decodedOperation = await checkUpdateInstanceProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1/data_fusion.update_instance.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_UpdateInstance_async
*/
checkUpdateInstanceProgress(name: string): Promise<LROperation<protos.google.cloud.datafusion.v1.Instance, protos.google.cloud.datafusion.v1.OperationMetadata>>;
/**
* Restart a single Data Fusion instance.
* At the end of an operation instance is fully restarted.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. Name of the Data Fusion instance which need to be restarted in the form of
* projects/{project}/locations/{location}/instances/{instance}
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example <caption>include:samples/generated/v1/data_fusion.restart_instance.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_RestartInstance_async
*/
restartInstance(request?: protos.google.cloud.datafusion.v1.IRestartInstanceRequest, options?: CallOptions): Promise<[

@@ -204,9 +306,37 @@ LROperation<protos.google.cloud.datafusion.v1.IInstance, protos.google.cloud.datafusion.v1.IOperationMetadata>,

* for more details and examples.
* @example
* const decodedOperation = await checkRestartInstanceProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1/data_fusion.restart_instance.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_RestartInstance_async
*/
checkRestartInstanceProgress(name: string): Promise<LROperation<protos.google.cloud.datafusion.v1.Instance, protos.google.cloud.datafusion.v1.OperationMetadata>>;
/**
* Lists possible versions for Data Fusion instances in the specified project
* and location.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}.
* @param {number} request.pageSize
* The maximum number of items to return.
* @param {string} request.pageToken
* The next_page_token value to use if there are additional
* results to retrieve for this list request.
* @param {boolean} request.latestPatchOnly
* Whether or not to return the latest patch of every available minor version.
* If true, only the latest patch will be returned. Ex. if allowed versions is
* [6.1.1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0]
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is Array of [Version]{@link google.cloud.datafusion.v1.Version}.
* The client library will perform auto-pagination by default: it will call the API as many
* times as needed and will merge results from all the pages into this array.
* Note that it can affect your quota.
* We recommend using `listAvailableVersionsAsync()`
* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* for more details and examples.
*/
listAvailableVersions(request?: protos.google.cloud.datafusion.v1.IListAvailableVersionsRequest, options?: CallOptions): Promise<[

@@ -224,4 +354,4 @@ protos.google.cloud.datafusion.v1.IVersion[],

* @param {string} request.parent
* Required. The project and location for which to retrieve instance
* information in the format projects/{project}/locations/{location}.
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}.
* @param {number} request.pageSize

@@ -256,4 +386,4 @@ * The maximum number of items to return.

* @param {string} request.parent
* Required. The project and location for which to retrieve instance
* information in the format projects/{project}/locations/{location}.
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}.
* @param {number} request.pageSize

@@ -278,9 +408,38 @@ * The maximum number of items to return.

* for more details and examples.
* @example
* const iterable = client.listAvailableVersionsAsync(request);
* for await (const response of iterable) {
* // process response
* }
* @example <caption>include:samples/generated/v1/data_fusion.list_available_versions.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_ListAvailableVersions_async
*/
listAvailableVersionsAsync(request?: protos.google.cloud.datafusion.v1.IListAvailableVersionsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.datafusion.v1.IVersion>;
/**
* Lists Data Fusion instances in the specified project and location.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}. If the location is
* specified as '-' (wildcard), then all regions available to the project
* are queried, and the results are aggregated.
* @param {number} request.pageSize
* The maximum number of items to return.
* @param {string} request.pageToken
* The next_page_token value to use if there are additional
* results to retrieve for this list request.
* @param {string} request.filter
* List filter.
* @param {string} request.orderBy
* Sort results. Supported values are "name", "name desc", or "" (unsorted).
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is Array of [Instance]{@link google.cloud.datafusion.v1.Instance}.
* The client library will perform auto-pagination by default: it will call the API as many
* times as needed and will merge results from all the pages into this array.
* Note that it can affect your quota.
* We recommend using `listInstancesAsync()`
* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* for more details and examples.
*/
listInstances(request?: protos.google.cloud.datafusion.v1.IListInstancesRequest, options?: CallOptions): Promise<[

@@ -298,3 +457,3 @@ protos.google.cloud.datafusion.v1.IInstance[],

* @param {string} request.parent
* The project and location for which to retrieve instance information
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}. If the location is

@@ -332,3 +491,3 @@ * specified as '-' (wildcard), then all regions available to the project

* @param {string} request.parent
* The project and location for which to retrieve instance information
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}. If the location is

@@ -356,10 +515,49 @@ * specified as '-' (wildcard), then all regions available to the project

* for more details and examples.
* @example
* const iterable = client.listInstancesAsync(request);
* for await (const response of iterable) {
* // process response
* }
* @example <caption>include:samples/generated/v1/data_fusion.list_instances.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_ListInstances_async
*/
listInstancesAsync(request?: protos.google.cloud.datafusion.v1.IListInstancesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.datafusion.v1.IInstance>;
/**
* Return a fully-qualified cryptoKey resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} key_ring
* @param {string} crypto_key
* @returns {string} Resource name string.
*/
cryptoKeyPath(project: string, location: string, keyRing: string, cryptoKey: string): string;
/**
* Parse the project from CryptoKey resource.
*
* @param {string} cryptoKeyName
* A fully-qualified path representing CryptoKey resource.
* @returns {string} A string representing the project.
*/
matchProjectFromCryptoKeyName(cryptoKeyName: string): string | number;
/**
* Parse the location from CryptoKey resource.
*
* @param {string} cryptoKeyName
* A fully-qualified path representing CryptoKey resource.
* @returns {string} A string representing the location.
*/
matchLocationFromCryptoKeyName(cryptoKeyName: string): string | number;
/**
* Parse the key_ring from CryptoKey resource.
*
* @param {string} cryptoKeyName
* A fully-qualified path representing CryptoKey resource.
* @returns {string} A string representing the key_ring.
*/
matchKeyRingFromCryptoKeyName(cryptoKeyName: string): string | number;
/**
* Parse the crypto_key from CryptoKey resource.
*
* @param {string} cryptoKeyName
* A fully-qualified path representing CryptoKey resource.
* @returns {string} A string representing the crypto_key.
*/
matchCryptoKeyFromCryptoKeyName(cryptoKeyName: string): string | number;
/**
* Return a fully-qualified instance resource name string.

@@ -398,2 +596,26 @@ *

/**
* Return a fully-qualified location resource name string.
*
* @param {string} project
* @param {string} location
* @returns {string} Resource name string.
*/
locationPath(project: string, location: string): string;
/**
* Parse the project from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the project.
*/
matchProjectFromLocationName(locationName: string): string | number;
/**
* Parse the location from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the location.
*/
matchLocationFromLocationName(locationName: string): string | number;
/**
* Terminate the gRPC channel and close the client.

@@ -400,0 +622,0 @@ *

335

build/src/v1/data_fusion_client.js
"use strict";
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//

@@ -134,3 +134,5 @@ // Licensed under the Apache License, Version 2.0 (the "License");

this.pathTemplates = {
cryptoKeyPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}'),
instancePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/instances/{instance}'),
locationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}'),
};

@@ -269,20 +271,2 @@ // Some of the methods on this service return "paged" results,

}
/**
* Gets details of a single Data Fusion instance.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* The instance resource name in the format
* projects/{project}/locations/{location}/instances/{instance}.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [Instance]{@link google.cloud.datafusion.v1.Instance}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example
* const [response] = await client.getInstance(request);
*/
getInstance(request, optionsOrCallback, callback) {

@@ -308,27 +292,2 @@ request = request || {};

}
/**
* Creates a new Data Fusion instance in the specified project and location.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* The instance's project and location in the format
* projects/{project}/locations/{location}.
* @param {string} request.instanceId
* The name of the instance to create.
* @param {google.cloud.datafusion.v1.Instance} request.instance
* An instance resource.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example
* const [operation] = await client.createInstance(request);
* const [response] = await operation.promise();
*/
createInstance(request, optionsOrCallback, callback) {

@@ -363,7 +322,4 @@ request = request || {};

* for more details and examples.
* @example
* const decodedOperation = await checkCreateInstanceProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1/data_fusion.create_instance.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_CreateInstance_async
*/

@@ -376,23 +332,2 @@ async checkCreateInstanceProgress(name) {

}
/**
* Deletes a single Date Fusion instance.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* The instance resource name in the format
* projects/{project}/locations/{location}/instances/{instance}
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example
* const [operation] = await client.deleteInstance(request);
* const [response] = await operation.promise();
*/
deleteInstance(request, optionsOrCallback, callback) {

@@ -427,7 +362,4 @@ request = request || {};

* for more details and examples.
* @example
* const decodedOperation = await checkDeleteInstanceProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1/data_fusion.delete_instance.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_DeleteInstance_async
*/

@@ -440,31 +372,2 @@ async checkDeleteInstanceProgress(name) {

}
/**
* Updates a single Data Fusion instance.
*
* @param {Object} request
* The request object that will be sent.
* @param {google.cloud.datafusion.v1.Instance} request.instance
* The instance resource that replaces the resource on the server. Currently,
* Data Fusion only allows replacing labels, options, and stack driver
* settings. All other fields will be ignored.
* @param {google.protobuf.FieldMask} request.updateMask
* Field mask is used to specify the fields that the update will overwrite
* in an instance resource. The fields specified in the update_mask are
* relative to the resource, not the full request.
* A field will be overwritten if it is in the mask.
* If the user does not provide a mask, all the supported fields (labels,
* options, and version currently) will be overwritten.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example
* const [operation] = await client.updateInstance(request);
* const [response] = await operation.promise();
*/
updateInstance(request, optionsOrCallback, callback) {

@@ -499,7 +402,4 @@ request = request || {};

* for more details and examples.
* @example
* const decodedOperation = await checkUpdateInstanceProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1/data_fusion.update_instance.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_UpdateInstance_async
*/

@@ -512,24 +412,2 @@ async checkUpdateInstanceProgress(name) {

}
/**
* Restart a single Data Fusion instance.
* At the end of an operation instance is fully restarted.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Name of the Data Fusion instance which need to be restarted in the form of
* projects/{project}/locations/{location}/instances/{instance}
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example
* const [operation] = await client.restartInstance(request);
* const [response] = await operation.promise();
*/
restartInstance(request, optionsOrCallback, callback) {

@@ -564,7 +442,4 @@ request = request || {};

* for more details and examples.
* @example
* const decodedOperation = await checkRestartInstanceProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1/data_fusion.restart_instance.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_RestartInstance_async
*/

@@ -577,33 +452,2 @@ async checkRestartInstanceProgress(name) {

}
/**
* Lists possible versions for Data Fusion instances in the specified project
* and location.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The project and location for which to retrieve instance
* information in the format projects/{project}/locations/{location}.
* @param {number} request.pageSize
* The maximum number of items to return.
* @param {string} request.pageToken
* The next_page_token value to use if there are additional
* results to retrieve for this list request.
* @param {boolean} request.latestPatchOnly
* Whether or not to return the latest patch of every available minor version.
* If true, only the latest patch will be returned. Ex. if allowed versions is
* [6.1.1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0]
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is Array of [Version]{@link google.cloud.datafusion.v1.Version}.
* The client library will perform auto-pagination by default: it will call the API as many
* times as needed and will merge results from all the pages into this array.
* Note that it can affect your quota.
* We recommend using `listAvailableVersionsAsync()`
* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* for more details and examples.
*/
listAvailableVersions(request, optionsOrCallback, callback) {

@@ -634,4 +478,4 @@ request = request || {};

* @param {string} request.parent
* Required. The project and location for which to retrieve instance
* information in the format projects/{project}/locations/{location}.
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}.
* @param {number} request.pageSize

@@ -679,4 +523,4 @@ * The maximum number of items to return.

* @param {string} request.parent
* Required. The project and location for which to retrieve instance
* information in the format projects/{project}/locations/{location}.
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}.
* @param {number} request.pageSize

@@ -701,7 +545,4 @@ * The maximum number of items to return.

* for more details and examples.
* @example
* const iterable = client.listAvailableVersionsAsync(request);
* for await (const response of iterable) {
* // process response
* }
* @example <caption>include:samples/generated/v1/data_fusion.list_available_versions.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_ListAvailableVersions_async
*/

@@ -717,3 +558,2 @@ listAvailableVersionsAsync(request, options) {

});
options = options || {};
const defaultCallSettings = this._defaults['listAvailableVersions'];

@@ -724,34 +564,2 @@ const callSettings = defaultCallSettings.merge(options);

}
/**
* Lists Data Fusion instances in the specified project and location.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}. If the location is
* specified as '-' (wildcard), then all regions available to the project
* are queried, and the results are aggregated.
* @param {number} request.pageSize
* The maximum number of items to return.
* @param {string} request.pageToken
* The next_page_token value to use if there are additional
* results to retrieve for this list request.
* @param {string} request.filter
* List filter.
* @param {string} request.orderBy
* Sort results. Supported values are "name", "name desc", or "" (unsorted).
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is Array of [Instance]{@link google.cloud.datafusion.v1.Instance}.
* The client library will perform auto-pagination by default: it will call the API as many
* times as needed and will merge results from all the pages into this array.
* Note that it can affect your quota.
* We recommend using `listInstancesAsync()`
* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* for more details and examples.
*/
listInstances(request, optionsOrCallback, callback) {

@@ -782,3 +590,3 @@ request = request || {};

* @param {string} request.parent
* The project and location for which to retrieve instance information
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}. If the location is

@@ -829,3 +637,3 @@ * specified as '-' (wildcard), then all regions available to the project

* @param {string} request.parent
* The project and location for which to retrieve instance information
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}. If the location is

@@ -853,7 +661,4 @@ * specified as '-' (wildcard), then all regions available to the project

* for more details and examples.
* @example
* const iterable = client.listInstancesAsync(request);
* for await (const response of iterable) {
* // process response
* }
* @example <caption>include:samples/generated/v1/data_fusion.list_instances.js</caption>
* region_tag:datafusion_v1_generated_DataFusion_ListInstances_async
*/

@@ -869,3 +674,2 @@ listInstancesAsync(request, options) {

});
options = options || {};
const defaultCallSettings = this._defaults['listInstances'];

@@ -880,2 +684,63 @@ const callSettings = defaultCallSettings.merge(options);

/**
* Return a fully-qualified cryptoKey resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} key_ring
* @param {string} crypto_key
* @returns {string} Resource name string.
*/
cryptoKeyPath(project, location, keyRing, cryptoKey) {
return this.pathTemplates.cryptoKeyPathTemplate.render({
project: project,
location: location,
key_ring: keyRing,
crypto_key: cryptoKey,
});
}
/**
* Parse the project from CryptoKey resource.
*
* @param {string} cryptoKeyName
* A fully-qualified path representing CryptoKey resource.
* @returns {string} A string representing the project.
*/
matchProjectFromCryptoKeyName(cryptoKeyName) {
return this.pathTemplates.cryptoKeyPathTemplate.match(cryptoKeyName)
.project;
}
/**
* Parse the location from CryptoKey resource.
*
* @param {string} cryptoKeyName
* A fully-qualified path representing CryptoKey resource.
* @returns {string} A string representing the location.
*/
matchLocationFromCryptoKeyName(cryptoKeyName) {
return this.pathTemplates.cryptoKeyPathTemplate.match(cryptoKeyName)
.location;
}
/**
* Parse the key_ring from CryptoKey resource.
*
* @param {string} cryptoKeyName
* A fully-qualified path representing CryptoKey resource.
* @returns {string} A string representing the key_ring.
*/
matchKeyRingFromCryptoKeyName(cryptoKeyName) {
return this.pathTemplates.cryptoKeyPathTemplate.match(cryptoKeyName)
.key_ring;
}
/**
* Parse the crypto_key from CryptoKey resource.
*
* @param {string} cryptoKeyName
* A fully-qualified path representing CryptoKey resource.
* @returns {string} A string representing the crypto_key.
*/
matchCryptoKeyFromCryptoKeyName(cryptoKeyName) {
return this.pathTemplates.cryptoKeyPathTemplate.match(cryptoKeyName)
.crypto_key;
}
/**
* Return a fully-qualified instance resource name string.

@@ -926,2 +791,35 @@ *

/**
* Return a fully-qualified location resource name string.
*
* @param {string} project
* @param {string} location
* @returns {string} Resource name string.
*/
locationPath(project, location) {
return this.pathTemplates.locationPathTemplate.render({
project: project,
location: location,
});
}
/**
* Parse the project from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the project.
*/
matchProjectFromLocationName(locationName) {
return this.pathTemplates.locationPathTemplate.match(locationName).project;
}
/**
* Parse the location from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the location.
*/
matchLocationFromLocationName(locationName) {
return this.pathTemplates.locationPathTemplate.match(locationName).location;
}
/**
* Terminate the gRPC channel and close the client.

@@ -933,4 +831,3 @@ *

close() {
this.initialize();
if (!this._terminated) {
if (this.dataFusionStub && !this._terminated) {
return this.dataFusionStub.then(stub => {

@@ -937,0 +834,0 @@ this._terminated = true;

"use strict";
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//

@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -107,2 +107,20 @@ /// <reference types="node" />

getProjectId(callback: Callback<string, undefined, undefined>): void;
/**
* Gets details of a single Data Fusion instance.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. The instance resource name in the format
* projects/{project}/locations/{location}/instances/{instance}.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [Instance]{@link google.cloud.datafusion.v1beta1.Instance}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example <caption>include:samples/generated/v1beta1/data_fusion.get_instance.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_GetInstance_async
*/
getInstance(request?: protos.google.cloud.datafusion.v1beta1.IGetInstanceRequest, options?: CallOptions): Promise<[

@@ -115,2 +133,19 @@ protos.google.cloud.datafusion.v1beta1.IInstance,

getInstance(request: protos.google.cloud.datafusion.v1beta1.IGetInstanceRequest, callback: Callback<protos.google.cloud.datafusion.v1beta1.IInstance, protos.google.cloud.datafusion.v1beta1.IGetInstanceRequest | null | undefined, {} | null | undefined>): void;
/**
* Remove IAM policy that is currently set on the given resource.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.resource
* Required. The resource on which IAM policy to be removed is attached to.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [RemoveIamPolicyResponse]{@link google.cloud.datafusion.v1beta1.RemoveIamPolicyResponse}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example <caption>include:samples/generated/v1beta1/data_fusion.remove_iam_policy.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_RemoveIamPolicy_async
*/
removeIamPolicy(request?: protos.google.cloud.datafusion.v1beta1.IRemoveIamPolicyRequest, options?: CallOptions): Promise<[

@@ -123,2 +158,21 @@ protos.google.cloud.datafusion.v1beta1.IRemoveIamPolicyResponse,

removeIamPolicy(request: protos.google.cloud.datafusion.v1beta1.IRemoveIamPolicyRequest, callback: Callback<protos.google.cloud.datafusion.v1beta1.IRemoveIamPolicyResponse, protos.google.cloud.datafusion.v1beta1.IRemoveIamPolicyRequest | null | undefined, {} | null | undefined>): void;
/**
* Add DNS peering on the given resource.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The resource on which DNS peering will be created.
* @param {google.cloud.datafusion.v1beta1.DnsPeering} request.dnsPeering
* Dns peering config.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [AddDnsPeeringResponse]{@link google.cloud.datafusion.v1beta1.AddDnsPeeringResponse}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example <caption>include:samples/generated/v1beta1/data_fusion.add_dns_peering.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_AddDnsPeering_async
*/
addDnsPeering(request?: protos.google.cloud.datafusion.v1beta1.IAddDnsPeeringRequest, options?: CallOptions): Promise<[

@@ -131,2 +185,21 @@ protos.google.cloud.datafusion.v1beta1.IAddDnsPeeringResponse,

addDnsPeering(request: protos.google.cloud.datafusion.v1beta1.IAddDnsPeeringRequest, callback: Callback<protos.google.cloud.datafusion.v1beta1.IAddDnsPeeringResponse, protos.google.cloud.datafusion.v1beta1.IAddDnsPeeringRequest | null | undefined, {} | null | undefined>): void;
/**
* Remove DNS peering on the given resource.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The resource on which DNS peering will be removed.
* @param {string} request.zone
* Required. The zone to be removed.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [RemoveDnsPeeringResponse]{@link google.cloud.datafusion.v1beta1.RemoveDnsPeeringResponse}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example <caption>include:samples/generated/v1beta1/data_fusion.remove_dns_peering.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_RemoveDnsPeering_async
*/
removeDnsPeering(request?: protos.google.cloud.datafusion.v1beta1.IRemoveDnsPeeringRequest, options?: CallOptions): Promise<[

@@ -139,2 +212,26 @@ protos.google.cloud.datafusion.v1beta1.IRemoveDnsPeeringResponse,

removeDnsPeering(request: protos.google.cloud.datafusion.v1beta1.IRemoveDnsPeeringRequest, callback: Callback<protos.google.cloud.datafusion.v1beta1.IRemoveDnsPeeringResponse, protos.google.cloud.datafusion.v1beta1.IRemoveDnsPeeringRequest | null | undefined, {} | null | undefined>): void;
/**
* Creates a new Data Fusion instance in the specified project and location.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The instance's project and location in the format
* projects/{project}/locations/{location}.
* @param {string} request.instanceId
* Required. The name of the instance to create.
* @param {google.cloud.datafusion.v1beta1.Instance} request.instance
* An instance resource.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example <caption>include:samples/generated/v1beta1/data_fusion.create_instance.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_CreateInstance_async
*/
createInstance(request?: protos.google.cloud.datafusion.v1beta1.ICreateInstanceRequest, options?: CallOptions): Promise<[

@@ -156,9 +253,26 @@ LROperation<protos.google.cloud.datafusion.v1beta1.IInstance, protos.google.cloud.datafusion.v1beta1.IOperationMetadata>,

* for more details and examples.
* @example
* const decodedOperation = await checkCreateInstanceProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1beta1/data_fusion.create_instance.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_CreateInstance_async
*/
checkCreateInstanceProgress(name: string): Promise<LROperation<protos.google.cloud.datafusion.v1beta1.Instance, protos.google.cloud.datafusion.v1beta1.OperationMetadata>>;
/**
* Deletes a single Data Fusion instance.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. The instance resource name in the format
* projects/{project}/locations/{location}/instances/{instance}
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example <caption>include:samples/generated/v1beta1/data_fusion.delete_instance.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_DeleteInstance_async
*/
deleteInstance(request?: protos.google.cloud.datafusion.v1beta1.IDeleteInstanceRequest, options?: CallOptions): Promise<[

@@ -180,9 +294,34 @@ LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.datafusion.v1beta1.IOperationMetadata>,

* for more details and examples.
* @example
* const decodedOperation = await checkDeleteInstanceProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1beta1/data_fusion.delete_instance.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_DeleteInstance_async
*/
checkDeleteInstanceProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.datafusion.v1beta1.OperationMetadata>>;
/**
* Updates a single Data Fusion instance.
*
* @param {Object} request
* The request object that will be sent.
* @param {google.cloud.datafusion.v1beta1.Instance} request.instance
* Required. The instance resource that replaces the resource on the server. Currently,
* Data Fusion only allows replacing labels, options, and stack driver
* settings. All other fields will be ignored.
* @param {google.protobuf.FieldMask} request.updateMask
* Field mask is used to specify the fields that the update will overwrite
* in an instance resource. The fields specified in the update_mask are
* relative to the resource, not the full request.
* A field will be overwritten if it is in the mask.
* If the user does not provide a mask, all the supported fields (labels and
* options currently) will be overwritten.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example <caption>include:samples/generated/v1beta1/data_fusion.update_instance.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_UpdateInstance_async
*/
updateInstance(request?: protos.google.cloud.datafusion.v1beta1.IUpdateInstanceRequest, options?: CallOptions): Promise<[

@@ -204,9 +343,27 @@ LROperation<protos.google.cloud.datafusion.v1beta1.IInstance, protos.google.cloud.datafusion.v1beta1.IOperationMetadata>,

* for more details and examples.
* @example
* const decodedOperation = await checkUpdateInstanceProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1beta1/data_fusion.update_instance.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_UpdateInstance_async
*/
checkUpdateInstanceProgress(name: string): Promise<LROperation<protos.google.cloud.datafusion.v1beta1.Instance, protos.google.cloud.datafusion.v1beta1.OperationMetadata>>;
/**
* Restart a single Data Fusion instance.
* At the end of an operation instance is fully restarted.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. Name of the Data Fusion instance which need to be restarted in the form of
* projects/{project}/locations/{location}/instances/{instance}
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example <caption>include:samples/generated/v1beta1/data_fusion.restart_instance.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_RestartInstance_async
*/
restartInstance(request?: protos.google.cloud.datafusion.v1beta1.IRestartInstanceRequest, options?: CallOptions): Promise<[

@@ -228,9 +385,29 @@ LROperation<protos.google.cloud.datafusion.v1beta1.IInstance, protos.google.cloud.datafusion.v1beta1.IOperationMetadata>,

* for more details and examples.
* @example
* const decodedOperation = await checkRestartInstanceProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1beta1/data_fusion.restart_instance.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_RestartInstance_async
*/
checkRestartInstanceProgress(name: string): Promise<LROperation<protos.google.cloud.datafusion.v1beta1.Instance, protos.google.cloud.datafusion.v1beta1.OperationMetadata>>;
/**
* Upgrade a single Data Fusion instance.
* At the end of an operation instance is fully upgraded.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. Name of the Data Fusion instance which need to be upgraded in the form of
* projects/{project}/locations/{location}/instances/{instance}
* Instance will be upgraded with the latest stable version of the Data
* Fusion.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example <caption>include:samples/generated/v1beta1/data_fusion.upgrade_instance.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_UpgradeInstance_async
*/
upgradeInstance(request?: protos.google.cloud.datafusion.v1beta1.IUpgradeInstanceRequest, options?: CallOptions): Promise<[

@@ -252,9 +429,37 @@ LROperation<protos.google.cloud.datafusion.v1beta1.IInstance, protos.google.cloud.datafusion.v1beta1.IOperationMetadata>,

* for more details and examples.
* @example
* const decodedOperation = await checkUpgradeInstanceProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1beta1/data_fusion.upgrade_instance.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_UpgradeInstance_async
*/
checkUpgradeInstanceProgress(name: string): Promise<LROperation<protos.google.cloud.datafusion.v1beta1.Instance, protos.google.cloud.datafusion.v1beta1.OperationMetadata>>;
/**
* Lists possible versions for Data Fusion instances in the specified project
* and location.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}.
* @param {number} request.pageSize
* The maximum number of items to return.
* @param {string} request.pageToken
* The next_page_token value to use if there are additional
* results to retrieve for this list request.
* @param {boolean} request.latestPatchOnly
* Whether or not to return the latest patch of every available minor version.
* If true, only the latest patch will be returned. Ex. if allowed versions is
* [6.1.1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0]
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is Array of [Version]{@link google.cloud.datafusion.v1beta1.Version}.
* The client library will perform auto-pagination by default: it will call the API as many
* times as needed and will merge results from all the pages into this array.
* Note that it can affect your quota.
* We recommend using `listAvailableVersionsAsync()`
* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* for more details and examples.
*/
listAvailableVersions(request?: protos.google.cloud.datafusion.v1beta1.IListAvailableVersionsRequest, options?: CallOptions): Promise<[

@@ -272,4 +477,4 @@ protos.google.cloud.datafusion.v1beta1.IVersion[],

* @param {string} request.parent
* Required. The project and location for which to retrieve instance
* information in the format projects/{project}/locations/{location}.
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}.
* @param {number} request.pageSize

@@ -304,4 +509,4 @@ * The maximum number of items to return.

* @param {string} request.parent
* Required. The project and location for which to retrieve instance
* information in the format projects/{project}/locations/{location}.
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}.
* @param {number} request.pageSize

@@ -326,9 +531,38 @@ * The maximum number of items to return.

* for more details and examples.
* @example
* const iterable = client.listAvailableVersionsAsync(request);
* for await (const response of iterable) {
* // process response
* }
* @example <caption>include:samples/generated/v1beta1/data_fusion.list_available_versions.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_ListAvailableVersions_async
*/
listAvailableVersionsAsync(request?: protos.google.cloud.datafusion.v1beta1.IListAvailableVersionsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.datafusion.v1beta1.IVersion>;
/**
* Lists Data Fusion instances in the specified project and location.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}. If the location is
* specified as '-' (wildcard), then all regions available to the project
* are queried, and the results are aggregated.
* @param {number} request.pageSize
* The maximum number of items to return.
* @param {string} request.pageToken
* The next_page_token value to use if there are additional
* results to retrieve for this list request.
* @param {string} request.filter
* List filter.
* @param {string} request.orderBy
* Sort results. Supported values are "name", "name desc", or "" (unsorted).
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is Array of [Instance]{@link google.cloud.datafusion.v1beta1.Instance}.
* The client library will perform auto-pagination by default: it will call the API as many
* times as needed and will merge results from all the pages into this array.
* Note that it can affect your quota.
* We recommend using `listInstancesAsync()`
* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* for more details and examples.
*/
listInstances(request?: protos.google.cloud.datafusion.v1beta1.IListInstancesRequest, options?: CallOptions): Promise<[

@@ -346,3 +580,3 @@ protos.google.cloud.datafusion.v1beta1.IInstance[],

* @param {string} request.parent
* The project and location for which to retrieve instance information
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}. If the location is

@@ -380,3 +614,3 @@ * specified as '-' (wildcard), then all regions available to the project

* @param {string} request.parent
* The project and location for which to retrieve instance information
* Required. The project and location for which to retrieve instance information
* in the format projects/{project}/locations/{location}. If the location is

@@ -404,9 +638,36 @@ * specified as '-' (wildcard), then all regions available to the project

* for more details and examples.
* @example
* const iterable = client.listInstancesAsync(request);
* for await (const response of iterable) {
* // process response
* }
* @example <caption>include:samples/generated/v1beta1/data_fusion.list_instances.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_ListInstances_async
*/
listInstancesAsync(request?: protos.google.cloud.datafusion.v1beta1.IListInstancesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.datafusion.v1beta1.IInstance>;
/**
* List namespaces in a given instance
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The instance to list its namespaces.
* @param {number} request.pageSize
* The maximum number of items to return.
* @param {string} request.pageToken
* The next_page_token value to use if there are additional
* results to retrieve for this list request.
* @param {google.cloud.datafusion.v1beta1.NamespaceView} request.view
* By default, only basic information about a namespace is returned
* (e.g. name). When `NAMESPACE_VIEW_FULL` is specified, additional
* information associated with a namespace gets returned
* (e.g. IAM policy set on the namespace)
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is Array of [Namespace]{@link google.cloud.datafusion.v1beta1.Namespace}.
* The client library will perform auto-pagination by default: it will call the API as many
* times as needed and will merge results from all the pages into this array.
* Note that it can affect your quota.
* We recommend using `listNamespacesAsync()`
* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* for more details and examples.
*/
listNamespaces(request?: protos.google.cloud.datafusion.v1beta1.IListNamespacesRequest, options?: CallOptions): Promise<[

@@ -476,9 +737,31 @@ protos.google.cloud.datafusion.v1beta1.INamespace[],

* for more details and examples.
* @example
* const iterable = client.listNamespacesAsync(request);
* for await (const response of iterable) {
* // process response
* }
* @example <caption>include:samples/generated/v1beta1/data_fusion.list_namespaces.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_ListNamespaces_async
*/
listNamespacesAsync(request?: protos.google.cloud.datafusion.v1beta1.IListNamespacesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.datafusion.v1beta1.INamespace>;
/**
* List DNS peering for a given resource.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The resource on which dns peering will be listed.
* @param {number} request.pageSize
* The maximum number of items to return.
* @param {string} request.pageToken
* The next_page_token value to use if there are additional
* results to retrieve for this list request.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is Array of [DnsPeering]{@link google.cloud.datafusion.v1beta1.DnsPeering}.
* The client library will perform auto-pagination by default: it will call the API as many
* times as needed and will merge results from all the pages into this array.
* Note that it can affect your quota.
* We recommend using `listDnsPeeringsAsync()`
* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* for more details and examples.
*/
listDnsPeerings(request?: protos.google.cloud.datafusion.v1beta1.IListDnsPeeringsRequest, options?: CallOptions): Promise<[

@@ -538,10 +821,49 @@ protos.google.cloud.datafusion.v1beta1.IDnsPeering[],

* for more details and examples.
* @example
* const iterable = client.listDnsPeeringsAsync(request);
* for await (const response of iterable) {
* // process response
* }
* @example <caption>include:samples/generated/v1beta1/data_fusion.list_dns_peerings.js</caption>
* region_tag:datafusion_v1beta1_generated_DataFusion_ListDnsPeerings_async
*/
listDnsPeeringsAsync(request?: protos.google.cloud.datafusion.v1beta1.IListDnsPeeringsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.datafusion.v1beta1.IDnsPeering>;
/**
* Return a fully-qualified cryptoKey resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} key_ring
* @param {string} crypto_key
* @returns {string} Resource name string.
*/
cryptoKeyPath(project: string, location: string, keyRing: string, cryptoKey: string): string;
/**
* Parse the project from CryptoKey resource.
*
* @param {string} cryptoKeyName
* A fully-qualified path representing CryptoKey resource.
* @returns {string} A string representing the project.
*/
matchProjectFromCryptoKeyName(cryptoKeyName: string): string | number;
/**
* Parse the location from CryptoKey resource.
*
* @param {string} cryptoKeyName
* A fully-qualified path representing CryptoKey resource.
* @returns {string} A string representing the location.
*/
matchLocationFromCryptoKeyName(cryptoKeyName: string): string | number;
/**
* Parse the key_ring from CryptoKey resource.
*
* @param {string} cryptoKeyName
* A fully-qualified path representing CryptoKey resource.
* @returns {string} A string representing the key_ring.
*/
matchKeyRingFromCryptoKeyName(cryptoKeyName: string): string | number;
/**
* Parse the crypto_key from CryptoKey resource.
*
* @param {string} cryptoKeyName
* A fully-qualified path representing CryptoKey resource.
* @returns {string} A string representing the crypto_key.
*/
matchCryptoKeyFromCryptoKeyName(cryptoKeyName: string): string | number;
/**
* Return a fully-qualified instance resource name string.

@@ -580,2 +902,26 @@ *

/**
* Return a fully-qualified location resource name string.
*
* @param {string} project
* @param {string} location
* @returns {string} Resource name string.
*/
locationPath(project: string, location: string): string;
/**
* Parse the project from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the project.
*/
matchProjectFromLocationName(locationName: string): string | number;
/**
* Parse the location from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the location.
*/
matchLocationFromLocationName(locationName: string): string | number;
/**
* Return a fully-qualified namespace resource name string.

@@ -582,0 +928,0 @@ *

"use strict";
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//

@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

# Changelog
## [1.0.0](https://github.com/googleapis/nodejs-data-fusion/compare/v0.2.0...v1.0.0) (2022-03-23)
### Features
* promote to stable ([#38](https://github.com/googleapis/nodejs-data-fusion/issues/38)) ([e563f41](https://github.com/googleapis/nodejs-data-fusion/commit/e563f415e2ca24b8f8c524c8044bcf75f26ef176))
## 0.2.0 (2021-10-07)

@@ -4,0 +11,0 @@

{
"name": "@google-cloud/data-fusion",
"version": "0.2.0",
"version": "1.0.0",
"description": "datafusion client for Node.js",

@@ -45,4 +45,4 @@ "repository": "googleapis/nodejs-data-fusion",

"devDependencies": {
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.44",
"@types/mocha": "^9.0.0",
"@types/node": "^16.0.0",
"@types/sinon": "^10.0.0",

@@ -55,6 +55,6 @@ "c8": "^7.7.2",

"linkinator": "^2.13.6",
"mocha": "^8.4.0",
"mocha": "^9.0.0",
"null-loader": "^4.0.1",
"pack-n-play": "^1.0.0-2",
"sinon": "^10.0.0",
"sinon": "^13.0.0",
"ts-loader": "^9.1.2",

@@ -61,0 +61,0 @@ "typescript": "^4.2.4",

@@ -7,5 +7,4 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/@google-cloud/data-fusion.svg)](https://www.npmjs.org/package/@google-cloud/data-fusion)
[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-data-fusion/main.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-data-fusion)

@@ -70,32 +69,34 @@

Node.js.
If you are using an end-of-life version of Node.js, we recommend that you update
as soon as possible to an actively supported LTS version.
Google's client libraries support legacy versions of Node.js runtimes on a
best-efforts basis with the following warnings:
* Legacy versions are not tested in continuous integration.
* Some security patches and features cannot be backported.
* Dependencies cannot be kept up-to-date.
Client libraries targeting some end-of-life versions of Node.js are available, and
can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
The dist-tags follow the naming convention `legacy-(version)`.
For example, `npm install @google-cloud/data-fusion@legacy-8` installs client libraries
for versions compatible with Node.js 8.
_Legacy Node.js versions are supported as a best effort:_
## Versioning
* Legacy versions will not be tested in continuous integration.
* Some security patches may not be able to be backported.
* Dependencies will not be kept up-to-date, and features will not be backported.
This library follows [Semantic Versioning](http://semver.org/).
#### Legacy tags available
* `legacy-8`: install client libraries from this dist-tag for versions
compatible with Node.js 8.
## Versioning
This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways
unless absolutely necessary (e.g. because of critical security issues) or with
an extensive deprecation period. Issues and requests against **stable** libraries
are addressed with the highest priority.
This library follows [Semantic Versioning](http://semver.org/).
This library is considered to be in **beta**. This means it is expected to be
mostly stable while we work toward a general availability release; however,
complete stability is not guaranteed. We will address issues and requests
against beta libraries with a high priority.
More Information: [Google Cloud Platform Launch Stages][launch_stages]

@@ -121,3 +122,3 @@

[client-docs]: https://cloud.google.com/data-fusion
[client-docs]: https://cloud.google.com/nodejs/docs/reference/data-fusion/latest
[product-docs]: https://cloud.google.com/data-fusion/

@@ -124,0 +125,0 @@ [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc