Class: Google::Apis::RedisV1beta1::Cluster

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/redis_v1beta1/classes.rb,
lib/google/apis/redis_v1beta1/representations.rb,
lib/google/apis/redis_v1beta1/representations.rb

Overview

A cluster instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Cluster

Returns a new instance of Cluster.



150
151
152
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 150

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#authorization_modeString

Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Corresponds to the JSON property authorizationMode

Returns:

  • (String)


79
80
81
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 79

def authorization_mode
  @authorization_mode
end

#create_timeString

Output only. The timestamp associated with the cluster creation request. Corresponds to the JSON property createTime

Returns:

  • (String)


84
85
86
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 84

def create_time
  @create_time
end

#discovery_endpointsArray<Google::Apis::RedisV1beta1::DiscoveryEndpoint>

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported. Corresponds to the JSON property discoveryEndpoints



90
91
92
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 90

def discovery_endpoints
  @discovery_endpoints
end

#nameString

Required. Unique name of the resource in this scope including project and location using the form: projects/project_id/locations/location_id/ clusters/cluster_id` Corresponds to the JSON propertyname`

Returns:

  • (String)


97
98
99
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 97

def name
  @name
end

#psc_configsArray<Google::Apis::RedisV1beta1::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. Corresponds to the JSON property pscConfigs



104
105
106
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 104

def psc_configs
  @psc_configs
end

#psc_connectionsArray<Google::Apis::RedisV1beta1::PscConnection>

Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Corresponds to the JSON property pscConnections



110
111
112
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 110

def psc_connections
  @psc_connections
end

#replica_countFixnum

Optional. The number of replica nodes per shard. Corresponds to the JSON property replicaCount

Returns:

  • (Fixnum)


115
116
117
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 115

def replica_count
  @replica_count
end

#shard_countFixnum

Required. Number of shards for the Redis cluster. Corresponds to the JSON property shardCount

Returns:

  • (Fixnum)


120
121
122
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 120

def shard_count
  @shard_count
end

#size_gbFixnum

Output only. Redis memory size in GB for the entire cluster rounded up to the next integer. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


126
127
128
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 126

def size_gb
  @size_gb
end

#stateString

Output only. The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED Corresponds to the JSON property state

Returns:

  • (String)


132
133
134
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 132

def state
  @state
end

#state_infoGoogle::Apis::RedisV1beta1::StateInfo

Represents additional information about the state of the cluster. Corresponds to the JSON property stateInfo



137
138
139
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 137

def state_info
  @state_info
end

#transit_encryption_modeString

Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Corresponds to the JSON property transitEncryptionMode

Returns:

  • (String)


143
144
145
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 143

def transit_encryption_mode
  @transit_encryption_mode
end

#uidString

Output only. System assigned, unique identifier for the cluster. Corresponds to the JSON property uid

Returns:

  • (String)


148
149
150
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 148

def uid
  @uid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 155

def update!(**args)
  @authorization_mode = args[:authorization_mode] if args.key?(:authorization_mode)
  @create_time = args[:create_time] if args.key?(:create_time)
  @discovery_endpoints = args[:discovery_endpoints] if args.key?(:discovery_endpoints)
  @name = args[:name] if args.key?(:name)
  @psc_configs = args[:psc_configs] if args.key?(:psc_configs)
  @psc_connections = args[:psc_connections] if args.key?(:psc_connections)
  @replica_count = args[:replica_count] if args.key?(:replica_count)
  @shard_count = args[:shard_count] if args.key?(:shard_count)
  @size_gb = args[:size_gb] if args.key?(:size_gb)
  @state = args[:state] if args.key?(:state)
  @state_info = args[:state_info] if args.key?(:state_info)
  @transit_encryption_mode = args[:transit_encryption_mode] if args.key?(:transit_encryption_mode)
  @uid = args[:uid] if args.key?(:uid)
end