list method
List security profiles v2.
Request parameters:
parent - Required. For a specific organization, list of all the security
profiles. Format: organizations/{org}
Value must have pattern ^organizations/\[^/\]+$.
pageSize - Optional. The maximum number of profiles to return
pageToken - Optional. A page token, received from a previous
ListSecurityProfilesV2 call. Provide this to retrieve the subsequent
page.
riskAssessmentType - Optional. The risk assessment type of the security
profiles. Defaults to ADVANCED_API_SECURITY.
Possible string values are:
- "RISK_ASSESSMENT_TYPE_UNSPECIFIED" : Risk assessment type is not specified.
- "APIGEE" : Risk assessment type is Apigee.
- "API_HUB" : Risk assessment type is API Hub.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudApigeeV1ListSecurityProfilesV2Response.
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<GoogleCloudApigeeV1ListSecurityProfilesV2Response> list(
core.String parent, {
core.int? pageSize,
core.String? pageToken,
core.String? riskAssessmentType,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'pageSize': ?pageSize == null ? null : ['${pageSize}'],
'pageToken': ?pageToken == null ? null : [pageToken],
'riskAssessmentType': ?riskAssessmentType == null
? null
: [riskAssessmentType],
'fields': ?$fields == null ? null : [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/securityProfilesV2';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudApigeeV1ListSecurityProfilesV2Response.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}