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\GoogleCloudChannelV1ListSkuGroupBillableSkusResponse;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * The "billableSkus" collection of methods.
|
---|
24 | * Typical usage is:
|
---|
25 | * <code>
|
---|
26 | * $cloudchannelService = new Google\Service\Cloudchannel(...);
|
---|
27 | * $billableSkus = $cloudchannelService->accounts_skuGroups_billableSkus;
|
---|
28 | * </code>
|
---|
29 | */
|
---|
30 | class AccountsSkuGroupsBillableSkus extends \Google\Service\Resource
|
---|
31 | {
|
---|
32 | /**
|
---|
33 | * Lists the Billable SKUs in a given SKU group. Possible error codes:
|
---|
34 | * PERMISSION_DENIED: If the account making the request and the account being
|
---|
35 | * queried for are different, or the account doesn't exist. INVALID_ARGUMENT:
|
---|
36 | * Missing or invalid required parameters in the request. INTERNAL: Any non-user
|
---|
37 | * error related to technical issue in the backend. In this case, contact cloud
|
---|
38 | * channel support. Return Value: If successful, the BillableSku resources. The
|
---|
39 | * data for each resource is displayed in the ascending order of: *
|
---|
40 | * BillableSku.service_display_name * BillableSku.sku_display_name If
|
---|
41 | * unsuccessful, returns an error.
|
---|
42 | * (billableSkus.listAccountsSkuGroupsBillableSkus)
|
---|
43 | *
|
---|
44 | * @param string $parent Required. Resource name of the SKU group. Format:
|
---|
45 | * accounts/{account}/skuGroups/{sku_group}.
|
---|
46 | * @param array $optParams Optional parameters.
|
---|
47 | *
|
---|
48 | * @opt_param int pageSize Optional. The maximum number of SKUs to return. The
|
---|
49 | * service may return fewer than this value. If unspecified, returns a maximum
|
---|
50 | * of 100000 SKUs. The maximum value is 100000; values above 100000 will be
|
---|
51 | * coerced to 100000.
|
---|
52 | * @opt_param string pageToken Optional. A token identifying a page of results
|
---|
53 | * beyond the first page. Obtained through
|
---|
54 | * ListSkuGroupBillableSkusResponse.next_page_token of the previous
|
---|
55 | * CloudChannelService.ListSkuGroupBillableSkus call.
|
---|
56 | * @return GoogleCloudChannelV1ListSkuGroupBillableSkusResponse
|
---|
57 | * @throws \Google\Service\Exception
|
---|
58 | */
|
---|
59 | public function listAccountsSkuGroupsBillableSkus($parent, $optParams = [])
|
---|
60 | {
|
---|
61 | $params = ['parent' => $parent];
|
---|
62 | $params = array_merge($params, $optParams);
|
---|
63 | return $this->call('list', [$params], GoogleCloudChannelV1ListSkuGroupBillableSkusResponse::class);
|
---|
64 | }
|
---|
65 | }
|
---|
66 |
|
---|
67 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
68 | class_alias(AccountsSkuGroupsBillableSkus::class, 'Google_Service_Cloudchannel_Resource_AccountsSkuGroupsBillableSkus');
|
---|