@google-cloud/data-fusion
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -39,3 +39,3 @@ /// <reference types="node" /> | ||
* The options accepted by the constructor are described in detail | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). | ||
* The common options are: | ||
@@ -63,7 +63,6 @@ * @param {object} [options.credentials] - Credentials object. | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean} [options.fallback] - Use HTTP fallback mode. | ||
* In fallback mode, a special browser-compatible transport implementation is used | ||
* instead of gRPC transport. In browser context (if the `window` object is defined) | ||
* the fallback mode is enabled automatically; set `options.fallback` to `false` | ||
* if you need to override this behavior. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* For more information, please check the | ||
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
*/ | ||
@@ -70,0 +69,0 @@ constructor(opts?: ClientOptions); |
@@ -45,3 +45,3 @@ "use strict"; | ||
* The options accepted by the constructor are described in detail | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). | ||
* The common options are: | ||
@@ -69,7 +69,6 @@ * @param {object} [options.credentials] - Credentials object. | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean} [options.fallback] - Use HTTP fallback mode. | ||
* In fallback mode, a special browser-compatible transport implementation is used | ||
* instead of gRPC transport. In browser context (if the `window` object is defined) | ||
* the fallback mode is enabled automatically; set `options.fallback` to `false` | ||
* if you need to override this behavior. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* For more information, please check the | ||
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
*/ | ||
@@ -151,7 +150,52 @@ constructor(opts) { | ||
// rather than holding a request open. | ||
this.operationsClient = this._gaxModule | ||
.lro({ | ||
const lroOptions = { | ||
auth: this.auth, | ||
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, | ||
}) | ||
}; | ||
if (opts.fallback === 'rest') { | ||
lroOptions.protoJson = protoFilesRoot; | ||
lroOptions.httpRules = [ | ||
{ | ||
selector: 'google.cloud.location.Locations.GetLocation', | ||
get: '/v1/{name=projects/*/locations/*}', | ||
}, | ||
{ | ||
selector: 'google.cloud.location.Locations.ListLocations', | ||
get: '/v1/{name=projects/*}/locations', | ||
}, | ||
{ | ||
selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', | ||
get: '/v1/{resource=projects/*/locations/*/instances/*}:getIamPolicy', | ||
}, | ||
{ | ||
selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', | ||
post: '/v1/{resource=projects/*/locations/*/instances/*}:setIamPolicy', | ||
body: '*', | ||
}, | ||
{ | ||
selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', | ||
post: '/v1/{resource=projects/*/locations/*/instances/*}:testIamPermissions', | ||
body: '*', | ||
}, | ||
{ | ||
selector: 'google.longrunning.Operations.CancelOperation', | ||
post: '/v1/{name=projects/*/locations/*/operations/*}:cancel', | ||
body: '*', | ||
}, | ||
{ | ||
selector: 'google.longrunning.Operations.DeleteOperation', | ||
delete: '/v1/{name=projects/*/locations/*/operations/*}', | ||
}, | ||
{ | ||
selector: 'google.longrunning.Operations.GetOperation', | ||
get: '/v1/{name=projects/*/locations/*/operations/*}', | ||
}, | ||
{ | ||
selector: 'google.longrunning.Operations.ListOperations', | ||
get: '/v1/{name=projects/*/locations/*}/operations', | ||
}, | ||
]; | ||
} | ||
this.operationsClient = this._gaxModule | ||
.lro(lroOptions) | ||
.operationsClient(opts); | ||
@@ -158,0 +202,0 @@ const createInstanceResponse = protoFilesRoot.lookup('.google.cloud.datafusion.v1.Instance'); |
@@ -39,3 +39,3 @@ /// <reference types="node" /> | ||
* The options accepted by the constructor are described in detail | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). | ||
* The common options are: | ||
@@ -63,7 +63,6 @@ * @param {object} [options.credentials] - Credentials object. | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean} [options.fallback] - Use HTTP fallback mode. | ||
* In fallback mode, a special browser-compatible transport implementation is used | ||
* instead of gRPC transport. In browser context (if the `window` object is defined) | ||
* the fallback mode is enabled automatically; set `options.fallback` to `false` | ||
* if you need to override this behavior. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* For more information, please check the | ||
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
*/ | ||
@@ -70,0 +69,0 @@ constructor(opts?: ClientOptions); |
@@ -45,3 +45,3 @@ "use strict"; | ||
* The options accepted by the constructor are described in detail | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). | ||
* The common options are: | ||
@@ -69,7 +69,6 @@ * @param {object} [options.credentials] - Credentials object. | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean} [options.fallback] - Use HTTP fallback mode. | ||
* In fallback mode, a special browser-compatible transport implementation is used | ||
* instead of gRPC transport. In browser context (if the `window` object is defined) | ||
* the fallback mode is enabled automatically; set `options.fallback` to `false` | ||
* if you need to override this behavior. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* For more information, please check the | ||
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
*/ | ||
@@ -154,7 +153,69 @@ constructor(opts) { | ||
// rather than holding a request open. | ||
this.operationsClient = this._gaxModule | ||
.lro({ | ||
const lroOptions = { | ||
auth: this.auth, | ||
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, | ||
}) | ||
}; | ||
if (opts.fallback === 'rest') { | ||
lroOptions.protoJson = protoFilesRoot; | ||
lroOptions.httpRules = [ | ||
{ | ||
selector: 'google.cloud.location.Locations.GetLocation', | ||
get: '/v1beta1/{name=projects/*/locations/*}', | ||
}, | ||
{ | ||
selector: 'google.cloud.location.Locations.ListLocations', | ||
get: '/v1beta1/{name=projects/*}/locations', | ||
}, | ||
{ | ||
selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', | ||
get: '/v1beta1/{resource=projects/*/locations/*/instances/*}:getIamPolicy', | ||
additional_bindings: [ | ||
{ | ||
get: '/v1beta1/{resource=projects/*/locations/*/instances/*/namespaces/*}:getIamPolicy', | ||
}, | ||
], | ||
}, | ||
{ | ||
selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', | ||
post: '/v1beta1/{resource=projects/*/locations/*/instances/*}:setIamPolicy', | ||
body: '*', | ||
additional_bindings: [ | ||
{ | ||
post: '/v1beta1/{resource=projects/*/locations/*/instances/*/namespaces/*}:setIamPolicy', | ||
body: '*', | ||
}, | ||
], | ||
}, | ||
{ | ||
selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', | ||
post: '/v1beta1/{resource=projects/*/locations/*/instances/*}:testIamPermissions', | ||
body: '*', | ||
additional_bindings: [ | ||
{ | ||
post: '/v1beta1/{resource=projects/*/locations/*/instances/*/namespaces/*}:testIamPermissions', | ||
body: '*', | ||
}, | ||
], | ||
}, | ||
{ | ||
selector: 'google.longrunning.Operations.CancelOperation', | ||
post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', | ||
body: '*', | ||
}, | ||
{ | ||
selector: 'google.longrunning.Operations.DeleteOperation', | ||
delete: '/v1beta1/{name=projects/*/locations/*/operations/*}', | ||
}, | ||
{ | ||
selector: 'google.longrunning.Operations.GetOperation', | ||
get: '/v1beta1/{name=projects/*/locations/*/operations/*}', | ||
}, | ||
{ | ||
selector: 'google.longrunning.Operations.ListOperations', | ||
get: '/v1beta1/{name=projects/*/locations/*}/operations', | ||
}, | ||
]; | ||
} | ||
this.operationsClient = this._gaxModule | ||
.lro(lroOptions) | ||
.operationsClient(opts); | ||
@@ -161,0 +222,0 @@ const createInstanceResponse = protoFilesRoot.lookup('.google.cloud.datafusion.v1beta1.Instance'); |
# Changelog | ||
## [2.1.0](https://github.com/googleapis/nodejs-data-fusion/compare/v2.0.0...v2.1.0) (2022-06-30) | ||
### Features | ||
* support regapic LRO ([#55](https://github.com/googleapis/nodejs-data-fusion/issues/55)) ([4b66ef0](https://github.com/googleapis/nodejs-data-fusion/commit/4b66ef068c5d82e150b4bf6f2943d1708d5b0194)) | ||
## [2.0.0](https://github.com/googleapis/nodejs-data-fusion/compare/v1.0.0...v2.0.0) (2022-05-19) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@google-cloud/data-fusion", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "datafusion client for Node.js", | ||
@@ -51,4 +51,4 @@ "repository": "googleapis/nodejs-data-fusion", | ||
"jsdoc": "^3.6.6", | ||
"jsdoc-fresh": "^1.0.2", | ||
"jsdoc-region-tag": "^1.0.6", | ||
"jsdoc-fresh": "^2.0.0", | ||
"jsdoc-region-tag": "^2.0.0", | ||
"linkinator": "^2.13.6", | ||
@@ -55,0 +55,0 @@ "mocha": "^9.2.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2654805
43226