Class: Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::AzureSqlProtectedItem

Inherits:
ProtectedItem
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb

Overview

This is an Azure SQL workload-specific backup item.

Instance Attribute Summary collapse

Attributes inherited from ProtectedItem

#backup_management_type, #last_recovery_point, #policy_id, #source_resource_id, #workload_type

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAzureSqlProtectedItem



20
21
22
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb', line 20

def initialize
  @protectedItemType = "Microsoft.Sql/servers/databases"
end

Instance Attribute Details

#extended_infoAzureSqlProtectedItemExtendedInfo

this backup item.



37
38
39
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb', line 37

def extended_info
  @extended_info
end

#protected_item_data_idString

used by the Azure SQL Backup engine to contact Recovery Services.



28
29
30
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb', line 28

def protected_item_data_id
  @protected_item_data_id
end

#protectedItemTypeObject

Returns the value of attribute protectedItemType.



24
25
26
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb', line 24

def protectedItemType
  @protectedItemType
end

#protection_stateProtectedItemState

Possible values include: ‘Invalid’, ‘IRPending’, ‘Protected’, ‘ProtectionError’, ‘ProtectionStopped’, ‘ProtectionPaused’



33
34
35
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb', line 33

def protection_state
  @protection_state
end

Class Method Details

.mapperObject

Mapper for AzureSqlProtectedItem class as Ruby Hash. This will be used for serialization/deserialization.



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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb', line 44

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Microsoft.Sql/servers/databases',
    type: {
      name: 'Composite',
      class_name: 'AzureSqlProtectedItem',
      model_properties: {
        backup_management_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'backupManagementType',
          type: {
            name: 'Enum',
            module: 'BackupManagementType'
          }
        },
        workload_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'workloadType',
          type: {
            name: 'Enum',
            module: 'DataSourceType'
          }
        },
        source_resource_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceResourceId',
          type: {
            name: 'String'
          }
        },
        policy_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'policyId',
          type: {
            name: 'String'
          }
        },
        last_recovery_point: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lastRecoveryPoint',
          type: {
            name: 'DateTime'
          }
        },
        protectedItemType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'protectedItemType',
          type: {
            name: 'String'
          }
        },
        protected_item_data_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protectedItemDataId',
          type: {
            name: 'String'
          }
        },
        protection_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protectionState',
          type: {
            name: 'Enum',
            module: 'ProtectedItemState'
          }
        },
        extended_info: {
          client_side_validation: true,
          required: false,
          serialized_name: 'extendedInfo',
          type: {
            name: 'Composite',
            class_name: 'AzureSqlProtectedItemExtendedInfo'
          }
        }
      }
    }
  }
end