diff --git a/packages/google-cloud-bigquery-connection/linkinator.config.json b/packages/google-cloud-bigquery-connection/linkinator.config.json
index 29a223b6db6..0121dfa684f 100644
--- a/packages/google-cloud-bigquery-connection/linkinator.config.json
+++ b/packages/google-cloud-bigquery-connection/linkinator.config.json
@@ -6,5 +6,5 @@
"img.shields.io"
],
"silent": true,
- "concurrency": 10
+ "concurrency": 5
}
diff --git a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.create_connection.js b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.create_connection.js
index 6c13fa086c2..18edbab6dfa 100644
--- a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.create_connection.js
+++ b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.create_connection.js
@@ -31,7 +31,7 @@ function main(parent, connection) {
/**
* Required. Connection to create.
*/
- // const connection = ''
+ // const connection = {}
// Imports the Connection library
const {ConnectionServiceClient} =
@@ -40,7 +40,7 @@ function main(parent, connection) {
// Instantiates a client
const connectionClient = new ConnectionServiceClient();
- async function createConnection() {
+ async function callCreateConnection() {
// Construct request
const request = {
parent,
@@ -52,7 +52,7 @@ function main(parent, connection) {
console.log(response);
}
- createConnection();
+ callCreateConnection();
// [END bigqueryconnection_v1_generated_ConnectionService_CreateConnection_async]
}
diff --git a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.delete_connection.js b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.delete_connection.js
index 5954a5e7c88..20a10ba2a13 100644
--- a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.delete_connection.js
+++ b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.delete_connection.js
@@ -32,7 +32,7 @@ function main(name) {
// Instantiates a client
const connectionClient = new ConnectionServiceClient();
- async function deleteConnection() {
+ async function callDeleteConnection() {
// Construct request
const request = {
name,
@@ -43,7 +43,7 @@ function main(name) {
console.log(response);
}
- deleteConnection();
+ callDeleteConnection();
// [END bigqueryconnection_v1_generated_ConnectionService_DeleteConnection_async]
}
diff --git a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_connection.js b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_connection.js
index 04b450cc5aa..5cf1f1b81d5 100644
--- a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_connection.js
+++ b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_connection.js
@@ -32,7 +32,7 @@ function main(name) {
// Instantiates a client
const connectionClient = new ConnectionServiceClient();
- async function getConnection() {
+ async function callGetConnection() {
// Construct request
const request = {
name,
@@ -43,7 +43,7 @@ function main(name) {
console.log(response);
}
- getConnection();
+ callGetConnection();
// [END bigqueryconnection_v1_generated_ConnectionService_GetConnection_async]
}
diff --git a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_iam_policy.js b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_iam_policy.js
index 4d77004bbd3..4a195e29ca7 100644
--- a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_iam_policy.js
+++ b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_iam_policy.js
@@ -28,7 +28,7 @@ function main(resource) {
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
* `GetIamPolicy`. This field is only used by Cloud IAM.
*/
- // const options = ''
+ // const options = {}
// Imports the Connection library
const {ConnectionServiceClient} =
@@ -37,7 +37,7 @@ function main(resource) {
// Instantiates a client
const connectionClient = new ConnectionServiceClient();
- async function getIamPolicy() {
+ async function callGetIamPolicy() {
// Construct request
const request = {
resource,
@@ -48,7 +48,7 @@ function main(resource) {
console.log(response);
}
- getIamPolicy();
+ callGetIamPolicy();
// [END bigqueryconnection_v1_generated_ConnectionService_GetIamPolicy_async]
}
diff --git a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.list_connections.js b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.list_connections.js
index a08bbf1081c..9807345c5d2 100644
--- a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.list_connections.js
+++ b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.list_connections.js
@@ -40,7 +40,7 @@ function main(parent, pageSize) {
// Instantiates a client
const connectionClient = new ConnectionServiceClient();
- async function listConnections() {
+ async function callListConnections() {
// Construct request
const request = {
parent,
@@ -54,7 +54,7 @@ function main(parent, pageSize) {
}
}
- listConnections();
+ callListConnections();
// [END bigqueryconnection_v1_generated_ConnectionService_ListConnections_async]
}
diff --git a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.set_iam_policy.js b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.set_iam_policy.js
index ef29a2599fc..1f30cb81b2f 100644
--- a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.set_iam_policy.js
+++ b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.set_iam_policy.js
@@ -30,7 +30,7 @@ function main(resource, policy) {
* valid policy but certain Cloud Platform services (such as Projects)
* might reject them.
*/
- // const policy = ''
+ // const policy = {}
// Imports the Connection library
const {ConnectionServiceClient} =
@@ -39,7 +39,7 @@ function main(resource, policy) {
// Instantiates a client
const connectionClient = new ConnectionServiceClient();
- async function setIamPolicy() {
+ async function callSetIamPolicy() {
// Construct request
const request = {
resource,
@@ -51,7 +51,7 @@ function main(resource, policy) {
console.log(response);
}
- setIamPolicy();
+ callSetIamPolicy();
// [END bigqueryconnection_v1_generated_ConnectionService_SetIamPolicy_async]
}
diff --git a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.test_iam_permissions.js b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.test_iam_permissions.js
index 2c66e4f1e37..1acbd22a396 100644
--- a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.test_iam_permissions.js
+++ b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.test_iam_permissions.js
@@ -28,7 +28,7 @@ function main(resource, permissions) {
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as '*' or 'storage.*') are not allowed. For more
* information see
- * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
+ * IAM Overview (https://cloud.google.com/iam/docs/overview#permissions).
*/
// const permissions = 'abc123'
@@ -39,7 +39,7 @@ function main(resource, permissions) {
// Instantiates a client
const connectionClient = new ConnectionServiceClient();
- async function testIamPermissions() {
+ async function callTestIamPermissions() {
// Construct request
const request = {
resource,
@@ -51,7 +51,7 @@ function main(resource, permissions) {
console.log(response);
}
- testIamPermissions();
+ callTestIamPermissions();
// [END bigqueryconnection_v1_generated_ConnectionService_TestIamPermissions_async]
}
diff --git a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.update_connection.js b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.update_connection.js
index b5a2e905486..0a5fd00dbe7 100644
--- a/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.update_connection.js
+++ b/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.update_connection.js
@@ -27,11 +27,11 @@ function main(name, connection, updateMask) {
/**
* Required. Connection containing the updated fields.
*/
- // const connection = ''
+ // const connection = {}
/**
* Required. Update mask for the connection fields to be updated.
*/
- // const updateMask = ''
+ // const updateMask = {}
// Imports the Connection library
const {ConnectionServiceClient} =
@@ -40,7 +40,7 @@ function main(name, connection, updateMask) {
// Instantiates a client
const connectionClient = new ConnectionServiceClient();
- async function updateConnection() {
+ async function callUpdateConnection() {
// Construct request
const request = {
name,
@@ -53,7 +53,7 @@ function main(name, connection, updateMask) {
console.log(response);
}
- updateConnection();
+ callUpdateConnection();
// [END bigqueryconnection_v1_generated_ConnectionService_UpdateConnection_async]
}
diff --git a/packages/google-cloud-bigquery-connection/src/v1/connection_service_client.ts b/packages/google-cloud-bigquery-connection/src/v1/connection_service_client.ts
index 1a6fa938c62..72720f0d5d5 100644
--- a/packages/google-cloud-bigquery-connection/src/v1/connection_service_client.ts
+++ b/packages/google-cloud-bigquery-connection/src/v1/connection_service_client.ts
@@ -327,6 +327,28 @@ export class ConnectionServiceClient {
// -------------------
// -- Service calls --
// -------------------
+ /**
+ * Creates a new connection.
+ *
+ * @param {Object} request
+ * The request object that will be sent.
+ * @param {string} request.parent
+ * Required. Parent resource name.
+ * Must be in the format `projects/{project_id}/locations/{location_id}`
+ * @param {string} [request.connectionId]
+ * Optional. Connection id that should be assigned to the created connection.
+ * @param {google.cloud.bigquery.connection.v1.Connection} request.connection
+ * Required. Connection to create.
+ * @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 [Connection]{@link google.cloud.bigquery.connection.v1.Connection}.
+ * Please see the
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
+ * for more details and examples.
+ * @example
include:samples/generated/v1/connection_service.create_connection.js
+ * region_tag:bigqueryconnection_v1_generated_ConnectionService_CreateConnection_async
+ */
createConnection(
request?: protos.google.cloud.bigquery.connection.v1.ICreateConnectionRequest,
options?: CallOptions
@@ -361,28 +383,6 @@ export class ConnectionServiceClient {
{} | null | undefined
>
): void;
- /**
- * Creates a new connection.
- *
- * @param {Object} request
- * The request object that will be sent.
- * @param {string} request.parent
- * Required. Parent resource name.
- * Must be in the format `projects/{project_id}/locations/{location_id}`
- * @param {string} [request.connectionId]
- * Optional. Connection id that should be assigned to the created connection.
- * @param {google.cloud.bigquery.connection.v1.Connection} request.connection
- * Required. Connection to create.
- * @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 [Connection]{@link google.cloud.bigquery.connection.v1.Connection}.
- * 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.createConnection(request);
- */
createConnection(
request?: protos.google.cloud.bigquery.connection.v1.ICreateConnectionRequest,
optionsOrCallback?:
@@ -429,6 +429,24 @@ export class ConnectionServiceClient {
this.initialize();
return this.innerApiCalls.createConnection(request, options, callback);
}
+ /**
+ * Returns specified connection.
+ *
+ * @param {Object} request
+ * The request object that will be sent.
+ * @param {string} request.name
+ * Required. Name of the requested connection, for example:
+ * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
+ * @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 [Connection]{@link google.cloud.bigquery.connection.v1.Connection}.
+ * Please see the
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
+ * for more details and examples.
+ * @example include:samples/generated/v1/connection_service.get_connection.js
+ * region_tag:bigqueryconnection_v1_generated_ConnectionService_GetConnection_async
+ */
getConnection(
request?: protos.google.cloud.bigquery.connection.v1.IGetConnectionRequest,
options?: CallOptions
@@ -463,24 +481,6 @@ export class ConnectionServiceClient {
{} | null | undefined
>
): void;
- /**
- * Returns specified connection.
- *
- * @param {Object} request
- * The request object that will be sent.
- * @param {string} request.name
- * Required. Name of the requested connection, for example:
- * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
- * @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 [Connection]{@link google.cloud.bigquery.connection.v1.Connection}.
- * 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.getConnection(request);
- */
getConnection(
request?: protos.google.cloud.bigquery.connection.v1.IGetConnectionRequest,
optionsOrCallback?:
@@ -527,6 +527,29 @@ export class ConnectionServiceClient {
this.initialize();
return this.innerApiCalls.getConnection(request, options, callback);
}
+ /**
+ * Updates the specified connection. For security reasons, also resets
+ * credential if connection properties are in the update field mask.
+ *
+ * @param {Object} request
+ * The request object that will be sent.
+ * @param {string} request.name
+ * Required. Name of the connection to update, for example:
+ * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
+ * @param {google.cloud.bigquery.connection.v1.Connection} request.connection
+ * Required. Connection containing the updated fields.
+ * @param {google.protobuf.FieldMask} request.updateMask
+ * Required. Update mask for the connection fields to be updated.
+ * @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 [Connection]{@link google.cloud.bigquery.connection.v1.Connection}.
+ * Please see the
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
+ * for more details and examples.
+ * @example include:samples/generated/v1/connection_service.update_connection.js
+ * region_tag:bigqueryconnection_v1_generated_ConnectionService_UpdateConnection_async
+ */
updateConnection(
request?: protos.google.cloud.bigquery.connection.v1.IUpdateConnectionRequest,
options?: CallOptions
@@ -561,29 +584,6 @@ export class ConnectionServiceClient {
{} | null | undefined
>
): void;
- /**
- * Updates the specified connection. For security reasons, also resets
- * credential if connection properties are in the update field mask.
- *
- * @param {Object} request
- * The request object that will be sent.
- * @param {string} request.name
- * Required. Name of the connection to update, for example:
- * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
- * @param {google.cloud.bigquery.connection.v1.Connection} request.connection
- * Required. Connection containing the updated fields.
- * @param {google.protobuf.FieldMask} request.updateMask
- * Required. Update mask for the connection fields to be updated.
- * @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 [Connection]{@link google.cloud.bigquery.connection.v1.Connection}.
- * 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.updateConnection(request);
- */
updateConnection(
request?: protos.google.cloud.bigquery.connection.v1.IUpdateConnectionRequest,
optionsOrCallback?:
@@ -630,6 +630,24 @@ export class ConnectionServiceClient {
this.initialize();
return this.innerApiCalls.updateConnection(request, options, callback);
}
+ /**
+ * Deletes connection and associated credential.
+ *
+ * @param {Object} request
+ * The request object that will be sent.
+ * @param {string} request.name
+ * Required. Name of the deleted connection, for example:
+ * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
+ * @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 [Empty]{@link google.protobuf.Empty}.
+ * Please see the
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
+ * for more details and examples.
+ * @example include:samples/generated/v1/connection_service.delete_connection.js
+ * region_tag:bigqueryconnection_v1_generated_ConnectionService_DeleteConnection_async
+ */
deleteConnection(
request?: protos.google.cloud.bigquery.connection.v1.IDeleteConnectionRequest,
options?: CallOptions
@@ -664,24 +682,6 @@ export class ConnectionServiceClient {
{} | null | undefined
>
): void;
- /**
- * Deletes connection and associated credential.
- *
- * @param {Object} request
- * The request object that will be sent.
- * @param {string} request.name
- * Required. Name of the deleted connection, for example:
- * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
- * @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 [Empty]{@link google.protobuf.Empty}.
- * 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.deleteConnection(request);
- */
deleteConnection(
request?: protos.google.cloud.bigquery.connection.v1.IDeleteConnectionRequest,
optionsOrCallback?:
@@ -728,6 +728,29 @@ export class ConnectionServiceClient {
this.initialize();
return this.innerApiCalls.deleteConnection(request, options, callback);
}
+ /**
+ * Gets the access control policy for a resource.
+ * Returns an empty policy if the resource exists and does not have a policy
+ * set.
+ *
+ * @param {Object} request
+ * The request object that will be sent.
+ * @param {string} request.resource
+ * REQUIRED: The resource for which the policy is being requested.
+ * See the operation documentation for the appropriate value for this field.
+ * @param {google.iam.v1.GetPolicyOptions} request.options
+ * OPTIONAL: A `GetPolicyOptions` object for specifying options to
+ * `GetIamPolicy`. This field is only used by Cloud IAM.
+ * @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 [Policy]{@link google.iam.v1.Policy}.
+ * Please see the
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
+ * for more details and examples.
+ * @example include:samples/generated/v1/connection_service.get_iam_policy.js
+ * region_tag:bigqueryconnection_v1_generated_ConnectionService_GetIamPolicy_async
+ */
getIamPolicy(
request?: protos.google.iam.v1.IGetIamPolicyRequest,
options?: CallOptions
@@ -755,29 +778,6 @@ export class ConnectionServiceClient {
{} | null | undefined
>
): void;
- /**
- * Gets the access control policy for a resource.
- * Returns an empty policy if the resource exists and does not have a policy
- * set.
- *
- * @param {Object} request
- * The request object that will be sent.
- * @param {string} request.resource
- * REQUIRED: The resource for which the policy is being requested.
- * See the operation documentation for the appropriate value for this field.
- * @param {google.iam.v1.GetPolicyOptions} request.options
- * OPTIONAL: A `GetPolicyOptions` object for specifying options to
- * `GetIamPolicy`. This field is only used by Cloud IAM.
- * @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 [Policy]{@link google.iam.v1.Policy}.
- * 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.getIamPolicy(request);
- */
getIamPolicy(
request?: protos.google.iam.v1.IGetIamPolicyRequest,
optionsOrCallback?:
@@ -817,6 +817,32 @@ export class ConnectionServiceClient {
this.initialize();
return this.innerApiCalls.getIamPolicy(request, options, callback);
}
+ /**
+ * Sets the access control policy on the specified resource. Replaces any
+ * existing policy.
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+ *
+ * @param {Object} request
+ * The request object that will be sent.
+ * @param {string} request.resource
+ * REQUIRED: The resource for which the policy is being specified.
+ * See the operation documentation for the appropriate value for this field.
+ * @param {google.iam.v1.Policy} request.policy
+ * REQUIRED: The complete policy to be applied to the `resource`. The size of
+ * the policy is limited to a few 10s of KB. An empty policy is a
+ * valid policy but certain Cloud Platform services (such as Projects)
+ * might reject them.
+ * @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 [Policy]{@link google.iam.v1.Policy}.
+ * Please see the
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
+ * for more details and examples.
+ * @example include:samples/generated/v1/connection_service.set_iam_policy.js
+ * region_tag:bigqueryconnection_v1_generated_ConnectionService_SetIamPolicy_async
+ */
setIamPolicy(
request?: protos.google.iam.v1.ISetIamPolicyRequest,
options?: CallOptions
@@ -844,32 +870,6 @@ export class ConnectionServiceClient {
{} | null | undefined
>
): void;
- /**
- * Sets the access control policy on the specified resource. Replaces any
- * existing policy.
- *
- * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
- *
- * @param {Object} request
- * The request object that will be sent.
- * @param {string} request.resource
- * REQUIRED: The resource for which the policy is being specified.
- * See the operation documentation for the appropriate value for this field.
- * @param {google.iam.v1.Policy} request.policy
- * REQUIRED: The complete policy to be applied to the `resource`. The size of
- * the policy is limited to a few 10s of KB. An empty policy is a
- * valid policy but certain Cloud Platform services (such as Projects)
- * might reject them.
- * @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 [Policy]{@link google.iam.v1.Policy}.
- * 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.setIamPolicy(request);
- */
setIamPolicy(
request?: protos.google.iam.v1.ISetIamPolicyRequest,
optionsOrCallback?:
@@ -909,33 +909,6 @@ export class ConnectionServiceClient {
this.initialize();
return this.innerApiCalls.setIamPolicy(request, options, callback);
}
- testIamPermissions(
- request?: protos.google.iam.v1.ITestIamPermissionsRequest,
- options?: CallOptions
- ): Promise<
- [
- protos.google.iam.v1.ITestIamPermissionsResponse,
- protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
- {} | undefined
- ]
- >;
- testIamPermissions(
- request: protos.google.iam.v1.ITestIamPermissionsRequest,
- options: CallOptions,
- callback: Callback<
- protos.google.iam.v1.ITestIamPermissionsResponse,
- protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined,
- {} | null | undefined
- >
- ): void;
- testIamPermissions(
- request: protos.google.iam.v1.ITestIamPermissionsRequest,
- callback: Callback<
- protos.google.iam.v1.ITestIamPermissionsResponse,
- protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined,
- {} | null | undefined
- >
- ): void;
/**
* Returns permissions that a caller has on the specified resource.
* If the resource does not exist, this will return an empty set of
@@ -962,9 +935,36 @@ export class ConnectionServiceClient {
* 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.testIamPermissions(request);
+ * @example include:samples/generated/v1/connection_service.test_iam_permissions.js
+ * region_tag:bigqueryconnection_v1_generated_ConnectionService_TestIamPermissions_async
*/
+ testIamPermissions(
+ request?: protos.google.iam.v1.ITestIamPermissionsRequest,
+ options?: CallOptions
+ ): Promise<
+ [
+ protos.google.iam.v1.ITestIamPermissionsResponse,
+ protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
+ {} | undefined
+ ]
+ >;
+ testIamPermissions(
+ request: protos.google.iam.v1.ITestIamPermissionsRequest,
+ options: CallOptions,
+ callback: Callback<
+ protos.google.iam.v1.ITestIamPermissionsResponse,
+ protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined,
+ {} | null | undefined
+ >
+ ): void;
+ testIamPermissions(
+ request: protos.google.iam.v1.ITestIamPermissionsRequest,
+ callback: Callback<
+ protos.google.iam.v1.ITestIamPermissionsResponse,
+ protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined,
+ {} | null | undefined
+ >
+ ): void;
testIamPermissions(
request?: protos.google.iam.v1.ITestIamPermissionsRequest,
optionsOrCallback?:
@@ -1005,6 +1005,31 @@ export class ConnectionServiceClient {
return this.innerApiCalls.testIamPermissions(request, options, callback);
}
+ /**
+ * Returns a list of connections in the given project.
+ *
+ * @param {Object} request
+ * The request object that will be sent.
+ * @param {string} request.parent
+ * Required. Parent resource name.
+ * Must be in the form: `projects/{project_id}/locations/{location_id}`
+ * @param {number} request.pageSize
+ * Required. Page size.
+ * @param {string} request.pageToken
+ * Page token.
+ * @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 [Connection]{@link google.cloud.bigquery.connection.v1.Connection}.
+ * 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 `listConnectionsAsync()`
+ * 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.
+ */
listConnections(
request?: protos.google.cloud.bigquery.connection.v1.IListConnectionsRequest,
options?: CallOptions
@@ -1036,31 +1061,6 @@ export class ConnectionServiceClient {
protos.google.cloud.bigquery.connection.v1.IConnection
>
): void;
- /**
- * Returns a list of connections in the given project.
- *
- * @param {Object} request
- * The request object that will be sent.
- * @param {string} request.parent
- * Required. Parent resource name.
- * Must be in the form: `projects/{project_id}/locations/{location_id}`
- * @param {number} request.pageSize
- * Required. Page size.
- * @param {string} request.pageToken
- * Page token.
- * @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 [Connection]{@link google.cloud.bigquery.connection.v1.Connection}.
- * 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 `listConnectionsAsync()`
- * 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.
- */
listConnections(
request?: protos.google.cloud.bigquery.connection.v1.IListConnectionsRequest,
optionsOrCallback?:
@@ -1173,11 +1173,8 @@ export class ConnectionServiceClient {
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* for more details and examples.
- * @example
- * const iterable = client.listConnectionsAsync(request);
- * for await (const response of iterable) {
- * // process response
- * }
+ * @example include:samples/generated/v1/connection_service.list_connections.js
+ * region_tag:bigqueryconnection_v1_generated_ConnectionService_ListConnections_async
*/
listConnectionsAsync(
request?: protos.google.cloud.bigquery.connection.v1.IListConnectionsRequest,
@@ -1191,7 +1188,6 @@ export class ConnectionServiceClient {
gax.routingHeader.fromParams({
parent: request.parent || '',
});
- options = options || {};
const defaultCallSettings = this._defaults['listConnections'];
const callSettings = defaultCallSettings.merge(options);
this.initialize();