
                         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)z1Generated client library for osconfig version v1.    )absolute_import)base_api)osconfig_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 G d  d!ej&                        Z G d" d#ej&                        Z G d$ d%ej&                        Z  xZ!S )'
OsconfigV1z9Generated client library for service osconfig version v1.z https://osconfig.googleapis.com/z%https://osconfig.mtls.googleapis.com/osconfigz.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-                  |       | _        | j1                  |       | _        | j5                  |       | _        | j9                  |       | _        y)zCreate a new osconfig handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__ProjectsLocationsGlobalServiceprojects_locations_global,ProjectsLocationsInstancesInventoriesService(projects_locations_instances_inventories;ProjectsLocationsInstancesOsPolicyAssignmentsReportsService8projects_locations_instances_osPolicyAssignments_reports4ProjectsLocationsInstancesOsPolicyAssignmentsService0projects_locations_instances_osPolicyAssignments5ProjectsLocationsInstancesVulnerabilityReportsService1projects_locations_instances_vulnerabilityReports!ProjectsLocationsInstancesServiceprojects_locations_instances5ProjectsLocationsOsPolicyAssignmentsOperationsService1projects_locations_osPolicyAssignments_operations+ProjectsLocationsOsPolicyAssignmentsService&projects_locations_osPolicyAssignmentsProjectsLocationsServiceprojects_locationsProjectsPatchDeploymentsServiceprojects_patchDeployments'ProjectsPatchJobsInstanceDetailsService"projects_patchJobs_instanceDetailsProjectsPatchJobsServiceprojects_patchJobsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Klib/googlecloudsdk/generated_clients/apis/osconfig/v1/osconfig_v1_client.pyr   zOsconfigV1.__init__   sS    
C	*d$'d%l)3 7+ % - &*%H%H%ND"484e4efj4kD1DH  EE  EE  FJ  EKDA<@<u<uvz<{D9=A=w=wx|=}D:(,(N(Nt(TD%=A=w=wx|=}D:262b2bcg2hD/";;DAD%)%I%I$%OD".2.Z.Z[_.`D+";;DAD((.DM    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 )	)OsconfigV1.ProjectsLocationsGlobalServicez9Service class for the projects_locations_global resource.r   c                 N    t         t        j                  |   |       i | _        y N)r   r   r   r   _upload_configsr4   clientr6   s     r7   r   z2OsconfigV1.ProjectsLocationsGlobalService.__init__=   s"    J55tEfMdr8   c                 L    | j                  d      }| j                  |||      S )a\  GetProjectFeatureSettings returns the VM Manager feature settings for a project.

      Args:
        request: (OsconfigProjectsLocationsGlobalGetProjectFeatureSettingsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ProjectFeatureSettings) The response message.
      GetProjectFeatureSettingsglobal_paramsGetMethodConfig
_RunMethodr4   requestrC   configs       r7   rA   zCOsconfigV1.ProjectsLocationsGlobalService.GetProjectFeatureSettingsB   s2     ##$?@f__
'  8 8r8   c                  F    t        j                  ddddgdgg ddddd	
      S )N@v1/projects/{projectsId}/locations/global/projectFeatureSettingsGETz<osconfig.projects.locations.global.getProjectFeatureSettingsname
v1/{+name} ?OsconfigProjectsLocationsGlobalGetProjectFeatureSettingsRequestProjectFeatureSettingsF	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 r8   r7   <lambda>z2OsconfigV1.ProjectsLocationsGlobalService.<lambda>O   s4    h6L6LTPxH"[37r8   c                 L    | j                  d      }| j                  |||      S )aW  UpdateProjectFeatureSettings sets the VM Manager features for a project.

      Args:
        request: (OsconfigProjectsLocationsGlobalUpdateProjectFeatureSettingsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ProjectFeatureSettings) The response message.
      UpdateProjectFeatureSettingsrB   rD   rG   s       r7   rc   zFOsconfigV1.ProjectsLocationsGlobalService.UpdateProjectFeatureSettings]   s2     ##$BCf__
'  8 8r8   c                  H    t        j                  ddddgdgdgdddd	d
      S )NrK   PATCHz?osconfig.projects.locations.global.updateProjectFeatureSettingsrM   
updateMaskrN   projectFeatureSettingsBOsconfigProjectsLocationsGlobalUpdateProjectFeatureSettingsRequestrQ   FrR   r^   r`   r8   r7   ra   z2OsconfigV1.ProjectsLocationsGlobalService.<lambda>j   s6    9O9OTSxH"^".^3:r8   r<   )
__name__
__module____qualname____doc___NAMEr   rA   method_configrc   __classcell__r6   s   @r7   r   r:   8   s3    C'E
8/+82 ..r8   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 )	7OsconfigV1.ProjectsLocationsInstancesInventoriesServicezHService class for the projects_locations_instances_inventories resource.r   c                 N    t         t        j                  |   |       i | _        y r<   )r   r   r   r   r=   r>   s     r7   r   z@OsconfigV1.ProjectsLocationsInstancesInventoriesService.__init__}   s#    JCCTSTZ[dr8   c                 L    | j                  d      }| j                  |||      S )at  Get inventory data for the specified VM instance. If the VM has no associated inventory, the message `NOT_FOUND` is returned.

      Args:
        request: (OsconfigProjectsLocationsInstancesInventoriesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Inventory) The response message.
      GetrB   rD   rG   s       r7   ru   z;OsconfigV1.ProjectsLocationsInstancesInventoriesService.Get   1     ##E*f__
'  8 8r8   c                  H    t        j                  ddddgdgdgdddd	d
      S )NzRv1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/inventoryrL   z5osconfig.projects.locations.instances.inventories.getrM   viewrN   rO   7OsconfigProjectsLocationsInstancesInventoriesGetRequest	InventoryFrR   r^   r`   r8   r7   ra   z@OsconfigV1.ProjectsLocationsInstancesInventoriesService.<lambda>   s6     6 6fIxHX"S&!r8   c                 L    | j                  d      }| j                  |||      S )aE  List inventory data for all VM instances in the specified zone.

      Args:
        request: (OsconfigProjectsLocationsInstancesInventoriesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListInventoriesResponse) The response message.
      ListrB   rD   rG   s       r7   r|   z<OsconfigV1.ProjectsLocationsInstancesInventoriesService.List   1     ##F+f__
'  8 8r8   c                  J    t        j                  ddddgdgg ddddd	d
      S )NzTv1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/inventoriesrL   z6osconfig.projects.locations.instances.inventories.listparent)filterpageSize	pageTokenrx   zv1/{+parent}/inventoriesrO   8OsconfigProjectsLocationsInstancesInventoriesListRequestListInventoriesResponseFrR   r^   r`   r8   r7   ra   z@OsconfigV1.ProjectsLocationsInstancesInventoriesService.<lambda>   s4    !7!7hJ zJ@0T4"r8   r<   
ri   rj   rk   rl   rm   r   ru   rn   r|   ro   rp   s   @r7   r   rr   x   s1    R6E
8C8Dr8   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 )	FOsconfigV1.ProjectsLocationsInstancesOsPolicyAssignmentsReportsServicezXService class for the projects_locations_instances_osPolicyAssignments_reports resource.r   c                 N    t         t        j                  |   |       i | _        y r<   )r   r   r   r   r=   r>   s     r7   r   zOOsconfigV1.ProjectsLocationsInstancesOsPolicyAssignmentsReportsService.__init__   s$    JRRTXbcijdr8   c                 L    | j                  d      }| j                  |||      S )af  Get the OS policy assignment report for the specified Compute Engine VM instance.

      Args:
        request: (OsconfigProjectsLocationsInstancesOsPolicyAssignmentsReportsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (OSPolicyAssignmentReport) The response message.
      ru   rB   rD   rG   s       r7   ru   zJOsconfigV1.ProjectsLocationsInstancesOsPolicyAssignmentsReportsService.Get   rv   r8   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz{v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/osPolicyAssignments/{osPolicyAssignmentsId}/reportrL   zEosconfig.projects.locations.instances.osPolicyAssignments.reports.getrM   rN   rO   FOsconfigProjectsLocationsInstancesOsPolicyAssignmentsReportsGetRequestOSPolicyAssignmentReportFrR   r^   r`   r8   r7   ra   zOOsconfigV1.ProjectsLocationsInstancesOsPolicyAssignmentsReportsService.<lambda>   s7     6 6 PYxH"b5!r8   c                 L    | j                  d      }| j                  |||      S )a  List OS policy assignment reports for all Compute Engine VM instances in the specified zone.

      Args:
        request: (OsconfigProjectsLocationsInstancesOsPolicyAssignmentsReportsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListOSPolicyAssignmentReportsResponse) The response message.
      r|   rB   rD   rG   s       r7   r|   zKOsconfigV1.ProjectsLocationsInstancesOsPolicyAssignmentsReportsService.List   r}   r8   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nz|v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/osPolicyAssignments/{osPolicyAssignmentsId}/reportsrL   zFosconfig.projects.locations.instances.osPolicyAssignments.reports.listr   r   r   r   zv1/{+parent}/reportsrO   GOsconfigProjectsLocationsInstancesOsPolicyAssignmentsReportsListRequest%ListOSPolicyAssignmentReportsResponseFrR   r^   r`   r8   r7   ra   zOOsconfigV1.ProjectsLocationsInstancesOsPolicyAssignmentsReportsService.<lambda>   s7    !7!7 QZ zJ8,cB"r8   r<   r   rp   s   @r7   r   r      s1    bFE
8C8Dr8   r   c                   &     e Zd ZdZdZ fdZ xZS )?OsconfigV1.ProjectsLocationsInstancesOsPolicyAssignmentsServicezPService class for the projects_locations_instances_osPolicyAssignments resource.r!   c                 N    t         t        j                  |   |       i | _        y r<   )r   r   r    r   r=   r>   s     r7   r   zHOsconfigV1.ProjectsLocationsInstancesOsPolicyAssignmentsService.__init__   s#    JKKT[\bcdr8   ri   rj   rk   rl   rm   r   ro   rp   s   @r7   r    r      s    Z>E r8   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 )	@OsconfigV1.ProjectsLocationsInstancesVulnerabilityReportsServicezQService class for the projects_locations_instances_vulnerabilityReports resource.r#   c                 N    t         t        j                  |   |       i | _        y r<   )r   r   r"   r   r=   r>   s     r7   r   zIOsconfigV1.ProjectsLocationsInstancesVulnerabilityReportsService.__init__  #    JLLd\]cddr8   c                 L    | j                  d      }| j                  |||      S )a  Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.

      Args:
        request: (OsconfigProjectsLocationsInstancesVulnerabilityReportsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (VulnerabilityReport) The response message.
      ru   rB   rD   rG   s       r7   ru   zDOsconfigV1.ProjectsLocationsInstancesVulnerabilityReportsService.Get  rv   r8   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz\v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/vulnerabilityReportrL   z>osconfig.projects.locations.instances.vulnerabilityReports.getrM   rN   rO   @OsconfigProjectsLocationsInstancesVulnerabilityReportsGetRequestVulnerabilityReportFrR   r^   r`   r8   r7   ra   zIOsconfigV1.ProjectsLocationsInstancesVulnerabilityReportsService.<lambda>  s4     6 6pRxH"\0!r8   c                 L    | j                  d      }| j                  |||      S )a^  List vulnerability reports for all VM instances in the specified zone.

      Args:
        request: (OsconfigProjectsLocationsInstancesVulnerabilityReportsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListVulnerabilityReportsResponse) The response message.
      r|   rB   rD   rG   s       r7   r|   zEOsconfigV1.ProjectsLocationsInstancesVulnerabilityReportsService.List'  r}   r8   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nz]v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/vulnerabilityReportsrL   z?osconfig.projects.locations.instances.vulnerabilityReports.listr   r   z!v1/{+parent}/vulnerabilityReportsrO   AOsconfigProjectsLocationsInstancesVulnerabilityReportsListRequest ListVulnerabilityReportsResponseFrR   r^   r`   r8   r7   ra   zIOsconfigV1.ProjectsLocationsInstancesVulnerabilityReportsService.<lambda>4  s4    !7!7qS zJ89]="r8   r<   r   rp   s   @r7   r"   r     s1    [?E
8C8Dr8   r"   c                   &     e Zd ZdZdZ fdZ xZS ),OsconfigV1.ProjectsLocationsInstancesServicez<Service class for the projects_locations_instances resource.r%   c                 N    t         t        j                  |   |       i | _        y r<   )r   r   r$   r   r=   r>   s     r7   r   z5OsconfigV1.ProjectsLocationsInstancesService.__init__G  s"    J88$HPdr8   r   rp   s   @r7   r$   r   B  s    F*E r8   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 )	@OsconfigV1.ProjectsLocationsOsPolicyAssignmentsOperationsServicezQService class for the projects_locations_osPolicyAssignments_operations resource.r'   c                 N    t         t        j                  |   |       i | _        y r<   )r   r   r&   r   r=   r>   s     r7   r   zIOsconfigV1.ProjectsLocationsOsPolicyAssignmentsOperationsService.__init__Q  r   r8   c                 L    | j                  d      }| j                  |||      S )aJ  Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.

      Args:
        request: (OsconfigProjectsLocationsOsPolicyAssignmentsOperationsCancelRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      CancelrB   rD   rG   s       r7   r   zGOsconfigV1.ProjectsLocationsOsPolicyAssignmentsOperationsService.CancelV  1     ##H-f__
'  8 8r8   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz}v1/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments/{osPolicyAssignmentsId}/operations/{operationsId}:cancelPOSTzAosconfig.projects.locations.osPolicyAssignments.operations.cancelrM   v1/{+name}:cancelcancelOperationRequestCOsconfigProjectsLocationsOsPolicyAssignmentsOperationsCancelRequestEmptyFrR   r^   r`   r8   r7   ra   zIOsconfigV1.ProjectsLocationsOsPolicyAssignmentsOperationsService.<lambda>c  s7    8#9#9 RUxH)._"$r8   c                 L    | j                  d      }| j                  |||      S )a  Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

      Args:
        request: (OsconfigProjectsLocationsOsPolicyAssignmentsOperationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      ru   rB   rD   rG   s       r7   ru   zDOsconfigV1.ProjectsLocationsOsPolicyAssignmentsOperationsService.Getq  rv   r8   c                  F    t        j                  ddddgdgg ddddd	
      S )Nzvv1/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments/{osPolicyAssignmentsId}/operations/{operationsId}rL   z>osconfig.projects.locations.osPolicyAssignments.operations.getrM   rN   rO   @OsconfigProjectsLocationsOsPolicyAssignmentsOperationsGetRequest	OperationFrR   r^   r`   r8   r7   ra   zIOsconfigV1.ProjectsLocationsOsPolicyAssignmentsOperationsService.<lambda>~  s7     6 6 KRxH"\&!r8   r<   )
ri   rj   rk   rl   rm   r   r   rn   ru   ro   rp   s   @r7   r&   r   L  s1    [?E
8F8Cr8   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_         xZS )6OsconfigV1.ProjectsLocationsOsPolicyAssignmentsServicezFService class for the projects_locations_osPolicyAssignments resource.r)   c                 N    t         t        j                  |   |       i | _        y r<   )r   r   r(   r   r=   r>   s     r7   r   z?OsconfigV1.ProjectsLocationsOsPolicyAssignmentsService.__init__  s#    JBBDRSYZdr8   c                 L    | j                  d      }| j                  |||      S )a  Create an OS policy assignment. This method also creates the first revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see [Method: projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).

      Args:
        request: (OsconfigProjectsLocationsOsPolicyAssignmentsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      CreaterB   rD   rG   s       r7   r   z=OsconfigV1.ProjectsLocationsOsPolicyAssignmentsService.Create  r   r8   c                  J    t        j                  ddddgdgddgddd	d
d      S )NDv1/projects/{projectsId}/locations/{locationsId}/osPolicyAssignmentsr   z6osconfig.projects.locations.osPolicyAssignments.creater   osPolicyAssignmentId	requestId v1/{+parent}/osPolicyAssignmentsoSPolicyAssignment9OsconfigProjectsLocationsOsPolicyAssignmentsCreateRequestr   FrR   r^   r`   r8   r7   ra   z?OsconfigV1.ProjectsLocationsOsPolicyAssignmentsService.<lambda>  s9    8#9#9XJ zJ,k:8*U&$r8   c                 L    | j                  d      }| j                  |||      S )a!  Delete the OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. If the LRO completes and is not cancelled, all revisions associated with the OS policy assignment are deleted. For more information, see [Method: projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).

      Args:
        request: (OsconfigProjectsLocationsOsPolicyAssignmentsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      DeleterB   rD   rG   s       r7   r   z=OsconfigV1.ProjectsLocationsOsPolicyAssignmentsService.Delete  r   r8   c                  H    t        j                  ddddgdgdgdddd	d
      S )N\v1/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments/{osPolicyAssignmentsId}DELETEz6osconfig.projects.locations.osPolicyAssignments.deleterM   r   rN   rO   9OsconfigProjectsLocationsOsPolicyAssignmentsDeleteRequestr   FrR   r^   r`   r8   r7   ra   z?OsconfigV1.ProjectsLocationsOsPolicyAssignmentsService.<lambda>  s6    8#9#9pJxH!]"U&$r8   c                 L    | j                  d      }| j                  |||      S )a  Retrieve an existing OS policy assignment. This method always returns the latest revision. In order to retrieve a previous revision of the assignment, also provide the revision ID in the `name` parameter.

      Args:
        request: (OsconfigProjectsLocationsOsPolicyAssignmentsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (OSPolicyAssignment) The response message.
      ru   rB   rD   rG   s       r7   ru   z:OsconfigV1.ProjectsLocationsOsPolicyAssignmentsService.Get  rv   r8   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   rL   z3osconfig.projects.locations.osPolicyAssignments.getrM   rN   rO   6OsconfigProjectsLocationsOsPolicyAssignmentsGetRequestOSPolicyAssignmentFrR   r^   r`   r8   r7   ra   z?OsconfigV1.ProjectsLocationsOsPolicyAssignmentsService.<lambda>  s4     6 6pGxH"R/!r8   c                 L    | j                  d      }| j                  |||      S )a  List the OS policy assignments under the parent resource. For each OS policy assignment, the latest revision is returned.

      Args:
        request: (OsconfigProjectsLocationsOsPolicyAssignmentsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListOSPolicyAssignmentsResponse) The response message.
      r|   rB   rD   rG   s       r7   r|   z;OsconfigV1.ProjectsLocationsOsPolicyAssignmentsService.List  r}   r8   c                  J    t        j                  ddddgdgddgddd	d
d      S )Nr   rL   z4osconfig.projects.locations.osPolicyAssignments.listr   r   r   r   rO   7OsconfigProjectsLocationsOsPolicyAssignmentsListRequestListOSPolicyAssignmentsResponseFrR   r^   r`   r8   r7   ra   z?OsconfigV1.ProjectsLocationsOsPolicyAssignmentsService.<lambda>  s9    !7!7XH zJ +.8S<"r8   c                 L    | j                  d      }| j                  |||      S )ag  List the OS policy assignment revisions for a given OS policy assignment.

      Args:
        request: (OsconfigProjectsLocationsOsPolicyAssignmentsListRevisionsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListOSPolicyAssignmentRevisionsResponse) The response message.
      ListRevisionsrB   rD   rG   s       r7   r   zDOsconfigV1.ProjectsLocationsOsPolicyAssignmentsService.ListRevisions  s1     ##O4f__
'  8 8r8   c                  J    t        j                  ddddgdgddgddd	d
d      S )Nzjv1/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments/{osPolicyAssignmentsId}:listRevisionsrL   z=osconfig.projects.locations.osPolicyAssignments.listRevisionsrM   r   r   zv1/{+name}:listRevisionsrO   @OsconfigProjectsLocationsOsPolicyAssignmentsListRevisionsRequest'ListOSPolicyAssignmentRevisionsResponseFrR   r^   r`   r8   r7   ra   z?OsconfigV1.ProjectsLocationsOsPolicyAssignmentsService.<lambda>  s9    (*@*@~QxH +.0\D+r8   c                 L    | j                  d      }| j                  |||      S )a  Update an existing OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see [Method: projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).

      Args:
        request: (OsconfigProjectsLocationsOsPolicyAssignmentsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      PatchrB   rD   rG   s       r7   r   z<OsconfigV1.ProjectsLocationsOsPolicyAssignmentsService.Patch  1     ##G,f__
'  8 8r8   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nr   re   z5osconfig.projects.locations.osPolicyAssignments.patchrM   )allowMissingr   rf   rN   r   8OsconfigProjectsLocationsOsPolicyAssignmentsPatchRequestr   FrR   r^   r`   r8   r7   ra   z?OsconfigV1.ProjectsLocationsOsPolicyAssignmentsService.<lambda>*  s4    ("8"8pIxH@"*T&#r8   r<   )ri   rj   rk   rl   rm   r   r   rn   r   ru   r|   r   r   ro   rp   s   @r7   r(   r     sm    P4E
8F8F8C8D8#M8Er8   r(   c                   &     e Zd ZdZdZ fdZ xZS )#OsconfigV1.ProjectsLocationsServicez2Service class for the projects_locations resource.r+   c                 N    t         t        j                  |   |       i | _        y r<   )r   r   r*   r   r=   r>   s     r7   r   z,OsconfigV1.ProjectsLocationsService.__init__=  "    J//?Gdr8   r   rp   s   @r7   r*   r   8  s    < E r8   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_         xZS )*OsconfigV1.ProjectsPatchDeploymentsServicez9Service class for the projects_patchDeployments resource.r-   c                 N    t         t        j                  |   |       i | _        y r<   )r   r   r,   r   r=   r>   s     r7   r   z3OsconfigV1.ProjectsPatchDeploymentsService.__init__G  s"    J66FvNdr8   c                 L    | j                  d      }| j                  |||      S )a  Create an OS Config patch deployment.

      Args:
        request: (OsconfigProjectsPatchDeploymentsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (PatchDeployment) The response message.
      r   rB   rD   rG   s       r7   r   z1OsconfigV1.ProjectsPatchDeploymentsService.CreateL  r   r8   c                  H    t        j                  ddddgdgdgdddd	d
      S )N)v1/projects/{projectsId}/patchDeploymentsr   z)osconfig.projects.patchDeployments.creater   patchDeploymentIdv1/{+parent}/patchDeploymentspatchDeployment-OsconfigProjectsPatchDeploymentsCreateRequestPatchDeploymentFrR   r^   r`   r8   r7   ra   z3OsconfigV1.ProjectsPatchDeploymentsService.<lambda>Y  s7    8#9#9== zJ)*5'I,$r8   c                 L    | j                  d      }| j                  |||      S )a  Delete an OS Config patch deployment.

      Args:
        request: (OsconfigProjectsPatchDeploymentsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      r   rB   rD   rG   s       r7   r   z1OsconfigV1.ProjectsPatchDeploymentsService.Deleteg  r   r8   c                  F    t        j                  ddddgdgg ddddd	
      S )N>v1/projects/{projectsId}/patchDeployments/{patchDeploymentsId}r   z)osconfig.projects.patchDeployments.deleterM   rN   rO   -OsconfigProjectsPatchDeploymentsDeleteRequestr   FrR   r^   r`   r8   r7   ra   z3OsconfigV1.ProjectsPatchDeploymentsService.<lambda>t  s4    8#9#9R=xH"I"$r8   c                 L    | j                  d      }| j                  |||      S )a  Get an OS Config patch deployment.

      Args:
        request: (OsconfigProjectsPatchDeploymentsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (PatchDeployment) The response message.
      ru   rB   rD   rG   s       r7   ru   z.OsconfigV1.ProjectsPatchDeploymentsService.Get  rv   r8   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   rL   z&osconfig.projects.patchDeployments.getrM   rN   rO   *OsconfigProjectsPatchDeploymentsGetRequestr   FrR   r^   r`   r8   r7   ra   z3OsconfigV1.ProjectsPatchDeploymentsService.<lambda>  s4     6 6R:xH"F,!r8   c                 L    | j                  d      }| j                  |||      S )a(  Get a page of OS Config patch deployments.

      Args:
        request: (OsconfigProjectsPatchDeploymentsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListPatchDeploymentsResponse) The response message.
      r|   rB   rD   rG   s       r7   r|   z/OsconfigV1.ProjectsPatchDeploymentsService.List  r}   r8   c                  J    t        j                  ddddgdgddgddd	d
d      S )Nr   rL   z'osconfig.projects.patchDeployments.listr   r   r   r   rO   +OsconfigProjectsPatchDeploymentsListRequestListPatchDeploymentsResponseFrR   r^   r`   r8   r7   ra   z3OsconfigV1.ProjectsPatchDeploymentsService.<lambda>  s9    !7!7=; zJ +.5G9"r8   c                 L    | j                  d      }| j                  |||      S )a  Update an OS Config patch deployment.

      Args:
        request: (OsconfigProjectsPatchDeploymentsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (PatchDeployment) The response message.
      r   rB   rD   rG   s       r7   r   z0OsconfigV1.ProjectsPatchDeploymentsService.Patch  r   r8   c                  H    t        j                  ddddgdgdgdddd	d
      S )Nr   re   z(osconfig.projects.patchDeployments.patchrM   rf   rN   r   ,OsconfigProjectsPatchDeploymentsPatchRequestr   FrR   r^   r`   r8   r7   ra   z3OsconfigV1.ProjectsPatchDeploymentsService.<lambda>  s6    ("8"8R<xH"^"'H,#r8   c                 L    | j                  d      }| j                  |||      S )a]  Change state of patch deployment to "PAUSED". Patch deployment in paused state doesn't generate patch jobs.

      Args:
        request: (OsconfigProjectsPatchDeploymentsPauseRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (PatchDeployment) The response message.
      PauserB   rD   rG   s       r7   r   z0OsconfigV1.ProjectsPatchDeploymentsService.Pause  r   r8   c                  F    t        j                  ddddgdgg ddddd	
      S )NzDv1/projects/{projectsId}/patchDeployments/{patchDeploymentsId}:pauser   z(osconfig.projects.patchDeployments.pauserM   zv1/{+name}:pausepausePatchDeploymentRequest,OsconfigProjectsPatchDeploymentsPauseRequestr   FrR   r^   r`   r8   r7   ra   z3OsconfigV1.ProjectsPatchDeploymentsService.<lambda>  s4    ("8"8X<xH(3H,#r8   c                 L    | j                  d      }| j                  |||      S )ah  Change state of patch deployment back to "ACTIVE". Patch deployment in active state continues to generate patch jobs.

      Args:
        request: (OsconfigProjectsPatchDeploymentsResumeRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (PatchDeployment) The response message.
      ResumerB   rD   rG   s       r7   r   z1OsconfigV1.ProjectsPatchDeploymentsService.Resume  r   r8   c                  F    t        j                  ddddgdgg ddddd	
      S )NzEv1/projects/{projectsId}/patchDeployments/{patchDeploymentsId}:resumer   z)osconfig.projects.patchDeployments.resumerM   zv1/{+name}:resumeresumePatchDeploymentRequest-OsconfigProjectsPatchDeploymentsResumeRequestr   FrR   r^   r`   r8   r7   ra   z3OsconfigV1.ProjectsPatchDeploymentsService.<lambda>  s4    8#9#9Y=xH)4I,$r8   r<   )ri   rj   rk   rl   rm   r   r   rn   r   ru   r|   r   r   r   ro   rp   s   @r7   r,   r   B  s|    C'E
8F8F8C8D8E8E8Fr8   r,   c                   >     e Zd ZdZdZ fdZddZd e_         xZS )2OsconfigV1.ProjectsPatchJobsInstanceDetailsServicezBService class for the projects_patchJobs_instanceDetails resource.r/   c                 N    t         t        j                  |   |       i | _        y r<   )r   r   r.   r   r=   r>   s     r7   r   z;OsconfigV1.ProjectsPatchJobsInstanceDetailsService.__init__  s"    J>>NvVdr8   c                 L    | j                  d      }| j                  |||      S )aB  Get a list of instance details for a given patch job.

      Args:
        request: (OsconfigProjectsPatchJobsInstanceDetailsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListPatchJobInstanceDetailsResponse) The response message.
      r|   rB   rD   rG   s       r7   r|   z7OsconfigV1.ProjectsPatchJobsInstanceDetailsService.List  r}   r8   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nz@v1/projects/{projectsId}/patchJobs/{patchJobsId}/instanceDetailsrL   z0osconfig.projects.patchJobs.instanceDetails.listr   r   zv1/{+parent}/instanceDetailsrO   3OsconfigProjectsPatchJobsInstanceDetailsListRequest#ListPatchJobInstanceDetailsResponseFrR   r^   r`   r8   r7   ra   z;OsconfigV1.ProjectsPatchJobsInstanceDetailsService.<lambda>   s4    !7!7TD zJ84O@"r8   r<   )	ri   rj   rk   rl   rm   r   r|   rn   ro   rp   s   @r7   r.   r  	  s"    L0E
8Dr8   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
_         xZS )#OsconfigV1.ProjectsPatchJobsServicez2Service class for the projects_patchJobs resource.r1   c                 N    t         t        j                  |   |       i | _        y r<   )r   r   r0   r   r=   r>   s     r7   r   z,OsconfigV1.ProjectsPatchJobsService.__init__3  r   r8   c                 L    | j                  d      }| j                  |||      S )a?  Cancel a patch job. The patch job must be active. Canceled patch jobs cannot be restarted.

      Args:
        request: (OsconfigProjectsPatchJobsCancelRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (PatchJob) The response message.
      r   rB   rD   rG   s       r7   r   z*OsconfigV1.ProjectsPatchJobsService.Cancel8  r   r8   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz7v1/projects/{projectsId}/patchJobs/{patchJobsId}:cancelr   z"osconfig.projects.patchJobs.cancelrM   r   cancelPatchJobRequest&OsconfigProjectsPatchJobsCancelRequestPatchJobFrR   r^   r`   r8   r7   ra   z,OsconfigV1.ProjectsPatchJobsService.<lambda>E  s4    8#9#9K6xH)-B%$r8   c                 L    | j                  d      }| j                  |||      S )a  Patch VM instances by creating and running a patch job.

      Args:
        request: (OsconfigProjectsPatchJobsExecuteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (PatchJob) The response message.
      ExecuterB   rD   rG   s       r7   r  z+OsconfigV1.ProjectsPatchJobsService.ExecuteS  s1     ##I.f__
'  8 8r8   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz*v1/projects/{projectsId}/patchJobs:executer   z#osconfig.projects.patchJobs.executer   zv1/{+parent}/patchJobs:executeexecutePatchJobRequest'OsconfigProjectsPatchJobsExecuteRequestr  FrR   r^   r`   r8   r7   ra   z,OsconfigV1.ProjectsPatchJobsService.<lambda>`  s4    H$:$:>7 zJ6.C%%r8   c                 L    | j                  d      }| j                  |||      S )a\  Get the patch job. This can be used to track the progress of an ongoing patch job or review the details of completed jobs.

      Args:
        request: (OsconfigProjectsPatchJobsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (PatchJob) The response message.
      ru   rB   rD   rG   s       r7   ru   z'OsconfigV1.ProjectsPatchJobsService.Getn  rv   r8   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz0v1/projects/{projectsId}/patchJobs/{patchJobsId}rL   zosconfig.projects.patchJobs.getrM   rN   rO   #OsconfigProjectsPatchJobsGetRequestr  FrR   r^   r`   r8   r7   ra   z,OsconfigV1.ProjectsPatchJobsService.<lambda>{  s4     6 6D3xH"?%!r8   c                 L    | j                  d      }| j                  |||      S )a	  Get a list of patch jobs.

      Args:
        request: (OsconfigProjectsPatchJobsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListPatchJobsResponse) The response message.
      r|   rB   rD   rG   s       r7   r|   z(OsconfigV1.ProjectsPatchJobsService.List  r}   r8   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nz"v1/projects/{projectsId}/patchJobsrL   z osconfig.projects.patchJobs.listr   r   zv1/{+parent}/patchJobsrO   $OsconfigProjectsPatchJobsListRequestListPatchJobsResponseFrR   r^   r`   r8   r7   ra   z,OsconfigV1.ProjectsPatchJobsService.<lambda>  s4    !7!764 zJ8.@2"r8   r<   )ri   rj   rk   rl   rm   r   r   rn   r  ru   r|   ro   rp   s   @r7   r0   r	  .  sO    < E
8F8G8C8Dr8   r0   c                   &     e Zd ZdZdZ fdZ xZS )OsconfigV1.ProjectsServicez(Service class for the projects resource.r3   c                 N    t         t        j                  |   |       i | _        y r<   )r   r   r2   r   r=   r>   s     r7   r   z#OsconfigV1.ProjectsService.__init__  s"    J&&6v>dr8   r   rp   s   @r7   r2   r    s    2E r8   r2   )rO   NTNNFFNNNN)"ri   rj   rk   rl   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,   r.   r0   r2   ro   rp   s   @r7   r   r   
   sX   A//(9-(=>'(*"."+#,()-6:/4<@?C	/:>x'>'> >@>X5L5L >@>HD[D[ >@X=T=T >h>U>U >@(*A*A >h>U>U >@jH4K4K jX!8!8 E(?(? EN#0G0G #Jt!8!8 tl//  r8   r   N)
rl   
__future__r   apitools.base.pyr   1googlecloudsdk.generated_clients.apis.osconfig.v1r   r  BaseApiClientr   r`   r8   r7   <module>r0     s'    7 ' % ^b'' br8   