list method
Lists information about how a Reseller modifies their bill before sending it to a ChannelPartner.
Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different. * NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the ChannelPartnerRepricingConfig resources. The data for each resource is displayed in the ascending order of: * Channel Partner ID * RepricingConfig.effective_invoice_month * ChannelPartnerRepricingConfig.update_time If unsuccessful, returns an error.
Request parameters:
parent
- Required. The resource name of the account's
ChannelPartnerLink. Parent uses the format:
accounts/{account_id}/channelPartnerLinks/{channel_partner_id}. Supports
accounts/{account_id}/channelPartnerLinks/- to retrieve configs for all
channel partners.
Value must have pattern ^accounts/\[^/\]+/channelPartnerLinks/\[^/\]+$
.
filter
- Optional. A filter for
[CloudChannelService.ListChannelPartnerRepricingConfigs] results
(channel_partner_link only). You can use this filter when you support a
BatchGet-like query. To use the filter, you must set
parent=accounts/{account_id}/channelPartnerLinks/-
. Example:
channel_partner_link = accounts/account_id/channelPartnerLinks/c1
OR
channel_partner_link = accounts/account_id/channelPartnerLinks/c2
.
pageSize
- Optional. The maximum number of repricing configs to return.
The service may return fewer than this value. If unspecified, returns a
maximum of 50 rules. The maximum value is 100; values above 100 will be
coerced to 100.
pageToken
- Optional. A token identifying a page of results beyond the
first page. Obtained through
ListChannelPartnerRepricingConfigsResponse.next_page_token of the previous
CloudChannelService.ListChannelPartnerRepricingConfigs call.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse.
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<GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse>
list(
core.String parent, {
core.String? filter,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (filter != null) 'filter': [filter],
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' +
core.Uri.encodeFull('$parent') +
'/channelPartnerRepricingConfigs';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse
.fromJson(response_ as core.Map<core.String, core.dynamic>);
}