
                         V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z1Generated client library for osconfig version v2.    )absolute_import)base_api)osconfig_v2_messagesc                     ^  \ rS rSrSr\rSrSrSr	S/r
SrSrS	rS
rS rSrSr     S,U 4S jjr " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S \R(                  5      r " S! S"\R(                  5      r " S# S$\R(                  5      r  " S% S&\R(                  5      r! " S' S(\R(                  5      r" " S) S*\R(                  5      r#S+r$U =r%$ )-
OsconfigV2
   z9Generated client library for service osconfig version v2.z https://osconfig.googleapis.com/z%https://osconfig.mtls.googleapis.com/osconfigz.https://www.googleapis.com/auth/cloud-platformv2	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                   > U=(       d    U R                   n[        [        U ]  XX4UXgUU	U
US9  U R	                  U 5      U l        U R                  U 5      U l        U R                  U 5      U l	        U R                  U 5      U l        U R                  U 5      U l        U R                  U 5      U l        U R!                  U 5      U l        U R%                  U 5      U l        U R)                  U 5      U l        U R-                  U 5      U l        U R1                  U 5      U l        U R5                  U 5      U l        U R9                  U 5      U l        U R=                  U 5      U l        U RA                  U 5      U l!        g)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__0FoldersLocationsGlobalPolicyOrchestratorsService,folders_locations_global_policyOrchestratorsFoldersLocationsGlobalServicefolders_locations_global!FoldersLocationsOperationsServicefolders_locations_operationsFoldersLocationsServicefolders_locationsFoldersServicefolders6OrganizationsLocationsGlobalPolicyOrchestratorsService2organizations_locations_global_policyOrchestrators#OrganizationsLocationsGlobalServiceorganizations_locations_global'OrganizationsLocationsOperationsService"organizations_locations_operationsOrganizationsLocationsServiceorganizations_locationsOrganizationsServiceorganizations1ProjectsLocationsGlobalPolicyOrchestratorsService-projects_locations_global_policyOrchestratorsProjectsLocationsGlobalServiceprojects_locations_global"ProjectsLocationsOperationsServiceprojects_locations_operationsProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Klib/googlecloudsdk/generated_clients/apis/osconfig/v2/osconfig_v2_client.pyr   OsconfigV2.__init__   sa    
C	*d$'%)3 7+ % - 9=8m8mnr8sD5$($F$Ft$LD!(,(N(Nt(TD%!99$?D&&t,DL>B>y>yz~>D;*.*R*RSW*XD'.2.Z.Z[_.`D+#'#E#Ed#KD 2248D9=9o9opt9uD6%)%H%H%ND")-)P)PQU)VD&";;DAD((.DM    c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SS jrS \l        SrU =r$ );OsconfigV2.FoldersLocationsGlobalPolicyOrchestratorsService:   zLService class for the folders_locations_global_policyOrchestrators resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr9   clientr;   s     r<   r   DOsconfigV2.FoldersLocationsGlobalPolicyOrchestratorsService.__init__?   s#    JGGWX^_dr>   c                 D    U R                  S5      nU R                  X1US9$ )a0  Creates a new policy orchestrator under the given folder resource. `name` field of the given orchestrator are ignored and instead replaced by a product of `parent` and `policy_orchestrator_id`. Orchestrator state field might be only set to `ACTIVE`, `STOPPED` or omitted (in which case, the created resource will be in `ACTIVE` state anyway).

Args:
  request: (OsconfigFoldersLocationsGlobalPolicyOrchestratorsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Createglobal_paramsGetMethodConfig
_RunMethodr9   requestrK   configs       r<   rI   BOsconfigV2.FoldersLocationsGlobalPolicyOrchestratorsService.CreateD   /     ##H-f__
  8 8r>   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )N;v2/folders/{foldersId}/locations/global/policyOrchestratorsPOSTz<osconfig.folders.locations.global.policyOrchestrators.createparentpolicyOrchestratorId	requestId v2/{+parent}/policyOrchestrators'googleCloudOsconfigV2PolicyOrchestrator>OsconfigFoldersLocationsGlobalPolicyOrchestratorsCreateRequest	OperationF	flat_pathhttp_method	method_idordered_paramspath_paramsquery_paramsrelative_pathrequest_fieldrequest_type_nameresponse_type_namesupports_downloadr   ApiMethodInfo r>   r<   <lambda>DOsconfigV2.FoldersLocationsGlobalPolicyOrchestratorsService.<lambda>Q   s9    8#9#9OP zJ,k:8?Z&$r>   c                 D    U R                  S5      nU R                  X1US9$ )a!  Deletes an existing policy orchestrator resource, parented by a folder.

Args:
  request: (OsconfigFoldersLocationsGlobalPolicyOrchestratorsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
DeleterJ   rL   rO   s       r<   rp   BOsconfigV2.FoldersLocationsGlobalPolicyOrchestratorsService.Delete_   rS   r>   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )NSv2/folders/{foldersId}/locations/global/policyOrchestrators/{policyOrchestratorsId}DELETEz<osconfig.folders.locations.global.policyOrchestrators.deletenameetagrY   
v2/{+name} >OsconfigFoldersLocationsGlobalPolicyOrchestratorsDeleteRequestr]   Fr^   rj   rl   r>   r<   rm   rn   l   s9    8#9#9gPxHk*"Z&$r>   c                 D    U R                  S5      nU R                  X1US9$ )a5  Retrieves an existing policy orchestrator, parented by a folder.

Args:
  request: (OsconfigFoldersLocationsGlobalPolicyOrchestratorsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudOsconfigV2PolicyOrchestrator) The response message.
GetrJ   rL   rO   s       r<   r{   ?OsconfigV2.FoldersLocationsGlobalPolicyOrchestratorsService.Getz   /     ##E*f__
  8 8r>   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nrs   GETz9osconfig.folders.locations.global.policyOrchestrators.getru   rw   rx   ;OsconfigFoldersLocationsGlobalPolicyOrchestratorsGetRequest'GoogleCloudOsconfigV2PolicyOrchestratorFr^   rj   rl   r>   r<   rm   rn      s4     6 6gMxH"WD!r>   c                 D    U R                  S5      nU R                  X1US9$ )aI  Lists the policy orchestrators under the given parent folder resource.

Args:
  request: (OsconfigFoldersLocationsGlobalPolicyOrchestratorsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse) The response message.
ListrJ   rL   rO   s       r<   r   @OsconfigV2.FoldersLocationsGlobalPolicyOrchestratorsService.List   /     ##F+f__
  8 8r>   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )NrU   r   z:osconfig.folders.locations.global.policyOrchestrators.listrW   filterorderBypageSize	pageTokenrZ   rx   <OsconfigFoldersLocationsGlobalPolicyOrchestratorsListRequest4GoogleCloudOsconfigV2ListPolicyOrchestratorsResponseFr^   rj   rl   r>   r<   rm   rn      s4    !7!7ON zJC8XQ"r>   c                 D    U R                  S5      nU R                  X1US9$ )a  Updates an existing policy orchestrator, parented by a folder.

Args:
  request: (OsconfigFoldersLocationsGlobalPolicyOrchestratorsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
PatchrJ   rL   rO   s       r<   r   AOsconfigV2.FoldersLocationsGlobalPolicyOrchestratorsService.Patch   /     ##G,f__
  8 8r>   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nrs   PATCHz;osconfig.folders.locations.global.policyOrchestrators.patchru   
updateMaskrw   r[   =OsconfigFoldersLocationsGlobalPolicyOrchestratorsPatchRequestr]   Fr^   rj   rl   r>   r<   rm   rn      s6    ("8"8gOxH"^"?Y&#r>   rD   rC   __name__
__module____qualname____firstlineno____doc___NAMEr   rI   method_configrp   r{   r   r   __static_attributes____classcell__r;   s   @r<   r   r@   :   s^    V:E
8F8F8C8D8Er>   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )(OsconfigV2.FoldersLocationsGlobalService   z8Service class for the folders_locations_global resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r   r   rD   rE   s     r<   r   1OsconfigV2.FoldersLocationsGlobalService.__init__   "    J44dDVLdr>   r   	r   r   r   r   r   r   r   r   r   r   s   @r<   r   r      s    B&E r>   r   c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SrU =r$ ),OsconfigV2.FoldersLocationsOperationsService   z<Service class for the folders_locations_operations resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r   r   rD   rE   s     r<   r   5OsconfigV2.FoldersLocationsOperationsService.__init__   s"    J88$HPdr>   c                 D    U R                  S5      nU R                  X1US9$ )a  Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.

Args:
  request: (OsconfigFoldersLocationsOperationsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
CancelrJ   rL   rO   s       r<   r   3OsconfigV2.FoldersLocationsOperationsService.Cancel   rS   r>   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzOv2/folders/{foldersId}/locations/{locationsId}/operations/{operationsId}:cancelrV   z,osconfig.folders.locations.operations.cancelru   v2/{+name}:cancelcancelOperationRequest/OsconfigFoldersLocationsOperationsCancelRequestEmptyFr^   rj   rl   r>   r<   rm   5OsconfigV2.FoldersLocationsOperationsService.<lambda>   s4    8#9#9c@xH).K"$r>   c                 D    U R                  S5      nU R                  X1US9$ )a  Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

Args:
  request: (OsconfigFoldersLocationsOperationsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
rp   rJ   rL   rO   s       r<   rp   3OsconfigV2.FoldersLocationsOperationsService.Delete   rS   r>   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NHv2/folders/{foldersId}/locations/{locationsId}/operations/{operationsId}rt   z,osconfig.folders.locations.operations.deleteru   rw   rx   /OsconfigFoldersLocationsOperationsDeleteRequestr   Fr^   rj   rl   r>   r<   rm   r     s4    8#9#9\@xH"K"$r>   c                 D    U R                  S5      nU R                  X1US9$ )ac  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: (OsconfigFoldersLocationsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r{   rJ   rL   rO   s       r<   r{   0OsconfigV2.FoldersLocationsOperationsService.Get  r}   r>   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   r   z)osconfig.folders.locations.operations.getru   rw   rx   ,OsconfigFoldersLocationsOperationsGetRequestr]   Fr^   rj   rl   r>   r<   rm   r   "  s4     6 6\=xH"H&!r>   c                 D    U R                  S5      nU R                  X1US9$ )a]  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Args:
  request: (OsconfigFoldersLocationsOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
r   rJ   rL   rO   s       r<   r   1OsconfigV2.FoldersLocationsOperationsService.List0  r   r>   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz9v2/folders/{foldersId}/locations/{locationsId}/operationsr   z*osconfig.folders.locations.operations.listru   r   r   r   returnPartialSuccessv2/{+name}/operationsrx   -OsconfigFoldersLocationsOperationsListRequestListOperationsResponseFr^   rj   rl   r>   r<   rm   r   =  s4    !7!7M>xHP-I3"r>   r   rC   r   r   r   r   r   r   r   r   r   rp   r{   r   r   r   r   s   @r<   r   r      sO    F*E
8F8F8C8Dr>   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )"OsconfigV2.FoldersLocationsServiceiK  z1Service class for the folders_locations resource.r"   c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r!   r   rD   rE   s     r<   r   +OsconfigV2.FoldersLocationsService.__init__P  s"    J..>vFdr>   r   r   r   s   @r<   r!   r   K  s    ;E r>   r!   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )OsconfigV2.FoldersServiceiU  z'Service class for the folders resource.r$   c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r#   r   rD   rE   s     r<   r   "OsconfigV2.FoldersService.__init__Z  s"    J%%t5f=dr>   r   r   r   s   @r<   r#   r   U  s    1E r>   r#   c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SS jrS \l        SrU =r$ )AOsconfigV2.OrganizationsLocationsGlobalPolicyOrchestratorsServicei_  zRService class for the organizations_locations_global_policyOrchestrators resource.r&   c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r%   r   rD   rE   s     r<   r   JOsconfigV2.OrganizationsLocationsGlobalPolicyOrchestratorsService.__init__d  s#    JMMt]^dedr>   c                 D    U R                  S5      nU R                  X1US9$ )a=  Creates a new policy orchestrator under the given organizations resource. `name` field of the given orchestrator are ignored and instead replaced by a product of `parent` and `policy_orchestrator_id`. Orchestrator state field might be only set to `ACTIVE`, `STOPPED` or omitted (in which case, the created resource will be in `ACTIVE` state anyway).

Args:
  request: (OsconfigOrganizationsLocationsGlobalPolicyOrchestratorsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
rI   rJ   rL   rO   s       r<   rI   HOsconfigV2.OrganizationsLocationsGlobalPolicyOrchestratorsService.Createi  rS   r>   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )NGv2/organizations/{organizationsId}/locations/global/policyOrchestratorsrV   zBosconfig.organizations.locations.global.policyOrchestrators.createrW   rX   rY   rZ   r[   DOsconfigOrganizationsLocationsGlobalPolicyOrchestratorsCreateRequestr]   Fr^   rj   rl   r>   r<   rm   JOsconfigV2.OrganizationsLocationsGlobalPolicyOrchestratorsService.<lambda>v  s9    8#9#9[V zJ,k:8?`&$r>   c                 D    U R                  S5      nU R                  X1US9$ )a.  Deletes an existing policy orchestrator resource, parented by an organization.

Args:
  request: (OsconfigOrganizationsLocationsGlobalPolicyOrchestratorsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
rp   rJ   rL   rO   s       r<   rp   HOsconfigV2.OrganizationsLocationsGlobalPolicyOrchestratorsService.Delete  rS   r>   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )N_v2/organizations/{organizationsId}/locations/global/policyOrchestrators/{policyOrchestratorsId}rt   zBosconfig.organizations.locations.global.policyOrchestrators.deleteru   rv   rY   rw   rx   DOsconfigOrganizationsLocationsGlobalPolicyOrchestratorsDeleteRequestr]   Fr^   rj   rl   r>   r<   rm   r     s9    8#9#9sVxHk*"`&$r>   c                 D    U R                  S5      nU R                  X1US9$ )aB  Retrieves an existing policy orchestrator, parented by an organization.

Args:
  request: (OsconfigOrganizationsLocationsGlobalPolicyOrchestratorsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudOsconfigV2PolicyOrchestrator) The response message.
r{   rJ   rL   rO   s       r<   r{   EOsconfigV2.OrganizationsLocationsGlobalPolicyOrchestratorsService.Get  r}   r>   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   r   z?osconfig.organizations.locations.global.policyOrchestrators.getru   rw   rx   AOsconfigOrganizationsLocationsGlobalPolicyOrchestratorsGetRequestr   Fr^   rj   rl   r>   r<   rm   r     s4     6 6sSxH"]D!r>   c                 D    U R                  S5      nU R                  X1US9$ )aU  Lists the policy orchestrators under the given parent organization resource.

Args:
  request: (OsconfigOrganizationsLocationsGlobalPolicyOrchestratorsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse) The response message.
r   rJ   rL   rO   s       r<   r   FOsconfigV2.OrganizationsLocationsGlobalPolicyOrchestratorsService.List  r   r>   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nr   r   z@osconfig.organizations.locations.global.policyOrchestrators.listrW   r   rZ   rx   BOsconfigOrganizationsLocationsGlobalPolicyOrchestratorsListRequestr   Fr^   rj   rl   r>   r<   rm   r     s4    !7!7[T zJC8^Q"r>   c                 D    U R                  S5      nU R                  X1US9$ )a$  Updates an existing policy orchestrator, parented by an organization.

Args:
  request: (OsconfigOrganizationsLocationsGlobalPolicyOrchestratorsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r   rJ   rL   rO   s       r<   r   GOsconfigV2.OrganizationsLocationsGlobalPolicyOrchestratorsService.Patch  r   r>   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr   r   zAosconfig.organizations.locations.global.policyOrchestrators.patchru   r   rw   r[   COsconfigOrganizationsLocationsGlobalPolicyOrchestratorsPatchRequestr]   Fr^   rj   rl   r>   r<   rm   r     s6    ("8"8sUxH"^"?_&#r>   r   rC   r   r   s   @r<   r%   r   _  s^    \@E
8F8F8C8D8Er>   r%   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ ).OsconfigV2.OrganizationsLocationsGlobalServicei  z>Service class for the organizations_locations_global resource.r(   c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r'   r   rD   rE   s     r<   r   7OsconfigV2.OrganizationsLocationsGlobalService.__init__  s"    J::DJ6Rdr>   r   r   r   s   @r<   r'   r     s    H,E r>   r'   c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SrU =r$ )2OsconfigV2.OrganizationsLocationsOperationsServicei  zBService class for the organizations_locations_operations resource.r*   c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r)   r   rD   rE   s     r<   r   ;OsconfigV2.OrganizationsLocationsOperationsService.__init__  s"    J>>NvVdr>   c                 D    U R                  S5      nU R                  X1US9$ )a  Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.

Args:
  request: (OsconfigOrganizationsLocationsOperationsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
r   rJ   rL   rO   s       r<   r   9OsconfigV2.OrganizationsLocationsOperationsService.Cancel  rS   r>   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz[v2/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}:cancelrV   z2osconfig.organizations.locations.operations.cancelru   r   r   5OsconfigOrganizationsLocationsOperationsCancelRequestr   Fr^   rj   rl   r>   r<   rm   ;OsconfigV2.OrganizationsLocationsOperationsService.<lambda>  s4    8#9#9oFxH).Q"$r>   c                 D    U R                  S5      nU R                  X1US9$ )a  Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

Args:
  request: (OsconfigOrganizationsLocationsOperationsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
rp   rJ   rL   rO   s       r<   rp   9OsconfigV2.OrganizationsLocationsOperationsService.Delete  rS   r>   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NTv2/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}rt   z2osconfig.organizations.locations.operations.deleteru   rw   rx   5OsconfigOrganizationsLocationsOperationsDeleteRequestr   Fr^   rj   rl   r>   r<   rm   r   ,  s4    8#9#9hFxH"Q"$r>   c                 D    U R                  S5      nU R                  X1US9$ )ai  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: (OsconfigOrganizationsLocationsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r{   rJ   rL   rO   s       r<   r{   6OsconfigV2.OrganizationsLocationsOperationsService.Get:  r}   r>   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   r   z/osconfig.organizations.locations.operations.getru   rw   rx   2OsconfigOrganizationsLocationsOperationsGetRequestr]   Fr^   rj   rl   r>   r<   rm   r   G  s4     6 6hCxH"N&!r>   c                 D    U R                  S5      nU R                  X1US9$ )ac  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Args:
  request: (OsconfigOrganizationsLocationsOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
r   rJ   rL   rO   s       r<   r   7OsconfigV2.OrganizationsLocationsOperationsService.ListU  r   r>   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )NzEv2/organizations/{organizationsId}/locations/{locationsId}/operationsr   z0osconfig.organizations.locations.operations.listru   r   r   rx   3OsconfigOrganizationsLocationsOperationsListRequestr   Fr^   rj   rl   r>   r<   rm   r   b  s4    !7!7YDxHP-O3"r>   r   rC   r   r   s   @r<   r)   r     sO    L0E
8F8F8C8Dr>   r)   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )(OsconfigV2.OrganizationsLocationsServiceip  z7Service class for the organizations_locations resource.r,   c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r+   r   rD   rE   s     r<   r   1OsconfigV2.OrganizationsLocationsService.__init__u  r   r>   r   r   r   s   @r<   r+   r  p  s    A%E r>   r+   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )OsconfigV2.OrganizationsServiceiz  z-Service class for the organizations resource.r.   c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r-   r   rD   rE   s     r<   r   (OsconfigV2.OrganizationsService.__init__  s"    J++T;FCdr>   r   r   r   s   @r<   r-   r  z  s    7E r>   r-   c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SS jrS \l        SrU =r$ )<OsconfigV2.ProjectsLocationsGlobalPolicyOrchestratorsServicei  zMService class for the projects_locations_global_policyOrchestrators resource.r0   c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r/   r   rD   rE   s     r<   r   EOsconfigV2.ProjectsLocationsGlobalPolicyOrchestratorsService.__init__  s#    JHH$XY_`dr>   c                 D    U R                  S5      nU R                  X1US9$ )a2  Creates a new policy orchestrator under the given project resource. `name` field of the given orchestrator are ignored and instead replaced by a product of `parent` and `policy_orchestrator_id`. Orchestrator state field might be only set to `ACTIVE`, `STOPPED` or omitted (in which case, the created resource will be in `ACTIVE` state anyway).

Args:
  request: (OsconfigProjectsLocationsGlobalPolicyOrchestratorsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
rI   rJ   rL   rO   s       r<   rI   COsconfigV2.ProjectsLocationsGlobalPolicyOrchestratorsService.Create  rS   r>   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )N=v2/projects/{projectsId}/locations/global/policyOrchestratorsrV   z=osconfig.projects.locations.global.policyOrchestrators.createrW   rX   rY   rZ   r[   ?OsconfigProjectsLocationsGlobalPolicyOrchestratorsCreateRequestr]   Fr^   rj   rl   r>   r<   rm   EOsconfigV2.ProjectsLocationsGlobalPolicyOrchestratorsService.<lambda>  s9    8#9#9QQ zJ,k:8?[&$r>   c                 D    U R                  S5      nU R                  X1US9$ )a#  Deletes an existing policy orchestrator resource, parented by a project.

Args:
  request: (OsconfigProjectsLocationsGlobalPolicyOrchestratorsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
rp   rJ   rL   rO   s       r<   rp   COsconfigV2.ProjectsLocationsGlobalPolicyOrchestratorsService.Delete  rS   r>   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )NUv2/projects/{projectsId}/locations/global/policyOrchestrators/{policyOrchestratorsId}rt   z=osconfig.projects.locations.global.policyOrchestrators.deleteru   rv   rY   rw   rx   ?OsconfigProjectsLocationsGlobalPolicyOrchestratorsDeleteRequestr]   Fr^   rj   rl   r>   r<   rm   r    s9    8#9#9iQxHk*"[&$r>   c                 D    U R                  S5      nU R                  X1US9$ )a7  Retrieves an existing policy orchestrator, parented by a project.

Args:
  request: (OsconfigProjectsLocationsGlobalPolicyOrchestratorsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudOsconfigV2PolicyOrchestrator) The response message.
r{   rJ   rL   rO   s       r<   r{   @OsconfigV2.ProjectsLocationsGlobalPolicyOrchestratorsService.Get  r}   r>   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr  r   z:osconfig.projects.locations.global.policyOrchestrators.getru   rw   rx   <OsconfigProjectsLocationsGlobalPolicyOrchestratorsGetRequestr   Fr^   rj   rl   r>   r<   rm   r    s4     6 6iNxH"XD!r>   c                 D    U R                  S5      nU R                  X1US9$ )aK  Lists the policy orchestrators under the given parent project resource.

Args:
  request: (OsconfigProjectsLocationsGlobalPolicyOrchestratorsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse) The response message.
r   rJ   rL   rO   s       r<   r   AOsconfigV2.ProjectsLocationsGlobalPolicyOrchestratorsService.List  r   r>   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nr  r   z;osconfig.projects.locations.global.policyOrchestrators.listrW   r   rZ   rx   =OsconfigProjectsLocationsGlobalPolicyOrchestratorsListRequestr   Fr^   rj   rl   r>   r<   rm   r    s4    !7!7QO zJC8YQ"r>   c                 D    U R                  S5      nU R                  X1US9$ )a  Updates an existing policy orchestrator, parented by a project.

Args:
  request: (OsconfigProjectsLocationsGlobalPolicyOrchestratorsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r   rJ   rL   rO   s       r<   r   BOsconfigV2.ProjectsLocationsGlobalPolicyOrchestratorsService.Patch  r   r>   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr  r   z<osconfig.projects.locations.global.policyOrchestrators.patchru   r   rw   r[   >OsconfigProjectsLocationsGlobalPolicyOrchestratorsPatchRequestr]   Fr^   rj   rl   r>   r<   rm   r    s6    ("8"8iPxH"^"?Z&#r>   r   rC   r   r   s   @r<   r/   r    s^    W;E
8F8F8C8D8Er>   r/   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ ))OsconfigV2.ProjectsLocationsGlobalServicei  z9Service class for the projects_locations_global resource.r2   c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r1   r   rD   rE   s     r<   r   2OsconfigV2.ProjectsLocationsGlobalService.__init__  s"    J55tEfMdr>   r   r   r   s   @r<   r1   r*    s    C'E r>   r1   c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SrU =r$ )-OsconfigV2.ProjectsLocationsOperationsServicei  z=Service class for the projects_locations_operations resource.r4   c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r3   r   rD   rE   s     r<   r   6OsconfigV2.ProjectsLocationsOperationsService.__init__$  s"    J994I&Qdr>   c                 D    U R                  S5      nU R                  X1US9$ )a  Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.

Args:
  request: (OsconfigProjectsLocationsOperationsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
r   rJ   rL   rO   s       r<   r   4OsconfigV2.ProjectsLocationsOperationsService.Cancel)  rS   r>   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzQv2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelrV   z-osconfig.projects.locations.operations.cancelru   r   r   0OsconfigProjectsLocationsOperationsCancelRequestr   Fr^   rj   rl   r>   r<   rm   6OsconfigV2.ProjectsLocationsOperationsService.<lambda>6  s4    8#9#9eAxH).L"$r>   c                 D    U R                  S5      nU R                  X1US9$ )a  Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

Args:
  request: (OsconfigProjectsLocationsOperationsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
rp   rJ   rL   rO   s       r<   rp   4OsconfigV2.ProjectsLocationsOperationsService.DeleteD  rS   r>   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NJv2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}rt   z-osconfig.projects.locations.operations.deleteru   rw   rx   0OsconfigProjectsLocationsOperationsDeleteRequestr   Fr^   rj   rl   r>   r<   rm   r5  Q  s4    8#9#9^AxH"L"$r>   c                 D    U R                  S5      nU R                  X1US9$ )ad  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: (OsconfigProjectsLocationsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r{   rJ   rL   rO   s       r<   r{   1OsconfigV2.ProjectsLocationsOperationsService.Get_  r}   r>   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr9  r   z*osconfig.projects.locations.operations.getru   rw   rx   -OsconfigProjectsLocationsOperationsGetRequestr]   Fr^   rj   rl   r>   r<   rm   r5  l  s4     6 6^>xH"I&!r>   c                 D    U R                  S5      nU R                  X1US9$ )a^  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Args:
  request: (OsconfigProjectsLocationsOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
r   rJ   rL   rO   s       r<   r   2OsconfigV2.ProjectsLocationsOperationsService.Listz  r   r>   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz;v2/projects/{projectsId}/locations/{locationsId}/operationsr   z+osconfig.projects.locations.operations.listru   r   r   rx   .OsconfigProjectsLocationsOperationsListRequestr   Fr^   rj   rl   r>   r<   rm   r5    s4    !7!7O?xHP-J3"r>   r   rC   r   r   s   @r<   r3   r.    sO    G+E
8F8F8C8Dr>   r3   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )#OsconfigV2.ProjectsLocationsServicei  z2Service class for the projects_locations resource.r6   c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r5   r   rD   rE   s     r<   r   ,OsconfigV2.ProjectsLocationsService.__init__  s"    J//?Gdr>   r   r   r   s   @r<   r5   rD    s    < E r>   r5   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )OsconfigV2.ProjectsServicei  z(Service class for the projects resource.r8   c                 N   > [         [        R                  U ]  U5        0 U l        g rC   )r   r   r7   r   rD   rE   s     r<   r   #OsconfigV2.ProjectsService.__init__  s"    J&&6v>dr>   r   r   r   s   @r<   r7   rH    s    2E r>   r7   )r$   r"   r   r   r    r.   r,   r(   r&   r*   r8   r6   r2   r0   r4   )rx   NTNNFFNNNN)&r   r   r   r   r   messagesMESSAGES_MODULEr   MTLS_BASE_URL_PACKAGE_SCOPES_VERSION
_CLIENT_ID_CLIENT_SECRET_USER_AGENT_CLIENT_CLASS_NAME_URL_VERSION_API_KEYr   r   BaseApiServicer   r   r   r!   r#   r%   r'   r)   r+   r-   r/   r1   r3   r5   r7   r   r   r   s   @r<   r   r   
   s   A//(9-(=>'(*"."+#,()-6:/4<@?C	/>O9P9P Obh&=&= t(*A*A tl 7 7 x.. Ox?V?V ObH,C,C t0G0G tlh&=&= X44 O(:Q:Q Obx'>'> t8+B+B tl!8!8 //  r>   r   N)
r   
__future__r   apitools.base.pyr   1googlecloudsdk.generated_clients.apis.osconfig.v2r   rK  BaseApiClientr   rl   r>   r<   <module>r\     s'    7 ' % ^]'' ]r>   