-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
IaasVmBackupJobV2.cs
64 lines (58 loc) · 3.83 KB
/
IaasVmBackupJobV2.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.RecoveryServicesBackup.Models
{
/// <summary> Azure IaaS VM workload-specific job object. </summary>
public partial class IaasVmBackupJobV2 : BackupGenericJob
{
/// <summary> Initializes a new instance of <see cref="IaasVmBackupJobV2"/>. </summary>
public IaasVmBackupJobV2()
{
ActionsInfo = new ChangeTrackingList<JobSupportedAction>();
ErrorDetails = new ChangeTrackingList<IaasVmErrorInfo>();
JobType = "AzureIaaSVMJobV2";
}
/// <summary> Initializes a new instance of <see cref="IaasVmBackupJobV2"/>. </summary>
/// <param name="entityFriendlyName"> Friendly name of the entity on which the current job is executing. </param>
/// <param name="backupManagementType"> Backup management type to execute the current job. </param>
/// <param name="operation"> The operation name. </param>
/// <param name="status"> Job status. </param>
/// <param name="startOn"> The start time. </param>
/// <param name="endOn"> The end time. </param>
/// <param name="activityId"> ActivityId of job. </param>
/// <param name="jobType"> This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. </param>
/// <param name="actionsInfo"> Gets or sets the state/actions applicable on this job like cancel/retry. </param>
/// <param name="containerName"> Container name of the entity on which the current job is executing. </param>
/// <param name="duration"> Time elapsed during the execution of this job. </param>
/// <param name="errorDetails"> Error details on execution of this job. </param>
/// <param name="virtualMachineVersion"> Specifies whether the backup item is a Classic or an Azure Resource Manager VM. </param>
/// <param name="extendedInfo"> Additional information for this job. </param>
internal IaasVmBackupJobV2(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, IList<JobSupportedAction> actionsInfo, string containerName, TimeSpan? duration, IList<IaasVmErrorInfo> errorDetails, string virtualMachineVersion, IaasVmBackupJobExtendedInfo extendedInfo) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType)
{
ActionsInfo = actionsInfo;
ContainerName = containerName;
Duration = duration;
ErrorDetails = errorDetails;
VirtualMachineVersion = virtualMachineVersion;
ExtendedInfo = extendedInfo;
JobType = jobType ?? "AzureIaaSVMJobV2";
}
/// <summary> Gets or sets the state/actions applicable on this job like cancel/retry. </summary>
public IList<JobSupportedAction> ActionsInfo { get; }
/// <summary> Container name of the entity on which the current job is executing. </summary>
public string ContainerName { get; set; }
/// <summary> Time elapsed during the execution of this job. </summary>
public TimeSpan? Duration { get; set; }
/// <summary> Error details on execution of this job. </summary>
public IList<IaasVmErrorInfo> ErrorDetails { get; }
/// <summary> Specifies whether the backup item is a Classic or an Azure Resource Manager VM. </summary>
public string VirtualMachineVersion { get; set; }
/// <summary> Additional information for this job. </summary>
public IaasVmBackupJobExtendedInfo ExtendedInfo { get; set; }
}
}