Class: RMC::Item::BackupPolicy
- Inherits:
-
Object
- Object
- RMC::Item::BackupPolicy
- Defined in:
- lib/rmc/item/backup_policy.rb
Instance Attribute Summary collapse
-
#backupExpiry ⇒ Object
readonly
Returns the value of attribute backupExpiry.
-
#backupRetention ⇒ Object
readonly
Returns the value of attribute backupRetention.
-
#backupSystemId ⇒ Object
readonly
Returns the value of attribute backupSystemId.
-
#blockSize ⇒ Object
readonly
Returns the value of attribute blockSize.
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#createdAt ⇒ Object
readonly
Returns the value of attribute createdAt.
-
#dedupeMode ⇒ Object
readonly
Returns the value of attribute dedupeMode.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#storeName ⇒ Object
readonly
Returns the value of attribute storeName.
-
#transportType ⇒ Object
readonly
Returns the value of attribute transportType.
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(connection, data) ⇒ BackupPolicy
constructor
A new instance of BackupPolicy.
Constructor Details
#initialize(connection, data) ⇒ BackupPolicy
Returns a new instance of BackupPolicy.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/rmc/item/backup_policy.rb', line 25 def initialize(connection, data) @connection = connection @id = data['id'] @name = data['name'] @description = data['description'] @status = data['status'] @createdAt = data['createdAt'] @transportType = data['transportType'] @blockSize = data['blockSize'] @backupSystemId = data['backupSystemId'] @storeName = data['storeName'] @dedupeMode = data['dedupeMode'] @backupExpiry = data['backupExpiry'] @backupRetention = data['backupRetention'] end |
Instance Attribute Details
#backupExpiry ⇒ Object (readonly)
Returns the value of attribute backupExpiry.
21 22 23 |
# File 'lib/rmc/item/backup_policy.rb', line 21 def backupExpiry @backupExpiry end |
#backupRetention ⇒ Object (readonly)
Returns the value of attribute backupRetention.
22 23 24 |
# File 'lib/rmc/item/backup_policy.rb', line 22 def backupRetention @backupRetention end |
#backupSystemId ⇒ Object (readonly)
Returns the value of attribute backupSystemId.
17 18 19 |
# File 'lib/rmc/item/backup_policy.rb', line 17 def backupSystemId @backupSystemId end |
#blockSize ⇒ Object (readonly)
Returns the value of attribute blockSize.
15 16 17 |
# File 'lib/rmc/item/backup_policy.rb', line 15 def blockSize @blockSize end |
#connection ⇒ Object
Returns the value of attribute connection.
6 7 8 |
# File 'lib/rmc/item/backup_policy.rb', line 6 def connection @connection end |
#createdAt ⇒ Object (readonly)
Returns the value of attribute createdAt.
12 13 14 |
# File 'lib/rmc/item/backup_policy.rb', line 12 def createdAt @createdAt end |
#dedupeMode ⇒ Object (readonly)
Returns the value of attribute dedupeMode.
19 20 21 |
# File 'lib/rmc/item/backup_policy.rb', line 19 def dedupeMode @dedupeMode end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
10 11 12 |
# File 'lib/rmc/item/backup_policy.rb', line 10 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/rmc/item/backup_policy.rb', line 8 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/rmc/item/backup_policy.rb', line 9 def name @name end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
11 12 13 |
# File 'lib/rmc/item/backup_policy.rb', line 11 def status @status end |
#storeName ⇒ Object (readonly)
Returns the value of attribute storeName.
18 19 20 |
# File 'lib/rmc/item/backup_policy.rb', line 18 def storeName @storeName end |
#transportType ⇒ Object (readonly)
Returns the value of attribute transportType.
14 15 16 |
# File 'lib/rmc/item/backup_policy.rb', line 14 def transportType @transportType end |
Instance Method Details
#delete ⇒ Object
46 47 48 49 50 51 |
# File 'lib/rmc/item/backup_policy.rb', line 46 def delete @connection.request( :url => "/backup-policies/#{@id}", :method => :delete, ) end |