Skip to content

Commit ca681ce

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

16 files changed

+100
-15
lines changed

packages/google-cloud-resourcemanager/samples/generated/v3/folders.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

packages/google-cloud-resourcemanager/samples/generated/v3/folders.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 Resourcemanager library
4249
const {FoldersClient} = require('@google-cloud/resource-manager').v3;

packages/google-cloud-resourcemanager/samples/generated/v3/organizations.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

packages/google-cloud-resourcemanager/samples/generated/v3/organizations.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 Resourcemanager library
4249
const {OrganizationsClient} = require('@google-cloud/resource-manager').v3;

packages/google-cloud-resourcemanager/samples/generated/v3/projects.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

packages/google-cloud-resourcemanager/samples/generated/v3/projects.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 Resourcemanager library
4249
const {ProjectsClient} = require('@google-cloud/resource-manager').v3;

packages/google-cloud-resourcemanager/samples/generated/v3/snippet_metadata.google.cloud.resourcemanager.v3.json

Lines changed: 25 additions & 5 deletions
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",
@@ -634,7 +638,7 @@
634638
"segments": [
635639
{
636640
"start": 25,
637-
"end": 59,
641+
"end": 66,
638642
"type": "FULL"
639643
}
640644
],
@@ -650,6 +654,10 @@
650654
{
651655
"name": "policy",
652656
"type": ".google.iam.v1.Policy"
657+
},
658+
{
659+
"name": "update_mask",
660+
"type": ".google.protobuf.FieldMask"
653661
}
654662
],
655663
"resultType": ".google.iam.v1.Policy",
@@ -1114,7 +1122,7 @@
11141122
"segments": [
11151123
{
11161124
"start": 25,
1117-
"end": 59,
1125+
"end": 66,
11181126
"type": "FULL"
11191127
}
11201128
],
@@ -1130,6 +1138,10 @@
11301138
{
11311139
"name": "policy",
11321140
"type": ".google.iam.v1.Policy"
1141+
},
1142+
{
1143+
"name": "update_mask",
1144+
"type": ".google.protobuf.FieldMask"
11331145
}
11341146
],
11351147
"resultType": ".google.iam.v1.Policy",
@@ -1606,7 +1618,7 @@
16061618
"segments": [
16071619
{
16081620
"start": 25,
1609-
"end": 59,
1621+
"end": 66,
16101622
"type": "FULL"
16111623
}
16121624
],
@@ -1622,6 +1634,10 @@
16221634
{
16231635
"name": "policy",
16241636
"type": ".google.iam.v1.Policy"
1637+
},
1638+
{
1639+
"name": "update_mask",
1640+
"type": ".google.protobuf.FieldMask"
16251641
}
16261642
],
16271643
"resultType": ".google.iam.v1.Policy",
@@ -1966,7 +1982,7 @@
19661982
"segments": [
19671983
{
19681984
"start": 25,
1969-
"end": 59,
1985+
"end": 66,
19701986
"type": "FULL"
19711987
}
19721988
],
@@ -1982,6 +1998,10 @@
19821998
{
19831999
"name": "policy",
19842000
"type": ".google.iam.v1.Policy"
2001+
},
2002+
{
2003+
"name": "update_mask",
2004+
"type": ".google.protobuf.FieldMask"
19852005
}
19862006
],
19872007
"resultType": ".google.iam.v1.Policy",

packages/google-cloud-resourcemanager/samples/generated/v3/tag_keys.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

packages/google-cloud-resourcemanager/samples/generated/v3/tag_keys.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 Resourcemanager library
4249
const {TagKeysClient} = require('@google-cloud/resource-manager').v3;

packages/google-cloud-resourcemanager/samples/generated/v3/tag_values.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

packages/google-cloud-resourcemanager/samples/generated/v3/tag_values.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 Resourcemanager library
4249
const {TagValuesClient} = require('@google-cloud/resource-manager').v3;

packages/google-cloud-resourcemanager/src/v3/folders_client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ export class FoldersClient {
530530
* See the operation documentation for the appropriate value for this field.
531531
* @param {google.iam.v1.GetPolicyOptions} request.options
532532
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
533-
* `GetIamPolicy`. This field is only used by Cloud IAM.
533+
* `GetIamPolicy`.
534534
* @param {object} [options]
535535
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
536536
* @returns {Promise} - The promise which resolves to an array.
@@ -624,6 +624,12 @@ export class FoldersClient {
624624
* the policy is limited to a few 10s of KB. An empty policy is a
625625
* valid policy but certain Cloud Platform services (such as Projects)
626626
* might reject them.
627+
* @param {google.protobuf.FieldMask} request.updateMask
628+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
629+
* the fields in the mask will be modified. If no mask is provided, the
630+
* following default mask is used:
631+
*
632+
* `paths: "bindings, etag"`
627633
* @param {object} [options]
628634
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
629635
* @returns {Promise} - The promise which resolves to an array.

packages/google-cloud-resourcemanager/src/v3/organizations_client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ export class OrganizationsClient {
445445
* See the operation documentation for the appropriate value for this field.
446446
* @param {google.iam.v1.GetPolicyOptions} request.options
447447
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
448-
* `GetIamPolicy`. This field is only used by Cloud IAM.
448+
* `GetIamPolicy`.
449449
* @param {object} [options]
450450
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
451451
* @returns {Promise} - The promise which resolves to an array.
@@ -540,6 +540,12 @@ export class OrganizationsClient {
540540
* the policy is limited to a few 10s of KB. An empty policy is a
541541
* valid policy but certain Cloud Platform services (such as Projects)
542542
* might reject them.
543+
* @param {google.protobuf.FieldMask} request.updateMask
544+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
545+
* the fields in the mask will be modified. If no mask is provided, the
546+
* following default mask is used:
547+
*
548+
* `paths: "bindings, etag"`
543549
* @param {object} [options]
544550
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
545551
* @returns {Promise} - The promise which resolves to an array.

packages/google-cloud-resourcemanager/src/v3/projects_client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ export class ProjectsClient {
524524
* See the operation documentation for the appropriate value for this field.
525525
* @param {google.iam.v1.GetPolicyOptions} request.options
526526
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
527-
* `GetIamPolicy`. This field is only used by Cloud IAM.
527+
* `GetIamPolicy`.
528528
* @param {object} [options]
529529
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
530530
* @returns {Promise} - The promise which resolves to an array.
@@ -657,6 +657,12 @@ export class ProjectsClient {
657657
* the policy is limited to a few 10s of KB. An empty policy is a
658658
* valid policy but certain Cloud Platform services (such as Projects)
659659
* might reject them.
660+
* @param {google.protobuf.FieldMask} request.updateMask
661+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
662+
* the fields in the mask will be modified. If no mask is provided, the
663+
* following default mask is used:
664+
*
665+
* `paths: "bindings, etag"`
660666
* @param {object} [options]
661667
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
662668
* @returns {Promise} - The promise which resolves to an array.

packages/google-cloud-resourcemanager/src/v3/tag_keys_client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ export class TagKeysClient {
496496
* See the operation documentation for the appropriate value for this field.
497497
* @param {google.iam.v1.GetPolicyOptions} request.options
498498
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
499-
* `GetIamPolicy`. This field is only used by Cloud IAM.
499+
* `GetIamPolicy`.
500500
* @param {object} [options]
501501
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
502502
* @returns {Promise} - The promise which resolves to an array.
@@ -590,6 +590,12 @@ export class TagKeysClient {
590590
* the policy is limited to a few 10s of KB. An empty policy is a
591591
* valid policy but certain Cloud Platform services (such as Projects)
592592
* might reject them.
593+
* @param {google.protobuf.FieldMask} request.updateMask
594+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
595+
* the fields in the mask will be modified. If no mask is provided, the
596+
* following default mask is used:
597+
*
598+
* `paths: "bindings, etag"`
593599
* @param {object} [options]
594600
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
595601
* @returns {Promise} - The promise which resolves to an array.

packages/google-cloud-resourcemanager/src/v3/tag_values_client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ export class TagValuesClient {
496496
* See the operation documentation for the appropriate value for this field.
497497
* @param {google.iam.v1.GetPolicyOptions} request.options
498498
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
499-
* `GetIamPolicy`. This field is only used by Cloud IAM.
499+
* `GetIamPolicy`.
500500
* @param {object} [options]
501501
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
502502
* @returns {Promise} - The promise which resolves to an array.
@@ -590,6 +590,12 @@ export class TagValuesClient {
590590
* the policy is limited to a few 10s of KB. An empty policy is a
591591
* valid policy but certain Cloud Platform services (such as Projects)
592592
* might reject them.
593+
* @param {google.protobuf.FieldMask} request.updateMask
594+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
595+
* the fields in the mask will be modified. If no mask is provided, the
596+
* following default mask is used:
597+
*
598+
* `paths: "bindings, etag"`
593599
* @param {object} [options]
594600
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
595601
* @returns {Promise} - The promise which resolves to an array.

0 commit comments

Comments
 (0)