Skip to content

Commit

Permalink
feat: [AccessApproval] update protos to include InvalidateApprovalReq…
Browse files Browse the repository at this point in the history
…uest and GetAccessApprovalServiceAccount APIs (#5288)

* feat: update protos to include InvalidateApprovalRequest and GetAccessApprovalServiceAccount APIs

PiperOrigin-RevId: 449820922

Source-Link: googleapis/googleapis@9682584

Source-Link: googleapis/googleapis-gen@09360c9
Copy-Tag: eyJwIjoiQWNjZXNzQXBwcm92YWwvLk93bEJvdC55YW1sIiwiaCI6IjA5MzYwYzk1Y2ExMmFmZjAwYmNkMmNmYTJmNzYxNGJiYjNlMjliZjMifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed May 23, 2022
1 parent 578e4cd commit 80fae8d
Show file tree
Hide file tree
Showing 15 changed files with 1,028 additions and 11 deletions.
Binary file modified AccessApproval/metadata/V1/Accessapproval.php
Binary file not shown.
38 changes: 38 additions & 0 deletions AccessApproval/src/V1/AccessApprovalGrpcClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,28 @@ public function DismissApprovalRequest(\Google\Cloud\AccessApproval\V1\DismissAp
$metadata, $options);
}

/**
* Invalidates an existing ApprovalRequest. Returns the updated
* ApprovalRequest.
*
* NOTE: This does not deny access to the resource if another request has been
* made and approved. It only invalidates a single approval.
*
* Returns FAILED_PRECONDITION if the request exists but is not in an approved
* state.
* @param \Google\Cloud\AccessApproval\V1\InvalidateApprovalRequestMessage $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function InvalidateApprovalRequest(\Google\Cloud\AccessApproval\V1\InvalidateApprovalRequestMessage $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/google.cloud.accessapproval.v1.AccessApproval/InvalidateApprovalRequest',
$argument,
['\Google\Cloud\AccessApproval\V1\ApprovalRequest', 'decode'],
$metadata, $options);
}

/**
* Gets the settings associated with a project, folder, or organization.
* @param \Google\Cloud\AccessApproval\V1\GetAccessApprovalSettingsMessage $argument input argument
Expand Down Expand Up @@ -189,4 +211,20 @@ public function DeleteAccessApprovalSettings(\Google\Cloud\AccessApproval\V1\Del
$metadata, $options);
}

/**
* Retrieves the service account that is used by Access Approval to access KMS
* keys for signing approved approval requests.
* @param \Google\Cloud\AccessApproval\V1\GetAccessApprovalServiceAccountMessage $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetAccessApprovalServiceAccount(\Google\Cloud\AccessApproval\V1\GetAccessApprovalServiceAccountMessage $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/google.cloud.accessapproval.v1.AccessApproval/GetAccessApprovalServiceAccount',
$argument,
['\Google\Cloud\AccessApproval\V1\AccessApprovalServiceAccount', 'decode'],
$metadata, $options);
}

}
113 changes: 113 additions & 0 deletions AccessApproval/src/V1/AccessApprovalServiceAccount.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

150 changes: 150 additions & 0 deletions AccessApproval/src/V1/AccessApprovalSettings.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 20 additions & 3 deletions AccessApproval/src/V1/AccessReason/Type.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 80fae8d

Please sign in to comment.