
    2                     x    S r SSKJr  SSKJr  SSKJr  SSKJr   " S S\R                  5      r " S S	\	5      r
g
)z+API Library for `gcloud tasks cmek-config`.    )absolute_import)division)unicode_literals)
exceptionsc                       \ rS rSrSrSrg)RequiredFieldsMissingError   zEError for when calling a method when a required field is unspecified. N)__name__
__module____qualname____firstlineno____doc____static_attributes__r
       /lib/googlecloudsdk/api_lib/tasks/cmek_config.pyr   r      s    Mr   r   c                   0    \ rS rSrSrS r SS jrS rSrg)	
CmekConfig   z6Client for cmekConfig resource in the Cloud Tasks API.c                     Xl         X l        g )N)messagescmek_config_service)selfr   r   s      r   __init__CmekConfig.__init__   s    M2r   c                 D   U(       a  Ub  Uc  [        S5      eU(       d$  Ub  Ub  Uc  [        SR                  X2U5      5      eSR                  XS9nU R                  R                  UUS9nU R                  R	                  UUS9nU R
                  R                  U5      $ )zGPrepares and sends a UpdateCmekConfig request for the given CmekConfig.zGThe location or project are undefined. Please set these flags properly.zOne or more of the --kms-key-name, --kms-keyring, --location, or --project are invalid. Please set these flags properly or make sure the full KMS key name is valid. (args: kms_key={}, location={}, project={})8projects/{project_id}/locations/{location_id}/cmekConfig
project_idlocation_id)namekmsKey)
cmekConfigr!   )r   formatr   r   2CloudtasksProjectsLocationsUpdateCmekConfigRequestr   UpdateCmekConfig)r   r   r    full_kms_key_nameclearcmek_config_namecmek_configrequests           r   r&   CmekConfig.UpdateCmekConfig#   s    
 +%);&.  ![%8J<N&   1
K	  	CII! 	J 	
  --**  + K mmNN O G
 ##44W==r   c                     Uc  [        SR                  US95      eUc  [        SR                  US95      eSR                  XS9nU R                  R                  US9nU R                  R                  U5      $ )zDPrepares and sends a GetCmekConfig request for the given CmekConfig.zCProject ({project_id}) is invalid. Must specify --project properly.)r   zKLocation path ({location_id}) is invalid. Must specify --location properly.)r    r   r   )r!   )r   r$   r   /CloudtasksProjectsLocationsGetCmekConfigRequestr   GetCmekConfig)r   r   r    r)   r+   s        r   r/   CmekConfig.GetCmekConfigI   s    &vv4  &v+v6  	CII! 	J 	
 
 mmKK L G ##11'::r   )r   r   N)F)	r   r   r   r   r   r   r&   r/   r   r
   r   r   r   r      s    >3
 ?D$>L;r   r   N)r   
__future__r   r   r   googlecloudsdk.corer   Errorr   objectr   r
   r   r   <module>r5      s8    2 &  ' *N!1!1 NC; C;r   