Skip to content

Commit 7477e01

Browse files
feat: AuditConfig for IAM v1 (#611)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 439356405 Source-Link: googleapis/googleapis@afa2ba1 Source-Link: googleapis/googleapis-gen@3e40c17 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2U0MGMxN2UxNTEwYzk1ZmFiNThmYzIxNDNjY2I2MWNjZWNhNTk4OSJ9
1 parent 27512d7 commit 7477e01

12 files changed

+60
-9
lines changed

packages/google-cloud-tasks/samples/generated/v2/cloud_tasks.get_iam_policy.js

+1-1
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

packages/google-cloud-tasks/samples/generated/v2/cloud_tasks.set_iam_policy.js

+7
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;

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

+5-1
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",

packages/google-cloud-tasks/samples/generated/v2beta2/cloud_tasks.get_iam_policy.js

+1-1
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

packages/google-cloud-tasks/samples/generated/v2beta2/cloud_tasks.set_iam_policy.js

+7
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;

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

+5-1
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",

packages/google-cloud-tasks/samples/generated/v2beta3/cloud_tasks.get_iam_policy.js

+1-1
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

packages/google-cloud-tasks/samples/generated/v2beta3/cloud_tasks.set_iam_policy.js

+7
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;

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

+5-1
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",

packages/google-cloud-tasks/src/v2/cloud_tasks_client.ts

+7-1
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.

packages/google-cloud-tasks/src/v2beta2/cloud_tasks_client.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ export class CloudTasksClient {
10471047
* See the operation documentation for the appropriate value for this field.
10481048
* @param {google.iam.v1.GetPolicyOptions} request.options
10491049
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
1050-
* `GetIamPolicy`. This field is only used by Cloud IAM.
1050+
* `GetIamPolicy`.
10511051
* @param {object} [options]
10521052
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
10531053
* @returns {Promise} - The promise which resolves to an array.
@@ -1147,6 +1147,12 @@ export class CloudTasksClient {
11471147
* the policy is limited to a few 10s of KB. An empty policy is a
11481148
* valid policy but certain Cloud Platform services (such as Projects)
11491149
* might reject them.
1150+
* @param {google.protobuf.FieldMask} request.updateMask
1151+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1152+
* the fields in the mask will be modified. If no mask is provided, the
1153+
* following default mask is used:
1154+
*
1155+
* `paths: "bindings, etag"`
11501156
* @param {object} [options]
11511157
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
11521158
* @returns {Promise} - The promise which resolves to an array.

packages/google-cloud-tasks/src/v2beta3/cloud_tasks_client.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ export class CloudTasksClient {
10431043
* See the operation documentation for the appropriate value for this field.
10441044
* @param {google.iam.v1.GetPolicyOptions} request.options
10451045
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
1046-
* `GetIamPolicy`. This field is only used by Cloud IAM.
1046+
* `GetIamPolicy`.
10471047
* @param {object} [options]
10481048
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
10491049
* @returns {Promise} - The promise which resolves to an array.
@@ -1143,6 +1143,12 @@ export class CloudTasksClient {
11431143
* the policy is limited to a few 10s of KB. An empty policy is a
11441144
* valid policy but certain Cloud Platform services (such as Projects)
11451145
* might reject them.
1146+
* @param {google.protobuf.FieldMask} request.updateMask
1147+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1148+
* the fields in the mask will be modified. If no mask is provided, the
1149+
* following default mask is used:
1150+
*
1151+
* `paths: "bindings, etag"`
11461152
* @param {object} [options]
11471153
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
11481154
* @returns {Promise} - The promise which resolves to an array.

0 commit comments

Comments
 (0)