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

Commit

Permalink
feat: AuditConfig for IAM v1 (#611)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 439356405

Source-Link: googleapis/googleapis@afa2ba1

Source-Link: googleapis/googleapis-gen@3e40c17
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2U0MGMxN2UxNTEwYzk1ZmFiNThmYzIxNDNjY2I2MWNjZWNhNTk4OSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Apr 5, 2022
1 parent 9c2479f commit 176dcee
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 9 deletions.
2 changes: 1 addition & 1 deletion samples/generated/v2/cloud_tasks.get_iam_policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}

Expand Down
7 changes: 7 additions & 0 deletions samples/generated/v2/cloud_tasks.set_iam_policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 Tasks library
const {CloudTasksClient} = require('@google-cloud/tasks').v2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
"segments": [
{
"start": 25,
"end": 59,
"end": 66,
"type": "FULL"
}
],
Expand All @@ -422,6 +422,10 @@
{
"name": "policy",
"type": ".google.iam.v1.Policy"
},
{
"name": "update_mask",
"type": ".google.protobuf.FieldMask"
}
],
"resultType": ".google.iam.v1.Policy",
Expand Down
2 changes: 1 addition & 1 deletion samples/generated/v2beta2/cloud_tasks.get_iam_policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}

Expand Down
7 changes: 7 additions & 0 deletions samples/generated/v2beta2/cloud_tasks.set_iam_policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 Tasks library
const {CloudTasksClient} = require('@google-cloud/tasks').v2beta2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@
"segments": [
{
"start": 25,
"end": 59,
"end": 66,
"type": "FULL"
}
],
Expand All @@ -430,6 +430,10 @@
{
"name": "policy",
"type": ".google.iam.v1.Policy"
},
{
"name": "update_mask",
"type": ".google.protobuf.FieldMask"
}
],
"resultType": ".google.iam.v1.Policy",
Expand Down
2 changes: 1 addition & 1 deletion samples/generated/v2beta3/cloud_tasks.get_iam_policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}

Expand Down
7 changes: 7 additions & 0 deletions samples/generated/v2beta3/cloud_tasks.set_iam_policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 Tasks library
const {CloudTasksClient} = require('@google-cloud/tasks').v2beta3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@
"segments": [
{
"start": 25,
"end": 59,
"end": 66,
"type": "FULL"
}
],
Expand All @@ -430,6 +430,10 @@
{
"name": "policy",
"type": ".google.iam.v1.Policy"
},
{
"name": "update_mask",
"type": ".google.protobuf.FieldMask"
}
],
"resultType": ".google.iam.v1.Policy",
Expand Down
8 changes: 7 additions & 1 deletion src/v2/cloud_tasks_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ export class CloudTasksClient {
* 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.
Expand Down Expand Up @@ -1126,6 +1126,12 @@ export class CloudTasksClient {
* 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.
Expand Down
8 changes: 7 additions & 1 deletion src/v2beta2/cloud_tasks_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ export class CloudTasksClient {
* 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.
Expand Down Expand Up @@ -1147,6 +1147,12 @@ export class CloudTasksClient {
* 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.
Expand Down
8 changes: 7 additions & 1 deletion src/v2beta3/cloud_tasks_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ export class CloudTasksClient {
* 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.
Expand Down Expand Up @@ -1143,6 +1143,12 @@ export class CloudTasksClient {
* 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.
Expand Down

0 comments on commit 176dcee

Please sign in to comment.