Class: Azure::ServiceFabric::V6_4_0_36::Models::BasicRetentionPolicyDescription
- Inherits:
-
RetentionPolicyDescription
- Object
- RetentionPolicyDescription
- Azure::ServiceFabric::V6_4_0_36::Models::BasicRetentionPolicyDescription
- Includes:
- MsRestAzure
- Defined in:
- lib/6.4.0.36/generated/azure_service_fabric/models/basic_retention_policy_description.rb
Overview
Describes basic retention policy.
Instance Attribute Summary collapse
-
#minimum_number_of_backups ⇒ Integer
any point of time.
-
#retention_duration ⇒ Duration
created, will remain stored in the storage and might get deleted after that span of time.
-
#RetentionPolicyType ⇒ Object
Returns the value of attribute RetentionPolicyType.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for BasicRetentionPolicyDescription class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ BasicRetentionPolicyDescription
constructor
A new instance of BasicRetentionPolicyDescription.
Constructor Details
#initialize ⇒ BasicRetentionPolicyDescription
Returns a new instance of BasicRetentionPolicyDescription.
16 17 18 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/basic_retention_policy_description.rb', line 16 def initialize @RetentionPolicyType = "Basic" end |
Instance Attribute Details
#minimum_number_of_backups ⇒ Integer
any point of time. If specified with a non zero value, backups will not be deleted even if the backups have gone past retention duration and have number of backups less than or equal to it.
31 32 33 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/basic_retention_policy_description.rb', line 31 def minimum_number_of_backups @minimum_number_of_backups end |
#retention_duration ⇒ Duration
created, will remain stored in the storage and might get deleted after that span of time. It should be specified in ISO8601 format.
25 26 27 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/basic_retention_policy_description.rb', line 25 def retention_duration @retention_duration end |
#RetentionPolicyType ⇒ Object
Returns the value of attribute RetentionPolicyType.
20 21 22 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/basic_retention_policy_description.rb', line 20 def RetentionPolicyType @RetentionPolicyType end |
Class Method Details
.mapper ⇒ Object
Mapper for BasicRetentionPolicyDescription class as Ruby Hash. This will be used for serialization/deserialization.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/basic_retention_policy_description.rb', line 38 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Basic', type: { name: 'Composite', class_name: 'BasicRetentionPolicyDescription', model_properties: { RetentionPolicyType: { client_side_validation: true, required: true, serialized_name: 'RetentionPolicyType', type: { name: 'String' } }, retention_duration: { client_side_validation: true, required: true, serialized_name: 'RetentionDuration', type: { name: 'TimeSpan' } }, minimum_number_of_backups: { client_side_validation: true, required: false, serialized_name: 'MinimumNumberOfBackups', constraints: { InclusiveMinimum: 0 }, type: { name: 'Number' } } } } } end |