o
    ³©iÃ  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é    )Ú
RpcRequest)Úendpoint_datac                   @   s´   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	d
„ Zdd„ Zdd„ Z	dd„ Z
dd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd „ Zd!d"„ Zd#d$„ Zd%d&„ Zd'd(„ Zd)d*„ Zd+S ),ÚCreateKeyRequestc                 C   sb   t  | dddd¡ |  d¡ |  d¡ t| dƒr t| dt ¡ ƒ t| dƒr/t| dt ¡ ƒ d S d S )	NÚKmsz
2016-01-20Ú	CreateKeyÚkmsÚhttpsÚPOSTÚendpoint_mapÚendpoint_regional)	r   Ú__init__Úset_protocol_typeÚ
set_methodÚhasattrÚsetattrr   ÚgetEndpointMapÚgetEndpointRegional©Úself© r   úc/home/ubuntu/.local/lib/python3.10/site-packages/aliyunsdkkms/request/v20160120/CreateKeyRequest.pyr      s   



ÿzCreateKeyRequest.__init__c                 C   ó   |   ¡  d¡S ©NÚOrigin©Úget_query_paramsÚgetr   r   r   r   Ú
get_Origin#   ó   zCreateKeyRequest.get_Originc                 C   ó   |   d|¡ d S r   ©Úadd_query_param)r   r   r   r   r   Ú
set_Origin&   ó   zCreateKeyRequest.set_Originc                 C   r   ©NÚDescriptionr   r   r   r   r   Úget_Description(   r   z CreateKeyRequest.get_Descriptionc                 C   r   r$   r    )r   r%   r   r   r   Úset_Description+   r#   z CreateKeyRequest.set_Descriptionc                 C   r   ©NÚKeySpecr   r   r   r   r   Úget_KeySpec-   r   zCreateKeyRequest.get_KeySpecc                 C   r   r(   r    )r   r)   r   r   r   Úset_KeySpec0   r#   zCreateKeyRequest.set_KeySpecc                 C   r   ©NÚRotationIntervalr   r   r   r   r   Úget_RotationInterval2   r   z%CreateKeyRequest.get_RotationIntervalc                 C   r   r,   r    )r   r-   r   r   r   Úset_RotationInterval5   r#   z%CreateKeyRequest.set_RotationIntervalc                 C   r   ©NÚEnableAutomaticRotationr   r   r   r   r   Úget_EnableAutomaticRotation7   r   z,CreateKeyRequest.get_EnableAutomaticRotationc                 C   r   r0   r    )r   r1   r   r   r   Úset_EnableAutomaticRotation:   r#   z,CreateKeyRequest.set_EnableAutomaticRotationc                 C   r   ©NÚTagsr   r   r   r   r   Úget_Tags<   r   zCreateKeyRequest.get_Tagsc                 C   r   r4   r    )r   r5   r   r   r   Úset_Tags?   r#   zCreateKeyRequest.set_Tagsc                 C   r   ©NÚProtectionLevelr   r   r   r   r   Úget_ProtectionLevelA   r   z$CreateKeyRequest.get_ProtectionLevelc                 C   r   r8   r    )r   r9   r   r   r   Úset_ProtectionLevelD   r#   z$CreateKeyRequest.set_ProtectionLevelc                 C   r   ©NÚKeyUsager   r   r   r   r   Úget_KeyUsageF   r   zCreateKeyRequest.get_KeyUsagec                 C   r   r<   r    )r   r=   r   r   r   Úset_KeyUsageI   r#   zCreateKeyRequest.set_KeyUsagec                 C   r   ©NÚDKMSInstanceIdr   r   r   r   r   Úget_DKMSInstanceIdK   r   z#CreateKeyRequest.get_DKMSInstanceIdc                 C   r   r@   r    )r   rA   r   r   r   Úset_DKMSInstanceIdN   r#   z#CreateKeyRequest.set_DKMSInstanceIdc                 C   r   ©NÚPolicyr   r   r   r   r   Ú
get_PolicyP   r   zCreateKeyRequest.get_Policyc                 C   r   rD   r    )r   rE   r   r   r   Ú
set_PolicyS   r#   zCreateKeyRequest.set_PolicyN)Ú__name__Ú
__module__Ú__qualname__r   r   r"   r&   r'   r*   r+   r.   r/   r2   r3   r6   r7   r:   r;   r>   r?   rB   rC   rF   rG   r   r   r   r   r      s,    
r   N)Úaliyunsdkcore.requestr   Úaliyunsdkkms.endpointr   r   r   r   r   r   Ú<module>   s   