list method
Lists the Billable SKUs in a given SKU group.
Possible error codes: PERMISSION_DENIED: If the account making the request and the account being queried for are different, or the account doesn't exist. INVALID_ARGUMENT: Missing or invalid required parameters in the request. INTERNAL: Any non-user error related to technical issue in the backend. In this case, contact cloud channel support. Return Value: If successful, the BillableSku resources. The data for each resource is displayed in the ascending order of: * BillableSku.service_display_name * BillableSku.sku_display_name If unsuccessful, returns an error.
Request parameters:
parent
- Required. Resource name of the SKU group. Format:
accounts/{account}/skuGroups/{sku_group}.
Value must have pattern ^accounts/\[^/\]+/skuGroups/\[^/\]+$
.
pageSize
- Optional. The maximum number of SKUs to return. The service
may return fewer than this value. If unspecified, returns a maximum of
100000 SKUs. The maximum value is 100000; values above 100000 will be
coerced to 100000.
pageToken
- Optional. A token identifying a page of results beyond the
first page. Obtained through ListSkuGroupBillableSkus.next_page_token of
the previous CloudChannelService.ListSkuGroupBillableSkus call.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudChannelV1ListSkuGroupBillableSkusResponse.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<GoogleCloudChannelV1ListSkuGroupBillableSkusResponse> list(
core.String parent, {
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/billableSkus';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudChannelV1ListSkuGroupBillableSkusResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}