
                         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)zCGenerated client library for policytroubleshooter version v2alpha1.    )absolute_import)base_api)&policytroubleshooter_v2alpha1_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 xZS )PolicytroubleshooterV2alpha1zKGenerated client library for service policytroubleshooter version v2alpha1.z,https://policytroubleshooter.googleapis.com/z1https://policytroubleshooter.mtls.googleapis.com/policytroubleshooterz.https://www.googleapis.com/auth/cloud-platformv2alpha1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                     |xs | j                   }t        t        |   |||||||||	|
|       | j	                  |       | _        y)z)Create a new policytroubleshooter handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__
IamServiceiam)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               olib/googlecloudsdk/generated_clients/apis/policytroubleshooter/v2alpha1/policytroubleshooter_v2alpha1_client.pyr   z%PolicytroubleshooterV2alpha1.__init__   sW     
C	
&6'd%l)3 7+ 7 - t$DH    c                   >     e Zd ZdZdZ fdZddZd e_         xZS )'PolicytroubleshooterV2alpha1.IamServicez#Service class for the iam resource.r   c                 N    t         t        j                  |   |       i | _        y N)r   r   r   r   _upload_configs)r   clientr   s     r   r   z0PolicytroubleshooterV2alpha1.IamService.__init__1   s#    (33TCFKdr    c                 L    | j                  d      }| j                  |||      S )a  Checks whether a member has a specific permission for a specific resource,.
and explains why the member does or does not have that permission.

      Args:
        request: (GoogleCloudPolicytroubleshooterV2alpha1TroubleshootIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (GoogleCloudPolicytroubleshooterV2alpha1TroubleshootIamPolicyResponse) The response message.
      Troubleshoot)global_params)GetMethodConfig
_RunMethod)r   requestr)   configs       r   r(   z4PolicytroubleshooterV2alpha1.IamService.Troubleshoot6   s1     ##N3f__
'  8 8r    c                  @    t        j                  ddg g g ddddd
      S )	NPOSTz%policytroubleshooter.iam.troubleshootzv2alpha1/iam:troubleshootz	<request>CGoogleCloudPolicytroubleshooterV2alpha1TroubleshootIamPolicyRequestDGoogleCloudPolicytroubleshooterV2alpha1TroubleshootIamPolicyResponseF)
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>z0PolicytroubleshooterV2alpha1.IamService.<lambda>D   s-    )?)?91!_a*r    r$   )	__name__
__module____qualname____doc___NAMEr   r(   method_config__classcell__r   s   @r   r   r"   ,   s"    -E
8"Lr    r   ) NTNNFFNNNN)r?   r@   rA   rB   messagesMESSAGES_MODULEr   MTLS_BASE_URL_PACKAGE_SCOPES_VERSION
_CLIENT_ID_CLIENT_SECRET_USER_AGENT_CLIENT_CLASS_NAME_URL_VERSION_API_KEYr   r   BaseApiServicer   rE   rF   s   @r   r   r   
   sq    S/;(E-#(=>'(*"."+5,()-6:/4<@?C	%"#8** # #r    r   N)
rB   
__future__r   apitools.base.pyr   Cgooglecloudsdk.generated_clients.apis.policytroubleshooter.v2alpha1r   rH   BaseApiClientr   r=   r    r   <module>rY      s*    I ' % CE8#9#9 Er    