Class: Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionPolicy
- Inherits:
-
ProxyResource
- Object
- Resource
- ProxyResource
- Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb
Overview
A backup long term retention policy
Instance Attribute Summary collapse
-
#location ⇒ String
The geo-location where the resource lives.
-
#recovery_services_backup_policy_resource_id ⇒ String
resource id.
-
#state ⇒ BackupLongTermRetentionPolicyState
long term retention policy.
Attributes inherited from Resource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for BackupLongTermRetentionPolicy class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#location ⇒ String
Returns The geo-location where the resource lives.
16 17 18 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb', line 16 def location @location end |
#recovery_services_backup_policy_resource_id ⇒ String
resource id
25 26 27 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb', line 25 def recovery_services_backup_policy_resource_id @recovery_services_backup_policy_resource_id end |
#state ⇒ BackupLongTermRetentionPolicyState
long term retention policy. Possible values include: ‘Disabled’, ‘Enabled’
21 22 23 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb', line 21 def state @state end |
Class Method Details
.mapper ⇒ Object
Mapper for BackupLongTermRetentionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
32 33 34 35 36 37 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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb', line 32 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'BackupLongTermRetentionPolicy', type: { name: 'Composite', class_name: 'BackupLongTermRetentionPolicy', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { client_side_validation: true, required: false, read_only: true, serialized_name: 'location', type: { name: 'String' } }, state: { client_side_validation: true, required: true, serialized_name: 'properties.state', type: { name: 'Enum', module: 'BackupLongTermRetentionPolicyState' } }, recovery_services_backup_policy_resource_id: { client_side_validation: true, required: true, serialized_name: 'properties.recoveryServicesBackupPolicyResourceId', type: { name: 'String' } } } } } end |