list method
Returns the list of all integrations in the specified project.
Request parameters:
parent
- Required. Project and location from which the integrations
should be listed. Format: projects/{project}
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/products/\[^/\]+$
.
filter
- Filter on fields of IntegrationVersion. Fields can be compared
with literal values by use of ":" (containment), "=" (equality), ">"
(greater), "<" (less than), >=" (greater than or equal to), "<=" (less
than or equal to), and "!=" (inequality) operators. Negation, conjunction,
and disjunction are written using NOT, AND, and OR keywords. For example,
organization_id="1" AND state=ACTIVE AND description:"test". Filtering
cannot be performed on repeated fields like task_config
.
orderBy
- The results would be returned in order you specified here.
Supported sort keys are: Descending sort order by "last_modified_time",
"created_time", "snapshot_number". Ascending sort order by the integration
name.
pageSize
- The page size for the resquest.
pageToken
- The page token for the resquest.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudIntegrationsV1alphaListIntegrationsResponse.
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<GoogleCloudIntegrationsV1alphaListIntegrationsResponse> list(
core.String parent, {
core.String? filter,
core.String? orderBy,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (filter != null) 'filter': [filter],
if (orderBy != null) 'orderBy': [orderBy],
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/integrations';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudIntegrationsV1alphaListIntegrationsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}