toolsOzoneSafelinkQueryRules function
Query URL safety rules
Implementation
Future<XRPCResponse<SafelinkQueryRulesOutput>> toolsOzoneSafelinkQueryRules({
String? cursor,
int? limit,
List<String>? urls,
String? patternType,
List<String>? actions,
String? reason,
String? createdBy,
SafelinkQueryRulesSortDirection? sortDirection,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.toolsOzoneSafelinkQueryRules,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
if (cursor != null) 'cursor': cursor,
if (limit != null) 'limit': limit,
if (urls != null) 'urls': urls,
if (patternType != null) 'patternType': patternType,
if (actions != null) 'actions': actions,
if (reason != null) 'reason': reason,
if (createdBy != null) 'createdBy': createdBy,
if (sortDirection != null) 'sortDirection': sortDirection.toJson(),
},
to: const SafelinkQueryRulesOutputConverter().fromJson,
);