pub struct Cluster {Show 19 fields
pub authorization_mode: Option<String>,
pub create_time: Option<DateTime<Utc>>,
pub deletion_protection_enabled: Option<bool>,
pub discovery_endpoints: Option<Vec<DiscoveryEndpoint>>,
pub name: Option<String>,
pub node_type: Option<String>,
pub persistence_config: Option<ClusterPersistenceConfig>,
pub precise_size_gb: Option<f64>,
pub psc_configs: Option<Vec<PscConfig>>,
pub psc_connections: Option<Vec<PscConnection>>,
pub redis_configs: Option<HashMap<String, String>>,
pub replica_count: Option<i32>,
pub shard_count: Option<i32>,
pub size_gb: Option<i32>,
pub state: Option<String>,
pub state_info: Option<StateInfo>,
pub transit_encryption_mode: Option<String>,
pub uid: Option<String>,
pub zone_distribution_config: Option<ZoneDistributionConfig>,
}
Expand description
A cluster instance.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations clusters create projects (request)
- locations clusters get projects (response)
- locations clusters patch projects (request)
Fields§
Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster.
create_time: Option<DateTime<Utc>>
Output only. The timestamp associated with the cluster creation request.
deletion_protection_enabled: Option<bool>
Optional. The delete operation will fail when the value is set to true.
discovery_endpoints: Option<Vec<DiscoveryEndpoint>>
Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.
name: Option<String>
Required. Identifier. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}
node_type: Option<String>
Optional. The type of a redis node in the cluster. NodeType determines the underlying machine-type of a redis node.
persistence_config: Option<ClusterPersistenceConfig>
Optional. Persistence config (RDB, AOF) for the cluster.
precise_size_gb: Option<f64>
Output only. Precise value of redis memory size in GB for the entire cluster.
psc_configs: Option<Vec<PscConfig>>
Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.
psc_connections: Option<Vec<PscConnection>>
Output only. PSC connections for discovery of the cluster topology and accessing the cluster.
redis_configs: Option<HashMap<String, String>>
Optional. Key/Value pairs of customer overrides for mutable Redis Configs
replica_count: Option<i32>
Optional. The number of replica nodes per shard.
shard_count: Option<i32>
Required. Number of shards for the Redis cluster.
size_gb: Option<i32>
Output only. Redis memory size in GB for the entire cluster rounded up to the next integer.
state: Option<String>
Output only. The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
state_info: Option<StateInfo>
Output only. Additional information about the current state of the cluster.
transit_encryption_mode: Option<String>
Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.
uid: Option<String>
Output only. System assigned, unique identifier for the cluster.
zone_distribution_config: Option<ZoneDistributionConfig>
Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cluster
impl<'de> Deserialize<'de> for Cluster
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for Cluster
impl ResponseResult for Cluster
Auto Trait Implementations§
impl Freeze for Cluster
impl RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl UnwindSafe for Cluster
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more