Class: Google::Apis::NetappV1::Backup

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_typeString

Output only. Type of backup, manually created or created by a backup policy. Corresponds to the JSON property backupType

Returns:

  • (String)


190
191
192
# File 'lib/google/apis/netapp_v1/classes.rb', line 190

def backup_type
  @backup_type
end

#chain_storage_bytesFixnum

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

Returns:

  • (Fixnum)


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

def chain_storage_bytes
  @chain_storage_bytes
end

#create_timeString

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

Returns:

  • (String)


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

def create_time
  @create_time
end

#descriptionString

A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected. Corresponds to the JSON property description

Returns:

  • (String)


207
208
209
# File 'lib/google/apis/netapp_v1/classes.rb', line 207

def description
  @description
end

#labelsHash<String,String>

Resource labels to represent user provided metadata. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


212
213
214
# File 'lib/google/apis/netapp_v1/classes.rb', line 212

def labels
  @labels
end

#nameString

Identifier. The resource name of the backup. Format: projects/project_id/ locations/location/backupVaults/backup_vault_id/backups/backup_id`. Corresponds to the JSON propertyname`

Returns:

  • (String)


218
219
220
# File 'lib/google/apis/netapp_v1/classes.rb', line 218

def name
  @name
end

#source_snapshotString

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 propertysourceSnapshot`

Returns:

  • (String)


226
227
228
# File 'lib/google/apis/netapp_v1/classes.rb', line 226

def source_snapshot
  @source_snapshot
end

#source_volumeString

Volume full name of this backup belongs to. Format: projects/projects_id/ locations/location/volumes/volume_id` Corresponds to the JSON propertysourceVolume`

Returns:

  • (String)


232
233
234
# File 'lib/google/apis/netapp_v1/classes.rb', line 232

def source_volume
  @source_volume
end

#stateString

Output only. The backup state. Corresponds to the JSON property state

Returns:

  • (String)


237
238
239
# File 'lib/google/apis/netapp_v1/classes.rb', line 237

def state
  @state
end

#volume_usage_bytesFixnum

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

Returns:

  • (Fixnum)


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