Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit 176dcee

Browse files
feat: AuditConfig for IAM v1 (#611)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 439356405 Source-Link: googleapis/googleapis@afa2ba1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3e40c17e1510c95fab58fc2143ccb61cceca5989 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2U0MGMxN2UxNTEwYzk1ZmFiNThmYzIxNDNjY2I2MWNjZWNhNTk4OSJ9
1 parent 9c2479f commit 176dcee

12 files changed

Lines changed: 60 additions & 9 deletions

samples/generated/v2/cloud_tasks.get_iam_policy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main(resource) {
3232
// const resource = 'abc123'
3333
/**
3434
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
35-
* `GetIamPolicy`. This field is only used by Cloud IAM.
35+
* `GetIamPolicy`.
3636
*/
3737
// const options = {}
3838

samples/generated/v2/cloud_tasks.set_iam_policy.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ function main(resource, policy) {
3737
* might reject them.
3838
*/
3939
// const policy = {}
40+
/**
41+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
42+
* the fields in the mask will be modified. If no mask is provided, the
43+
* following default mask is used:
44+
* `paths: "bindings, etag"`
45+
*/
46+
// const updateMask = {}
4047

4148
// Imports the Tasks library
4249
const {CloudTasksClient} = require('@google-cloud/tasks').v2;

samples/generated/v2/snippet_metadata.google.cloud.tasks.v2.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@
406406
"segments": [
407407
{
408408
"start": 25,
409-
"end": 59,
409+
"end": 66,
410410
"type": "FULL"
411411
}
412412
],
@@ -422,6 +422,10 @@
422422
{
423423
"name": "policy",
424424
"type": ".google.iam.v1.Policy"
425+
},
426+
{
427+
"name": "update_mask",
428+
"type": ".google.protobuf.FieldMask"
425429
}
426430
],
427431
"resultType": ".google.iam.v1.Policy",

samples/generated/v2beta2/cloud_tasks.get_iam_policy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main(resource) {
3232
// const resource = 'abc123'
3333
/**
3434
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
35-
* `GetIamPolicy`. This field is only used by Cloud IAM.
35+
* `GetIamPolicy`.
3636
*/
3737
// const options = {}
3838

samples/generated/v2beta2/cloud_tasks.set_iam_policy.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ function main(resource, policy) {
3737
* might reject them.
3838
*/
3939
// const policy = {}
40+
/**
41+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
42+
* the fields in the mask will be modified. If no mask is provided, the
43+
* following default mask is used:
44+
* `paths: "bindings, etag"`
45+
*/
46+
// const updateMask = {}
4047

4148
// Imports the Tasks library
4249
const {CloudTasksClient} = require('@google-cloud/tasks').v2beta2;

samples/generated/v2beta2/snippet_metadata.google.cloud.tasks.v2beta2.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@
414414
"segments": [
415415
{
416416
"start": 25,
417-
"end": 59,
417+
"end": 66,
418418
"type": "FULL"
419419
}
420420
],
@@ -430,6 +430,10 @@
430430
{
431431
"name": "policy",
432432
"type": ".google.iam.v1.Policy"
433+
},
434+
{
435+
"name": "update_mask",
436+
"type": ".google.protobuf.FieldMask"
433437
}
434438
],
435439
"resultType": ".google.iam.v1.Policy",

samples/generated/v2beta3/cloud_tasks.get_iam_policy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main(resource) {
3232
// const resource = 'abc123'
3333
/**
3434
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
35-
* `GetIamPolicy`. This field is only used by Cloud IAM.
35+
* `GetIamPolicy`.
3636
*/
3737
// const options = {}
3838

samples/generated/v2beta3/cloud_tasks.set_iam_policy.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ function main(resource, policy) {
3737
* might reject them.
3838
*/
3939
// const policy = {}
40+
/**
41+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
42+
* the fields in the mask will be modified. If no mask is provided, the
43+
* following default mask is used:
44+
* `paths: "bindings, etag"`
45+
*/
46+
// const updateMask = {}
4047

4148
// Imports the Tasks library
4249
const {CloudTasksClient} = require('@google-cloud/tasks').v2beta3;

samples/generated/v2beta3/snippet_metadata.google.cloud.tasks.v2beta3.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@
414414
"segments": [
415415
{
416416
"start": 25,
417-
"end": 59,
417+
"end": 66,
418418
"type": "FULL"
419419
}
420420
],
@@ -430,6 +430,10 @@
430430
{
431431
"name": "policy",
432432
"type": ".google.iam.v1.Policy"
433+
},
434+
{
435+
"name": "update_mask",
436+
"type": ".google.protobuf.FieldMask"
433437
}
434438
],
435439
"resultType": ".google.iam.v1.Policy",

src/v2/cloud_tasks_client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ export class CloudTasksClient {
10261026
* See the operation documentation for the appropriate value for this field.
10271027
* @param {google.iam.v1.GetPolicyOptions} request.options
10281028
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
1029-
* `GetIamPolicy`. This field is only used by Cloud IAM.
1029+
* `GetIamPolicy`.
10301030
* @param {object} [options]
10311031
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
10321032
* @returns {Promise} - The promise which resolves to an array.
@@ -1126,6 +1126,12 @@ export class CloudTasksClient {
11261126
* the policy is limited to a few 10s of KB. An empty policy is a
11271127
* valid policy but certain Cloud Platform services (such as Projects)
11281128
* might reject them.
1129+
* @param {google.protobuf.FieldMask} request.updateMask
1130+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1131+
* the fields in the mask will be modified. If no mask is provided, the
1132+
* following default mask is used:
1133+
*
1134+
* `paths: "bindings, etag"`
11291135
* @param {object} [options]
11301136
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
11311137
* @returns {Promise} - The promise which resolves to an array.

0 commit comments

Comments
 (0)