File: //usr/local/CyberPanel/lib64/python3.10/site-packages/botocore/__pycache__/model.cpython-310.pyc
o
�h�w � @ s| d Z ddlmZ ddlmZmZ ddlmZ ddlm Z m
Z
ddlmZm
Z
mZ e� ZG dd� de�ZG d d
� d
e�ZG dd� de�ZG d
d� de�ZG dd� de�ZG dd� d�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d!d"� d"�Z G d#d$� d$�Z!G d%d&� d&�Z"G d'd(� d(�Z#G d)d*� d*�Z$G d+d,� d,�Z%d-S ).z-Abstractions to interact with service models.� )�defaultdict)�
NamedTuple�Union)�OrderedDict)�MissingServiceIdError�UndefinedModelAttributeError)�CachedProperty�hyphenize_service_id�instance_cachec @ � e Zd ZdS )�NoShapeFoundErrorN��__name__�
__module__�__qualname__� r r �D/usr/local/CyberPanel/lib/python3.10/site-packages/botocore/model.pyr � r c @ r )�InvalidShapeErrorNr
r r r r r r r c @ r )�OperationNotFoundErrorNr
r r r r r $ r r c @ r )�InvalidShapeReferenceErrorNr
r r r r r ( r r c @ s e Zd Zdd� ZdS )� ServiceIdc C s t | �S �N)r ��selfr r r � hyphenize- s zServiceId.hyphenizeN)r r r r r r r r r , s r c @ sn e Zd ZdZg d�Zg d�ZeZddd�Ze dd� �Z
e d d
� �Ze dd� �Zd
d� Z
dd� Zedd� �ZdS )�Shapez3Object representing a shape from the service model.)�locationName� queryName� flattened�location�payload� streaming�timestampFormat�xmlNamespace�
resultWrapper�xmlAttribute�eventstream�event�eventheader�eventpayload� jsonvaluer# � hostLabel)�required�min�max�pattern� sensitive�enum�idempotencyToken�error� exception�endpointdiscoveryid� retryable�document�union�contextParam�clientContextParams�requiresLengthNc C sB || _ |d | _|�dd�| _|| _|du rt� }|| _i | _dS )a
:type shape_name: string
:param shape_name: The name of the shape.
:type shape_model: dict
:param shape_model: The shape model. This would be the value
associated with the key in the "shapes" dict of the
service model (i.e ``model['shapes'][shape_name]``)
:type shape_resolver: botocore.model.ShapeResolver
:param shape_resolver: A shape resolver object. This is used to
resolve references to other shapes. For scalar shape types
(string, integer, boolean, etc.), this argument is not
required. If a shape_resolver is not provided for a complex
type, then a ``ValueError`` will be raised when an attempt
to resolve a shape is made.
�type�
documentation� N)�name� type_name�getr>