
    2                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z9Generated client library for ondemandscanning version v1.    )absolute_import)base_api)ondemandscanning_v1_messagesc                   >  ^  \ rS rSrSr\rSrSrSr	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$ )OndemandscanningV1
   zAGenerated client library for service ondemandscanning version v1.z(https://ondemandscanning.googleapis.com/z-https://ondemandscanning.mtls.googleapis.com/ondemandscanningz.https://www.googleapis.com/auth/cloud-platform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 ondemandscanning handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__"ProjectsLocationsOperationsServiceprojects_locations_operations,ProjectsLocationsScansVulnerabilitiesService(projects_locations_scans_vulnerabilitiesProjectsLocationsScansServiceprojects_locations_scansProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               [lib/googlecloudsdk/generated_clients/apis/ondemandscanning/v1/ondemandscanning_v1_client.pyr   OndemandscanningV1.__init__   s     
C	
d,'%)3 7+ - - *.)P)PQU)VD&484e4efj4kD1$($F$Ft$LD!";;DAD((.DM    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$ )5OndemandscanningV1.ProjectsLocationsOperationsService0   z=Service class for the projects_locations_operations resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr%   clientr'   s     r(   r   >OndemandscanningV1.ProjectsLocationsOperationsService.__init__5   s$    AA4QRXYdr*   c                 D    U R                  S5      nU R                  X1US9$ )a  Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.

Args:
  request: (OndemandscanningProjectsLocationsOperationsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Cancelglobal_paramsGetMethodConfig
_RunMethodr%   requestr7   configs       r(   r5   <OndemandscanningV1.ProjectsLocationsOperationsService.Cancel:   /     ##H-f__
  8 8r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzQv1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelPOSTz5ondemandscanning.projects.locations.operations.cancelnamezv1/{+name}:cancel 8OndemandscanningProjectsLocationsOperationsCancelRequestEmptyF	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>>OndemandscanningV1.ProjectsLocationsOperationsService.<lambda>G   s4    8#9#9eIxH)T"$r*   c                 D    U R                  S5      nU R                  X1US9$ )a  Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

Args:
  request: (OndemandscanningProjectsLocationsOperationsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Deleter6   r8   r;   s       r(   rX   <OndemandscanningV1.ProjectsLocationsOperationsService.DeleteU   r?   r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NJv1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}DELETEz5ondemandscanning.projects.locations.operations.deleterB   
v1/{+name}rC   8OndemandscanningProjectsLocationsOperationsDeleteRequestrE   FrF   rR   rT   r*   r(   rU   rV   b   s4    8#9#9^IxH"T"$r*   c                 D    U R                  S5      nU R                  X1US9$ )al  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: (OndemandscanningProjectsLocationsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Getr6   r8   r;   s       r(   r`   9OndemandscanningV1.ProjectsLocationsOperationsService.Getp   s/     ##E*f__
  8 8r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr[   GETz2ondemandscanning.projects.locations.operations.getrB   r]   rC   5OndemandscanningProjectsLocationsOperationsGetRequest	OperationFrF   rR   rT   r*   r(   rU   rV   }   s4     6 6^FxH"Q&!r*   c                 D    U R                  S5      nU R                  X1US9$ )af  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Args:
  request: (OndemandscanningProjectsLocationsOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
Listr6   r8   r;   s       r(   rg   :OndemandscanningV1.ProjectsLocationsOperationsService.List   /     ##F+f__
  8 8r*   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz;v1/projects/{projectsId}/locations/{locationsId}/operationsrc   z3ondemandscanning.projects.locations.operations.listrB   )filterpageSize	pageTokenreturnPartialSuccesszv1/{+name}/operationsrC   6OndemandscanningProjectsLocationsOperationsListRequestListOperationsResponseFrF   rR   rT   r*   r(   rU   rV      s4    !7!7OGxHP-R3"r*   c                 D    U R                  S5      nU R                  X1US9$ )a,  Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.

Args:
  request: (OndemandscanningProjectsLocationsOperationsWaitRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Waitr6   r8   r;   s       r(   rr   :OndemandscanningV1.ProjectsLocationsOperationsService.Wait   ri   r*   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )NzOv1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:waitrA   z3ondemandscanning.projects.locations.operations.waitrB   timeoutzv1/{+name}:waitrC   6OndemandscanningProjectsLocationsOperationsWaitRequestre   FrF   rR   rT   r*   r(   rU   rV      s6    !7!7cGxH['R&"r*   r0   r/   )__name__
__module____qualname____firstlineno____doc___NAMEr   r5   method_configrX   r`   rg   rr   __static_attributes____classcell__r'   s   @r(   r   r,   0   s^    G+E
8F8F8C8D8D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
$ )	?OndemandscanningV1.ProjectsLocationsScansVulnerabilitiesService   zHService class for the projects_locations_scans_vulnerabilities resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r/   )r   r   r   r   r0   r1   s     r(   r   HOndemandscanningV1.ProjectsLocationsScansVulnerabilitiesService.__init__   s$    KKT[\bcdr*   c                 D    U R                  S5      nU R                  X1US9$ )a3  Lists vulnerabilities resulting from a successfully completed scan.

Args:
  request: (OndemandscanningProjectsLocationsScansVulnerabilitiesListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListVulnerabilitiesResponseV1) The response message.
rg   r6   r8   r;   s       r(   rg   DOndemandscanningV1.ProjectsLocationsScansVulnerabilitiesService.List   ri   r*   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )NzPv1/projects/{projectsId}/locations/{locationsId}/scans/{scansId}/vulnerabilitiesrc   z>ondemandscanning.projects.locations.scans.vulnerabilities.listparentrl   rm   zv1/{+parent}/vulnerabilitiesrC   @OndemandscanningProjectsLocationsScansVulnerabilitiesListRequestListVulnerabilitiesResponseV1FrF   rR   rT   r*   r(   rU   HOndemandscanningV1.ProjectsLocationsScansVulnerabilitiesService.<lambda>   s9    !7!7dR zJ +.4\:"r*   rw   r/   )rx   ry   rz   r{   r|   r}   r   rg   r~   r   r   r   s   @r(   r   r      s"    R6E
8D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
$ )	0OndemandscanningV1.ProjectsLocationsScansService   z8Service class for the projects_locations_scans resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r/   )r   r   r   r   r0   r1   s     r(   r   9OndemandscanningV1.ProjectsLocationsScansService.__init__   s#    <<dLVTdr*   c                 D    U R                  S5      nU R                  X1US9$ )a  Initiates an analysis of the provided packages.

Args:
  request: (OndemandscanningProjectsLocationsScansAnalyzePackagesRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
AnalyzePackagesr6   r8   r;   s       r(   r   @OndemandscanningV1.ProjectsLocationsScansService.AnalyzePackages   s0     ##$56f__
  8 8r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzFv1/projects/{projectsId}/locations/{locationsId}/scans:analyzePackagesrA   z9ondemandscanning.projects.locations.scans.analyzePackagesr   z"v1/{+parent}/scans:analyzePackagesanalyzePackagesRequestV1<OndemandscanningProjectsLocationsScansAnalyzePackagesRequestre   FrF   rR   rT   r*   r(   rU   9OndemandscanningV1.ProjectsLocationsScansService.<lambda>   s4    H,B,BZM zJ:0X&-r*   rw   r/   )rx   ry   rz   r{   r|   r}   r   r   r~   r   r   r   s   @r(   r   r      s"    B&E
8%O!!r*   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )+OndemandscanningV1.ProjectsLocationsServicei  z2Service class for the projects_locations resource.r"   c                 N   > [         [        R                  U ]  U5        0 U l        g r/   )r   r   r!   r   r0   r1   s     r(   r   4OndemandscanningV1.ProjectsLocationsService.__init__  s#    77GOdr*   rw   	rx   ry   rz   r{   r|   r}   r   r   r   r   s   @r(   r!   r     s    < E r*   r!   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )"OndemandscanningV1.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   +OndemandscanningV1.ProjectsService.__init__  s#    ..>vFdr*   rw   r   r   s   @r(   r#   r     s    2E r*   r#   )r$   r"   r   r    r   )rC   NTNNFFNNNN)rx   ry   rz   r{   r|   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    I/7(A-(=>'(*"."++,()-6:/4<@?C	/*O8+B+B Ob#X5L5L #J#h&=&= #J!8!8 //  r*   r   N)
r|   
__future__r   apitools.base.pyr   9googlecloudsdk.generated_clients.apis.ondemandscanning.v1r   r   BaseApiClientr   rT   r*   r(   <module>r      s'    ? ' % nS// Sr*   