list method

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

Lists all non-deleted WorkforcePoolProviderScimTokenss in a WorkforcePoolProviderScimTenant.

If show_deleted is set to true, then deleted SCIM tokens are also listed.

Request parameters:

parent - Required. The parent to list scim tokens. Format: 'locations/{location}/workforcePools/{workforce_pool}/providers/{provider}/scimTenants/{scim_tenant}' Value must have pattern ^locations/\[^/\]+/workforcePools/\[^/\]+/providers/\[^/\]+/scimTenants/\[^/\]+$.

pageSize - Optional. The maximum number of scim tokens to return. If unspecified, at most 2 scim tokens will be returned.

pageToken - Optional. A page token, received from a previous ListWorkforcePoolProviderScimTokens call. Provide this to retrieve the subsequent page.

showDeleted - Optional. Whether to return soft-deleted scim tokens.

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

Completes with a ListWorkforcePoolProviderScimTokensResponse.

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

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

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