
    :                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z5Generated client library for serviceusage version v1.    )absolute_import)base_api)serviceusage_v1_messagesc                      ^  \ rS rSrSr\rSrSrSr	/ SQ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rU =r$ )ServiceusageV1
   z=Generated client library for service serviceusage version v1.z$https://serviceusage.googleapis.com/z)https://serviceusage.mtls.googleapis.com/serviceusage)z.https://www.googleapis.com/auth/cloud-platformz8https://www.googleapis.com/auth/cloud-platform.read-onlyz2https://www.googleapis.com/auth/service.managementv1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                    > U=(       d    U R                   n[        [        U ]  XX4UXgUU	U
US9  U R	                  U 5      U l        U R                  U 5      U l        g)z!Create a new serviceusage handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__OperationsService
operationsServicesServiceservices)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Slib/googlecloudsdk/generated_clients/apis/serviceusage/v1/serviceusage_v1_client.pyr   ServiceusageV1.__init__   sd     
C	.$('%)3 7+ ) - ,,T2DO((.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rU =r$ ) ServiceusageV1.OperationsService-   z*Service class for the operations resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr   clientr!   s     r"   r   )ServiceusageV1.OperationsService.__init__2   s"    N,,d<VD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: (ServiceusageOperationsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Cancelglobal_paramsGetMethodConfig
_RunMethodr   requestr1   configs       r"   r/   'ServiceusageV1.OperationsService.Cancel7   /     ##H-f__
  8 8r$   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz#v1/operations/{operationsId}:cancelPOSTzserviceusage.operations.cancelnamezv1/{+name}:cancelcancelOperationRequest#ServiceusageOperationsCancelRequestEmptyF	flat_pathhttp_method	method_idordered_paramspath_paramsquery_paramsrelative_pathrequest_fieldrequest_type_nameresponse_type_namesupports_downloadr   ApiMethodInfo r$   r"   <lambda>)ServiceusageV1.OperationsService.<lambda>D   s4    8#9#972xH).?"$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: (ServiceusageOperationsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Deleter0   r2   r5   s       r"   rR   'ServiceusageV1.OperationsService.DeleteR   r9   r$   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nv1/operations/{operationsId}DELETEzserviceusage.operations.deleter<   
v1/{+name} #ServiceusageOperationsDeleteRequestr?   Fr@   rL   rN   r$   r"   rO   rP   _   s4    8#9#902xH"?"$r$   c                 D    U R                  S5      nU R                  X1US9$ )aW  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: (ServiceusageOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Getr0   r2   r5   s       r"   r[   $ServiceusageV1.OperationsService.Getm   /     ##E*f__
  8 8r$   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NrU   GETzserviceusage.operations.getr<   rW   rX    ServiceusageOperationsGetRequest	OperationFr@   rL   rN   r$   r"   rO   rP   z   s4     6 60/x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`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.

Args:
  request: (ServiceusageOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
Listr0   r2   r5   s       r"   rc   %ServiceusageV1.OperationsService.List   /     ##F+f__
  8 8r$   c                  @    [         R                  " SS/ / / SQSSSSSS	9
$ )
Nr_   zserviceusage.operations.list)filterr<   pageSize	pageTokenzv1/operationsrX   !ServiceusageOperationsListRequestListOperationsResponseF)
rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rN   r$   r"   rO   rP      s-    !7!70@%=3"r$   r*   r)   )__name__
__module____qualname____firstlineno____doc___NAMEr   r/   method_configrR   r[   rc   __static_attributes____classcell__r!   s   @r"   r   r&   -   sO    4E
8F8F8C8D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S jrS \l        SrU =r$ )ServiceusageV1.ServicesService   z(Service class for the services resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r)   )r   r   r   r   r*   r+   s     r"   r   'ServiceusageV1.ServicesService.__init__   s"    N**D:6Bdr$   c                 D    U R                  S5      nU R                  X1US9$ )a  Enable multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. To enable a single service, use the `EnableService` method instead.

Args:
  request: (ServiceusageServicesBatchEnableRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
BatchEnabler0   r2   r5   s       r"   r}   *ServiceusageV1.ServicesService.BatchEnable   s/     ##M2f__
  8 8r$   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz&v1/{v1Id}/{v1Id1}/services:batchEnabler;   z!serviceusage.services.batchEnableparentz!v1/{+parent}/services:batchEnablebatchEnableServicesRequest&ServiceusageServicesBatchEnableRequestra   Fr@   rL   rN   r$   r"   rO   'ServiceusageV1.ServicesService.<lambda>   s4    (>(>:5 zJ92B&)r$   c                 D    U R                  S5      nU R                  X1US9$ )a!  Returns the service configurations and enabled states for a given list of services.

Args:
  request: (ServiceusageServicesBatchGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (BatchGetServicesResponse) The response message.
BatchGetr0   r2   r5   s       r"   r   'ServiceusageV1.ServicesService.BatchGet   s/     ##J/f__
  8 8r$   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nz#v1/{v1Id}/{v1Id1}/services:batchGetr_   zserviceusage.services.batchGetr   nameszv1/{+parent}/services:batchGetrX   #ServiceusageServicesBatchGetRequestBatchGetServicesResponseFr@   rL   rN   r$   r"   rO   r      s6    X%;%;72 zJY6?5&r$   c                 D    U R                  S5      nU R                  X1US9$ )a  Disable a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled.

Args:
  request: (ServiceusageServicesDisableRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Disabler0   r2   r5   s       r"   r   &ServiceusageV1.ServicesService.Disable   s/     ##I.f__
  8 8r$   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz/v1/{v1Id}/{v1Id1}/services/{servicesId}:disabler;   zserviceusage.services.disabler<   zv1/{+name}:disabledisableServiceRequest"ServiceusageServicesDisableRequestra   Fr@   rL   rN   r$   r"   rO   r      s4    H$:$:C1xH*->&%r$   c                 D    U R                  S5      nU R                  X1US9$ )zEnable a service so that it can be used with a project.

Args:
  request: (ServiceusageServicesEnableRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Enabler0   r2   r5   s       r"   r   %ServiceusageV1.ServicesService.Enable   r9   r$   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz.v1/{v1Id}/{v1Id1}/services/{servicesId}:enabler;   zserviceusage.services.enabler<   zv1/{+name}:enableenableServiceRequest!ServiceusageServicesEnableRequestra   Fr@   rL   rN   r$   r"   rO   r   
  s4    8#9#9B0xH),=&$r$   c                 D    U R                  S5      nU R                  X1US9$ )a  Returns the service configuration and enabled state for a given service.

Args:
  request: (ServiceusageServicesGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleApiServiceusageV1Service) The response message.
r[   r0   r2   r5   s       r"   r[   "ServiceusageV1.ServicesService.Get  r]   r$   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz'v1/{v1Id}/{v1Id1}/services/{servicesId}r_   zserviceusage.services.getr<   rW   rX   ServiceusageServicesGetRequestGoogleApiServiceusageV1ServiceFr@   rL   rN   r$   r"   rO   r   %  s4     6 6;-xH":;!r$   c                 D    U R                  S5      nU R                  X1US9$ )a  List all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the `servicemanagement.services.bind` permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project. WARNING: If you need to query enabled services frequently or across an organization, you should use [Cloud Asset Inventory API](https://cloud.google.com/asset-inventory/docs/apis), which provides higher throughput and richer filtering capability.

Args:
  request: (ServiceusageServicesListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListServicesResponse) The response message.
rc   r0   r2   r5   s       r"   rc   #ServiceusageV1.ServicesService.List3  re   r$   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nzv1/{v1Id}/{v1Id1}/servicesr_   zserviceusage.services.listr   )rg   rh   ri   zv1/{+parent}/servicesrX   ServiceusageServicesListRequestListServicesResponseFr@   rL   rN   r$   r"   rO   r   @  s4    !7!7.. zJ8-;1"r$   rl   r)   )rm   rn   ro   rp   rq   rr   r   r}   rs   r   r   r   r[   rc   rt   ru   rv   s   @r"   r   rx      sm    2E
8!K8H8G8F8C8Dr$   r   )r   r   )rX   NTNNFFNNNN)rm   rn   ro   rp   rq   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   rt   ru   rv   s   @r"   r   r   
   s    E/3(=-( q'(*"."+',()-6:/4<@?C	/$s(11 sjj// j jr$   r   N)
rq   
__future__r   apitools.base.pyr   5googlecloudsdk.generated_clients.apis.serviceusage.v1r   r   BaseApiClientr   rN   r$   r"   <module>r      s'    ; ' % fBX++ Br$   