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

Commit bb8b0b8

Browse files
feat: AuditConfig for IAM v1 (#216)
- [ ] 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 c1131be commit bb8b0b8

8 files changed

Lines changed: 40 additions & 6 deletions

samples/generated/v1/registration_service.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/registration_service.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 Servicedirectory library
4249
const {RegistrationServiceClient} = require('@google-cloud/service-directory').v1;

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@
798798
"segments": [
799799
{
800800
"start": 25,
801-
"end": 59,
801+
"end": 66,
802802
"type": "FULL"
803803
}
804804
],
@@ -814,6 +814,10 @@
814814
{
815815
"name": "policy",
816816
"type": ".google.iam.v1.Policy"
817+
},
818+
{
819+
"name": "update_mask",
820+
"type": ".google.protobuf.FieldMask"
817821
}
818822
],
819823
"resultType": ".google.iam.v1.Policy",

samples/generated/v1beta1/registration_service.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/v1beta1/registration_service.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 Servicedirectory library
4249
const {RegistrationServiceClient} = require('@google-cloud/service-directory').v1beta1;

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@
798798
"segments": [
799799
{
800800
"start": 25,
801-
"end": 59,
801+
"end": 66,
802802
"type": "FULL"
803803
}
804804
],
@@ -814,6 +814,10 @@
814814
{
815815
"name": "policy",
816816
"type": ".google.iam.v1.Policy"
817+
},
818+
{
819+
"name": "update_mask",
820+
"type": ".google.protobuf.FieldMask"
817821
}
818822
],
819823
"resultType": ".google.iam.v1.Policy",

src/v1/registration_service_client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ export class RegistrationServiceClient {
15411541
* See the operation documentation for the appropriate value for this field.
15421542
* @param {google.iam.v1.GetPolicyOptions} request.options
15431543
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
1544-
* `GetIamPolicy`. This field is only used by Cloud IAM.
1544+
* `GetIamPolicy`.
15451545
* @param {object} [options]
15461546
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
15471547
* @returns {Promise} - The promise which resolves to an array.
@@ -1631,6 +1631,12 @@ export class RegistrationServiceClient {
16311631
* the policy is limited to a few 10s of KB. An empty policy is a
16321632
* valid policy but certain Cloud Platform services (such as Projects)
16331633
* might reject them.
1634+
* @param {google.protobuf.FieldMask} request.updateMask
1635+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1636+
* the fields in the mask will be modified. If no mask is provided, the
1637+
* following default mask is used:
1638+
*
1639+
* `paths: "bindings, etag"`
16341640
* @param {object} [options]
16351641
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
16361642
* @returns {Promise} - The promise which resolves to an array.

src/v1beta1/registration_service_client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ export class RegistrationServiceClient {
15771577
* See the operation documentation for the appropriate value for this field.
15781578
* @param {google.iam.v1.GetPolicyOptions} request.options
15791579
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
1580-
* `GetIamPolicy`. This field is only used by Cloud IAM.
1580+
* `GetIamPolicy`.
15811581
* @param {object} [options]
15821582
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
15831583
* @returns {Promise} - The promise which resolves to an array.
@@ -1667,6 +1667,12 @@ export class RegistrationServiceClient {
16671667
* the policy is limited to a few 10s of KB. An empty policy is a
16681668
* valid policy but certain Cloud Platform services (such as Projects)
16691669
* might reject them.
1670+
* @param {google.protobuf.FieldMask} request.updateMask
1671+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1672+
* the fields in the mask will be modified. If no mask is provided, the
1673+
* following default mask is used:
1674+
*
1675+
* `paths: "bindings, etag"`
16701676
* @param {object} [options]
16711677
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
16721678
* @returns {Promise} - The promise which resolves to an array.

0 commit comments

Comments
 (0)