o
    ³©i  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é    )Ú
RpcRequest)Úendpoint_datac                   @   sD   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S )ÚSetKeyPolicyRequestc                 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ÚSetKeyPolicyÚkmsÚhttpsÚPOSTÚendpoint_mapÚendpoint_regional)	r   Ú__init__Úset_protocol_typeÚ
set_methodÚhasattrÚsetattrr   ÚgetEndpointMapÚgetEndpointRegional©Úself© r   úf/home/ubuntu/.local/lib/python3.10/site-packages/aliyunsdkkms/request/v20160120/SetKeyPolicyRequest.pyr      s   



ÿzSetKeyPolicyRequest.__init__c                 C   ó   |   ¡  d¡S ©NÚKeyId©Úget_query_paramsÚgetr   r   r   r   Ú	get_KeyId#   ó   zSetKeyPolicyRequest.get_KeyIdc                 C   ó   |   d|¡ d S r   ©Úadd_query_param)r   r   r   r   r   Ú	set_KeyId&   ó   zSetKeyPolicyRequest.set_KeyIdc                 C   r   ©NÚ
PolicyNamer   r   r   r   r   Úget_PolicyName(   r   z"SetKeyPolicyRequest.get_PolicyNamec                 C   r   r$   r    )r   r%   r   r   r   Úset_PolicyName+   r#   z"SetKeyPolicyRequest.set_PolicyNamec                 C   r   ©NÚPolicyr   r   r   r   r   Ú
get_Policy-   r   zSetKeyPolicyRequest.get_Policyc                 C   r   r(   r    )r   r)   r   r   r   Ú
set_Policy0   r#   zSetKeyPolicyRequest.set_PolicyN)
Ú__name__Ú
__module__Ú__qualname__r   r   r"   r&   r'   r*   r+   r   r   r   r   r      s    
r   N)Úaliyunsdkcore.requestr   Úaliyunsdkkms.endpointr   r   r   r   r   r   Ú<module>   s   