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