diff --git a/samples/generated/v2/cloud_tasks.get_iam_policy.js b/samples/generated/v2/cloud_tasks.get_iam_policy.js index 065af333..39f8865f 100644 --- a/samples/generated/v2/cloud_tasks.get_iam_policy.js +++ b/samples/generated/v2/cloud_tasks.get_iam_policy.js @@ -32,7 +32,7 @@ function main(resource) { // const resource = 'abc123' /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. */ // const options = {} diff --git a/samples/generated/v2/cloud_tasks.set_iam_policy.js b/samples/generated/v2/cloud_tasks.set_iam_policy.js index 6d27f732..7d66dc61 100644 --- a/samples/generated/v2/cloud_tasks.set_iam_policy.js +++ b/samples/generated/v2/cloud_tasks.set_iam_policy.js @@ -37,6 +37,13 @@ function main(resource, policy) { * might reject them. */ // const policy = {} + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + */ + // const updateMask = {} // Imports the Tasks library const {CloudTasksClient} = require('@google-cloud/tasks').v2; diff --git a/samples/generated/v2/snippet_metadata.google.cloud.tasks.v2.json b/samples/generated/v2/snippet_metadata.google.cloud.tasks.v2.json index 678d7552..c3c4cc9f 100644 --- a/samples/generated/v2/snippet_metadata.google.cloud.tasks.v2.json +++ b/samples/generated/v2/snippet_metadata.google.cloud.tasks.v2.json @@ -406,7 +406,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 66, "type": "FULL" } ], @@ -422,6 +422,10 @@ { "name": "policy", "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.iam.v1.Policy", diff --git a/samples/generated/v2beta2/cloud_tasks.get_iam_policy.js b/samples/generated/v2beta2/cloud_tasks.get_iam_policy.js index 3693de74..6a0f592a 100644 --- a/samples/generated/v2beta2/cloud_tasks.get_iam_policy.js +++ b/samples/generated/v2beta2/cloud_tasks.get_iam_policy.js @@ -32,7 +32,7 @@ function main(resource) { // const resource = 'abc123' /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. */ // const options = {} diff --git a/samples/generated/v2beta2/cloud_tasks.set_iam_policy.js b/samples/generated/v2beta2/cloud_tasks.set_iam_policy.js index 23d2b767..bd8a96b6 100644 --- a/samples/generated/v2beta2/cloud_tasks.set_iam_policy.js +++ b/samples/generated/v2beta2/cloud_tasks.set_iam_policy.js @@ -37,6 +37,13 @@ function main(resource, policy) { * might reject them. */ // const policy = {} + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + */ + // const updateMask = {} // Imports the Tasks library const {CloudTasksClient} = require('@google-cloud/tasks').v2beta2; diff --git a/samples/generated/v2beta2/snippet_metadata.google.cloud.tasks.v2beta2.json b/samples/generated/v2beta2/snippet_metadata.google.cloud.tasks.v2beta2.json index 8776c8d2..e244c953 100644 --- a/samples/generated/v2beta2/snippet_metadata.google.cloud.tasks.v2beta2.json +++ b/samples/generated/v2beta2/snippet_metadata.google.cloud.tasks.v2beta2.json @@ -414,7 +414,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 66, "type": "FULL" } ], @@ -430,6 +430,10 @@ { "name": "policy", "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.iam.v1.Policy", diff --git a/samples/generated/v2beta3/cloud_tasks.get_iam_policy.js b/samples/generated/v2beta3/cloud_tasks.get_iam_policy.js index 5a8f9ba3..a89bef3a 100644 --- a/samples/generated/v2beta3/cloud_tasks.get_iam_policy.js +++ b/samples/generated/v2beta3/cloud_tasks.get_iam_policy.js @@ -32,7 +32,7 @@ function main(resource) { // const resource = 'abc123' /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. */ // const options = {} diff --git a/samples/generated/v2beta3/cloud_tasks.set_iam_policy.js b/samples/generated/v2beta3/cloud_tasks.set_iam_policy.js index b4d77d03..fe302d34 100644 --- a/samples/generated/v2beta3/cloud_tasks.set_iam_policy.js +++ b/samples/generated/v2beta3/cloud_tasks.set_iam_policy.js @@ -37,6 +37,13 @@ function main(resource, policy) { * might reject them. */ // const policy = {} + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + */ + // const updateMask = {} // Imports the Tasks library const {CloudTasksClient} = require('@google-cloud/tasks').v2beta3; diff --git a/samples/generated/v2beta3/snippet_metadata.google.cloud.tasks.v2beta3.json b/samples/generated/v2beta3/snippet_metadata.google.cloud.tasks.v2beta3.json index f76d5d76..ca6617ee 100644 --- a/samples/generated/v2beta3/snippet_metadata.google.cloud.tasks.v2beta3.json +++ b/samples/generated/v2beta3/snippet_metadata.google.cloud.tasks.v2beta3.json @@ -414,7 +414,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 66, "type": "FULL" } ], @@ -430,6 +430,10 @@ { "name": "policy", "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.iam.v1.Policy", diff --git a/src/v2/cloud_tasks_client.ts b/src/v2/cloud_tasks_client.ts index 382a2db1..9f4652d8 100644 --- a/src/v2/cloud_tasks_client.ts +++ b/src/v2/cloud_tasks_client.ts @@ -1026,7 +1026,7 @@ export class CloudTasksClient { * 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. + * `GetIamPolicy`. * @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. @@ -1126,6 +1126,12 @@ export class CloudTasksClient { * 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 {google.protobuf.FieldMask} request.updateMask + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * + * `paths: "bindings, etag"` * @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. diff --git a/src/v2beta2/cloud_tasks_client.ts b/src/v2beta2/cloud_tasks_client.ts index d2720632..9b026517 100644 --- a/src/v2beta2/cloud_tasks_client.ts +++ b/src/v2beta2/cloud_tasks_client.ts @@ -1047,7 +1047,7 @@ export class CloudTasksClient { * 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. + * `GetIamPolicy`. * @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. @@ -1147,6 +1147,12 @@ export class CloudTasksClient { * 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 {google.protobuf.FieldMask} request.updateMask + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * + * `paths: "bindings, etag"` * @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. diff --git a/src/v2beta3/cloud_tasks_client.ts b/src/v2beta3/cloud_tasks_client.ts index 644dd575..84d84f03 100644 --- a/src/v2beta3/cloud_tasks_client.ts +++ b/src/v2beta3/cloud_tasks_client.ts @@ -1043,7 +1043,7 @@ export class CloudTasksClient { * 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. + * `GetIamPolicy`. * @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. @@ -1143,6 +1143,12 @@ export class CloudTasksClient { * 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 {google.protobuf.FieldMask} request.updateMask + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * + * `paths: "bindings, etag"` * @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.