
                         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)zBGenerated client library for policytroubleshooter version v3alpha.    )absolute_import)base_api)%policytroubleshooter_v3alpha_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 G d dej&                        Z xZS )PolicytroubleshooterV3alphazJGenerated client library for service policytroubleshooter version v3alpha.z,https://policytroubleshooter.googleapis.com/z1https://policytroubleshooter.mtls.googleapis.com/policytroubleshooterz.https://www.googleapis.com/auth/cloud-platformv3alpha	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                     |xs | j                   }t        t        |   |||||||||	|
|       | j	                  |       | _        | j                  |       | _        | 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__GcpUserAccessBindingServicegcpUserAccessBinding
IamServiceiamServicePerimeterServiceservicePerimeter)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               mlib/googlecloudsdk/generated_clients/apis/policytroubleshooter/v3alpha/policytroubleshooter_v3alpha_client.pyr   z$PolicytroubleshooterV3alpha.__init__   s}     
C	
%t5'd%l)3 7+ 6 - !% @ @ FDt$DH 88>D    c                   >     e Zd ZdZdZ fdZddZd e_         xZS )7PolicytroubleshooterV3alpha.GcpUserAccessBindingServicez4Service class for the gcpUserAccessBinding resource.r   c                 N    t         t        j                  |   |       i | _        y N)r   r   r   r   _upload_configsr    clientr"   s     r#   r   z@PolicytroubleshooterV3alpha.GcpUserAccessBindingService.__init__3   s$    'CCTSTZ[dr$   c                 L    | j                  d      }| j                  |||      S )a  Checks why an access is granted or not with GcpUserAccessBinding.

      Args:
        request: (GoogleCloudPolicytroubleshooterGcpuseraccessbindingV3alphaTroubleshootGcpUserAccessBindingRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (GoogleCloudPolicytroubleshooterGcpuseraccessbindingV3alphaTroubleshootGcpUserAccessBindingResponse) The response message.
      Troubleshootglobal_paramsGetMethodConfig
_RunMethodr    requestr/   configs       r#   r-   zDPolicytroubleshooterV3alpha.GcpUserAccessBindingService.Troubleshoot8   1     ##N3f__
'  8 8r$   c                  @    t        j                  ddg g g ddddd
      S )	NPOSTz6policytroubleshooter.gcpUserAccessBinding.troubleshootz)v3alpha/gcpUserAccessBinding:troubleshoot	<request>aGoogleCloudPolicytroubleshooterGcpuseraccessbindingV3alphaTroubleshootGcpUserAccessBindingRequestbGoogleCloudPolicytroubleshooterGcpuseraccessbindingV3alphaTroubleshootGcpUserAccessBindingResponseF
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@PolicytroubleshooterV3alpha.GcpUserAccessBindingService.<lambda>E   s-    )?)?JA!}*r$   r(   	__name__
__module____qualname____doc___NAMEr   r-   method_config__classcell__r"   s   @r#   r   r&   .   s"    >"E
8"Lr$   r   c                   >     e Zd ZdZdZ fdZddZd e_         xZS )&PolicytroubleshooterV3alpha.IamServicez#Service class for the iam resource.r   c                 N    t         t        j                  |   |       i | _        y r(   )r   r   r   r   r)   r*   s     r#   r   z/PolicytroubleshooterV3alpha.IamService.__init__W   s#    '22DB6Jdr$   c                 L    | j                  d      }| j                  |||      S )a  Checks whether a principal has a specific permission for a specific resource, and explains why the principal does or doesn't have that permission.

      Args:
        request: (GoogleCloudPolicytroubleshooterIamV3alphaTroubleshootIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (GoogleCloudPolicytroubleshooterIamV3alphaTroubleshootIamPolicyResponse) The response message.
      r-   r.   r0   r3   s       r#   r-   z3PolicytroubleshooterV3alpha.IamService.Troubleshoot\   r6   r$   c                  @    t        j                  ddg g g ddddd
      S )	Nr8   z%policytroubleshooter.iam.troubleshootzv3alpha/iam:troubleshootr9   EGoogleCloudPolicytroubleshooterIamV3alphaTroubleshootIamPolicyRequestFGoogleCloudPolicytroubleshooterIamV3alphaTroubleshootIamPolicyResponseFr<   rG   rI   r$   r#   rJ   z/PolicytroubleshooterV3alpha.IamService.<lambda>i   s-    )?)?90!ac*r$   r(   rK   rS   s   @r#   r   rU   R   s"    -E
8"Lr$   r   c                   >     e Zd ZdZdZ fdZddZd e_         xZS )3PolicytroubleshooterV3alpha.ServicePerimeterServicez0Service class for the servicePerimeter resource.r   c                 N    t         t        j                  |   |       i | _        y r(   )r   r   r   r   r)   r*   s     r#   r   z<PolicytroubleshooterV3alpha.ServicePerimeterService.__init__{   s$    '??OPVWdr$   c                 L    | j                  d      }| j                  |||      S )a  Checks why an access is granted or not with service perimeters.

      Args:
        request: (GoogleCloudPolicytroubleshooterServiceperimeterV3alphaTroubleshootServicePerimeterRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (GoogleCloudPolicytroubleshooterServiceperimeterV3alphaTroubleshootServicePerimeterResponse) The response message.
      r-   r.   r0   r3   s       r#   r-   z@PolicytroubleshooterV3alpha.ServicePerimeterService.Troubleshoot   r6   r$   c                  @    t        j                  ddg g g ddddd
      S )	Nr8   z2policytroubleshooter.servicePerimeter.troubleshootz%v3alpha/servicePerimeter:troubleshootr9   YGoogleCloudPolicytroubleshooterServiceperimeterV3alphaTroubleshootServicePerimeterRequestZGoogleCloudPolicytroubleshooterServiceperimeterV3alphaTroubleshootServicePerimeterResponseFr<   rG   rI   r$   r#   rJ   z<PolicytroubleshooterV3alpha.ServicePerimeterService.<lambda>   s-    )?)?F=!uw*r$   r(   rK   rS   s   @r#   r   r\   v   s"    :E
8"Lr$   r   ) 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   r   rR   rS   s   @r#   r   r   
   s    R/;(E-#(=>'(*"."+4,()-6:/4<@?C	?&"H$;$; "H"8** "H" 7 7 " "r$   r   N)
rO   
__future__r   apitools.base.pyr   Bgooglecloudsdk.generated_clients.apis.policytroubleshooter.v3alphar   rc   BaseApiClientr   rI   r$   r#   <module>rt      s*    H ' % AN("8"8 Nr$   