From 58e5893b40f3e27a7037291ba8d5470e1b2d2715 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 5 Apr 2022 17:34:16 +0000 Subject: [PATCH] feat: AuditConfig for IAM v1 (#439) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 439356405 Source-Link: https://github.com/googleapis/googleapis/commit/afa2ba156bd5c83ad8168030ab801a8ca84ac819 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3e40c17e1510c95fab58fc2143ccb61cceca5989 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2U0MGMxN2UxNTEwYzk1ZmFiNThmYzIxNDNjY2I2MWNjZWNhNTk4OSJ9 --- .../generated/v3/folders.get_iam_policy.js | 2 +- .../generated/v3/folders.set_iam_policy.js | 7 +++++ .../v3/organizations.get_iam_policy.js | 2 +- .../v3/organizations.set_iam_policy.js | 7 +++++ .../generated/v3/projects.get_iam_policy.js | 2 +- .../generated/v3/projects.set_iam_policy.js | 7 +++++ ...adata.google.cloud.resourcemanager.v3.json | 30 +++++++++++++++---- .../generated/v3/tag_keys.get_iam_policy.js | 2 +- .../generated/v3/tag_keys.set_iam_policy.js | 7 +++++ .../generated/v3/tag_values.get_iam_policy.js | 2 +- .../generated/v3/tag_values.set_iam_policy.js | 7 +++++ src/v3/folders_client.ts | 8 ++++- src/v3/organizations_client.ts | 8 ++++- src/v3/projects_client.ts | 8 ++++- src/v3/tag_keys_client.ts | 8 ++++- src/v3/tag_values_client.ts | 8 ++++- 16 files changed, 100 insertions(+), 15 deletions(-) diff --git a/samples/generated/v3/folders.get_iam_policy.js b/samples/generated/v3/folders.get_iam_policy.js index 1500e2a..049a601 100644 --- a/samples/generated/v3/folders.get_iam_policy.js +++ b/samples/generated/v3/folders.get_iam_policy.js @@ -32,7 +32,7 @@ function main(resource) { // const resource = 'abc123' /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. */ // const options = {} diff --git a/samples/generated/v3/folders.set_iam_policy.js b/samples/generated/v3/folders.set_iam_policy.js index 17fe0a6..7d94806 100644 --- a/samples/generated/v3/folders.set_iam_policy.js +++ b/samples/generated/v3/folders.set_iam_policy.js @@ -37,6 +37,13 @@ function main(resource, policy) { * might reject them. */ // const policy = {} + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + */ + // const updateMask = {} // Imports the Resourcemanager library const {FoldersClient} = require('@google-cloud/resource-manager').v3; diff --git a/samples/generated/v3/organizations.get_iam_policy.js b/samples/generated/v3/organizations.get_iam_policy.js index 3279d28..fbcdf88 100644 --- a/samples/generated/v3/organizations.get_iam_policy.js +++ b/samples/generated/v3/organizations.get_iam_policy.js @@ -32,7 +32,7 @@ function main(resource) { // const resource = 'abc123' /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. */ // const options = {} diff --git a/samples/generated/v3/organizations.set_iam_policy.js b/samples/generated/v3/organizations.set_iam_policy.js index 7cb8955..86ed152 100644 --- a/samples/generated/v3/organizations.set_iam_policy.js +++ b/samples/generated/v3/organizations.set_iam_policy.js @@ -37,6 +37,13 @@ function main(resource, policy) { * might reject them. */ // const policy = {} + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + */ + // const updateMask = {} // Imports the Resourcemanager library const {OrganizationsClient} = require('@google-cloud/resource-manager').v3; diff --git a/samples/generated/v3/projects.get_iam_policy.js b/samples/generated/v3/projects.get_iam_policy.js index d2e3ace..c8b3347 100644 --- a/samples/generated/v3/projects.get_iam_policy.js +++ b/samples/generated/v3/projects.get_iam_policy.js @@ -32,7 +32,7 @@ function main(resource) { // const resource = 'abc123' /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. */ // const options = {} diff --git a/samples/generated/v3/projects.set_iam_policy.js b/samples/generated/v3/projects.set_iam_policy.js index 93a6883..19d61d3 100644 --- a/samples/generated/v3/projects.set_iam_policy.js +++ b/samples/generated/v3/projects.set_iam_policy.js @@ -37,6 +37,13 @@ function main(resource, policy) { * might reject them. */ // const policy = {} + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + */ + // const updateMask = {} // Imports the Resourcemanager library const {ProjectsClient} = require('@google-cloud/resource-manager').v3; diff --git a/samples/generated/v3/snippet_metadata.google.cloud.resourcemanager.v3.json b/samples/generated/v3/snippet_metadata.google.cloud.resourcemanager.v3.json index 6d25ef5..67a3c2f 100644 --- a/samples/generated/v3/snippet_metadata.google.cloud.resourcemanager.v3.json +++ b/samples/generated/v3/snippet_metadata.google.cloud.resourcemanager.v3.json @@ -414,7 +414,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 66, "type": "FULL" } ], @@ -430,6 +430,10 @@ { "name": "policy", "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.iam.v1.Policy", @@ -634,7 +638,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 66, "type": "FULL" } ], @@ -650,6 +654,10 @@ { "name": "policy", "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.iam.v1.Policy", @@ -1114,7 +1122,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 66, "type": "FULL" } ], @@ -1130,6 +1138,10 @@ { "name": "policy", "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.iam.v1.Policy", @@ -1606,7 +1618,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 66, "type": "FULL" } ], @@ -1622,6 +1634,10 @@ { "name": "policy", "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.iam.v1.Policy", @@ -1966,7 +1982,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 66, "type": "FULL" } ], @@ -1982,6 +1998,10 @@ { "name": "policy", "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.iam.v1.Policy", diff --git a/samples/generated/v3/tag_keys.get_iam_policy.js b/samples/generated/v3/tag_keys.get_iam_policy.js index b0340d5..23f6fc8 100644 --- a/samples/generated/v3/tag_keys.get_iam_policy.js +++ b/samples/generated/v3/tag_keys.get_iam_policy.js @@ -32,7 +32,7 @@ function main(resource) { // const resource = 'abc123' /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. */ // const options = {} diff --git a/samples/generated/v3/tag_keys.set_iam_policy.js b/samples/generated/v3/tag_keys.set_iam_policy.js index 069cd1a..1442ba4 100644 --- a/samples/generated/v3/tag_keys.set_iam_policy.js +++ b/samples/generated/v3/tag_keys.set_iam_policy.js @@ -37,6 +37,13 @@ function main(resource, policy) { * might reject them. */ // const policy = {} + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + */ + // const updateMask = {} // Imports the Resourcemanager library const {TagKeysClient} = require('@google-cloud/resource-manager').v3; diff --git a/samples/generated/v3/tag_values.get_iam_policy.js b/samples/generated/v3/tag_values.get_iam_policy.js index 67882d2..43370c2 100644 --- a/samples/generated/v3/tag_values.get_iam_policy.js +++ b/samples/generated/v3/tag_values.get_iam_policy.js @@ -32,7 +32,7 @@ function main(resource) { // const resource = 'abc123' /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. */ // const options = {} diff --git a/samples/generated/v3/tag_values.set_iam_policy.js b/samples/generated/v3/tag_values.set_iam_policy.js index 306a5d7..6911eb8 100644 --- a/samples/generated/v3/tag_values.set_iam_policy.js +++ b/samples/generated/v3/tag_values.set_iam_policy.js @@ -37,6 +37,13 @@ function main(resource, policy) { * might reject them. */ // const policy = {} + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + */ + // const updateMask = {} // Imports the Resourcemanager library const {TagValuesClient} = require('@google-cloud/resource-manager').v3; diff --git a/src/v3/folders_client.ts b/src/v3/folders_client.ts index 0c5cc31..0c4e779 100644 --- a/src/v3/folders_client.ts +++ b/src/v3/folders_client.ts @@ -530,7 +530,7 @@ export class FoldersClient { * See the operation documentation for the appropriate value for this field. * @param {google.iam.v1.GetPolicyOptions} request.options * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -624,6 +624,12 @@ export class FoldersClient { * the policy is limited to a few 10s of KB. An empty policy is a * valid policy but certain Cloud Platform services (such as Projects) * might reject them. + * @param {google.protobuf.FieldMask} request.updateMask + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * + * `paths: "bindings, etag"` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. diff --git a/src/v3/organizations_client.ts b/src/v3/organizations_client.ts index 7efd527..c1fb430 100644 --- a/src/v3/organizations_client.ts +++ b/src/v3/organizations_client.ts @@ -445,7 +445,7 @@ export class OrganizationsClient { * See the operation documentation for the appropriate value for this field. * @param {google.iam.v1.GetPolicyOptions} request.options * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -540,6 +540,12 @@ export class OrganizationsClient { * the policy is limited to a few 10s of KB. An empty policy is a * valid policy but certain Cloud Platform services (such as Projects) * might reject them. + * @param {google.protobuf.FieldMask} request.updateMask + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * + * `paths: "bindings, etag"` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. diff --git a/src/v3/projects_client.ts b/src/v3/projects_client.ts index c2839ca..26d670a 100644 --- a/src/v3/projects_client.ts +++ b/src/v3/projects_client.ts @@ -524,7 +524,7 @@ export class ProjectsClient { * See the operation documentation for the appropriate value for this field. * @param {google.iam.v1.GetPolicyOptions} request.options * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -657,6 +657,12 @@ export class ProjectsClient { * the policy is limited to a few 10s of KB. An empty policy is a * valid policy but certain Cloud Platform services (such as Projects) * might reject them. + * @param {google.protobuf.FieldMask} request.updateMask + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * + * `paths: "bindings, etag"` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. diff --git a/src/v3/tag_keys_client.ts b/src/v3/tag_keys_client.ts index 75f4e64..5267433 100644 --- a/src/v3/tag_keys_client.ts +++ b/src/v3/tag_keys_client.ts @@ -496,7 +496,7 @@ export class TagKeysClient { * See the operation documentation for the appropriate value for this field. * @param {google.iam.v1.GetPolicyOptions} request.options * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -590,6 +590,12 @@ export class TagKeysClient { * the policy is limited to a few 10s of KB. An empty policy is a * valid policy but certain Cloud Platform services (such as Projects) * might reject them. + * @param {google.protobuf.FieldMask} request.updateMask + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * + * `paths: "bindings, etag"` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. diff --git a/src/v3/tag_values_client.ts b/src/v3/tag_values_client.ts index b03021a..d0c7c66 100644 --- a/src/v3/tag_values_client.ts +++ b/src/v3/tag_values_client.ts @@ -496,7 +496,7 @@ export class TagValuesClient { * See the operation documentation for the appropriate value for this field. * @param {google.iam.v1.GetPolicyOptions} request.options * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -590,6 +590,12 @@ export class TagValuesClient { * the policy is limited to a few 10s of KB. An empty policy is a * valid policy but certain Cloud Platform services (such as Projects) * might reject them. + * @param {google.protobuf.FieldMask} request.updateMask + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * + * `paths: "bindings, etag"` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array.