public class CloudRedis.Projects.Locations.Instances
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
CloudRedis.Projects.Locations.Instances.CloudRedisImport |
class |
CloudRedis.Projects.Locations.Instances.Create |
class |
CloudRedis.Projects.Locations.Instances.Delete |
class |
CloudRedis.Projects.Locations.Instances.Export |
class |
CloudRedis.Projects.Locations.Instances.Failover |
class |
CloudRedis.Projects.Locations.Instances.Get |
class |
CloudRedis.Projects.Locations.Instances.List |
class |
CloudRedis.Projects.Locations.Instances.Patch |
class |
CloudRedis.Projects.Locations.Instances.Upgrade |
Constructor and Description |
---|
Instances() |
Modifier and Type | Method and Description |
---|---|
CloudRedis.Projects.Locations.Instances.Create |
create(java.lang.String parent,
Instance content)
Creates a Redis instance based on the specified tier and memory size.
|
CloudRedis.Projects.Locations.Instances.Delete |
delete(java.lang.String name)
Deletes a specific Redis instance.
|
CloudRedis.Projects.Locations.Instances.Export |
export(java.lang.String name,
ExportInstanceRequest content)
Export Redis instance data into a Redis RDB format file in Cloud Storage.
|
CloudRedis.Projects.Locations.Instances.Failover |
failover(java.lang.String name,
FailoverInstanceRequest content)
Initiates a failover of the master node to current replica node for a specific STANDARD tier
Cloud Memorystore for Redis instance.
|
CloudRedis.Projects.Locations.Instances.Get |
get(java.lang.String name)
Gets the details of a specific Redis instance.
|
CloudRedis.Projects.Locations.Instances.List |
list(java.lang.String parent)
Lists all Redis instances owned by a project in either the specified location (region) or all
locations.
|
CloudRedis.Projects.Locations.Instances.Patch |
patch(java.lang.String name,
Instance content)
Updates the metadata and configuration of a specific Redis instance.
|
CloudRedis.Projects.Locations.Instances.CloudRedisImport |
redisImport(java.lang.String name,
ImportInstanceRequest content)
Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
|
CloudRedis.Projects.Locations.Instances.Upgrade |
upgrade(java.lang.String name,
UpgradeInstanceRequest content)
Upgrades Redis instance to the newer Redis version specified in the request.
|
public CloudRedis.Projects.Locations.Instances.Create create(java.lang.String parent, Instance content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. The resource name of the instance location using the form:
`projects/{project_id}/locations/{location_id}`
where `location_id` refers to a GCP
region.content
- the Instance
java.io.IOException
public CloudRedis.Projects.Locations.Instances.Delete delete(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. Redis instance resource name using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
where
`location_id` refers to a GCP region.java.io.IOException
public CloudRedis.Projects.Locations.Instances.Export export(java.lang.String name, ExportInstanceRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. Redis instance resource name using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
where
`location_id` refers to a GCP region.content
- the ExportInstanceRequest
java.io.IOException
public CloudRedis.Projects.Locations.Instances.Failover failover(java.lang.String name, FailoverInstanceRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. Redis instance resource name using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
where
`location_id` refers to a GCP region.content
- the FailoverInstanceRequest
java.io.IOException
public CloudRedis.Projects.Locations.Instances.Get get(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. Redis instance resource name using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
where
`location_id` refers to a GCP region.java.io.IOException
public CloudRedis.Projects.Locations.Instances.CloudRedisImport redisImport(java.lang.String name, ImportInstanceRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. Redis instance resource name using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
where
`location_id` refers to a GCP region.content
- the ImportInstanceRequest
java.io.IOException
public CloudRedis.Projects.Locations.Instances.List list(java.lang.String parent) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. The resource name of the instance location using the form:
`projects/{project_id}/locations/{location_id}`
where `location_id` refers to a GCP
region.java.io.IOException
public CloudRedis.Projects.Locations.Instances.Patch patch(java.lang.String name, Instance content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. Unique name of the resource in this scope including project and
location using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
Note: Redis
instances are managed and addressed at regional level so
location_id here refers to a GCP
region; however, users may choose which
specific zone (or collection of zones for cross-
zone instances) an instance
should be provisioned in. Refer to location_id and
alternative_location_id fields for more details.content
- the Instance
java.io.IOException
public CloudRedis.Projects.Locations.Instances.Upgrade upgrade(java.lang.String name, UpgradeInstanceRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. Redis instance resource name using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
where
`location_id` refers to a GCP region.content
- the UpgradeInstanceRequest
java.io.IOException