Skip to content

Commit ab63d7f

Browse files
docs: [ShoppingMerchantAccounts] A comment for enum AccessRight is changed (#8736)
* docs: A comment for enum `AccessRight` is changed docs: A comment for enum value `API_DEVELOPER` in enum `AccessRight` is changed docs: A comment for method `DeleteAccount` in service `AccountsService` is changed docs: A comment for field `developer_email` in message `.google.shopping.merchant.accounts.v1.RegisterGcpRequest` is changed docs: A comment for message `Program` is changed docs: A comment for message `User` is changed docs: A comment for enum `State` is changed feat: A new field `verification_mail_settings` is added to message `.google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest` feat: A new field `account_management` is added to message `.google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest` feat: A new field `comparison_shopping` is added to message `.google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest` feat: A new field `products_management` is added to message `.google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest` feat: A new field `campaigns_management` is added to message `.google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest` feat: A new field `external_account_id` is added to message `.google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest` feat: A new message `SetAliasForRelationship` is added feat: A new field `set_alias` is added to message `.google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest` feat: A new field `comparison_shopping` is added to message `.google.shopping.merchant.accounts.v1.AccountService` feat: A new message `ComparisonShopping` is added feat: A new method `GetAccountForGcpRegistration` is added to service `DeveloperRegistrationService` feat: A new message `GetAccountForGcpRegistrationResponse` is added feat: A new method `VerifySelf` is added to service `UserService` feat: A new message `VerifySelfRequest` is added feat: A new message `VerificationMailSettings` is added PiperOrigin-RevId: 832226276 Source-Link: googleapis/googleapis@04085e5 Source-Link: googleapis/googleapis-gen@edc9e32 Copy-Tag: eyJwIjoiU2hvcHBpbmdNZXJjaGFudEFjY291bnRzLy5Pd2xCb3QueWFtbCIsImgiOiJlZGM5ZTMyZDAxY2JjNmVlODBhZTk5OWY2NTk2NTM1ZThiZTAxMGY1In0= * 🦉 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>
1 parent 63699a9 commit ab63d7f

File tree

77 files changed

+1652
-280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1652
-280
lines changed
862 Bytes
Binary file not shown.
111 Bytes
Binary file not shown.

ShoppingMerchantAccounts/metadata/V1/Developerregistration.php

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
274 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.

ShoppingMerchantAccounts/samples/V1/AccountsServiceClient/delete_account.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@
3030
/**
3131
* Deletes the specified account regardless of its type: standalone, advanced
3232
* account or sub-account. Deleting an advanced account leads to the deletion
33-
* of all of its sub-accounts. Executing this method requires admin access.
34-
* The deletion succeeds only if the account does not provide services
35-
* to any other account and has no processed offers. You can use the `force`
36-
* parameter to override this.
33+
* of all of its sub-accounts. This also deletes the account's [developer
34+
* registration
35+
* entity](/merchant/api/reference/rest/accounts_v1/accounts.developerRegistration)
36+
* and any associated GCP project to the account. Executing this method
37+
* requires admin access. The deletion succeeds only if the account does not
38+
* provide services to any other account and has no processed offers. You can
39+
* use the `force` parameter to override this.
3740
*
3841
* @param string $formattedName The name of the account to delete.
3942
* Format: `accounts/{account}`
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?php
2+
/*
3+
* Copyright 2025 Google LLC
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
/*
19+
* GENERATED CODE WARNING
20+
* This file was automatically generated - do not edit!
21+
*/
22+
23+
require_once __DIR__ . '/../../../vendor/autoload.php';
24+
25+
// [START merchantapi_v1_generated_DeveloperRegistrationService_GetAccountForGcpRegistration_sync]
26+
use Google\ApiCore\ApiException;
27+
use Google\Protobuf\GPBEmpty;
28+
use Google\Shopping\Merchant\Accounts\V1\Client\DeveloperRegistrationServiceClient;
29+
use Google\Shopping\Merchant\Accounts\V1\GetAccountForGcpRegistrationResponse;
30+
31+
/**
32+
* Retrieves the merchant account that the calling GCP is registered with.
33+
*
34+
* This sample has been automatically generated and should be regarded as a code
35+
* template only. It will require modifications to work:
36+
* - It may require correct/in-range values for request initialization.
37+
* - It may require specifying regional endpoints when creating the service client,
38+
* please see the apiEndpoint client configuration option for more details.
39+
*/
40+
function get_account_for_gcp_registration_sample(): void
41+
{
42+
// Create a client.
43+
$developerRegistrationServiceClient = new DeveloperRegistrationServiceClient();
44+
45+
// Prepare the request message.
46+
$request = new GPBEmpty();
47+
48+
// Call the API and handle any network failures.
49+
try {
50+
/** @var GetAccountForGcpRegistrationResponse $response */
51+
$response = $developerRegistrationServiceClient->getAccountForGcpRegistration($request);
52+
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
53+
} catch (ApiException $ex) {
54+
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
55+
}
56+
}
57+
// [END merchantapi_v1_generated_DeveloperRegistrationService_GetAccountForGcpRegistration_sync]
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?php
2+
/*
3+
* Copyright 2025 Google LLC
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
/*
19+
* GENERATED CODE WARNING
20+
* This file was automatically generated - do not edit!
21+
*/
22+
23+
require_once __DIR__ . '/../../../vendor/autoload.php';
24+
25+
// [START merchantapi_v1_generated_UserService_VerifySelf_sync]
26+
use Google\ApiCore\ApiException;
27+
use Google\Shopping\Merchant\Accounts\V1\Client\UserServiceClient;
28+
use Google\Shopping\Merchant\Accounts\V1\User;
29+
use Google\Shopping\Merchant\Accounts\V1\VerifySelfRequest;
30+
31+
/**
32+
* Updates the user that is represented by the caller from pending to
33+
* verified.
34+
*
35+
* @param string $formattedAccount The name of the account under which the caller is a user.
36+
* Format: `accounts/{account}`
37+
* Please see {@see UserServiceClient::accountName()} for help formatting this field.
38+
*/
39+
function verify_self_sample(string $formattedAccount): void
40+
{
41+
// Create a client.
42+
$userServiceClient = new UserServiceClient();
43+
44+
// Prepare the request message.
45+
$request = (new VerifySelfRequest())
46+
->setAccount($formattedAccount);
47+
48+
// Call the API and handle any network failures.
49+
try {
50+
/** @var User $response */
51+
$response = $userServiceClient->verifySelf($request);
52+
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
53+
} catch (ApiException $ex) {
54+
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
55+
}
56+
}
57+
58+
/**
59+
* Helper to execute the sample.
60+
*
61+
* This sample has been automatically generated and should be regarded as a code
62+
* template only. It will require modifications to work:
63+
* - It may require correct/in-range values for request initialization.
64+
* - It may require specifying regional endpoints when creating the service client,
65+
* please see the apiEndpoint client configuration option for more details.
66+
*/
67+
function callSample(): void
68+
{
69+
$formattedAccount = UserServiceClient::accountName('[ACCOUNT]');
70+
71+
verify_self_sample($formattedAccount);
72+
}
73+
// [END merchantapi_v1_generated_UserService_VerifySelf_sync]

ShoppingMerchantAccounts/src/V1/AccessRight.php

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)