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

Commit 2ec070f

Browse files
feat: AuditConfig for IAM v1 (#470)
- [ ] 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 ad9929d commit 2ec070f

12 files changed

+60
-9
lines changed

samples/generated/v1/security_center.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/security_center.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 Securitycenter library
4249
const {SecurityCenterClient} = require('@google-cloud/security-center').v1;

samples/generated/v1/snippet_metadata.google.cloud.securitycenter.v1.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@
11221122
"segments": [
11231123
{
11241124
"start": 25,
1125-
"end": 59,
1125+
"end": 66,
11261126
"type": "FULL"
11271127
}
11281128
],
@@ -1138,6 +1138,10 @@
11381138
{
11391139
"name": "policy",
11401140
"type": ".google.iam.v1.Policy"
1141+
},
1142+
{
1143+
"name": "update_mask",
1144+
"type": ".google.protobuf.FieldMask"
11411145
}
11421146
],
11431147
"resultType": ".google.iam.v1.Policy",

samples/generated/v1beta1/security_center.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/security_center.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 Securitycenter library
4249
const {SecurityCenterClient} = require('@google-cloud/security-center').v1beta1;

samples/generated/v1beta1/snippet_metadata.google.cloud.securitycenter.v1beta1.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@
630630
"segments": [
631631
{
632632
"start": 25,
633-
"end": 59,
633+
"end": 66,
634634
"type": "FULL"
635635
}
636636
],
@@ -646,6 +646,10 @@
646646
{
647647
"name": "policy",
648648
"type": ".google.iam.v1.Policy"
649+
},
650+
{
651+
"name": "update_mask",
652+
"type": ".google.protobuf.FieldMask"
649653
}
650654
],
651655
"resultType": ".google.iam.v1.Policy",

samples/generated/v1p1beta1/security_center.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/v1p1beta1/security_center.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 Securitycenter library
4249
const {SecurityCenterClient} = require('@google-cloud/security-center').v1p1beta1;

samples/generated/v1p1beta1/snippet_metadata.google.cloud.securitycenter.v1p1beta1.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@
814814
"segments": [
815815
{
816816
"start": 25,
817-
"end": 59,
817+
"end": 66,
818818
"type": "FULL"
819819
}
820820
],
@@ -830,6 +830,10 @@
830830
{
831831
"name": "policy",
832832
"type": ".google.iam.v1.Policy"
833+
},
834+
{
835+
"name": "update_mask",
836+
"type": ".google.protobuf.FieldMask"
833837
}
834838
],
835839
"resultType": ".google.iam.v1.Policy",

src/v1/security_center_client.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ export class SecurityCenterClient {
12351235
* See the operation documentation for the appropriate value for this field.
12361236
* @param {google.iam.v1.GetPolicyOptions} request.options
12371237
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
1238-
* `GetIamPolicy`. This field is only used by Cloud IAM.
1238+
* `GetIamPolicy`.
12391239
* @param {object} [options]
12401240
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
12411241
* @returns {Promise} - The promise which resolves to an array.
@@ -1901,6 +1901,12 @@ export class SecurityCenterClient {
19011901
* the policy is limited to a few 10s of KB. An empty policy is a
19021902
* valid policy but certain Cloud Platform services (such as Projects)
19031903
* might reject them.
1904+
* @param {google.protobuf.FieldMask} request.updateMask
1905+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1906+
* the fields in the mask will be modified. If no mask is provided, the
1907+
* following default mask is used:
1908+
*
1909+
* `paths: "bindings, etag"`
19041910
* @param {object} [options]
19051911
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
19061912
* @returns {Promise} - The promise which resolves to an array.

src/v1beta1/security_center_client.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ export class SecurityCenterClient {
620620
* See the operation documentation for the appropriate value for this field.
621621
* @param {google.iam.v1.GetPolicyOptions} request.options
622622
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
623-
* `GetIamPolicy`. This field is only used by Cloud IAM.
623+
* `GetIamPolicy`.
624624
* @param {object} [options]
625625
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
626626
* @returns {Promise} - The promise which resolves to an array.
@@ -1008,6 +1008,12 @@ export class SecurityCenterClient {
10081008
* the policy is limited to a few 10s of KB. An empty policy is a
10091009
* valid policy but certain Cloud Platform services (such as Projects)
10101010
* might reject them.
1011+
* @param {google.protobuf.FieldMask} request.updateMask
1012+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1013+
* the fields in the mask will be modified. If no mask is provided, the
1014+
* following default mask is used:
1015+
*
1016+
* `paths: "bindings, etag"`
10111017
* @param {object} [options]
10121018
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
10131019
* @returns {Promise} - The promise which resolves to an array.

src/v1p1beta1/security_center_client.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ export class SecurityCenterClient {
874874
* See the operation documentation for the appropriate value for this field.
875875
* @param {google.iam.v1.GetPolicyOptions} request.options
876876
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
877-
* `GetIamPolicy`. This field is only used by Cloud IAM.
877+
* `GetIamPolicy`.
878878
* @param {object} [options]
879879
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
880880
* @returns {Promise} - The promise which resolves to an array.
@@ -1366,6 +1366,12 @@ export class SecurityCenterClient {
13661366
* the policy is limited to a few 10s of KB. An empty policy is a
13671367
* valid policy but certain Cloud Platform services (such as Projects)
13681368
* might reject them.
1369+
* @param {google.protobuf.FieldMask} request.updateMask
1370+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1371+
* the fields in the mask will be modified. If no mask is provided, the
1372+
* following default mask is used:
1373+
*
1374+
* `paths: "bindings, etag"`
13691375
* @param {object} [options]
13701376
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
13711377
* @returns {Promise} - The promise which resolves to an array.

0 commit comments

Comments
 (0)