
                         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 v1.    )absolute_import)base_api)containeranalysis_v1_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 )!ContaineranalysisV1zBGenerated client library for service containeranalysis version v1.z)https://containeranalysis.googleapis.com/z.https://containeranalysis.mtls.googleapis.com/containeranalysisz.https://www.googleapis.com/auth/cloud-platformv1	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               ]lib/googlecloudsdk/generated_clients/apis/containeranalysis/v1/containeranalysis_v1_client.pyr   zContaineranalysisV1.__init__   s    
C	
t-'d%l)3 7+ . - 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 )<ContaineranalysisV1.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   zEContaineranalysisV1.ProjectsLocationsNotesOccurrencesService.__init__:   s$    HH$XY_`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;   zAContaineranalysisV1.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 )NzLv1/projects/{projectsId}/locations/{locationsId}/notes/{notesId}/occurrencesGETz;containeranalysis.projects.locations.notes.occurrences.listnamefilterpageSize	pageTokenv1/{+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>zEContaineranalysisV1.ProjectsLocationsNotesOccurrencesService.<lambda>L   s4    !7!7`OxH8.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 )1ContaineranalysisV1.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:ContaineranalysisV1.ProjectsLocationsNotesService.__init___   s#    ==tMfU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   z=ContaineranalysisV1.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 )NzBv1/projects/{projectsId}/locations/{locationsId}/notes:batchCreatePOSTz6containeranalysis.projects.locations.notes.batchCreateparentv1/{+parent}/notes:batchCreatebatchCreateNotesRequest9ContaineranalysisProjectsLocationsNotesBatchCreateRequestBatchCreateNotesResponseFrP   r\   r^   r2   r1   r_   z:ContaineranalysisV1.ProjectsLocationsNotesService.<lambda>q   s4    (>(>VJ zJ6/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   z8ContaineranalysisV1.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 )N6v1/projects/{projectsId}/locations/{locationsId}/notesrp   z1containeranalysis.projects.locations.notes.createrq   noteIdv1/{+parent}/notesnote4ContaineranalysisProjectsLocationsNotesCreateRequestNoteFrP   r\   r^   r2   r1   r_   z:ContaineranalysisV1.ProjectsLocationsNotesService.<lambda>   s6    8#9#9J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   z8ContaineranalysisV1.ProjectsLocationsNotesService.Delete   rx   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )N@v1/projects/{projectsId}/locations/{locationsId}/notes/{notesId}DELETEz1containeranalysis.projects.locations.notes.deleterG   
v1/{+name}rM   4ContaineranalysisProjectsLocationsNotesDeleteRequestEmptyFrP   r\   r^   r2   r1   r_   z:ContaineranalysisV1.ProjectsLocationsNotesService.<lambda>   s4    8#9#9T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   z5ContaineranalysisV1.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:ContaineranalysisV1.ProjectsLocationsNotesService.<lambda>   s4     6 6T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   z>ContaineranalysisV1.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 )NzMv1/projects/{projectsId}/locations/{locationsId}/notes/{notesId}:getIamPolicyrp   z7containeranalysis.projects.locations.notes.getIamPolicyresourcev1/{+resource}:getIamPolicygetIamPolicyRequest:ContaineranalysisProjectsLocationsNotesGetIamPolicyRequestPolicyFrP   r\   r^   r2   r1   r_   z:ContaineranalysisV1.ProjectsLocationsNotesService.<lambda>   4    )?)?aK"|L3+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;   z6ContaineranalysisV1.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:ContaineranalysisV1.ProjectsLocationsNotesService.<lambda>   s4    !7!7J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   z7ContaineranalysisV1.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:ContaineranalysisV1.ProjectsLocationsNotesService.<lambda>  s6    ("8"8T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   z>ContaineranalysisV1.ProjectsLocationsNotesService.SetIamPolicy!  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzMv1/projects/{projectsId}/locations/{locationsId}/notes/{notesId}:setIamPolicyrp   z7containeranalysis.projects.locations.notes.setIamPolicyr   v1/{+resource}:setIamPolicysetIamPolicyRequest:ContaineranalysisProjectsLocationsNotesSetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   z:ContaineranalysisV1.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   zDContaineranalysisV1.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 )NzSv1/projects/{projectsId}/locations/{locationsId}/notes/{notesId}:testIamPermissionsrp   z=containeranalysis.projects.locations.notes.testIamPermissionsr   !v1/{+resource}:testIamPermissionstestIamPermissionsRequest@ContaineranalysisProjectsLocationsNotesTestIamPermissionsRequestTestIamPermissionsResponseFrP   r\   r^   r2   r1   r_   z:ContaineranalysisV1.ProjectsLocationsNotesService.<lambda>I  s4    x/E/EgQ"|L9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 )7ContaineranalysisV1.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   z@ContaineranalysisV1.ProjectsLocationsOccurrencesService.__init__\  s$    CCTSTZ[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   zCContaineranalysisV1.ProjectsLocationsOccurrencesService.BatchCreatea  rn   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzHv1/projects/{projectsId}/locations/{locationsId}/occurrences:batchCreaterp   z<containeranalysis.projects.locations.occurrences.batchCreaterq   $v1/{+parent}/occurrences:batchCreatebatchCreateOccurrencesRequest?ContaineranalysisProjectsLocationsOccurrencesBatchCreateRequestBatchCreateOccurrencesResponseFrP   r\   r^   r2   r1   r_   z@ContaineranalysisV1.ProjectsLocationsOccurrencesService.<lambda>n  s4    (>(>\P zJ<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   z>ContaineranalysisV1.ProjectsLocationsOccurrencesService.Create|  rx   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )N<v1/projects/{projectsId}/locations/{locationsId}/occurrencesrp   z7containeranalysis.projects.locations.occurrences.createrq   v1/{+parent}/occurrences
occurrence:ContaineranalysisProjectsLocationsOccurrencesCreateRequest
OccurrenceFrP   r\   r^   r2   r1   r_   z@ContaineranalysisV1.ProjectsLocationsOccurrencesService.<lambda>  s4    8#9#9PK zJ0"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   z>ContaineranalysisV1.ProjectsLocationsOccurrencesService.Delete  rx   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NLv1/projects/{projectsId}/locations/{locationsId}/occurrences/{occurrencesId}r   z7containeranalysis.projects.locations.occurrences.deleterG   r   rM   :ContaineranalysisProjectsLocationsOccurrencesDeleteRequestr   FrP   r\   r^   r2   r1   r_   z@ContaineranalysisV1.ProjectsLocationsOccurrencesService.<lambda>  s4    8#9#9`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;ContaineranalysisV1.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_   z@ContaineranalysisV1.ProjectsLocationsOccurrencesService.<lambda>  s4     6 6`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   zDContaineranalysisV1.ProjectsLocationsOccurrencesService.GetIamPolicy  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzYv1/projects/{projectsId}/locations/{locationsId}/occurrences/{occurrencesId}:getIamPolicyrp   z=containeranalysis.projects.locations.occurrences.getIamPolicyr   r   r   @ContaineranalysisProjectsLocationsOccurrencesGetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   z@ContaineranalysisV1.ProjectsLocationsOccurrencesService.<lambda>  4    )?)?mQ"|L3+\#*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   z@ContaineranalysisV1.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 )NzRv1/projects/{projectsId}/locations/{locationsId}/occurrences/{occurrencesId}/notesrF   z9containeranalysis.projects.locations.occurrences.getNotesrG   v1/{+name}/notesrM   <ContaineranalysisProjectsLocationsOccurrencesGetNotesRequestr   FrP   r\   r^   r2   r1   r_   z@ContaineranalysisV1.ProjectsLocationsOccurrencesService.<lambda>  s4    X%;%;f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   zOContaineranalysisV1.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 )NzQv1/projects/{projectsId}/locations/{locationsId}/occurrences:vulnerabilitySummaryrF   zHcontaineranalysis.projects.locations.occurrences.getVulnerabilitySummaryrq   rI   r   -v1/{+parent}/occurrences:vulnerabilitySummaryrM   KContaineranalysisProjectsLocationsOccurrencesGetVulnerabilitySummaryRequestVulnerabilityOccurrencesSummaryFrP   r\   r^   r2   r1   r_   z@ContaineranalysisV1.ProjectsLocationsOccurrencesService.<lambda>  s:    H4J4Je\ zJ 67E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;   z<ContaineranalysisV1.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_   z@ContaineranalysisV1.ProjectsLocationsOccurrencesService.<lambda>+  s4    !7!7PI zJP0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   z=ContaineranalysisV1.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_   z@ContaineranalysisV1.ProjectsLocationsOccurrencesService.<lambda>F  s6    ("8"8`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   zDContaineranalysisV1.ProjectsLocationsOccurrencesService.SetIamPolicyT  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzYv1/projects/{projectsId}/locations/{locationsId}/occurrences/{occurrencesId}:setIamPolicyrp   z=containeranalysis.projects.locations.occurrences.setIamPolicyr   r   r   @ContaineranalysisProjectsLocationsOccurrencesSetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   z@ContaineranalysisV1.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   zJContaineranalysisV1.ProjectsLocationsOccurrencesService.TestIamPermissionso  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz_v1/projects/{projectsId}/locations/{locationsId}/occurrences/{occurrencesId}:testIamPermissionsrp   zCcontaineranalysis.projects.locations.occurrences.testIamPermissionsr   r   r   FContaineranalysisProjectsLocationsOccurrencesTestIamPermissionsRequestr   FrP   r\   r^   r2   r1   r_   z@ContaineranalysisV1.ProjectsLocationsOccurrencesService.<lambda>|  s4    x/E/EsW"|L9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                   >     e Zd ZdZdZ fdZddZd e_         xZS )5ContaineranalysisV1.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   z>ContaineranalysisV1.ProjectsLocationsResourcesService.__init__  s$    AA4QRXYdr2   c                 L    | j                  d      }| j                  |||      S )a.  Generates an SBOM 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   z@ContaineranalysisV1.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 )NzSv1/projects/{projectsId}/locations/{locationsId}/resources/{resourcesId}:exportSBOMrp   z9containeranalysis.projects.locations.resources.exportSBOMrG   v1/{+name}:exportSBOMexportSBOMRequest<ContaineranalysisProjectsLocationsResourcesExportSBOMRequestExportSBOMResponseFrP   r\   r^   r2   r1   r_   z>ContaineranalysisV1.ProjectsLocationsResourcesService.<lambda>  s4    x'='=gMxH-)X/(r2   r6   	ra   rb   rc   rd   re   r   r   rf   rg   rh   s   @r1   r    r     s"    F*E
8 Jr2   r    c                   &     e Zd ZdZdZ fdZ xZS ),ContaineranalysisV1.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   z5ContaineranalysisV1.ProjectsLocationsService.__init__  #    88$HP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 )3ContaineranalysisV1.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   z<ContaineranalysisV1.ProjectsNotesOccurrencesService.__init__  s$    ??OPVW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;   z8ContaineranalysisV1.ProjectsNotesOccurrencesService.List  rD   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nz4v1/projects/{projectsId}/notes/{notesId}/occurrencesrF   z1containeranalysis.projects.notes.occurrences.listrG   rH   rL   rM   4ContaineranalysisProjectsNotesOccurrencesListRequestrO   FrP   r\   r^   r2   r1   r_   z<ContaineranalysisV1.ProjectsNotesOccurrencesService.<lambda>  s4    !7!7HExH8.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 )(ContaineranalysisV1.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   z1ContaineranalysisV1.ProjectsNotesService.__init__  s#    44dDVL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   z4ContaineranalysisV1.ProjectsNotesService.BatchCreate  rn   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz*v1/projects/{projectsId}/notes:batchCreaterp   z,containeranalysis.projects.notes.batchCreaterq   rr   rs   0ContaineranalysisProjectsNotesBatchCreateRequestru   FrP   r\   r^   r2   r1   r_   z1ContaineranalysisV1.ProjectsNotesService.<lambda>  s4    (>(>>@ zJ6/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   z/ContaineranalysisV1.ProjectsNotesService.Create  rx   r2   c                  H    t        j                  ddddgdgdgdddd	d
      S )Nv1/projects/{projectsId}/notesrp   z'containeranalysis.projects.notes.createrq   r{   r|   r}   +ContaineranalysisProjectsNotesCreateRequestr   FrP   r\   r^   r2   r1   r_   z1ContaineranalysisV1.ProjectsNotesService.<lambda>  s6    8#9#92; 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   z/ContaineranalysisV1.ProjectsNotesService.Delete  rx   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )N(v1/projects/{projectsId}/notes/{notesId}r   z'containeranalysis.projects.notes.deleterG   r   rM   +ContaineranalysisProjectsNotesDeleteRequestr   FrP   r\   r^   r2   r1   r_   z1ContaineranalysisV1.ProjectsNotesService.<lambda>+  s4    8#9#9<;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   z,ContaineranalysisV1.ProjectsNotesService.Get9  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_   z1ContaineranalysisV1.ProjectsNotesService.<lambda>F  s4     6 6<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   z5ContaineranalysisV1.ProjectsNotesService.GetIamPolicyT  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz5v1/projects/{projectsId}/notes/{notesId}:getIamPolicyrp   z-containeranalysis.projects.notes.getIamPolicyr   r   r   1ContaineranalysisProjectsNotesGetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   z1ContaineranalysisV1.ProjectsNotesService.<lambda>a  4    )?)?IA"|L3+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;   z-ContaineranalysisV1.ProjectsNotesService.Listo  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_   z1ContaineranalysisV1.ProjectsNotesService.<lambda>|  s4    !7!72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   z.ContaineranalysisV1.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_   z1ContaineranalysisV1.ProjectsNotesService.<lambda>  s6    ("8"8<: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   z5ContaineranalysisV1.ProjectsNotesService.SetIamPolicy  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz5v1/projects/{projectsId}/notes/{notesId}:setIamPolicyrp   z-containeranalysis.projects.notes.setIamPolicyr   r   r   1ContaineranalysisProjectsNotesSetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   z1ContaineranalysisV1.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;ContaineranalysisV1.ProjectsNotesService.TestIamPermissions  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz;v1/projects/{projectsId}/notes/{notesId}:testIamPermissionsrp   z3containeranalysis.projects.notes.testIamPermissionsr   r   r   7ContaineranalysisProjectsNotesTestIamPermissionsRequestr   FrP   r\   r^   r2   r1   r_   z1ContaineranalysisV1.ProjectsNotesService.<lambda>  s4    x/E/EOG"|L9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 ).ContaineranalysisV1.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   z7ContaineranalysisV1.ProjectsOccurrencesService.__init__  s#    ::DJ6R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:ContaineranalysisV1.ProjectsOccurrencesService.BatchCreate  rn   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz0v1/projects/{projectsId}/occurrences:batchCreaterp   z2containeranalysis.projects.occurrences.batchCreaterq   r   r   6ContaineranalysisProjectsOccurrencesBatchCreateRequestr   FrP   r\   r^   r2   r1   r_   z7ContaineranalysisV1.ProjectsOccurrencesService.<lambda>  s4    (>(>DF zJ<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   z5ContaineranalysisV1.ProjectsOccurrencesService.Create   rx   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )N$v1/projects/{projectsId}/occurrencesrp   z-containeranalysis.projects.occurrences.createrq   r   r   1ContaineranalysisProjectsOccurrencesCreateRequestr   FrP   r\   r^   r2   r1   r_   z7ContaineranalysisV1.ProjectsOccurrencesService.<lambda>  s4    8#9#98A zJ0"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   z5ContaineranalysisV1.ProjectsOccurrencesService.Delete  rx   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )N4v1/projects/{projectsId}/occurrences/{occurrencesId}r   z-containeranalysis.projects.occurrences.deleterG   r   rM   1ContaineranalysisProjectsOccurrencesDeleteRequestr   FrP   r\   r^   r2   r1   r_   z7ContaineranalysisV1.ProjectsOccurrencesService.<lambda>(  s4    8#9#9H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   z2ContaineranalysisV1.ProjectsOccurrencesService.Get6  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.occurrences.getrG   r   rM   .ContaineranalysisProjectsOccurrencesGetRequestr   FrP   r\   r^   r2   r1   r_   z7ContaineranalysisV1.ProjectsOccurrencesService.<lambda>C  s4     6 6H>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;ContaineranalysisV1.ProjectsOccurrencesService.GetIamPolicyQ  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzAv1/projects/{projectsId}/occurrences/{occurrencesId}:getIamPolicyrp   z3containeranalysis.projects.occurrences.getIamPolicyr   r   r   7ContaineranalysisProjectsOccurrencesGetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   z7ContaineranalysisV1.ProjectsOccurrencesService.<lambda>^  4    )?)?UG"|L3+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   z7ContaineranalysisV1.ProjectsOccurrencesService.GetNotesl  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz:v1/projects/{projectsId}/occurrences/{occurrencesId}/notesrF   z/containeranalysis.projects.occurrences.getNotesrG   r   rM   3ContaineranalysisProjectsOccurrencesGetNotesRequestr   FrP   r\   r^   r2   r1   r_   z7ContaineranalysisV1.ProjectsOccurrencesService.<lambda>y  s4    X%;%;N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   zFContaineranalysisV1.ProjectsOccurrencesService.GetVulnerabilitySummary  r   r2   c                  J    t        j                  ddddgdgddgddd	d
d      S )Nz9v1/projects/{projectsId}/occurrences:vulnerabilitySummaryrF   z>containeranalysis.projects.occurrences.getVulnerabilitySummaryrq   rI   r   r   rM   BContaineranalysisProjectsOccurrencesGetVulnerabilitySummaryRequestr   FrP   r\   r^   r2   r1   r_   z7ContaineranalysisV1.ProjectsOccurrencesService.<lambda>  s:    H4J4JMR zJ 67E^<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;   z3ContaineranalysisV1.ProjectsOccurrencesService.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.occurrences.listrq   r   r   rM   /ContaineranalysisProjectsOccurrencesListRequestr   FrP   r\   r^   r2   r1   r_   z7ContaineranalysisV1.ProjectsOccurrencesService.<lambda>  s4    !7!78? zJP0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   z4ContaineranalysisV1.ProjectsOccurrencesService.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.occurrences.patchrG   r   r   r   0ContaineranalysisProjectsOccurrencesPatchRequestr   FrP   r\   r^   r2   r1   r_   z7ContaineranalysisV1.ProjectsOccurrencesService.<lambda>  s6    ("8"8H@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;ContaineranalysisV1.ProjectsOccurrencesService.SetIamPolicy  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzAv1/projects/{projectsId}/occurrences/{occurrencesId}:setIamPolicyrp   z3containeranalysis.projects.occurrences.setIamPolicyr   r   r   7ContaineranalysisProjectsOccurrencesSetIamPolicyRequestr   FrP   r\   r^   r2   r1   r_   z7ContaineranalysisV1.ProjectsOccurrencesService.<lambda>  r5  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   zAContaineranalysisV1.ProjectsOccurrencesService.TestIamPermissions  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzGv1/projects/{projectsId}/occurrences/{occurrencesId}:testIamPermissionsrp   z9containeranalysis.projects.occurrences.testIamPermissionsr   r   r   =ContaineranalysisProjectsOccurrencesTestIamPermissionsRequestr   FrP   r\   r^   r2   r1   r_   z7ContaineranalysisV1.ProjectsOccurrencesService.<lambda>   s4    x/E/E[M"|L9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                   >     e Zd ZdZdZ fdZddZd e_         xZS ),ContaineranalysisV1.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   z5ContaineranalysisV1.ProjectsResourcesService.__init__  r   r2   c                 L    | j                  d      }| j                  |||      S )a%  Generates an SBOM 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   z7ContaineranalysisV1.ProjectsResourcesService.ExportSBOM  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz;v1/projects/{projectsId}/resources/{resourcesId}:exportSBOMrp   z/containeranalysis.projects.resources.exportSBOMrG   r   r   3ContaineranalysisProjectsResourcesExportSBOMRequestr   FrP   r\   r^   r2   r1   r_   z5ContaineranalysisV1.ProjectsResourcesService.<lambda>%  s4    x'='=OCxH-)O/(r2   r6   r   rh   s   @r1   r*   rI    s"    < E
8 Jr2   r*   c                   &     e Zd ZdZdZ fdZ xZS )#ContaineranalysisV1.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   z,ContaineranalysisV1.ProjectsService.__init__8  s#    //?Gdr2   r   rh   s   @r1   r,   rO  3  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#   J/8(B- (=>'(*"."+,,()-6:/4<@?C	/4#1H1H #J{h&=&= {zqH,C,C qf	#(*A*A #J!8!8 #(?(? #J{X44 {zq8#:#: qf	#!8!8 #J//  r2   r   N)
rd   
__future__r   apitools.base.pyr   :googlecloudsdk.generated_clients.apis.containeranalysis.v1r   rQ  BaseApiClientr   r^   r2   r1   <module>rb     s'    @ ' % pq(00 qr2   