Class: Google::Apis::RedisV1beta1::Backup

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

Backup of a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Backup

Returns a new instance of Backup.



203
204
205
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 203

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

Instance Attribute Details

#backup_filesArray<Google::Apis::RedisV1beta1::BackupFile>

Output only. List of backup files of the backup. Corresponds to the JSON property backupFiles



139
140
141
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 139

def backup_files
  @backup_files
end

#backup_typeString

Output only. Type of the backup. Corresponds to the JSON property backupType

Returns:

  • (String)


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

def backup_type
  @backup_type
end

#clusterString

Output only. Cluster resource path of this backup. Corresponds to the JSON property cluster

Returns:

  • (String)


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

def cluster
  @cluster
end

#cluster_uidString

Output only. Cluster uid of this backup. Corresponds to the JSON property clusterUid

Returns:

  • (String)


154
155
156
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 154

def cluster_uid
  @cluster_uid
end

#create_timeString

Output only. The time when the backup was created. Corresponds to the JSON property createTime

Returns:

  • (String)


159
160
161
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 159

def create_time
  @create_time
end

#engine_versionString

Output only. redis-7.2, valkey-7.5 Corresponds to the JSON property engineVersion

Returns:

  • (String)


164
165
166
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 164

def engine_version
  @engine_version
end

#expire_timeString

Output only. The time when the backup will expire. Corresponds to the JSON property expireTime

Returns:

  • (String)


169
170
171
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 169

def expire_time
  @expire_time
end

#nameString

Identifier. Full resource path of the backup. the last part of the name is the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster UID] OR customer specified while backup cluster. Example: 20240515123000_1234 Corresponds to the JSON property name

Returns:

  • (String)


176
177
178
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 176

def name
  @name
end

#node_typeString

Output only. Node type of the cluster. Corresponds to the JSON property nodeType

Returns:

  • (String)


181
182
183
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 181

def node_type
  @node_type
end

#replica_countFixnum

Output only. Number of replicas for the cluster. Corresponds to the JSON property replicaCount

Returns:

  • (Fixnum)


186
187
188
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 186

def replica_count
  @replica_count
end

#shard_countFixnum

Output only. Number of shards for the cluster. Corresponds to the JSON property shardCount

Returns:

  • (Fixnum)


191
192
193
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 191

def shard_count
  @shard_count
end

#stateString

Output only. State of the backup. Corresponds to the JSON property state

Returns:

  • (String)


196
197
198
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 196

def state
  @state
end

#total_size_bytesFixnum

Output only. Total size of the backup in bytes. Corresponds to the JSON property totalSizeBytes

Returns:

  • (Fixnum)


201
202
203
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 201

def total_size_bytes
  @total_size_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 208

def update!(**args)
  @backup_files = args[:backup_files] if args.key?(:backup_files)
  @backup_type = args[:backup_type] if args.key?(:backup_type)
  @cluster = args[:cluster] if args.key?(:cluster)
  @cluster_uid = args[:cluster_uid] if args.key?(:cluster_uid)
  @create_time = args[:create_time] if args.key?(:create_time)
  @engine_version = args[:engine_version] if args.key?(:engine_version)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @name = args[:name] if args.key?(:name)
  @node_type = args[:node_type] if args.key?(:node_type)
  @replica_count = args[:replica_count] if args.key?(:replica_count)
  @shard_count = args[:shard_count] if args.key?(:shard_count)
  @state = args[:state] if args.key?(:state)
  @total_size_bytes = args[:total_size_bytes] if args.key?(:total_size_bytes)
end