
    j"                     V    d Z ddlmZ ddlmZ ddlmZ  G d dej                        Z	y)z1Generated client library for iam version v2alpha.    )absolute_import)base_api)iam_v2alpha_messagesc                        e Zd ZdZeZdZdZdZdgZ	dZ
dZdZd	Zd ZdZd
Z	 	 	 	 	 d fd	Z G d dej&                        Z G d dej&                        Z xZS )
IamV2alphaz9Generated client library for service iam version v2alpha.zhttps://iam.googleapis.com/z https://iam.mtls.googleapis.com/iamz.https://www.googleapis.com/auth/cloud-platformv2alpha	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                     |xs | j                   }t        t        |   |||||||||	|
|       | j	                  |       | _        | j                  |       | _        y)zCreate a new iam handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__PoliciesOperationsServicepolicies_operationsPoliciesServicepolicies)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Klib/googlecloudsdk/generated_clients/apis/iam/v2alpha/iam_v2alpha_client.pyr   zIamV2alpha.__init__   sk     
C	*d$'d%l)3 7+ % -  $==dCD((.DM    c                   >     e Zd ZdZdZ fdZddZd e_         xZS )$IamV2alpha.PoliciesOperationsServicez3Service class for the policies_operations resource.r   c                 N    t         t        j                  |   |       i | _        y N)r   r   r   r   _upload_configsr   clientr    s     r!   r   z-IamV2alpha.PoliciesOperationsService.__init__2   s"    J00$@Hdr"   c                 L    | j                  d      }| j                  |||      S )a  Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

      Args:
        request: (IamPoliciesOperationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (GoogleLongrunningOperation) The response message.
      Getglobal_paramsGetMethodConfig
_RunMethodr   requestr-   configs       r!   r+   z(IamV2alpha.PoliciesOperationsService.Get7   1     ##E*f__
'  8 8r"   c                  F    t        j                  ddddgdgg ddddd	
      S )NzSv2alpha/policies/{policiesId}/{policiesId1}/{policiesId2}/operations/{operationsId}GETziam.policies.operations.getnamev2alpha/{+name} IamPoliciesOperationsGetRequestGoogleLongrunningOperationF	flat_pathhttp_method	method_idordered_paramspath_paramsquery_paramsrelative_pathrequest_fieldrequest_type_nameresponse_type_namesupports_downloadr   ApiMethodInfo r"   r!   <lambda>z-IamV2alpha.PoliciesOperationsService.<lambda>D   s4     6 6g/xH';7!r"   r&   )	__name__
__module____qualname____doc___NAMEr   r+   method_config__classcell__r    s   @r!   r   r$   -   s"    =!E
8Cr"   r   c                        e Zd ZdZdZ fdZddZd e_        ddZd e_        ddZ	d	 e	_        dd
Z
d e
_        ddZd e_         xZS )IamV2alpha.PoliciesServicez(Service class for the policies resource.r   c                 N    t         t        j                  |   |       i | _        y r&   )r   r   r   r   r'   r(   s     r!   r   z#IamV2alpha.PoliciesService.__init__W   s"    J&&6v>dr"   c                 L    | j                  d      }| j                  |||      S )aG  Creates a policy. All the policies attached to a specific resource must have unique IDs.

      Args:
        request: (IamPoliciesCreatePolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (GoogleLongrunningOperation) The response message.
      CreatePolicyr,   r.   r1   s       r!   rX   z'IamV2alpha.PoliciesService.CreatePolicy\   1     ##N3f__
'  8 8r"   c                  H    t        j                  ddddgdgdgdddd	d
      S )N+v2alpha/policies/{policiesId}/{policiesId1}POSTziam.policies.createPolicyparentpolicyIdv2alpha/{+parent}googleIamV2alphaPolicyIamPoliciesCreatePolicyRequestr;   Fr<   rH   rJ   r"   r!   rK   z#IamV2alpha.PoliciesService.<lambda>i   s6    )?)??- zJ \).:7*r"   c                 L    | j                  d      }| j                  |||      S )aY  Deletes a policy. Can provide 'Policy.etag' to enforce delete from last read for optimistic concurrency control.

      Args:
        request: (IamPoliciesDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (GoogleLongrunningOperation) The response message.
      Deleter,   r.   r1   s       r!   rc   z!IamV2alpha.PoliciesService.Deletew   1     ##H-f__
'  8 8r"   c                  H    t        j                  ddddgdgdgdddd	d
      S )N9v2alpha/policies/{policiesId}/{policiesId1}/{policiesId2}DELETEziam.policies.deleter7   etagr8   r9   IamPoliciesDeleteRequestr;   Fr<   rH   rJ   r"   r!   rK   z#IamV2alpha.PoliciesService.<lambda>   s6    8#9#9M'xHX'47$r"   c                 L    | j                  d      }| j                  |||      S )zGets a policy.

      Args:
        request: (IamPoliciesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (GoogleIamV2alphaPolicy) The response message.
      r+   r,   r.   r1   s       r!   r+   zIamV2alpha.PoliciesService.Get   r4   r"   c                  F    t        j                  ddddgdgg ddddd	
      S )Nrf   r6   ziam.policies.getr7   r8   r9   IamPoliciesGetRequestGoogleIamV2alphaPolicyFr<   rH   rJ   r"   r!   rK   z#IamV2alpha.PoliciesService.<lambda>   s4     6 6M$xH'13!r"   c                 L    | j                  d      }| j                  |||      S )a  Retrieves all of the policies attached to the specified resource, of the given kind. Only policy metadata is listed; specifically `policy.rules` is omitted.

      Args:
        request: (IamPoliciesListPoliciesRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (GoogleIamV2alphaListPoliciesResponse) The response message.
      ListPoliciesr,   r.   r1   s       r!   ro   z'IamV2alpha.PoliciesService.ListPolicies   rY   r"   c                  J    t        j                  ddddgdgddgddd	d
d      S )Nr[   r6   ziam.policies.listPoliciesr]   pageSize	pageTokenr_   r9   IamPoliciesListPoliciesRequest$GoogleIamV2alphaListPoliciesResponseFr<   rH   rJ   r"   r!   rK   z#IamV2alpha.PoliciesService.<lambda>   s9    )?)??- zJ +.):A*r"   c                 L    | j                  d      }| j                  |||      S )a  Updates the specified existing policy. Only `Policy.rules` and `Policy.display_name` may be updated. Need to provide 'Policy.etag' to enforce update from last read for optimistic concurrency control.

      Args:
        request: (GoogleIamV2alphaPolicy) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (GoogleLongrunningOperation) The response message.
      Updater,   r.   r1   s       r!   rv   z!IamV2alpha.PoliciesService.Update   rd   r"   c                  F    t        j                  ddddgdgg ddddd	
      S )Nrf   PUTziam.policies.updater7   r8   z	<request>rm   r;   Fr<   rH   rJ   r"   r!   rK   z#IamV2alpha.PoliciesService.<lambda>   s4    8#9#9M'xH'!27$r"   r&   )rL   rM   rN   rO   rP   r   rX   rQ   rc   r+   ro   rv   rR   rS   s   @r!   r   rU   R   s^    2E
8"L8F8C8"L8Fr"   r   )r9   NTNNFFNNNN)rL   rM   rN   rO   messagesMESSAGES_MODULEr   MTLS_BASE_URL_PACKAGE_SCOPES_VERSION
_CLIENT_ID_CLIENT_SECRET_USER_AGENT_CLIENT_CLASS_NAME_URL_VERSION_API_KEYr   r   BaseApiServicer   r   rR   rS   s   @r!   r   r   
   s    A/*(4-(=>'(*"."+#,()-6:/4<@?C	/$#("9"9 #JO// O Or"   r   N)
rO   
__future__r   apitools.base.pyr   1googlecloudsdk.generated_clients.apis.iam.v2alphar   ry   BaseApiClientr   rJ   r"   r!   <module>r      s'    7 ' % ^W'' Wr"   