Class: Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileshareProtectedItem

Inherits:
ProtectedItem
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb

Overview

Azure File Share workload-specific backup item.

Instance Attribute Summary collapse

Attributes inherited from ProtectedItem

#backup_management_type, #backup_set_name, #container_name, #create_mode, #last_recovery_point, #policy_id, #source_resource_id, #workload_type

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAzureFileshareProtectedItem

Returns a new instance of AzureFileshareProtectedItem.



20
21
22
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb', line 20

def initialize
  @protectedItemType = "AzureFileShareProtectedItem"
end

Instance Attribute Details

#extended_infoAzureFileshareProtectedItemExtendedInfo

information with this backup item.

Returns:



53
54
55
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb', line 53

def extended_info
  @extended_info
end

#friendly_nameString

backup item.

Returns:

  • (String)

    Friendly name of the fileshare represented by this



28
29
30
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb', line 28

def friendly_name
  @friendly_name
end

#health_statusHealthStatus

Possible values include: ‘Passed’, ‘ActionRequired’, ‘ActionSuggested’, ‘Invalid’

Returns:

  • (HealthStatus)

    backups running status for this backup item.



41
42
43
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb', line 41

def health_status
  @health_status
end

#last_backup_statusString

Healthy, Unhealthy.

Returns:

  • (String)

    Last backup operation status. Possible values:



45
46
47
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb', line 45

def last_backup_status
  @last_backup_status
end

#last_backup_timeDateTime

backup item.

Returns:

  • (DateTime)

    Timestamp of the last backup operation on this



49
50
51
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb', line 49

def last_backup_time
  @last_backup_time
end

#protectedItemTypeObject

Returns the value of attribute protectedItemType.



24
25
26
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb', line 24

def protectedItemType
  @protectedItemType
end

#protection_stateProtectionState

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

Returns:



36
37
38
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb', line 36

def protection_state
  @protection_state
end

#protection_statusString

Returns Backup status of this backup item.

Returns:

  • (String)

    Backup status of this backup item.



31
32
33
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb', line 31

def protection_status
  @protection_status
end

Class Method Details

.mapperObject

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



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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb', line 60

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AzureFileShareProtectedItem',
    type: {
      name: 'Composite',
      class_name: 'AzureFileshareProtectedItem',
      model_properties: {
        backup_management_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'backupManagementType',
          type: {
            name: 'String'
          }
        },
        workload_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'workloadType',
          type: {
            name: 'String'
          }
        },
        container_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'containerName',
          type: {
            name: 'String'
          }
        },
        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'
          }
        },
        backup_set_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'backupSetName',
          type: {
            name: 'String'
          }
        },
        create_mode: {
          client_side_validation: true,
          required: false,
          serialized_name: 'createMode',
          type: {
            name: 'String'
          }
        },
        protectedItemType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'protectedItemType',
          type: {
            name: 'String'
          }
        },
        friendly_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'friendlyName',
          type: {
            name: 'String'
          }
        },
        protection_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protectionStatus',
          type: {
            name: 'String'
          }
        },
        protection_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protectionState',
          type: {
            name: 'String'
          }
        },
        health_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'healthStatus',
          type: {
            name: 'String'
          }
        },
        last_backup_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lastBackupStatus',
          type: {
            name: 'String'
          }
        },
        last_backup_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lastBackupTime',
          type: {
            name: 'DateTime'
          }
        },
        extended_info: {
          client_side_validation: true,
          required: false,
          serialized_name: 'extendedInfo',
          type: {
            name: 'Composite',
            class_name: 'AzureFileshareProtectedItemExtendedInfo'
          }
        }
      }
    }
  }
end