Class: Azure::ARM::SQL::Models::GeoBackupPolicy
- Inherits:
-
ProxyResource
- Object
- MsRestAzure::Resource
- ProxyResource
- Azure::ARM::SQL::Models::GeoBackupPolicy
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_sql/models/geo_backup_policy.rb
Overview
A database geo backup policy.
Instance Attribute Summary collapse
-
#kind ⇒ String
the Azure portal experience.
-
#location ⇒ String
Backup policy location.
-
#state ⇒ GeoBackupPolicyState
Possible values include: ‘Disabled’, ‘Enabled’.
-
#storage_type ⇒ String
The storage type of the geo backup policy.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for GeoBackupPolicy class as Ruby Hash.
Instance Attribute Details
#kind ⇒ String
the Azure portal experience.
25 26 27 |
# File 'lib/generated/azure_mgmt_sql/models/geo_backup_policy.rb', line 25 def kind @kind end |
#location ⇒ String
Returns Backup policy location.
28 29 30 |
# File 'lib/generated/azure_mgmt_sql/models/geo_backup_policy.rb', line 28 def location @location end |
#state ⇒ GeoBackupPolicyState
Possible values include: ‘Disabled’, ‘Enabled’
18 19 20 |
# File 'lib/generated/azure_mgmt_sql/models/geo_backup_policy.rb', line 18 def state @state end |
#storage_type ⇒ String
Returns The storage type of the geo backup policy.
21 22 23 |
# File 'lib/generated/azure_mgmt_sql/models/geo_backup_policy.rb', line 21 def storage_type @storage_type end |
Class Method Details
.mapper ⇒ Object
Mapper for GeoBackupPolicy class as Ruby Hash. This will be used for serialization/deserialization.
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 98 99 100 101 102 |
# File 'lib/generated/azure_mgmt_sql/models/geo_backup_policy.rb', line 35 def self.mapper() { required: false, serialized_name: 'GeoBackupPolicy', type: { name: 'Composite', class_name: 'GeoBackupPolicy', 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' } }, state: { required: true, serialized_name: 'properties.state', type: { name: 'Enum', module: 'GeoBackupPolicyState' } }, storage_type: { required: false, read_only: true, serialized_name: 'properties.storageType', type: { name: 'String' } }, kind: { required: false, read_only: true, serialized_name: 'kind', type: { name: 'String' } }, location: { required: false, read_only: true, serialized_name: 'location', type: { name: 'String' } } } } } end |