list method
Lists the Rebilling supported SKU groups the account is authorized to sell.
Reference: https://cloud.google.com/skus/sku-groups Possible Error Codes:
- PERMISSION_DENIED: If the account making the request and the account being queried are different, or the account doesn't exist. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the SkuGroup resources. The data for each resource is displayed in the alphabetical order of SKU group display name. The data for each resource is displayed in the ascending order of SkuGroup.display_name If unsuccessful, returns an error.
Request parameters:
parent
- Required. The resource name of the account from which to list
SKU groups. Parent uses the format: accounts/{account}.
Value must have pattern ^accounts/\[^/\]+$
.
pageSize
- Optional. The maximum number of SKU groups to return. The
service may return fewer than this value. If unspecified, returns a
maximum of 1000 SKU groups. The maximum value is 1000; values above 1000
will be coerced to 1000.
pageToken
- Optional. A token identifying a page of results beyond the
first page. Obtained through ListSkuGroups.next_page_token of the previous
CloudChannelService.ListSkuGroups call.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudChannelV1ListSkuGroupsResponse.
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<GoogleCloudChannelV1ListSkuGroupsResponse> 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') + '/skuGroups';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudChannelV1ListSkuGroupsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}