list method

Future<GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse> list(
  1. String parent, {
  2. int? count,
  3. String? startKey,
  4. String? $fields,
})

Lists all API product subscriptions for a developer.

Request parameters:

parent - Required. Email address of the developer. Use the following structure in your request: organizations/{org}/developers/{developer_email} Value must have pattern ^organizations/\[^/\]+/developers/\[^/\]+$.

count - Number of API product subscriptions to return in the API call. Use with startKey to provide more targeted filtering. Defaults to 100. The maximum limit is 1000.

startKey - Name of the API product subscription from which to start displaying the list of subscriptions. If omitted, the list starts from the first item. For example, to view the API product subscriptions from 51-150, set the value of startKey to the name of the 51st subscription and set the value of count to 100.

$fields - Selector specifying which fields to include in a partial response.

Completes with a GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse.

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<GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse> list(
  core.String parent, {
  core.int? count,
  core.String? startKey,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (count != null) 'count': ['${count}'],
    if (startKey != null) 'startKey': [startKey],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/subscriptions';

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}