listEntitlementChanges method
List entitlement history.
Possible error codes: * PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different. * INVALID_ARGUMENT: Missing or invalid required fields in the request. * NOT_FOUND: The parent resource doesn't exist. Usually the result of an invalid name parameter. * INTERNAL: Any non-user error related to a technical issue in the backend. In this case, contact CloudChannel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support. Return value: List of EntitlementChanges.
Request parameters:
parent
- Required. The resource name of the entitlement for which to
list entitlement changes. The -
wildcard may be used to match
entitlements across a customer. Formats: *
accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
- accounts/{account_id}/customers/{customer_id}/entitlements/-
Value must have pattern
^accounts/\[^/\]+/customers/\[^/\]+/entitlements/\[^/\]+$
.
filter
- Optional. Filters applied to the list results.
pageSize
- Optional. The maximum number of entitlement changes to
return. The service may return fewer than this value. If unspecified,
returns at most 10 entitlement changes. The maximum value is 50; the
server will coerce values above 50.
pageToken
- Optional. A page token, received from a previous
CloudChannelService.ListEntitlementChanges call. Provide this to retrieve
the subsequent page. When paginating, all other parameters provided to
CloudChannelService.ListEntitlementChanges must match the call that
provided the page token.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudChannelV1ListEntitlementChangesResponse.
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<GoogleCloudChannelV1ListEntitlementChangesResponse>
listEntitlementChanges(
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') + ':listEntitlementChanges';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudChannelV1ListEntitlementChangesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}