1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://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, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\Cloudchannel\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\Cloudchannel\GoogleCloudChannelV1ListSkuGroupsResponse;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * The "skuGroups" collection of methods.
|
---|
24 | * Typical usage is:
|
---|
25 | * <code>
|
---|
26 | * $cloudchannelService = new Google\Service\Cloudchannel(...);
|
---|
27 | * $skuGroups = $cloudchannelService->accounts_skuGroups;
|
---|
28 | * </code>
|
---|
29 | */
|
---|
30 | class AccountsSkuGroups extends \Google\Service\Resource
|
---|
31 | {
|
---|
32 | /**
|
---|
33 | * Lists the Rebilling supported SKU groups the account is authorized to sell.
|
---|
34 | * Reference: https://cloud.google.com/skus/sku-groups Possible Error Codes: *
|
---|
35 | * PERMISSION_DENIED: If the account making the request and the account being
|
---|
36 | * queried are different, or the account doesn't exist. * INTERNAL: Any non-user
|
---|
37 | * error related to technical issues in the backend. In this case, contact Cloud
|
---|
38 | * Channel support. Return Value: If successful, the SkuGroup resources. The
|
---|
39 | * data for each resource is displayed in the alphabetical order of SKU group
|
---|
40 | * display name. The data for each resource is displayed in the ascending order
|
---|
41 | * of SkuGroup.display_name If unsuccessful, returns an error.
|
---|
42 | * (skuGroups.listAccountsSkuGroups)
|
---|
43 | *
|
---|
44 | * @param string $parent Required. The resource name of the account from which
|
---|
45 | * to list SKU groups. Parent uses the format: accounts/{account}.
|
---|
46 | * @param array $optParams Optional parameters.
|
---|
47 | *
|
---|
48 | * @opt_param int pageSize Optional. The maximum number of SKU groups to return.
|
---|
49 | * The service may return fewer than this value. If unspecified, returns a
|
---|
50 | * maximum of 1000 SKU groups. The maximum value is 1000; values above 1000 will
|
---|
51 | * be coerced to 1000.
|
---|
52 | * @opt_param string pageToken Optional. A token identifying a page of results
|
---|
53 | * beyond the first page. Obtained through ListSkuGroupsResponse.next_page_token
|
---|
54 | * of the previous CloudChannelService.ListSkuGroups call.
|
---|
55 | * @return GoogleCloudChannelV1ListSkuGroupsResponse
|
---|
56 | * @throws \Google\Service\Exception
|
---|
57 | */
|
---|
58 | public function listAccountsSkuGroups($parent, $optParams = [])
|
---|
59 | {
|
---|
60 | $params = ['parent' => $parent];
|
---|
61 | $params = array_merge($params, $optParams);
|
---|
62 | return $this->call('list', [$params], GoogleCloudChannelV1ListSkuGroupsResponse::class);
|
---|
63 | }
|
---|
64 | }
|
---|
65 |
|
---|
66 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
67 | class_alias(AccountsSkuGroups::class, 'Google_Service_Cloudchannel_Resource_AccountsSkuGroups');
|
---|