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

Commit 1b1a3d2

Browse files
feat: AuditConfig for IAM v1 (#552)
- [ ] 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 aefeda2 commit 1b1a3d2

4 files changed

Lines changed: 20 additions & 3 deletions

File tree

samples/generated/v1/device_manager.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/v1/device_manager.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 Iot library
4249
const {DeviceManagerClient} = require('@google-cloud/iot').v1;

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@
610610
"segments": [
611611
{
612612
"start": 25,
613-
"end": 59,
613+
"end": 66,
614614
"type": "FULL"
615615
}
616616
],
@@ -626,6 +626,10 @@
626626
{
627627
"name": "policy",
628628
"type": ".google.iam.v1.Policy"
629+
},
630+
{
631+
"name": "update_mask",
632+
"type": ".google.protobuf.FieldMask"
629633
}
630634
],
631635
"resultType": ".google.iam.v1.Policy",

src/v1/device_manager_client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,12 @@ export class DeviceManagerClient {
13871387
* the policy is limited to a few 10s of KB. An empty policy is a
13881388
* valid policy but certain Cloud Platform services (such as Projects)
13891389
* might reject them.
1390+
* @param {google.protobuf.FieldMask} request.updateMask
1391+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1392+
* the fields in the mask will be modified. If no mask is provided, the
1393+
* following default mask is used:
1394+
*
1395+
* `paths: "bindings, etag"`
13901396
* @param {object} [options]
13911397
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
13921398
* @returns {Promise} - The promise which resolves to an array.
@@ -1475,7 +1481,7 @@ export class DeviceManagerClient {
14751481
* See the operation documentation for the appropriate value for this field.
14761482
* @param {google.iam.v1.GetPolicyOptions} request.options
14771483
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
1478-
* `GetIamPolicy`. This field is only used by Cloud IAM.
1484+
* `GetIamPolicy`.
14791485
* @param {object} [options]
14801486
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
14811487
* @returns {Promise} - The promise which resolves to an array.

0 commit comments

Comments
 (0)