Class: Azure::ARM::SQL::Models::BackupLongTermRetentionPolicy
- Inherits:
-
ProxyResource
- Object
- MsRestAzure::Resource
- ProxyResource
- Azure::ARM::SQL::Models::BackupLongTermRetentionPolicy
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/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.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for BackupLongTermRetentionPolicy class as Ruby Hash.
Instance Attribute Details
#location ⇒ String
Returns The geo-location where the resource lives.
17 18 19 |
# File 'lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb', line 17 def location @location end |
#recovery_services_backup_policy_resource_id ⇒ String
resource id
26 27 28 |
# File 'lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb', line 26 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’
22 23 24 |
# File 'lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb', line 22 def state @state end |
Class Method Details
.mapper ⇒ Object
Mapper for BackupLongTermRetentionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb', line 33 def self.mapper() { required: false, serialized_name: 'BackupLongTermRetentionPolicy', type: { name: 'Composite', class_name: 'BackupLongTermRetentionPolicy', model_properties: { id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { required: false, read_only: true, serialized_name: 'location', type: { name: 'String' } }, state: { required: true, serialized_name: 'properties.state', type: { name: 'Enum', module: 'BackupLongTermRetentionPolicyState' } }, recovery_services_backup_policy_resource_id: { required: true, serialized_name: 'properties.recoveryServicesBackupPolicyResourceId', type: { name: 'String' } } } } } end |