
    i>                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z0Generated client library for testing version v1.    )absolute_import)base_api)testing_v1_messagesc                   @  ^  \ rS rSrSr\rSrSrSr	SS/r
SrS	rS
rSrS rSrSr     SU 4S jjr " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      rSrU =r$ )	TestingV1
   z8Generated client library for service testing version v1.zhttps://testing.googleapis.com/z$https://testing.mtls.googleapis.com/testingz.https://www.googleapis.com/auth/cloud-platformz8https://www.googleapis.com/auth/cloud-platform.read-onlyv1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                 <  > U=(       d    U R                   n[        [        U ]  XX4UXgUU	U
US9  U R	                  U 5      U l        U R                  U 5      U l        U R                  U 5      U l	        U R                  U 5      U l        U R                  U 5      U l        g)zCreate a new testing handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__ApplicationDetailServiceServiceapplicationDetailServiceProjectsDeviceSessionsServiceprojects_deviceSessionsProjectsTestMatricesServiceprojects_testMatricesProjectsServiceprojectsTestEnvironmentCatalogServicetestEnvironmentCatalog)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Ilib/googlecloudsdk/generated_clients/apis/testing/v1/testing_v1_client.pyr   TestingV1.__init__   s     
C	)T#'%)3 7+ $ - %)$H$H$ND!#'#E#Ed#KD !%!A!A$!GD((.DM"&"D"DT"JD    c                   J   ^  \ rS rSrSrSrU 4S jrSS jrS \l        Sr	U =r
$ )	)TestingV1.ApplicationDetailServiceService0   z8Service class for the applicationDetailService resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr%   clientr'   s     r(   r   2TestingV1.ApplicationDetailServiceService.__init__5   s"    I55tEfMdr*   c                 D    U R                  S5      nU R                  X1US9$ )a
  Gets the details of an Android application APK.

Args:
  request: (TestingApplicationDetailServiceGetApkDetailsRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GetApkDetailsResponse) The response message.
GetApkDetailsglobal_paramsGetMethodConfig
_RunMethodr%   requestr7   configs       r(   r5   7TestingV1.ApplicationDetailServiceService.GetApkDetails:   s/     ##O4f__
  8 8r*   c                  >    [         R                  " SS/ / S/SSSSSS	9
$ )
NPOSTz.testing.applicationDetailService.getApkDetailsbundleLocation_gcsPathz)v1/applicationDetailService/getApkDetailsfileReference3TestingApplicationDetailServiceGetApkDetailsRequestGetApkDetailsResponseF
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>2TestingV1.ApplicationDetailServiceService.<lambda>G   s0    (*@*@B./A%O2+r*   r0   r/   )__name__
__module____qualname____firstlineno____doc___NAMEr   r5   method_config__static_attributes____classcell__r'   s   @r(   r   r,   0   s"    B&E
8#Mr*   r   c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SS jrS \l        SrU =r$ )'TestingV1.ProjectsDeviceSessionsServiceT   z7Service class for the projects_deviceSessions resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r/   )r   r   r   r   r0   r1   s     r(   r   0TestingV1.ProjectsDeviceSessionsService.__init__Y   "    I33TCFKdr*   c                 D    U R                  S5      nU R                  X1US9$ )a  POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections. Canceled sessions are not deleted and can be retrieved or listed by the user until they expire based on the 28 day deletion policy.

Args:
  request: (TestingProjectsDeviceSessionsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Cancelr6   r8   r;   s       r(   rg   .TestingV1.ProjectsDeviceSessionsService.Cancel^   /     ##H-f__
  8 8r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzAv1/projects/{projectsId}/deviceSessions/{deviceSessionsId}:cancelr@   z&testing.projects.deviceSessions.cancelnamezv1/{+name}:cancelcancelDeviceSessionRequest*TestingProjectsDeviceSessionsCancelRequestEmptyF	flat_pathrF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rR   r*   r(   rS   0TestingV1.ProjectsDeviceSessionsService.<lambda>k   s4    8#9#9U:xH)2F"$r*   c                 D    U R                  S5      nU R                  X1US9$ )zPOST /v1/projects/{project_id}/deviceSessions.

Args:
  request: (TestingProjectsDeviceSessionsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (DeviceSession) The response message.
Creater6   r8   r;   s       r(   rs   .TestingV1.ProjectsDeviceSessionsService.Createy   ri   r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N'v1/projects/{projectsId}/deviceSessionsr@   z&testing.projects.deviceSessions.createparentv1/{+parent}/deviceSessionsdeviceSession*TestingProjectsDeviceSessionsCreateRequestDeviceSessionFro   rP   rR   r*   r(   rS   rq      s4    8#9#9;: zJ3%F*$r*   c                 D    U R                  S5      nU R                  X1US9$ )a  GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession.

Args:
  request: (TestingProjectsDeviceSessionsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (DeviceSession) The response message.
Getr6   r8   r;   s       r(   r}   +TestingV1.ProjectsDeviceSessionsService.Get   /     ##E*f__
  8 8r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N:v1/projects/{projectsId}/deviceSessions/{deviceSessionsId}GETz#testing.projects.deviceSessions.getrk   
v1/{+name} 'TestingProjectsDeviceSessionsGetRequestr{   Fro   rP   rR   r*   r(   rS   rq      s4     6 6N7xH"C*!r*   c                 D    U R                  S5      nU R                  X1US9$ )a2  GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user.

Args:
  request: (TestingProjectsDeviceSessionsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListDeviceSessionsResponse) The response message.
Listr6   r8   r;   s       r(   r   ,TestingV1.ProjectsDeviceSessionsService.List   s/     ##F+f__
  8 8r*   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nrv   r   z$testing.projects.deviceSessions.listrw   )filterpageSize	pageTokenrx   r   (TestingProjectsDeviceSessionsListRequestListDeviceSessionsResponseFro   rP   rR   r*   r(   rS   rq      s4    !7!7;8 zJ83D7"r*   c                 D    U R                  S5      nU R                  X1US9$ )aj  PATCH /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession Updates the current device session to the fields described by the update_mask.

Args:
  request: (TestingProjectsDeviceSessionsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (DeviceSession) The response message.
Patchr6   r8   r;   s       r(   r   -TestingV1.ProjectsDeviceSessionsService.Patch   s/     ##G,f__
  8 8r*   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr   PATCHz%testing.projects.deviceSessions.patchrk   
updateMaskr   ry   )TestingProjectsDeviceSessionsPatchRequestr{   Fro   rP   rR   r*   r(   rS   rq      s6    ("8"8N9xH"^"%E*#r*   rU   r/   )rV   rW   rX   rY   rZ   r[   r   rg   r\   rs   r}   r   r   r]   r^   r_   s   @r(   r   ra   T   s^    A%E
8F8F8C8D8Er*   r   c                   ~   ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SrU =r$ )%TestingV1.ProjectsTestMatricesService   z5Service class for the projects_testMatrices resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r/   )r   r   r   r   r0   r1   s     r(   r   .TestingV1.ProjectsTestMatricesService.__init__   s"    I114A&Idr*   c                 D    U R                  S5      nU R                  X1US9$ )ap  Cancels unfinished test executions in a test matrix. This call returns immediately and cancellation proceeds asynchronously. If the matrix is already final, this operation will have no effect. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist.

Args:
  request: (TestingProjectsTestMatricesCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (CancelTestMatrixResponse) The response message.
rg   r6   r8   r;   s       r(   rg   ,TestingV1.ProjectsTestMatricesService.Cancel   ri   r*   c                  D    [         R                  " SSSS/SS// SSSSS	S
9
$ )Nr@   z$testing.projects.testMatrices.cancel	projectIdtestMatrixIdz:v1/projects/{projectId}/testMatrices/{testMatrixId}:cancelr   (TestingProjectsTestMatricesCancelRequestCancelTestMatrixResponseFrE   rP   rR   r*   r(   rS   .TestingV1.ProjectsTestMatricesService.<lambda>   s7    8#9#98#^4 .1RD5$r*   c                 D    U R                  S5      nU R                  X1US9$ )a-  Creates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most 2000 devices in parallel. The returned matrix will not yet contain the executions that will be created for this matrix. Execution creation happens later on and will require a call to GetTestMatrix. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed or if the matrix tries to use too many simultaneous devices.

Args:
  request: (TestingProjectsTestMatricesCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (TestMatrix) The response message.
rs   r6   r8   r;   s       r(   rs   ,TestingV1.ProjectsTestMatricesService.Create	  ri   r*   c                  B    [         R                  " SSS/S/S/SSSSS	S
9
$ )Nr@   z$testing.projects.testMatrices.creater   	requestIdz$v1/projects/{projectId}/testMatrices
testMatrix(TestingProjectsTestMatricesCreateRequest
TestMatrixFrE   rP   rR   r*   r(   rS   r     s3    8#9#98#} M!]<"D'$r*   c                 D    U R                  S5      nU R                  X1US9$ )a  Checks the status of a test matrix and the executions once they are created. The test matrix will contain the list of test executions to run if and only if the resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may be added to the matrix at a later stage. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist.

Args:
  request: (TestingProjectsTestMatricesGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (TestMatrix) The response message.
r}   r6   r8   r;   s       r(   r}   )TestingV1.ProjectsTestMatricesService.Get#  r   r*   c                  D    [         R                  " SSSS/SS// SSSSS	S
9
$ )Nr   z!testing.projects.testMatrices.getr   r   z3v1/projects/{projectId}/testMatrices/{testMatrixId}r   %TestingProjectsTestMatricesGetRequestr   FrE   rP   rR   r*   r(   rS   r   0  s7     6 65#^4 .1KA'!r*   rU   r/   )rV   rW   rX   rY   rZ   r[   r   rg   r\   rs   r}   r]   r^   r_   s   @r(   r   r      s@    ?#E
8F8F8Cr*   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )TestingV1.ProjectsServicei=  z(Service class for the projects resource.r"   c                 N   > [         [        R                  U ]  U5        0 U l        g r/   )r   r   r!   r   r0   r1   s     r(   r   "TestingV1.ProjectsService.__init__B  s"    I%%t5f=dr*   rU   )	rV   rW   rX   rY   rZ   r[   r   r]   r^   r_   s   @r(   r!   r   =  s    2E r*   r!   c                   J   ^  \ rS rSrSrSrU 4S jrSS jrS \l        Sr	U =r
$ )	'TestingV1.TestEnvironmentCatalogServiceiG  z6Service class for the testEnvironmentCatalog resource.r$   c                 N   > [         [        R                  U ]  U5        0 U l        g r/   )r   r   r#   r   r0   r1   s     r(   r   0TestingV1.TestEnvironmentCatalogService.__init__L  re   r*   c                 D    U R                  S5      nU R                  X1US9$ )a  Gets the catalog of supported test environments. May return any of the following canonical error codes: - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the environment type does not exist - INTERNAL - if an internal error occurred.

Args:
  request: (TestingTestEnvironmentCatalogGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (TestEnvironmentCatalog) The response message.
r}   r6   r8   r;   s       r(   r}   +TestingV1.TestEnvironmentCatalogService.GetQ  r   r*   c                  D    [         R                  " SSS/S/SS/SSSS	S
S9
$ )Nr   z"testing.testEnvironmentCatalog.getenvironmentTypeincludeViewableModelsr   z+v1/testEnvironmentCatalog/{environmentType}r   'TestingTestEnvironmentCatalogGetRequestTestEnvironmentCatalogFrE   rP   rR   r*   r(   rS   0TestingV1.TestEnvironmentCatalogService.<lambda>^  s8     6 66)*&'-{;CC3!r*   rU   r/   )rV   rW   rX   rY   rZ   r[   r   r}   r\   r]   r^   r_   s   @r(   r#   r   G  s"    @$E
8Cr*   r#   )r   r"   r   r    r$   )r   NTNNFFNNNN)rV   rW   rX   rY   rZ   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   r!   r#   r]   r^   r_   s   @r(   r   r   
   s    @/.(8-(=?yz'(*"."+",()-6:/4<@?C	K*"(?(? "HOh&=&= ObVH$;$; Vp// "h&=&= " "r*   r   N)
rZ   
__future__r   apitools.base.pyr   0googlecloudsdk.generated_clients.apis.testing.v1r   r   BaseApiClientr   rR   r*   r(   <module>r      s'    6 ' % \_&& _r*   