Class: Google::Apis::NetappV1::Backup
- Inherits:
-
Object
- Object
- Google::Apis::NetappV1::Backup
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/netapp_v1/classes.rb,
lib/google/apis/netapp_v1/representations.rb,
lib/google/apis/netapp_v1/representations.rb
Overview
A NetApp Backup.
Instance Attribute Summary collapse
-
#backup_type ⇒ String
Output only.
-
#chain_storage_bytes ⇒ Fixnum
Output only.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
A description of the backup with 2048 characters or less.
-
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
-
#name ⇒ String
Identifier.
-
#source_snapshot ⇒ String
If specified, backup will be created from the given snapshot.
-
#source_volume ⇒ String
Volume full name of this backup belongs to.
-
#state ⇒ String
Output only.
-
#volume_usage_bytes ⇒ Fixnum
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.
246 247 248 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 246 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_type ⇒ String
Output only. Type of backup, manually created or created by a backup policy.
Corresponds to the JSON property backupType
190 191 192 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 190 def backup_type @backup_type end |
#chain_storage_bytes ⇒ Fixnum
Output only. Total size of all backups in a chain in bytes = baseline backup
size + sum(incremental backup size)
Corresponds to the JSON property chainStorageBytes
196 197 198 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 196 def chain_storage_bytes @chain_storage_bytes end |
#create_time ⇒ String
Output only. The time when the backup was created.
Corresponds to the JSON property createTime
201 202 203 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 201 def create_time @create_time end |
#description ⇒ String
A description of the backup with 2048 characters or less. Requests with longer
descriptions will be rejected.
Corresponds to the JSON property description
207 208 209 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 207 def description @description end |
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
Corresponds to the JSON property labels
212 213 214 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 212 def labels @labels end |
#name ⇒ String
Identifier. The resource name of the backup. Format: projects/
project_id/
locations/
location/backupVaults/
backup_vault_id/backups/
backup_id`.
Corresponds to the JSON property
name`
218 219 220 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 218 def name @name end |
#source_snapshot ⇒ String
If specified, backup will be created from the given snapshot. If not specified,
there will be a new snapshot taken to initiate the backup creation. Format:
projects/
project_id/locations/
location/volumes/
volume_id/snapshots/
snapshot_id`
Corresponds to the JSON property
sourceSnapshot`
226 227 228 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 226 def source_snapshot @source_snapshot end |
#source_volume ⇒ String
Volume full name of this backup belongs to. Format: projects/
projects_id/
locations/
location/volumes/
volume_id`
Corresponds to the JSON property
sourceVolume`
232 233 234 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 232 def source_volume @source_volume end |
#state ⇒ String
Output only. The backup state.
Corresponds to the JSON property state
237 238 239 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 237 def state @state end |
#volume_usage_bytes ⇒ Fixnum
Output only. Size of the file system when the backup was created. When
creating a new volume from the backup, the volume capacity will have to be at
least as big.
Corresponds to the JSON property volumeUsageBytes
244 245 246 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 244 def volume_usage_bytes @volume_usage_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
251 252 253 254 255 256 257 258 259 260 261 262 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 251 def update!(**args) @backup_type = args[:backup_type] if args.key?(:backup_type) @chain_storage_bytes = args[:chain_storage_bytes] if args.key?(:chain_storage_bytes) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot) @source_volume = args[:source_volume] if args.key?(:source_volume) @state = args[:state] if args.key?(:state) @volume_usage_bytes = args[:volume_usage_bytes] if args.key?(:volume_usage_bytes) end |