Class: Google::Apis::RedisV1beta1::Backup
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1beta1::Backup
- 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
-
#backup_files ⇒ Array<Google::Apis::RedisV1beta1::BackupFile>
Output only.
-
#backup_type ⇒ String
Output only.
-
#cluster ⇒ String
Output only.
-
#cluster_uid ⇒ String
Output only.
-
#create_time ⇒ String
Output only.
-
#encryption_info ⇒ Google::Apis::RedisV1beta1::EncryptionInfo
EncryptionInfo describes the encryption information of a cluster or a backup.
-
#engine_version ⇒ String
Output only.
-
#expire_time ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#node_type ⇒ String
Output only.
-
#replica_count ⇒ Fixnum
Output only.
-
#shard_count ⇒ Fixnum
Output only.
-
#state ⇒ String
Output only.
-
#total_size_bytes ⇒ Fixnum
Output only.
-
#uid ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Backup
constructor
A new instance of Backup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Backup
Returns a new instance of Backup.
213 214 215 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 213 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_files ⇒ Array<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_type ⇒ String
Output only. Type of the backup.
Corresponds to the JSON property backupType
144 145 146 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 144 def backup_type @backup_type end |
#cluster ⇒ String
Output only. Cluster resource path of this backup.
Corresponds to the JSON property cluster
149 150 151 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 149 def cluster @cluster end |
#cluster_uid ⇒ String
Output only. Cluster uid of this backup.
Corresponds to the JSON property clusterUid
154 155 156 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 154 def cluster_uid @cluster_uid end |
#create_time ⇒ String
Output only. The time when the backup was created.
Corresponds to the JSON property createTime
159 160 161 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 159 def create_time @create_time end |
#encryption_info ⇒ Google::Apis::RedisV1beta1::EncryptionInfo
EncryptionInfo describes the encryption information of a cluster or a backup.
Corresponds to the JSON property encryptionInfo
164 165 166 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 164 def encryption_info @encryption_info end |
#engine_version ⇒ String
Output only. redis-7.2, valkey-7.5
Corresponds to the JSON property engineVersion
169 170 171 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 169 def engine_version @engine_version end |
#expire_time ⇒ String
Output only. The time when the backup will expire.
Corresponds to the JSON property expireTime
174 175 176 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 174 def expire_time @expire_time end |
#name ⇒ String
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
181 182 183 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 181 def name @name end |
#node_type ⇒ String
Output only. Node type of the cluster.
Corresponds to the JSON property nodeType
186 187 188 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 186 def node_type @node_type end |
#replica_count ⇒ Fixnum
Output only. Number of replicas for the cluster.
Corresponds to the JSON property replicaCount
191 192 193 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 191 def replica_count @replica_count end |
#shard_count ⇒ Fixnum
Output only. Number of shards for the cluster.
Corresponds to the JSON property shardCount
196 197 198 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 196 def shard_count @shard_count end |
#state ⇒ String
Output only. State of the backup.
Corresponds to the JSON property state
201 202 203 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 201 def state @state end |
#total_size_bytes ⇒ Fixnum
Output only. Total size of the backup in bytes.
Corresponds to the JSON property totalSizeBytes
206 207 208 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 206 def total_size_bytes @total_size_bytes end |
#uid ⇒ String
Output only. System assigned unique identifier of the backup.
Corresponds to the JSON property uid
211 212 213 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 211 def uid @uid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 218 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) @encryption_info = args[:encryption_info] if args.key?(:encryption_info) @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) @uid = args[:uid] if args.key?(:uid) end |