
    f                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z3Generated client library for redis version v1beta1.    )absolute_import)base_api)redis_v1beta1_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rU =r$ )RedisV1beta1
   z;Generated client library for service redis version v1beta1.zhttps://redis.googleapis.com/z"https://redis.mtls.googleapis.com/redisz.https://www.googleapis.com/auth/cloud-platformv1beta1	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        g)zCreate a new redis handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__0ProjectsLocationsBackupCollectionsBackupsService,projects_locations_backupCollections_backups)ProjectsLocationsBackupCollectionsService$projects_locations_backupCollections ProjectsLocationsClustersServiceprojects_locations_clusters!ProjectsLocationsInstancesServiceprojects_locations_instances"ProjectsLocationsOperationsServiceprojects_locations_operationsProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Olib/googlecloudsdk/generated_clients/apis/redis/v1beta1/redis_v1beta1_client.pyr   RedisV1beta1.__init__   s     
C	,&'%)3 7+ ' - 9=8m8mnr8sD5040^0^_c0dD-'+'L'LT'RD$(,(N(Nt(TD%)-)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rU =r$ )=RedisV1beta1.ProjectsLocationsBackupCollectionsBackupsService2   zLService class for the projects_locations_backupCollections_backups resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr)   clientr+   s     r,   r   FRedisV1beta1.ProjectsLocationsBackupCollectionsBackupsService.__init__7   s#    LII4YZ`adr.   c                 D    U R                  S5      nU R                  X1US9$ )zDeletes a specific backup.

Args:
  request: (RedisProjectsLocationsBackupCollectionsBackupsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Deleteglobal_paramsGetMethodConfig
_RunMethodr)   requestr;   configs       r,   r9   DRedisV1beta1.ProjectsLocationsBackupCollectionsBackupsService.Delete<   /     ##H-f__
  8 8r.   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nqv1beta1/projects/{projectsId}/locations/{locationsId}/backupCollections/{backupCollectionsId}/backups/{backupsId}DELETEz9redis.projects.locations.backupCollections.backups.deletename	requestIdv1beta1/{+name} ;RedisProjectsLocationsBackupCollectionsBackupsDeleteRequest	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>FRedisV1beta1.ProjectsLocationsBackupCollectionsBackupsService.<lambda>I   s9    8#9#9 FMxH!]'W&$r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Exports a specific backup to a customer target Cloud Storage URI.

Args:
  request: (RedisProjectsLocationsBackupCollectionsBackupsExportRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Exportr:   r<   r?   s       r,   r_   DRedisV1beta1.ProjectsLocationsBackupCollectionsBackupsService.ExportW   rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzxv1beta1/projects/{projectsId}/locations/{locationsId}/backupCollections/{backupCollectionsId}/backups/{backupsId}:exportPOSTz9redis.projects.locations.backupCollections.backups.exportrG   v1beta1/{+name}:exportexportBackupRequest;RedisProjectsLocationsBackupCollectionsBackupsExportRequestrL   FrM   rY   r[   r.   r,   r\   r]   d   s7    8#9#9 MMxH.+W&$r.   c                 D    U R                  S5      nU R                  X1US9$ )zGets the details of a specific backup.

Args:
  request: (RedisProjectsLocationsBackupCollectionsBackupsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Backup) The response message.
Getr:   r<   r?   s       r,   rg   ARedisV1beta1.ProjectsLocationsBackupCollectionsBackupsService.Getr   /     ##E*f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NrE   GETz6redis.projects.locations.backupCollections.backups.getrG   rI   rJ   8RedisProjectsLocationsBackupCollectionsBackupsGetRequestBackupFrM   rY   r[   r.   r,   r\   r]      s7     6 6 FJxH'T#!r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists all backups owned by a backup collection.

Args:
  request: (RedisProjectsLocationsBackupCollectionsBackupsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListBackupsResponse) The response message.
Listr:   r<   r?   s       r,   ro   BRedisV1beta1.ProjectsLocationsBackupCollectionsBackupsService.List   /     ##F+f__
  8 8r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nzev1beta1/projects/{projectsId}/locations/{locationsId}/backupCollections/{backupCollectionsId}/backupsrk   z7redis.projects.locations.backupCollections.backups.listparentpageSize	pageTokenzv1beta1/{+parent}/backupsrJ   9RedisProjectsLocationsBackupCollectionsBackupsListRequestListBackupsResponseFrM   rY   r[   r.   r,   r\   r]      s9    !7!7yK zJ +.1U0"r.   r4   r3   )__name__
__module____qualname____firstlineno____doc___NAMEr   r9   method_configr_   rg   ro   __static_attributes____classcell__r+   s   @r,   r   r0   2   sO    V:E
8F8F8C8Dr.   r   c                   d   ^  \ 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	r
U =r$ )6RedisV1beta1.ProjectsLocationsBackupCollectionsService   zDService class for the projects_locations_backupCollections resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r   r   r4   r5   s     r,   r   ?RedisV1beta1.ProjectsLocationsBackupCollectionsService.__init__   s#    LBBDRSYZdr.   c                 D    U R                  S5      nU R                  X1US9$ )zGet a backup collection.

Args:
  request: (RedisProjectsLocationsBackupCollectionsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (BackupCollection) The response message.
rg   r:   r<   r?   s       r,   rg   :RedisV1beta1.ProjectsLocationsBackupCollectionsService.Get   ri   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz]v1beta1/projects/{projectsId}/locations/{locationsId}/backupCollections/{backupCollectionsId}rk   z.redis.projects.locations.backupCollections.getrG   rI   rJ   1RedisProjectsLocationsBackupCollectionsGetRequestBackupCollectionFrM   rY   r[   r.   r,   r\   ?RedisV1beta1.ProjectsLocationsBackupCollectionsService.<lambda>   s4     6 6qBxH'M-!r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists all backup collections owned by a consumer project in either the specified location (region) or all locations. If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.

Args:
  request: (RedisProjectsLocationsBackupCollectionsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListBackupCollectionsResponse) The response message.
ro   r:   r<   r?   s       r,   ro   ;RedisV1beta1.ProjectsLocationsBackupCollectionsService.List   rq   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )NzGv1beta1/projects/{projectsId}/locations/{locationsId}/backupCollectionsrk   z/redis.projects.locations.backupCollections.listrs   rt   ru   z#v1beta1/{+parent}/backupCollectionsrJ   2RedisProjectsLocationsBackupCollectionsListRequestListBackupCollectionsResponseFrM   rY   r[   r.   r,   r\   r      s9    !7!7[C zJ +.;N:"r.   rx   r3   ry   rz   r{   r|   r}   r~   r   rg   r   ro   r   r   r   s   @r,   r   r      s1    N2E
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S jrS \l        SS jrS \l        SrU =r$ )-RedisV1beta1.ProjectsLocationsClustersService   z;Service class for the projects_locations_clusters resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r   r   r4   r5   s     r,   r   6RedisV1beta1.ProjectsLocationsClustersService.__init__   s"    L994I&Qdr.   c                 D    U R                  S5      nU R                  X1US9$ )a  Backup Redis Cluster. If this is the first time a backup is being created, a backup collection will be created at the backend, and this backup belongs to this collection. Both collection and backup will have a resource name. Backup will be executed for each shard. A replica (primary if nonHA) will be selected to perform the execution. Backup call will be rejected if there is an ongoing backup or update operation. Be aware that during preview, if the cluster's internal software version is too old, critical update will be performed before actual backup. Once the internal software version is updated to the minimum version required by the backup feature, subsequent backups will not require critical update. After preview, there will be no critical update needed for backup.

Args:
  request: (RedisProjectsLocationsClustersBackupRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
rm   r:   r<   r?   s       r,   rm   4RedisV1beta1.ProjectsLocationsClustersService.Backup   rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzRv1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:backuprb   z(redis.projects.locations.clusters.backuprG   zv1beta1/{+name}:backupbackupClusterRequest+RedisProjectsLocationsClustersBackupRequestrL   FrM   rY   r[   r.   r,   r\   6RedisV1beta1.ProjectsLocationsClustersService.<lambda>   s4    8#9#9f<xH.,G&$r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Creates a Redis cluster based on the specified properties. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis cluster will be fully functional. The completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.

Args:
  request: (RedisProjectsLocationsClustersCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Creater:   r<   r?   s       r,   r   4RedisV1beta1.ProjectsLocationsClustersService.Create  rC   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )N>v1beta1/projects/{projectsId}/locations/{locationsId}/clustersrb   z(redis.projects.locations.clusters.creaters   	clusterIdrH   v1beta1/{+parent}/clusterscluster+RedisProjectsLocationsClustersCreateRequestrL   FrM   rY   r[   r.   r,   r\   r     s9    8#9#9R< zJ!;/2G&$r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Deletes a specific Redis cluster. Cluster stops serving and data is deleted.

Args:
  request: (RedisProjectsLocationsClustersDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r9   r:   r<   r?   s       r,   r9   4RedisV1beta1.ProjectsLocationsClustersService.Delete(  rC   r.   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )NKv1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}rF   z(redis.projects.locations.clusters.deleterG   rH   rI   rJ   +RedisProjectsLocationsClustersDeleteRequestrL   FrM   rY   r[   r.   r,   r\   r   5  s6    8#9#9_<xH!]'G&$r.   c                 D    U R                  S5      nU R                  X1US9$ )zGets the details of a specific Redis cluster.

Args:
  request: (RedisProjectsLocationsClustersGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Cluster) The response message.
rg   r:   r<   r?   s       r,   rg   1RedisV1beta1.ProjectsLocationsClustersService.GetC  ri   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rk   z%redis.projects.locations.clusters.getrG   rI   rJ   (RedisProjectsLocationsClustersGetRequestClusterFrM   rY   r[   r.   r,   r\   r   P  s4     6 6_9xH'D$!r.   c                 D    U R                  S5      nU R                  X1US9$ )a+  Gets the details of certificate authority information for Redis cluster.

Args:
  request: (RedisProjectsLocationsClustersGetCertificateAuthorityRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (CertificateAuthority) The response message.
GetCertificateAuthorityr:   r<   r?   s       r,   r   ERedisV1beta1.ProjectsLocationsClustersService.GetCertificateAuthority^  s0     ##$=>f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz`v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}/certificateAuthorityrk   z9redis.projects.locations.clusters.getCertificateAuthorityrG   rI   rJ   <RedisProjectsLocationsClustersGetCertificateAuthorityRequestCertificateAuthorityFrM   rY   r[   r.   r,   r\   r   k  s4    H4J4JtMxH'X15r.   c                 D    U R                  S5      nU R                  X1US9$ )a   Lists all Redis clusters owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.

Args:
  request: (RedisProjectsLocationsClustersListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListClustersResponse) The response message.
ro   r:   r<   r?   s       r,   ro   2RedisV1beta1.ProjectsLocationsClustersService.Listy  rq   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nr   rk   z&redis.projects.locations.clusters.listrs   rt   ru   r   rJ   )RedisProjectsLocationsClustersListRequestListClustersResponseFrM   rY   r[   r.   r,   r\   r     s9    !7!7R: zJ +.2E1"r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Updates the metadata and configuration of a specific Redis cluster. Completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.

Args:
  request: (RedisProjectsLocationsClustersPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Patchr:   r<   r?   s       r,   r   3RedisV1beta1.ProjectsLocationsClustersService.Patch  /     ##G,f__
  8 8r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nr   PATCHz'redis.projects.locations.clusters.patchrG   rH   
updateMaskrI   r   *RedisProjectsLocationsClustersPatchRequestrL   FrM   rY   r[   r.   r,   r\   r     s9    ("8"8_;xH!<0'F&#r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Reschedules upcoming maintenance event.

Args:
  request: (RedisProjectsLocationsClustersRescheduleClusterMaintenanceRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
RescheduleClusterMaintenancer:   r<   r?   s       r,   r   JRedisV1beta1.ProjectsLocationsClustersService.RescheduleClusterMaintenance  s0     ##$BCf__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzhv1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:rescheduleClusterMaintenancerb   z>redis.projects.locations.clusters.rescheduleClusterMaintenancerG   z,v1beta1/{+name}:rescheduleClusterMaintenance#rescheduleClusterMaintenanceRequestARedisProjectsLocationsClustersRescheduleClusterMaintenanceRequestrL   FrM   rY   r[   r.   r,   r\   r     s4    9O9O|RxHD;]&:r.   rx   r3   )ry   rz   r{   r|   r}   r~   r   rm   r   r   r9   rg   r   ro   r   r   r   r   r   s   @r,   r   r      s    E)E
8F8F8F8C8-)8D8E82 ..r.   r   c                   N  ^  \ 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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$ ).RedisV1beta1.ProjectsLocationsInstancesServicei  z<Service class for the projects_locations_instances resource.r"   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r!   r   r4   r5   s     r,   r   7RedisV1beta1.ProjectsLocationsInstancesService.__init__  s"    L::DJ6Rdr.   c                 D    U R                  S5      nU R                  X1US9$ )a
  Creates a Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project's [default network](https://cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis instance will be fully functional. The completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.

Args:
  request: (RedisProjectsLocationsInstancesCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r   r:   r<   r?   s       r,   r   5RedisV1beta1.ProjectsLocationsInstancesService.Create  rC   r.   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )N?v1beta1/projects/{projectsId}/locations/{locationsId}/instancesrb   z)redis.projects.locations.instances.creaters   
instanceIdv1beta1/{+parent}/instancesinstance,RedisProjectsLocationsInstancesCreateRequestrL   FrM   rY   r[   r.   r,   r\   7RedisV1beta1.ProjectsLocationsInstancesService.<lambda>  s6    8#9#9S= zJ"^3 H&$r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Deletes a specific Redis instance. Instance stops serving and data is deleted.

Args:
  request: (RedisProjectsLocationsInstancesDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r9   r:   r<   r?   s       r,   r9   5RedisV1beta1.ProjectsLocationsInstancesService.Delete  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NMv1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}rF   z)redis.projects.locations.instances.deleterG   rI   rJ   ,RedisProjectsLocationsInstancesDeleteRequestrL   FrM   rY   r[   r.   r,   r\   r     s4    8#9#9a=xH'H&$r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Export Redis instance data into a Redis RDB format file in Cloud Storage. Redis will continue serving during this operation. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.

Args:
  request: (RedisProjectsLocationsInstancesExportRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r_   r:   r<   r?   s       r,   r_   5RedisV1beta1.ProjectsLocationsInstancesService.Export
  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzTv1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:exportrb   z)redis.projects.locations.instances.exportrG   rc   exportInstanceRequest,RedisProjectsLocationsInstancesExportRequestrL   FrM   rY   r[   r.   r,   r\   r     4    8#9#9h=xH.-H&$r.   c                 D    U R                  S5      nU R                  X1US9$ )aM  Initiates a failover of the primary node to current replica node for a specific STANDARD tier Cloud Memorystore for Redis instance.

Args:
  request: (RedisProjectsLocationsInstancesFailoverRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Failoverr:   r<   r?   s       r,   r   7RedisV1beta1.ProjectsLocationsInstancesService.Failover%  s/     ##J/f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzVv1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:failoverrb   z+redis.projects.locations.instances.failoverrG   zv1beta1/{+name}:failoverfailoverInstanceRequest.RedisProjectsLocationsInstancesFailoverRequestrL   FrM   rY   r[   r.   r,   r\   r   2  s4    X%;%;j?xH0/J&&r.   c                 D    U R                  S5      nU R                  X1US9$ )zGets the details of a specific Redis instance.

Args:
  request: (RedisProjectsLocationsInstancesGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Instance) The response message.
rg   r:   r<   r?   s       r,   rg   2RedisV1beta1.ProjectsLocationsInstancesService.Get@  ri   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rk   z&redis.projects.locations.instances.getrG   rI   rJ   )RedisProjectsLocationsInstancesGetRequestInstanceFrM   rY   r[   r.   r,   r\   r   M  s4     6 6a:xH'E%!r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response will be empty. This information is not included in the details returned to GetInstance.

Args:
  request: (RedisProjectsLocationsInstancesGetAuthStringRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (InstanceAuthString) The response message.
GetAuthStringr:   r<   r?   s       r,   r   <RedisV1beta1.ProjectsLocationsInstancesService.GetAuthString[  s/     ##O4f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzXv1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/authStringrk   z0redis.projects.locations.instances.getAuthStringrG   zv1beta1/{+name}/authStringrJ   3RedisProjectsLocationsInstancesGetAuthStringRequestInstanceAuthStringFrM   rY   r[   r.   r,   r\   r   h  s4    (*@*@lDxH2O/+r.   c                 D    U R                  S5      nU R                  X1US9$ )a2  Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. Redis may stop serving during this operation. Instance state will be IMPORTING for entire operation. When complete, the instance will contain only data from the imported file. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.

Args:
  request: (RedisProjectsLocationsInstancesImportRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Importr:   r<   r?   s       r,   r   5RedisV1beta1.ProjectsLocationsInstancesService.Importv  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzTv1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:importrb   z)redis.projects.locations.instances.importrG   zv1beta1/{+name}:importimportInstanceRequest,RedisProjectsLocationsInstancesImportRequestrL   FrM   rY   r[   r.   r,   r\   r     r   r.   c                 D    U R                  S5      nU R                  X1US9$ )a#  Lists all Redis instances owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.

Args:
  request: (RedisProjectsLocationsInstancesListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListInstancesResponse) The response message.
ro   r:   r<   r?   s       r,   ro   3RedisV1beta1.ProjectsLocationsInstancesService.List  rq   r.   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nr   rk   z'redis.projects.locations.instances.listrs   rt   ru   r   rJ   *RedisProjectsLocationsInstancesListRequestListInstancesResponseFrM   rY   r[   r.   r,   r\   r     s9    !7!7S; zJ +.3F2"r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Updates the metadata and configuration of a specific Redis instance. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.

Args:
  request: (RedisProjectsLocationsInstancesPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r   r:   r<   r?   s       r,   r   4RedisV1beta1.ProjectsLocationsInstancesService.Patch  r   r.   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr   r   z(redis.projects.locations.instances.patchrG   r   rI   r   +RedisProjectsLocationsInstancesPatchRequestrL   FrM   rY   r[   r.   r,   r\   r     s6    ("8"8a<xH"^' G&#r.   c                 D    U R                  S5      nU R                  X1US9$ )a#  Reschedule maintenance for a given instance in a given project and location.

Args:
  request: (RedisProjectsLocationsInstancesRescheduleMaintenanceRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
RescheduleMaintenancer:   r<   r?   s       r,   r  DRedisV1beta1.ProjectsLocationsInstancesService.RescheduleMaintenance  s0     ##$;<f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzcv1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:rescheduleMaintenancerb   z8redis.projects.locations.instances.rescheduleMaintenancerG   z%v1beta1/{+name}:rescheduleMaintenancerescheduleMaintenanceRequest;RedisProjectsLocationsInstancesRescheduleMaintenanceRequestrL   FrM   rY   r[   r.   r,   r\   r     s4    (2H2HwLxH=4W&3r.   c                 D    U R                  S5      nU R                  X1US9$ )a  Upgrades Redis instance to the newer Redis version specified in the request.

Args:
  request: (RedisProjectsLocationsInstancesUpgradeRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Upgrader:   r<   r?   s       r,   r
  6RedisV1beta1.ProjectsLocationsInstancesService.Upgrade  s/     ##I.f__
  8 8r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzUv1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:upgraderb   z*redis.projects.locations.instances.upgraderG   zv1beta1/{+name}:upgradeupgradeInstanceRequest-RedisProjectsLocationsInstancesUpgradeRequestrL   FrM   rY   r[   r.   r,   r\   r     s4    H$:$:i>xH/.I&%r.   rx   r3   )ry   rz   r{   r|   r}   r~   r   r   r   r9   r_   r   rg   r   r   ro   r   r  r
  r   r   r   s   @r,   r!   r     s    F*E
8F8F8F8H8C8#M8F8D8E8+'8G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$ )/RedisV1beta1.ProjectsLocationsOperationsServicei  z=Service class for the projects_locations_operations resource.r$   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r#   r   r4   r5   s     r,   r   8RedisV1beta1.ProjectsLocationsOperationsService.__init__  s"    L;;TKFS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: (RedisProjectsLocationsOperationsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Cancelr:   r<   r?   s       r,   r  6RedisV1beta1.ProjectsLocationsOperationsService.Cancel  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzVv1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelrb   z*redis.projects.locations.operations.cancelrG   zv1beta1/{+name}:cancelrJ   -RedisProjectsLocationsOperationsCancelRequestEmptyFrM   rY   r[   r.   r,   r\   8RedisV1beta1.ProjectsLocationsOperationsService.<lambda>  s4    8#9#9j>xH.I"$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: (RedisProjectsLocationsOperationsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
r9   r:   r<   r?   s       r,   r9   6RedisV1beta1.ProjectsLocationsOperationsService.Delete"  rC   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NOv1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}rF   z*redis.projects.locations.operations.deleterG   rI   rJ   -RedisProjectsLocationsOperationsDeleteRequestr  FrM   rY   r[   r.   r,   r\   r  /  s4    8#9#9c>xH'I"$r.   c                 D    U R                  S5      nU R                  X1US9$ )aa  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: (RedisProjectsLocationsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
rg   r:   r<   r?   s       r,   rg   3RedisV1beta1.ProjectsLocationsOperationsService.Get=  ri   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr  rk   z'redis.projects.locations.operations.getrG   rI   rJ   *RedisProjectsLocationsOperationsGetRequestrL   FrM   rY   r[   r.   r,   r\   r  J  s4     6 6c;xH'F&!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: (RedisProjectsLocationsOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
ro   r:   r<   r?   s       r,   ro   4RedisV1beta1.ProjectsLocationsOperationsService.ListX  rq   r.   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz@v1beta1/projects/{projectsId}/locations/{locationsId}/operationsrk   z(redis.projects.locations.operations.listrG   )filterrt   ru   returnPartialSuccesszv1beta1/{+name}/operationsrJ   +RedisProjectsLocationsOperationsListRequestListOperationsResponseFrM   rY   r[   r.   r,   r\   r  e  s4    !7!7T<xHP2G3"r.   rx   r3   )ry   rz   r{   r|   r}   r~   r   r  r   r9   rg   ro   r   r   r   s   @r,   r#   r    sO    G+E
8F8F8C8Dr.   r#   c                   d   ^  \ 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	r
U =r$ )%RedisV1beta1.ProjectsLocationsServiceis  z2Service class for the projects_locations resource.r&   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r%   r   r4   r5   s     r,   r   .RedisV1beta1.ProjectsLocationsService.__init__x  s"    L114A&Idr.   c                 D    U R                  S5      nU R                  X1US9$ )zGets information about a location.

Args:
  request: (RedisProjectsLocationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Location) The response message.
rg   r:   r<   r?   s       r,   rg   )RedisV1beta1.ProjectsLocationsService.Get}  ri   r.   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz5v1beta1/projects/{projectsId}/locations/{locationsId}rk   zredis.projects.locations.getrG   rI   rJ    RedisProjectsLocationsGetRequestLocationFrM   rY   r[   r.   r,   r\   .RedisV1beta1.ProjectsLocationsService.<lambda>  s4     6 6I0xH'<%!r.   c                 D    U R                  S5      nU R                  X1US9$ )a
  Lists information about the supported locations for this service.

Args:
  request: (RedisProjectsLocationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListLocationsResponse) The response message.
ro   r:   r<   r?   s       r,   ro   *RedisV1beta1.ProjectsLocationsService.List  rq   r.   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz'v1beta1/projects/{projectsId}/locationsrk   zredis.projects.locations.listrG   )extraLocationTypesr&  rt   ru   zv1beta1/{+name}/locationsrJ   !RedisProjectsLocationsListRequestListLocationsResponseFrM   rY   r[   r.   r,   r\   r3    s4    !7!7;1xHN1=2"r.   rx   r3   r   r   s   @r,   r%   r+  s  s1    < E
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$ )RedisV1beta1.ProjectsServicei  z(Service class for the projects resource.r(   c                 N   > [         [        R                  U ]  U5        0 U l        g r3   )r   r   r'   r   r4   r5   s     r,   r   %RedisV1beta1.ProjectsService.__init__  s"    L(($8@dr.   rx   )	ry   rz   r{   r|   r}   r~   r   r   r   r   s   @r,   r'   r;    s    2E r.   r'   )r(   r&   r   r   r    r"   r$   )rJ   NTNNFFNNNN)ry   rz   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   s   @r,   r   r   
   s    C/,(6-(=>'(*"."+%,()-6:/4<@?C	/.t9P9P tl>(2I2I >@`)@)@ `Dq(*A*A qf	t8+B+B tl>!8!8 >@//  r.   r   N)
r}   
__future__r   apitools.base.pyr   3googlecloudsdk.generated_clients.apis.redis.v1beta1r   r>  BaseApiClientr   r[   r.   r,   <module>rO     s'    9 ' % bq8)) qr.   