-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
Copy pathBackupItem.cs
183 lines (164 loc) · 7.89 KB
/
BackupItem.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
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
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.Management.WebSites.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Backup description.
/// </summary>
[Rest.Serialization.JsonTransformation]
public partial class BackupItem : ProxyOnlyResource
{
/// <summary>
/// Initializes a new instance of the BackupItem class.
/// </summary>
public BackupItem()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the BackupItem class.
/// </summary>
/// <param name="id">Resource Id.</param>
/// <param name="name">Resource Name.</param>
/// <param name="kind">Kind of resource.</param>
/// <param name="type">Resource type.</param>
/// <param name="backupId">Id of the backup.</param>
/// <param name="storageAccountUrl">SAS URL for the storage account
/// container which contains this backup.</param>
/// <param name="blobName">Name of the blob which contains data for
/// this backup.</param>
/// <param name="backupItemName">Name of this backup.</param>
/// <param name="status">Backup status. Possible values include:
/// 'InProgress', 'Failed', 'Succeeded', 'TimedOut', 'Created',
/// 'Skipped', 'PartiallySucceeded', 'DeleteInProgress',
/// 'DeleteFailed', 'Deleted'</param>
/// <param name="sizeInBytes">Size of the backup in bytes.</param>
/// <param name="created">Timestamp of the backup creation.</param>
/// <param name="log">Details regarding this backup. Might contain an
/// error message.</param>
/// <param name="databases">List of databases included in the
/// backup.</param>
/// <param name="scheduled">True if this backup has been created due to
/// a schedule being triggered.</param>
/// <param name="lastRestoreTimeStamp">Timestamp of a last restore
/// operation which used this backup.</param>
/// <param name="finishedTimeStamp">Timestamp when this backup
/// finished.</param>
/// <param name="correlationId">Unique correlation identifier. Please
/// use this along with the timestamp while communicating with Azure
/// support.</param>
/// <param name="websiteSizeInBytes">Size of the original web app which
/// has been backed up.</param>
public BackupItem(string id = default(string), string name = default(string), string kind = default(string), string type = default(string), int? backupId = default(int?), string storageAccountUrl = default(string), string blobName = default(string), string backupItemName = default(string), BackupItemStatus? status = default(BackupItemStatus?), long? sizeInBytes = default(long?), System.DateTime? created = default(System.DateTime?), string log = default(string), IList<DatabaseBackupSetting> databases = default(IList<DatabaseBackupSetting>), bool? scheduled = default(bool?), System.DateTime? lastRestoreTimeStamp = default(System.DateTime?), System.DateTime? finishedTimeStamp = default(System.DateTime?), string correlationId = default(string), long? websiteSizeInBytes = default(long?))
: base(id, name, kind, type)
{
BackupId = backupId;
StorageAccountUrl = storageAccountUrl;
BlobName = blobName;
BackupItemName = backupItemName;
Status = status;
SizeInBytes = sizeInBytes;
Created = created;
Log = log;
Databases = databases;
Scheduled = scheduled;
LastRestoreTimeStamp = lastRestoreTimeStamp;
FinishedTimeStamp = finishedTimeStamp;
CorrelationId = correlationId;
WebsiteSizeInBytes = websiteSizeInBytes;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets id of the backup.
/// </summary>
[JsonProperty(PropertyName = "properties.id")]
public int? BackupId { get; private set; }
/// <summary>
/// Gets SAS URL for the storage account container which contains this
/// backup.
/// </summary>
[JsonProperty(PropertyName = "properties.storageAccountUrl")]
public string StorageAccountUrl { get; private set; }
/// <summary>
/// Gets name of the blob which contains data for this backup.
/// </summary>
[JsonProperty(PropertyName = "properties.blobName")]
public string BlobName { get; private set; }
/// <summary>
/// Gets name of this backup.
/// </summary>
[JsonProperty(PropertyName = "properties.name")]
public string BackupItemName { get; private set; }
/// <summary>
/// Gets backup status. Possible values include: 'InProgress',
/// 'Failed', 'Succeeded', 'TimedOut', 'Created', 'Skipped',
/// 'PartiallySucceeded', 'DeleteInProgress', 'DeleteFailed', 'Deleted'
/// </summary>
[JsonProperty(PropertyName = "properties.status")]
public BackupItemStatus? Status { get; private set; }
/// <summary>
/// Gets size of the backup in bytes.
/// </summary>
[JsonProperty(PropertyName = "properties.sizeInBytes")]
public long? SizeInBytes { get; private set; }
/// <summary>
/// Gets timestamp of the backup creation.
/// </summary>
[JsonProperty(PropertyName = "properties.created")]
public System.DateTime? Created { get; private set; }
/// <summary>
/// Gets details regarding this backup. Might contain an error message.
/// </summary>
[JsonProperty(PropertyName = "properties.log")]
public string Log { get; private set; }
/// <summary>
/// Gets list of databases included in the backup.
/// </summary>
[JsonProperty(PropertyName = "properties.databases")]
public IList<DatabaseBackupSetting> Databases { get; private set; }
/// <summary>
/// Gets true if this backup has been created due to a schedule being
/// triggered.
/// </summary>
[JsonProperty(PropertyName = "properties.scheduled")]
public bool? Scheduled { get; private set; }
/// <summary>
/// Gets timestamp of a last restore operation which used this backup.
/// </summary>
[JsonProperty(PropertyName = "properties.lastRestoreTimeStamp")]
public System.DateTime? LastRestoreTimeStamp { get; private set; }
/// <summary>
/// Gets timestamp when this backup finished.
/// </summary>
[JsonProperty(PropertyName = "properties.finishedTimeStamp")]
public System.DateTime? FinishedTimeStamp { get; private set; }
/// <summary>
/// Gets unique correlation identifier. Please use this along with the
/// timestamp while communicating with Azure support.
/// </summary>
[JsonProperty(PropertyName = "properties.correlationId")]
public string CorrelationId { get; private set; }
/// <summary>
/// Gets size of the original web app which has been backed up.
/// </summary>
[JsonProperty(PropertyName = "properties.websiteSizeInBytes")]
public long? WebsiteSizeInBytes { get; private set; }
}
}