toolsOzoneSafelinkQueryRules function

Future<XRPCResponse<SafelinkQueryRulesOutput>> toolsOzoneSafelinkQueryRules({
  1. String? cursor,
  2. int? limit,
  3. List<String>? urls,
  4. String? patternType,
  5. List<String>? actions,
  6. String? reason,
  7. String? createdBy,
  8. SafelinkQueryRulesSortDirection? sortDirection,
  9. required ServiceContext $ctx,
  10. Map<String, String>? $headers,
  11. 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? 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,
);