list method

Future<ListActionsResponse> list(
  1. String parent, {
  2. int? pageSize,
  3. String? pageToken,
  4. String? view,
  5. String? $fields,
})

Gets the schema of all the actions supported by the connector.

Request parameters:

parent - Required. Parent resource name of the Action. Format: projects/{project}/locations/{location}/connections/{connection} Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+/connections/\[^/\]+$.

pageSize - Number of Actions to return. Defaults to 25.

pageToken - Page token, return from a previous ListActions call, that can be used retrieve the next page of content. If unspecified, the request returns the first page of actions.

view - Specifies which fields of the Action are returned in the response. Possible string values are:

  • "ACTION_VIEW_UNSPECIFIED" : VIEW_UNSPECIFIED. The unset value Defaults to FULL View.
  • "ACTION_VIEW_BASIC" : Return only action names.
  • "ACTION_VIEW_FULL" : Return actions with schema.

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

Completes with a ListActionsResponse.

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

  final url_ = 'v2/' + core.Uri.encodeFull('$parent') + '/actions';

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