Class: Google::Apis::NetappV1::BackupVault

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 BackupVault.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackupVault

Returns a new instance of BackupVault.



416
417
418
# File 'lib/google/apis/netapp_v1/classes.rb', line 416

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

Instance Attribute Details

#create_timeString

Output only. Create time of the backup vault. Corresponds to the JSON property createTime

Returns:

  • (String)


393
394
395
# File 'lib/google/apis/netapp_v1/classes.rb', line 393

def create_time
  @create_time
end

#descriptionString

Description of the backup vault. Corresponds to the JSON property description

Returns:

  • (String)


398
399
400
# File 'lib/google/apis/netapp_v1/classes.rb', line 398

def description
  @description
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


403
404
405
# File 'lib/google/apis/netapp_v1/classes.rb', line 403

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


409
410
411
# File 'lib/google/apis/netapp_v1/classes.rb', line 409

def name
  @name
end

#stateString

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

Returns:

  • (String)


414
415
416
# File 'lib/google/apis/netapp_v1/classes.rb', line 414

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



421
422
423
424
425
426
427
# File 'lib/google/apis/netapp_v1/classes.rb', line 421

def update!(**args)
  @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)
  @state = args[:state] if args.key?(:state)
end