
                         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)z?Generated client library for containeranalysis version v1beta1.    )absolute_import)base_api)"containeranalysis_v1beta1_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 G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z xZS )!ContaineranalysisV1beta1zGGenerated client library for service containeranalysis version v1beta1.z)https://containeranalysis.googleapis.com/z.https://containeranalysis.mtls.googleapis.com/containeranalysisz.https://www.googleapis.com/auth/cloud-platformv1beta1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                    |xs | j                   }t        t        |   |||||||||	|
|       | j	                  |       | _        | j                  |       | _        | j                  |       | _	        | j                  |       | _        | j                  |       | _        | j                  |       | _        | j!                  |       | _        | j%                  |       | _        | j)                  |       | _        | j-                  |       | _        y)z&Create a new containeranalysis handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__(ProjectsLocationsNotesOccurrencesService$projects_locations_notes_occurrencesProjectsLocationsNotesServiceprojects_locations_notes#ProjectsLocationsOccurrencesServiceprojects_locations_occurrences!ProjectsLocationsResourcesServiceprojects_locations_resourcesProjectsLocationsServiceprojects_locationsProjectsNotesOccurrencesServiceprojects_notes_occurrencesProjectsNotesServiceprojects_notesProjectsOccurrencesServiceprojects_occurrencesProjectsResourcesServiceprojects_resourcesProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               glib/googlecloudsdk/generated_clients/apis/containeranalysis/v1beta1/containeranalysis_v1beta1_client.pyr   z!ContaineranalysisV1beta1.__init__   s    
C	
"D2'd%l)3 7+ 3 - 150]0]^b0cD-$($F$Ft$LD!*.*R*RSW*XD'(,(N(Nt(TD%";;DAD&*&J&J4&PD#33D9D $ ? ? ED";;DAD((.DM    c                   >     e Zd ZdZdZ fdZddZd e_         xZS )AContaineranalysisV1beta1.ProjectsLocationsNotesOccurrencesServicezDService class for the projects_locations_notes_occurrences resource.r   c                 N    t         t        j                  |   |       i | _        y N)r   r   r   r   _upload_configsr.   clientr0   s     r1   r   zJContaineranalysisV1beta1.ProjectsLocationsNotesOccurrencesService.__init__:   s$    $MMt]^dedr2   c                 L    | j                  d      }| j                  |||      S )a  Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.

      Args:
        request: (ContaineranalysisProjectsLocationsNotesOccurrencesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListNoteOccurrencesResponse) The response message.
      Listglobal_paramsGetMethodConfig
_RunMethodr.   requestr=   configs       r1   r;   zFContaineranalysisV1beta1.ProjectsLocationsNotesOccurrencesService.List?   1     ##F+f__
'  8 8r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )NzQv1beta1/projects/{projectsId}/locations/{locationsId}/notes/{notesId}/occurrencesGETz;containeranalysis.projects.locations.notes.occurrences.listnamefilterpageSize	pageTokenv1beta1/{+name}/occurrences =ContaineranalysisProjectsLocationsNotesOccurrencesListRequestListNoteOccurrencesResponseF	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 r2   r1   <lambda>zJContaineranalysisV1beta1.ProjectsLocationsNotesOccurrencesService.<lambda>L   s4    !7!7eOxH83Y8"r2   r6   	__name__
__module____qualname____doc___NAMEr   r;   method_config__classcell__r0   s   @r1   r   r4   5   s"    N2E
8Dr2   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_        ddZd e_        ddZd e_        ddZd e_        ddZd e_         xZS )6ContaineranalysisV1beta1.ProjectsLocationsNotesServicez8Service class for the projects_locations_notes resource.r   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r   r   r7   r8   s     r1   r   z?ContaineranalysisV1beta1.ProjectsLocationsNotesService.__init___   s$    $BBDRSYZdr2   c                 L    | j                  d      }| j                  |||      S )a#  Creates new notes in batch.

      Args:
        request: (ContaineranalysisProjectsLocationsNotesBatchCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (BatchCreateNotesResponse) The response message.
      BatchCreater<   r>   rA   s       r1   rm   zBContaineranalysisV1beta1.ProjectsLocationsNotesService.BatchCreated   1     ##M2f__
'  8 8r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzGv1beta1/projects/{projectsId}/locations/{locationsId}/notes:batchCreatePOSTz6containeranalysis.projects.locations.notes.batchCreateparent#v1beta1/{+parent}/notes:batchCreatebatchCreateNotesRequest9ContaineranalysisProjectsLocationsNotesBatchCreateRequestBatchCreateNotesResponseFrP   r\   r^   r2   r1   r_   z?ContaineranalysisV1beta1.ProjectsLocationsNotesService.<lambda>q   s4    (>(>[J zJ;/U5)r2   c                 L    | j                  d      }| j                  |||      S )a  Creates a new note.

      Args:
        request: (ContaineranalysisProjectsLocationsNotesCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Note) The response message.
      Creater<   r>   rA   s       r1   rw   z=ContaineranalysisV1beta1.ProjectsLocationsNotesService.Create   1     ##H-f__
'  8 8r2   c                  H    t        j                  ddddgdgdgdddd	d
      S )N;v1beta1/projects/{projectsId}/locations/{locationsId}/notesrp   z1containeranalysis.projects.locations.notes.createrq   noteIdv1beta1/{+parent}/notesnote4ContaineranalysisProjectsLocationsNotesCreateRequestNoteFrP   r\   r^   r2   r1   r_   z?ContaineranalysisV1beta1.ProjectsLocationsNotesService.<lambda>   s6    8#9#9OE zJZ/P!$r2   c                 L    | j                  d      }| j                  |||      S )a  Deletes the specified note.

      Args:
        request: (ContaineranalysisProjectsLocationsNotesDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      Deleter<   r>   rA   s       r1   r   z=ContaineranalysisV1beta1.ProjectsLocationsNotesService.Delete   rx   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NEv1beta1/projects/{projectsId}/locations/{locationsId}/notes/{notesId}DELETEz1containeranalysis.projects.locations.notes.deleterG   v1beta1/{+name}rM   4ContaineranalysisProjectsLocationsNotesDeleteRequestEmptyFrP   r\   r^   r2   r1   r_   z?ContaineranalysisV1beta1.ProjectsLocationsNotesService.<lambda>   s4    8#9#9YExH'P"$r2   c                 L    | j                  d      }| j                  |||      S )a  Gets the specified note.

      Args:
        request: (ContaineranalysisProjectsLocationsNotesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Note) The response message.
      Getr<   r>   rA   s       r1   r   z:ContaineranalysisV1beta1.ProjectsLocationsNotesService.Get   1     ##E*f__
'  8 8r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   rF   z.containeranalysis.projects.locations.notes.getrG   r   rM   1ContaineranalysisProjectsLocationsNotesGetRequestr   FrP   r\   r^   r2   r1   r_   z?ContaineranalysisV1beta1.ProjectsLocationsNotesService.<lambda>   s4     6 6YBxH'M!!r2   c                 L    | j                  d      }| j                  |||      S )av  Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

      Args:
        request: (ContaineranalysisProjectsLocationsNotesGetIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Policy) The response message.
      GetIamPolicyr<   r>   rA   s       r1   r   zCContaineranalysisV1beta1.ProjectsLocationsNotesService.GetIamPolicy   1     ##N3f__
'  8 8r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzRv1beta1/projects/{projectsId}/locations/{locationsId}/notes/{notesId}:getIamPolicyrp   z7containeranalysis.projects.locations.notes.getIamPolicyresource v1beta1/{+resource}:getIamPolicygetIamPolicyRequest:ContaineranalysisProjectsLocationsNotesGetIamPolicyRequestPolicyFrP   r\   r^   r2   r1   r_   z?ContaineranalysisV1beta1.ProjectsLocationsNotesService.<lambda>   4    )?)?fK"|L8+V#*r2   c                 L    | j                  d      }| j                  |||      S )a   Lists notes for the specified project.

      Args:
        request: (ContaineranalysisProjectsLocationsNotesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListNotesResponse) The response message.
      r;   r<   r>   rA   s       r1   r;   z;ContaineranalysisV1beta1.ProjectsLocationsNotesService.List   rD   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nrz   rF   z/containeranalysis.projects.locations.notes.listrq   rI   rJ   rK   returnPartialSuccessr|   rM   2ContaineranalysisProjectsLocationsNotesListRequestListNotesResponseFrP   r\   r^   r2   r1   r_   z?ContaineranalysisV1beta1.ProjectsLocationsNotesService.<lambda>   s4    !7!7OC zJP/N."r2   c                 L    | j                  d      }| j                  |||      S )a	  Updates the specified note.

      Args:
        request: (ContaineranalysisProjectsLocationsNotesPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Note) The response message.
      Patchr<   r>   rA   s       r1   r   z<ContaineranalysisV1beta1.ProjectsLocationsNotesService.Patch  1     ##G,f__
'  8 8r2   c                  H    t        j                  ddddgdgdgdddd	d
      S )Nr   PATCHz0containeranalysis.projects.locations.notes.patchrG   
updateMaskr   r}   3ContaineranalysisProjectsLocationsNotesPatchRequestr   FrP   r\   r^   r2   r1   r_   z?ContaineranalysisV1beta1.ProjectsLocationsNotesService.<lambda>  s6    ("8"8YDxH"^'O!#r2   c                 L    | j                  d      }| j                  |||      S )ax  Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

      Args:
        request: (ContaineranalysisProjectsLocationsNotesSetIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Policy) The response message.
      SetIamPolicyr<   r>   rA   s       r1   r   zCContaineranalysisV1beta1.ProjectsLocationsNotesService.SetIamPolicy!  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzRv1beta1/projects/{projectsId}/locations/{locationsId}/notes/{notesId}:setIamPolicyrp   z7containeranalysis.projects.locations.notes.setIamPolicyr    v1beta1/{+resource}:setIamPolicysetIamPolicyRequest:ContaineranalysisProjectsLocationsNotesSetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   z?ContaineranalysisV1beta1.ProjectsLocationsNotesService.<lambda>.  r   r2   c                 L    | j                  d      }| j                  |||      S )aO  Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

      Args:
        request: (ContaineranalysisProjectsLocationsNotesTestIamPermissionsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TestIamPermissionsResponse) The response message.
      TestIamPermissionsr<   r>   rA   s       r1   r   zIContaineranalysisV1beta1.ProjectsLocationsNotesService.TestIamPermissions<  2     ##$89f__
'  8 8r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzXv1beta1/projects/{projectsId}/locations/{locationsId}/notes/{notesId}:testIamPermissionsrp   z=containeranalysis.projects.locations.notes.testIamPermissionsr   &v1beta1/{+resource}:testIamPermissionstestIamPermissionsRequest@ContaineranalysisProjectsLocationsNotesTestIamPermissionsRequestTestIamPermissionsResponseFrP   r\   r^   r2   r1   r_   z?ContaineranalysisV1beta1.ProjectsLocationsNotesService.<lambda>I  s4    x/E/ElQ"|L>1\70r2   r6   ra   rb   rc   rd   re   r   rm   rf   rw   r   r   r   r;   r   r   r   rg   rh   s   @r1   r   rj   Z   s    B&E
8!K8F8F8C8"L8D8E8"L8($$r2   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_        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_        ddZd e_         xZS )<ContaineranalysisV1beta1.ProjectsLocationsOccurrencesServicez>Service class for the projects_locations_occurrences resource.r   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r   r   r7   r8   s     r1   r   zEContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.__init__\  s$    $HH$XY_`dr2   c                 L    | j                  d      }| j                  |||      S )a5  Creates new occurrences in batch.

      Args:
        request: (ContaineranalysisProjectsLocationsOccurrencesBatchCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (BatchCreateOccurrencesResponse) The response message.
      rm   r<   r>   rA   s       r1   rm   zHContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.BatchCreatea  rn   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzMv1beta1/projects/{projectsId}/locations/{locationsId}/occurrences:batchCreaterp   z<containeranalysis.projects.locations.occurrences.batchCreaterq   )v1beta1/{+parent}/occurrences:batchCreatebatchCreateOccurrencesRequest?ContaineranalysisProjectsLocationsOccurrencesBatchCreateRequestBatchCreateOccurrencesResponseFrP   r\   r^   r2   r1   r_   zEContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.<lambda>n  s4    (>(>aP zJA5[;)r2   c                 L    | j                  d      }| j                  |||      S )a  Creates a new occurrence.

      Args:
        request: (ContaineranalysisProjectsLocationsOccurrencesCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Occurrence) The response message.
      rw   r<   r>   rA   s       r1   rw   zCContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.Create|  rx   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NAv1beta1/projects/{projectsId}/locations/{locationsId}/occurrencesrp   z7containeranalysis.projects.locations.occurrences.createrq   v1beta1/{+parent}/occurrences
occurrence:ContaineranalysisProjectsLocationsOccurrencesCreateRequest
OccurrenceFrP   r\   r^   r2   r1   r_   zEContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.<lambda>  s4    8#9#9UK zJ5"V'$r2   c                 L    | j                  d      }| j                  |||      S )a  Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.

      Args:
        request: (ContaineranalysisProjectsLocationsOccurrencesDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      r   r<   r>   rA   s       r1   r   zCContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.Delete  rx   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NQv1beta1/projects/{projectsId}/locations/{locationsId}/occurrences/{occurrencesId}r   z7containeranalysis.projects.locations.occurrences.deleterG   r   rM   :ContaineranalysisProjectsLocationsOccurrencesDeleteRequestr   FrP   r\   r^   r2   r1   r_   zEContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.<lambda>  s4    8#9#9eKxH'V"$r2   c                 L    | j                  d      }| j                  |||      S )a  Gets the specified occurrence.

      Args:
        request: (ContaineranalysisProjectsLocationsOccurrencesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Occurrence) The response message.
      r   r<   r>   rA   s       r1   r   z@ContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.Get  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   rF   z4containeranalysis.projects.locations.occurrences.getrG   r   rM   7ContaineranalysisProjectsLocationsOccurrencesGetRequestr   FrP   r\   r^   r2   r1   r_   zEContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.<lambda>  s4     6 6eHxH'S'!r2   c                 L    | j                  d      }| j                  |||      S )a|  Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

      Args:
        request: (ContaineranalysisProjectsLocationsOccurrencesGetIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Policy) The response message.
      r   r<   r>   rA   s       r1   r   zIContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.GetIamPolicy  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz^v1beta1/projects/{projectsId}/locations/{locationsId}/occurrences/{occurrencesId}:getIamPolicyrp   z=containeranalysis.projects.locations.occurrences.getIamPolicyr   r   r   @ContaineranalysisProjectsLocationsOccurrencesGetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   zEContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.<lambda>  4    )?)?rQ"|L8+\#*r2   c                 L    | j                  d      }| j                  |||      S )a  Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.

      Args:
        request: (ContaineranalysisProjectsLocationsOccurrencesGetNotesRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Note) The response message.
      GetNotesr<   r>   rA   s       r1   r   zEContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.GetNotes  1     ##J/f__
'  8 8r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzWv1beta1/projects/{projectsId}/locations/{locationsId}/occurrences/{occurrencesId}/notesrF   z9containeranalysis.projects.locations.occurrences.getNotesrG   v1beta1/{+name}/notesrM   <ContaineranalysisProjectsLocationsOccurrencesGetNotesRequestr   FrP   r\   r^   r2   r1   r_   zEContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.<lambda>  s4    X%;%;kMxH-X!&r2   c                 L    | j                  d      }| j                  |||      S )aZ  Gets a summary of the number and severity of occurrences.

      Args:
        request: (ContaineranalysisProjectsLocationsOccurrencesGetVulnerabilitySummaryRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (VulnerabilityOccurrencesSummary) The response message.
      GetVulnerabilitySummaryr<   r>   rA   s       r1   r   zTContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.GetVulnerabilitySummary  2     ##$=>f__
'  8 8r2   c                  J    t        j                  ddddgdgddgddd	d
d      S )NzVv1beta1/projects/{projectsId}/locations/{locationsId}/occurrences:vulnerabilitySummaryrF   zHcontaineranalysis.projects.locations.occurrences.getVulnerabilitySummaryrq   rI   r   2v1beta1/{+parent}/occurrences:vulnerabilitySummaryrM   KContaineranalysisProjectsLocationsOccurrencesGetVulnerabilitySummaryRequestVulnerabilityOccurrencesSummaryFrP   r\   r^   r2   r1   r_   zEContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.<lambda>  s:    H4J4Jj\ zJ 67Jg<5r2   c                 L    | j                  d      }| j                  |||      S )a2  Lists occurrences for the specified project.

      Args:
        request: (ContaineranalysisProjectsLocationsOccurrencesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListOccurrencesResponse) The response message.
      r;   r<   r>   rA   s       r1   r;   zAContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.List  rD   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nr   rF   z5containeranalysis.projects.locations.occurrences.listrq   r   r   rM   8ContaineranalysisProjectsLocationsOccurrencesListRequestListOccurrencesResponseFrP   r\   r^   r2   r1   r_   zEContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.<lambda>+  s4    !7!7UI zJP5T4"r2   c                 L    | j                  d      }| j                  |||      S )a  Updates the specified occurrence.

      Args:
        request: (ContaineranalysisProjectsLocationsOccurrencesPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Occurrence) The response message.
      r   r<   r>   rA   s       r1   r   zBContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.Patch9  r   r2   c                  H    t        j                  ddddgdgdgdddd	d
      S )Nr   r   z6containeranalysis.projects.locations.occurrences.patchrG   r   r   r   9ContaineranalysisProjectsLocationsOccurrencesPatchRequestr   FrP   r\   r^   r2   r1   r_   zEContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.<lambda>F  s6    ("8"8eJxH"^'"U'#r2   c                 L    | j                  d      }| j                  |||      S )a~  Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

      Args:
        request: (ContaineranalysisProjectsLocationsOccurrencesSetIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Policy) The response message.
      r   r<   r>   rA   s       r1   r   zIContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.SetIamPolicyT  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz^v1beta1/projects/{projectsId}/locations/{locationsId}/occurrences/{occurrencesId}:setIamPolicyrp   z=containeranalysis.projects.locations.occurrences.setIamPolicyr   r   r   @ContaineranalysisProjectsLocationsOccurrencesSetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   zEContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.<lambda>a  r   r2   c                 L    | j                  d      }| j                  |||      S )aU  Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

      Args:
        request: (ContaineranalysisProjectsLocationsOccurrencesTestIamPermissionsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TestIamPermissionsResponse) The response message.
      r   r<   r>   rA   s       r1   r   zOContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.TestIamPermissionso  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nzdv1beta1/projects/{projectsId}/locations/{locationsId}/occurrences/{occurrencesId}:testIamPermissionsrp   zCcontaineranalysis.projects.locations.occurrences.testIamPermissionsr   r   r   FContaineranalysisProjectsLocationsOccurrencesTestIamPermissionsRequestr   FrP   r\   r^   r2   r1   r_   zEContaineranalysisV1beta1.ProjectsLocationsOccurrencesService.<lambda>|  s4    x/E/ExW"|L>1b70r2   r6   ra   rb   rc   rd   re   r   rm   rf   rw   r   r   r   r   r   r;   r   r   r   rg   rh   s   @r1   r   r   W  s    H,E
8!K8F8F8C8"L8H8-)8D8E8"L8($$r2   r   c                   V     e Zd ZdZdZ fdZddZd e_        ddZd e_         xZ	S )	:ContaineranalysisV1beta1.ProjectsLocationsResourcesServicez<Service class for the projects_locations_resources resource.r!   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r    r   r7   r8   s     r1   r   zCContaineranalysisV1beta1.ProjectsLocationsResourcesService.__init__  s$    $FFVW]^dr2   c                 L    | j                  d      }| j                  |||      S )aO  Generates an SBOM and other dependency information for the given resource.

      Args:
        request: (ContaineranalysisProjectsLocationsResourcesExportSBOMRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ExportSBOMResponse) The response message.
      
ExportSBOMr<   r>   rA   s       r1   r   zEContaineranalysisV1beta1.ProjectsLocationsResourcesService.ExportSBOM  1     ##L1f__
'  8 8r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzXv1beta1/projects/{projectsId}/locations/{locationsId}/resources/{resourcesId}:exportSBOMrp   z9containeranalysis.projects.locations.resources.exportSBOMrG   v1beta1/{+name}:exportSBOMexportSBOMRequest<ContaineranalysisProjectsLocationsResourcesExportSBOMRequestExportSBOMResponseFrP   r\   r^   r2   r1   r_   zCContaineranalysisV1beta1.ProjectsLocationsResourcesService.<lambda>  s4    x'='=lMxH2)X/(r2   c                 L    | j                  d      }| j                  |||      S )aN  Gets a summary of the packages within a given resource.

      Args:
        request: (ContaineranalysisProjectsLocationsResourcesGeneratePackagesSummaryRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (PackagesSummaryResponse) The response message.
      GeneratePackagesSummaryr<   r>   rA   s       r1   r   zRContaineranalysisV1beta1.ProjectsLocationsResourcesService.GeneratePackagesSummary  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nzev1beta1/projects/{projectsId}/locations/{locationsId}/resources/{resourcesId}:generatePackagesSummaryrp   zFcontaineranalysis.projects.locations.resources.generatePackagesSummaryrG   'v1beta1/{+name}:generatePackagesSummarygeneratePackagesSummaryRequestIContaineranalysisProjectsLocationsResourcesGeneratePackagesSummaryRequestPackagesSummaryResponseFrP   r\   r^   r2   r1   r_   zCContaineranalysisV1beta1.ProjectsLocationsResourcesService.<lambda>  s4    H4J4JyZxH?6e45r2   r6   
ra   rb   rc   rd   re   r   r   rf   r   rg   rh   s   @r1   r    r     s2    F*E
8 J8-))r2   r    c                   &     e Zd ZdZdZ fdZ xZS )1ContaineranalysisV1beta1.ProjectsLocationsServicez2Service class for the projects_locations resource.r#   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r"   r   r7   r8   s     r1   r   z:ContaineranalysisV1beta1.ProjectsLocationsService.__init__  #    $==tMfUdr2   ra   rb   rc   rd   re   r   rg   rh   s   @r1   r"   r     s    < E r2   r"   c                   >     e Zd ZdZdZ fdZddZd e_         xZS )8ContaineranalysisV1beta1.ProjectsNotesOccurrencesServicez:Service class for the projects_notes_occurrences resource.r%   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r$   r   r7   r8   s     r1   r   zAContaineranalysisV1beta1.ProjectsNotesOccurrencesService.__init__  s$    $DDdTU[\dr2   c                 L    | j                  d      }| j                  |||      S )a  Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.

      Args:
        request: (ContaineranalysisProjectsNotesOccurrencesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListNoteOccurrencesResponse) The response message.
      r;   r<   r>   rA   s       r1   r;   z=ContaineranalysisV1beta1.ProjectsNotesOccurrencesService.List  rD   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nz9v1beta1/projects/{projectsId}/notes/{notesId}/occurrencesrF   z1containeranalysis.projects.notes.occurrences.listrG   rH   rL   rM   4ContaineranalysisProjectsNotesOccurrencesListRequestrO   FrP   r\   r^   r2   r1   r_   zAContaineranalysisV1beta1.ProjectsNotesOccurrencesService.<lambda>  s4    !7!7MExH83P8"r2   r6   r`   rh   s   @r1   r$   r    s"    D(E
8Dr2   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_        ddZd e_        ddZd e_        ddZd e_        ddZd e_         xZS )-ContaineranalysisV1beta1.ProjectsNotesServicez.Service class for the projects_notes resource.r'   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r&   r   r7   r8   s     r1   r   z6ContaineranalysisV1beta1.ProjectsNotesService.__init__  s#    $994I&Qdr2   c                 L    | j                  d      }| j                  |||      S )a  Creates new notes in batch.

      Args:
        request: (ContaineranalysisProjectsNotesBatchCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (BatchCreateNotesResponse) The response message.
      rm   r<   r>   rA   s       r1   rm   z9ContaineranalysisV1beta1.ProjectsNotesService.BatchCreate  rn   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz/v1beta1/projects/{projectsId}/notes:batchCreaterp   z,containeranalysis.projects.notes.batchCreaterq   rr   rs   0ContaineranalysisProjectsNotesBatchCreateRequestru   FrP   r\   r^   r2   r1   r_   z6ContaineranalysisV1beta1.ProjectsNotesService.<lambda>  s4    (>(>C@ zJ;/L5)r2   c                 L    | j                  d      }| j                  |||      S )zCreates a new note.

      Args:
        request: (ContaineranalysisProjectsNotesCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Note) The response message.
      rw   r<   r>   rA   s       r1   rw   z4ContaineranalysisV1beta1.ProjectsNotesService.Create  rx   r2   c                  H    t        j                  ddddgdgdgdddd	d
      S )N#v1beta1/projects/{projectsId}/notesrp   z'containeranalysis.projects.notes.createrq   r{   r|   r}   +ContaineranalysisProjectsNotesCreateRequestr   FrP   r\   r^   r2   r1   r_   z6ContaineranalysisV1beta1.ProjectsNotesService.<lambda>+  s6    8#9#97; zJZ/G!$r2   c                 L    | j                  d      }| j                  |||      S )a  Deletes the specified note.

      Args:
        request: (ContaineranalysisProjectsNotesDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      r   r<   r>   rA   s       r1   r   z4ContaineranalysisV1beta1.ProjectsNotesService.Delete9  rx   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )N-v1beta1/projects/{projectsId}/notes/{notesId}r   z'containeranalysis.projects.notes.deleterG   r   rM   +ContaineranalysisProjectsNotesDeleteRequestr   FrP   r\   r^   r2   r1   r_   z6ContaineranalysisV1beta1.ProjectsNotesService.<lambda>F  s4    8#9#9A;xH'G"$r2   c                 L    | j                  d      }| j                  |||      S )zGets the specified note.

      Args:
        request: (ContaineranalysisProjectsNotesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Note) The response message.
      r   r<   r>   rA   s       r1   r   z1ContaineranalysisV1beta1.ProjectsNotesService.GetT  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr  rF   z$containeranalysis.projects.notes.getrG   r   rM   (ContaineranalysisProjectsNotesGetRequestr   FrP   r\   r^   r2   r1   r_   z6ContaineranalysisV1beta1.ProjectsNotesService.<lambda>a  s4     6 6A8xH'D!!r2   c                 L    | j                  d      }| j                  |||      S )am  Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

      Args:
        request: (ContaineranalysisProjectsNotesGetIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Policy) The response message.
      r   r<   r>   rA   s       r1   r   z:ContaineranalysisV1beta1.ProjectsNotesService.GetIamPolicyo  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz:v1beta1/projects/{projectsId}/notes/{notesId}:getIamPolicyrp   z-containeranalysis.projects.notes.getIamPolicyr   r   r   1ContaineranalysisProjectsNotesGetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   z6ContaineranalysisV1beta1.ProjectsNotesService.<lambda>|  4    )?)?NA"|L8+M#*r2   c                 L    | j                  d      }| j                  |||      S )a  Lists notes for the specified project.

      Args:
        request: (ContaineranalysisProjectsNotesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListNotesResponse) The response message.
      r;   r<   r>   rA   s       r1   r;   z2ContaineranalysisV1beta1.ProjectsNotesService.List  rD   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nr  rF   z%containeranalysis.projects.notes.listrq   r   r|   rM   )ContaineranalysisProjectsNotesListRequestr   FrP   r\   r^   r2   r1   r_   z6ContaineranalysisV1beta1.ProjectsNotesService.<lambda>  s4    !7!779 zJP/E."r2   c                 L    | j                  d      }| j                  |||      S )a   Updates the specified note.

      Args:
        request: (ContaineranalysisProjectsNotesPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Note) The response message.
      r   r<   r>   rA   s       r1   r   z3ContaineranalysisV1beta1.ProjectsNotesService.Patch  r   r2   c                  H    t        j                  ddddgdgdgdddd	d
      S )Nr  r   z&containeranalysis.projects.notes.patchrG   r   r   r}   *ContaineranalysisProjectsNotesPatchRequestr   FrP   r\   r^   r2   r1   r_   z6ContaineranalysisV1beta1.ProjectsNotesService.<lambda>  s6    ("8"8A:xH"^'F!#r2   c                 L    | j                  d      }| j                  |||      S )ao  Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

      Args:
        request: (ContaineranalysisProjectsNotesSetIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Policy) The response message.
      r   r<   r>   rA   s       r1   r   z:ContaineranalysisV1beta1.ProjectsNotesService.SetIamPolicy  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz:v1beta1/projects/{projectsId}/notes/{notesId}:setIamPolicyrp   z-containeranalysis.projects.notes.setIamPolicyr   r   r   1ContaineranalysisProjectsNotesSetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   z6ContaineranalysisV1beta1.ProjectsNotesService.<lambda>  r  r2   c                 L    | j                  d      }| j                  |||      S )aF  Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

      Args:
        request: (ContaineranalysisProjectsNotesTestIamPermissionsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TestIamPermissionsResponse) The response message.
      r   r<   r>   rA   s       r1   r   z@ContaineranalysisV1beta1.ProjectsNotesService.TestIamPermissions  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz@v1beta1/projects/{projectsId}/notes/{notesId}:testIamPermissionsrp   z3containeranalysis.projects.notes.testIamPermissionsr   r   r   7ContaineranalysisProjectsNotesTestIamPermissionsRequestr   FrP   r\   r^   r2   r1   r_   z6ContaineranalysisV1beta1.ProjectsNotesService.<lambda>  s4    x/E/ETG"|L>1S70r2   r6   r   rh   s   @r1   r&   r    s    8E
8!K8F8F8C8"L8D8E8"L8($$r2   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_        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_        ddZd e_         xZS )3ContaineranalysisV1beta1.ProjectsOccurrencesServicez4Service class for the projects_occurrences resource.r)   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r(   r   r7   r8   s     r1   r   z<ContaineranalysisV1beta1.ProjectsOccurrencesService.__init__  s$    $??OPVWdr2   c                 L    | j                  d      }| j                  |||      S )a,  Creates new occurrences in batch.

      Args:
        request: (ContaineranalysisProjectsOccurrencesBatchCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (BatchCreateOccurrencesResponse) The response message.
      rm   r<   r>   rA   s       r1   rm   z?ContaineranalysisV1beta1.ProjectsOccurrencesService.BatchCreate   rn   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz5v1beta1/projects/{projectsId}/occurrences:batchCreaterp   z2containeranalysis.projects.occurrences.batchCreaterq   r   r   6ContaineranalysisProjectsOccurrencesBatchCreateRequestr   FrP   r\   r^   r2   r1   r_   z<ContaineranalysisV1beta1.ProjectsOccurrencesService.<lambda>  s4    (>(>IF zJA5R;)r2   c                 L    | j                  d      }| j                  |||      S )a  Creates a new occurrence.

      Args:
        request: (ContaineranalysisProjectsOccurrencesCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Occurrence) The response message.
      rw   r<   r>   rA   s       r1   rw   z:ContaineranalysisV1beta1.ProjectsOccurrencesService.Create  rx   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )N)v1beta1/projects/{projectsId}/occurrencesrp   z-containeranalysis.projects.occurrences.createrq   r   r   1ContaineranalysisProjectsOccurrencesCreateRequestr   FrP   r\   r^   r2   r1   r_   z<ContaineranalysisV1beta1.ProjectsOccurrencesService.<lambda>(  s4    8#9#9=A zJ5"M'$r2   c                 L    | j                  d      }| j                  |||      S )a  Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.

      Args:
        request: (ContaineranalysisProjectsOccurrencesDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      r   r<   r>   rA   s       r1   r   z:ContaineranalysisV1beta1.ProjectsOccurrencesService.Delete6  rx   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )N9v1beta1/projects/{projectsId}/occurrences/{occurrencesId}r   z-containeranalysis.projects.occurrences.deleterG   r   rM   1ContaineranalysisProjectsOccurrencesDeleteRequestr   FrP   r\   r^   r2   r1   r_   z<ContaineranalysisV1beta1.ProjectsOccurrencesService.<lambda>C  s4    8#9#9MAxH'M"$r2   c                 L    | j                  d      }| j                  |||      S )a  Gets the specified occurrence.

      Args:
        request: (ContaineranalysisProjectsOccurrencesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Occurrence) The response message.
      r   r<   r>   rA   s       r1   r   z7ContaineranalysisV1beta1.ProjectsOccurrencesService.GetQ  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr4  rF   z*containeranalysis.projects.occurrences.getrG   r   rM   .ContaineranalysisProjectsOccurrencesGetRequestr   FrP   r\   r^   r2   r1   r_   z<ContaineranalysisV1beta1.ProjectsOccurrencesService.<lambda>^  s4     6 6M>xH'J'!r2   c                 L    | j                  d      }| j                  |||      S )as  Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

      Args:
        request: (ContaineranalysisProjectsOccurrencesGetIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Policy) The response message.
      r   r<   r>   rA   s       r1   r   z@ContaineranalysisV1beta1.ProjectsOccurrencesService.GetIamPolicyl  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzFv1beta1/projects/{projectsId}/occurrences/{occurrencesId}:getIamPolicyrp   z3containeranalysis.projects.occurrences.getIamPolicyr   r   r   7ContaineranalysisProjectsOccurrencesGetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   z<ContaineranalysisV1beta1.ProjectsOccurrencesService.<lambda>y  4    )?)?ZG"|L8+S#*r2   c                 L    | j                  d      }| j                  |||      S )ay  Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.

      Args:
        request: (ContaineranalysisProjectsOccurrencesGetNotesRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Note) The response message.
      r   r<   r>   rA   s       r1   r   z<ContaineranalysisV1beta1.ProjectsOccurrencesService.GetNotes  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz?v1beta1/projects/{projectsId}/occurrences/{occurrencesId}/notesrF   z/containeranalysis.projects.occurrences.getNotesrG   r   rM   3ContaineranalysisProjectsOccurrencesGetNotesRequestr   FrP   r\   r^   r2   r1   r_   z<ContaineranalysisV1beta1.ProjectsOccurrencesService.<lambda>  s4    X%;%;SCxH-O!&r2   c                 L    | j                  d      }| j                  |||      S )aQ  Gets a summary of the number and severity of occurrences.

      Args:
        request: (ContaineranalysisProjectsOccurrencesGetVulnerabilitySummaryRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (VulnerabilityOccurrencesSummary) The response message.
      r   r<   r>   rA   s       r1   r   zKContaineranalysisV1beta1.ProjectsOccurrencesService.GetVulnerabilitySummary  r   r2   c                  J    t        j                  ddddgdgddgddd	d
d      S )Nz>v1beta1/projects/{projectsId}/occurrences:vulnerabilitySummaryrF   z>containeranalysis.projects.occurrences.getVulnerabilitySummaryrq   rI   r   r   rM   BContaineranalysisProjectsOccurrencesGetVulnerabilitySummaryRequestr   FrP   r\   r^   r2   r1   r_   z<ContaineranalysisV1beta1.ProjectsOccurrencesService.<lambda>  s:    H4J4JRR zJ 67J^<5r2   c                 L    | j                  d      }| j                  |||      S )a)  Lists occurrences for the specified project.

      Args:
        request: (ContaineranalysisProjectsOccurrencesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListOccurrencesResponse) The response message.
      r;   r<   r>   rA   s       r1   r;   z8ContaineranalysisV1beta1.ProjectsOccurrencesService.List  rD   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nr0  rF   z+containeranalysis.projects.occurrences.listrq   r   r   rM   /ContaineranalysisProjectsOccurrencesListRequestr   FrP   r\   r^   r2   r1   r_   z<ContaineranalysisV1beta1.ProjectsOccurrencesService.<lambda>  s4    !7!7=? zJP5K4"r2   c                 L    | j                  d      }| j                  |||      S )a  Updates the specified occurrence.

      Args:
        request: (ContaineranalysisProjectsOccurrencesPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Occurrence) The response message.
      r   r<   r>   rA   s       r1   r   z9ContaineranalysisV1beta1.ProjectsOccurrencesService.Patch  r   r2   c                  H    t        j                  ddddgdgdgdddd	d
      S )Nr4  r   z,containeranalysis.projects.occurrences.patchrG   r   r   r   0ContaineranalysisProjectsOccurrencesPatchRequestr   FrP   r\   r^   r2   r1   r_   z<ContaineranalysisV1beta1.ProjectsOccurrencesService.<lambda>  s6    ("8"8M@xH"^'"L'#r2   c                 L    | j                  d      }| j                  |||      S )au  Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

      Args:
        request: (ContaineranalysisProjectsOccurrencesSetIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Policy) The response message.
      r   r<   r>   rA   s       r1   r   z@ContaineranalysisV1beta1.ProjectsOccurrencesService.SetIamPolicy  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzFv1beta1/projects/{projectsId}/occurrences/{occurrencesId}:setIamPolicyrp   z3containeranalysis.projects.occurrences.setIamPolicyr   r   r   7ContaineranalysisProjectsOccurrencesSetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   z<ContaineranalysisV1beta1.ProjectsOccurrencesService.<lambda>   r<  r2   c                 L    | j                  d      }| j                  |||      S )aL  Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

      Args:
        request: (ContaineranalysisProjectsOccurrencesTestIamPermissionsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TestIamPermissionsResponse) The response message.
      r   r<   r>   rA   s       r1   r   zFContaineranalysisV1beta1.ProjectsOccurrencesService.TestIamPermissions  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzLv1beta1/projects/{projectsId}/occurrences/{occurrencesId}:testIamPermissionsrp   z9containeranalysis.projects.occurrences.testIamPermissionsr   r   r   =ContaineranalysisProjectsOccurrencesTestIamPermissionsRequestr   FrP   r\   r^   r2   r1   r_   z<ContaineranalysisV1beta1.ProjectsOccurrencesService.<lambda>  s4    x/E/E`M"|L>1Y70r2   r6   r   rh   s   @r1   r(   r)    s    >"E
8!K8F8F8C8"L8H8-)8D8E8"L8($$r2   r(   c                   V     e Zd ZdZdZ fdZddZd e_        ddZd e_         xZ	S )	1ContaineranalysisV1beta1.ProjectsResourcesServicez2Service class for the projects_resources resource.r+   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r*   r   r7   r8   s     r1   r   z:ContaineranalysisV1beta1.ProjectsResourcesService.__init__.  r   r2   c                 L    | j                  d      }| j                  |||      S )aF  Generates an SBOM and other dependency information for the given resource.

      Args:
        request: (ContaineranalysisProjectsResourcesExportSBOMRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ExportSBOMResponse) The response message.
      r   r<   r>   rA   s       r1   r   z<ContaineranalysisV1beta1.ProjectsResourcesService.ExportSBOM3  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz@v1beta1/projects/{projectsId}/resources/{resourcesId}:exportSBOMrp   z/containeranalysis.projects.resources.exportSBOMrG   r   r   3ContaineranalysisProjectsResourcesExportSBOMRequestr   FrP   r\   r^   r2   r1   r_   z:ContaineranalysisV1beta1.ProjectsResourcesService.<lambda>@  s4    x'='=TCxH2)O/(r2   c                 L    | j                  d      }| j                  |||      S )aE  Gets a summary of the packages within a given resource.

      Args:
        request: (ContaineranalysisProjectsResourcesGeneratePackagesSummaryRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (PackagesSummaryResponse) The response message.
      r   r<   r>   rA   s       r1   r   zIContaineranalysisV1beta1.ProjectsResourcesService.GeneratePackagesSummaryN  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzMv1beta1/projects/{projectsId}/resources/{resourcesId}:generatePackagesSummaryrp   z<containeranalysis.projects.resources.generatePackagesSummaryrG   r   r   @ContaineranalysisProjectsResourcesGeneratePackagesSummaryRequestr   FrP   r\   r^   r2   r1   r_   z:ContaineranalysisV1beta1.ProjectsResourcesService.<lambda>[  s4    H4J4JaPxH?6\45r2   r6   r   rh   s   @r1   r*   rP  )  s2    < E
8 J8-))r2   r*   c                   &     e Zd ZdZdZ fdZ xZS )(ContaineranalysisV1beta1.ProjectsServicez(Service class for the projects resource.r-   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r,   r   r7   r8   s     r1   r   z1ContaineranalysisV1beta1.ProjectsService.__init__n  s#    $44dDVLdr2   r   rh   s   @r1   r,   rY  i  s    2E r2   r,   )rM   NTNNFFNNNN)ra   rb   rc   rd   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(   r*   r,   rg   rh   s   @r1   r   r   
   s#   O/8(B- (=>'(*"."+1,()-6:/4<@?C	/4#1H1H #J{h&=&= {zqH,C,C qf	>(*A*A >@!8!8 #(?(? #J{X44 {zq8#:#: qf	>!8!8 >@//  r2   r   N)
rd   
__future__r   apitools.base.pyr   ?googlecloudsdk.generated_clients.apis.containeranalysis.v1beta1r   r[  BaseApiClientr   r^   r2   r1   <module>rl     s'    E ' % zgx55 gr2   