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

Commit f4d14d7

Browse files
feat: AuditConfig for IAM v1 (#388)
PiperOrigin-RevId: 439356405 Source-Link: googleapis/googleapis@afa2ba1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3e40c17e1510c95fab58fc2143ccb61cceca5989 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2U0MGMxN2UxNTEwYzk1ZmFiNThmYzIxNDNjY2I2MWNjZWNhNTk4OSJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 30381bb commit f4d14d7

8 files changed

+40
-6
lines changed

samples/generated/v1/container_analysis.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

samples/generated/v1/container_analysis.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 Containeranalysis library
4249
const {ContainerAnalysisClient} = require('@google-cloud/containeranalysis').v1;

samples/generated/v1/snippet_metadata.google.devtools.containeranalysis.v1.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"segments": [
2323
{
2424
"start": 25,
25-
"end": 59,
25+
"end": 66,
2626
"type": "FULL"
2727
}
2828
],
@@ -38,6 +38,10 @@
3838
{
3939
"name": "policy",
4040
"type": ".google.iam.v1.Policy"
41+
},
42+
{
43+
"name": "update_mask",
44+
"type": ".google.protobuf.FieldMask"
4145
}
4246
],
4347
"resultType": ".google.iam.v1.Policy",

samples/generated/v1beta1/container_analysis_v1_beta1.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

samples/generated/v1beta1/container_analysis_v1_beta1.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 Containeranalysis library
4249
const {ContainerAnalysisV1Beta1Client} = require('@google-cloud/containeranalysis').v1beta1;

samples/generated/v1beta1/snippet_metadata.google.devtools.containeranalysis.v1beta1.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"segments": [
2323
{
2424
"start": 25,
25-
"end": 59,
25+
"end": 66,
2626
"type": "FULL"
2727
}
2828
],
@@ -38,6 +38,10 @@
3838
{
3939
"name": "policy",
4040
"type": ".google.iam.v1.Policy"
41+
},
42+
{
43+
"name": "update_mask",
44+
"type": ".google.protobuf.FieldMask"
4145
}
4246
],
4347
"resultType": ".google.iam.v1.Policy",

src/v1/container_analysis_client.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,12 @@ export class ContainerAnalysisClient {
336336
* the policy is limited to a few 10s of KB. An empty policy is a
337337
* valid policy but certain Cloud Platform services (such as Projects)
338338
* might reject them.
339+
* @param {google.protobuf.FieldMask} request.updateMask
340+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
341+
* the fields in the mask will be modified. If no mask is provided, the
342+
* following default mask is used:
343+
*
344+
* `paths: "bindings, etag"`
339345
* @param {object} [options]
340346
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
341347
* @returns {Promise} - The promise which resolves to an array.
@@ -429,7 +435,7 @@ export class ContainerAnalysisClient {
429435
* See the operation documentation for the appropriate value for this field.
430436
* @param {google.iam.v1.GetPolicyOptions} request.options
431437
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
432-
* `GetIamPolicy`. This field is only used by Cloud IAM.
438+
* `GetIamPolicy`.
433439
* @param {object} [options]
434440
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
435441
* @returns {Promise} - The promise which resolves to an array.

src/v1beta1/container_analysis_v1_beta1_client.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,12 @@ export class ContainerAnalysisV1Beta1Client {
355355
* the policy is limited to a few 10s of KB. An empty policy is a
356356
* valid policy but certain Cloud Platform services (such as Projects)
357357
* might reject them.
358+
* @param {google.protobuf.FieldMask} request.updateMask
359+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
360+
* the fields in the mask will be modified. If no mask is provided, the
361+
* following default mask is used:
362+
*
363+
* `paths: "bindings, etag"`
358364
* @param {object} [options]
359365
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
360366
* @returns {Promise} - The promise which resolves to an array.
@@ -448,7 +454,7 @@ export class ContainerAnalysisV1Beta1Client {
448454
* See the operation documentation for the appropriate value for this field.
449455
* @param {google.iam.v1.GetPolicyOptions} request.options
450456
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
451-
* `GetIamPolicy`. This field is only used by Cloud IAM.
457+
* `GetIamPolicy`.
452458
* @param {object} [options]
453459
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
454460
* @returns {Promise} - The promise which resolves to an array.

0 commit comments

Comments
 (0)