Skip to content

Commit

Permalink
feat: add 'force' parameter for accounts.delete method (#7714)
Browse files Browse the repository at this point in the history
docs: updated descriptions for the DeleteAccount and ListAccounts RPCs
PiperOrigin-RevId: 680468173
Source-Link: googleapis/googleapis@1b2f804
Source-Link: googleapis/googleapis-gen@aaf00b0
Copy-Tag: eyJwIjoiU2hvcHBpbmdNZXJjaGFudEFjY291bnRzLy5Pd2xCb3QueWFtbCIsImgiOiJhYWYwMGIwNzBlMDAwMzc0ZTBmNTMxMzE5ZTRiN2RkNzk3ZGUzMTY1In0=
  • Loading branch information
gcf-owl-bot[bot] authored Sep 30, 2024
1 parent 5049999 commit 7bbcfd6
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 2 deletions.
Binary file modified ShoppingMerchantAccounts/metadata/V1Beta/Accounts.php
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
* Deletes the specified account regardless of its type: standalone, MCA or
* sub-account. Deleting an MCA leads to the deletion of all of its
* sub-accounts. Executing this method requires admin access.
* The deletion succeeds only if the account does not provide services
* to any other account and has no processed offers. You can use the `force`
* parameter to override this.
*
* @param string $formattedName The name of the account to delete.
* Format: `accounts/{account}`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
* constraints of the request such as page size or filters.
* This is not just listing the sub-accounts of an MCA, but all accounts the
* calling user has access to including other MCAs, linked accounts,
* standalone accounts and so on.
* standalone accounts and so on. If no filter is provided, then it returns
* accounts the user is directly added to.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ public function createAndConfigureAccount(
* Deletes the specified account regardless of its type: standalone, MCA or
* sub-account. Deleting an MCA leads to the deletion of all of its
* sub-accounts. Executing this method requires admin access.
* The deletion succeeds only if the account does not provide services
* to any other account and has no processed offers. You can use the `force`
* parameter to override this.
*
* The async variant is {@see AccountsServiceClient::deleteAccountAsync()} .
*
Expand Down Expand Up @@ -359,7 +362,8 @@ public function getAccount(GetAccountRequest $request, array $callOptions = []):
* constraints of the request such as page size or filters.
* This is not just listing the sub-accounts of an MCA, but all accounts the
* calling user has access to including other MCAs, linked accounts,
* standalone accounts and so on.
* standalone accounts and so on. If no filter is provided, then it returns
* accounts the user is directly added to.
*
* The async variant is {@see AccountsServiceClient::listAccountsAsync()} .
*
Expand Down
38 changes: 38 additions & 0 deletions ShoppingMerchantAccounts/src/V1beta/DeleteAccountRequest.php

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

0 comments on commit 7bbcfd6

Please sign in to comment.