list method
Gemini Enterprise only.
Lists all non-deleted WorkforcePoolProviderScimTenants in a
WorkforcePoolProvider. If show_deleted is set to true, then deleted
SCIM tenants are also listed.
Request parameters:
parent - Required. Gemini Enterprise only. The parent to list SCIM
tenants. Format:
'locations/{location}/workforcePools/{workforce_pool}/providers/{provider}'
Value must have pattern
^locations/\[^/\]+/workforcePools/\[^/\]+/providers/\[^/\]+$.
pageSize - Optional. Gemini Enterprise only. The maximum number of SCIM
tenants to return. If unspecified, at most 50 SCIM tenants will be
returned. The maximum value is 100; values above 100 are truncated to 100.
pageToken - Optional. Gemini Enterprise only. A page token, received
from a previous ListScimTenants call. Provide this to retrieve the
subsequent page.
showDeleted - Optional. Gemini Enterprise only. Whether to return
soft-deleted SCIM tenants.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a ListWorkforcePoolProviderScimTenantsResponse.
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<ListWorkforcePoolProviderScimTenantsResponse> 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>>{
'pageSize': ?pageSize == null ? null : ['${pageSize}'],
'pageToken': ?pageToken == null ? null : [pageToken],
'showDeleted': ?showDeleted == null ? null : ['${showDeleted}'],
'fields': ?$fields == null ? null : [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/scimTenants';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListWorkforcePoolProviderScimTenantsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}