/
StorageAccountManagementPolicyData.cs
51 lines (45 loc) · 2.51 KB
/
StorageAccountManagementPolicyData.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
// 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;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Storage.Models;
namespace Azure.ResourceManager.Storage
{
/// <summary>
/// A class representing the StorageAccountManagementPolicy data model.
/// The Get Storage Account ManagementPolicies operation response.
/// </summary>
public partial class StorageAccountManagementPolicyData : ResourceData
{
/// <summary> Initializes a new instance of StorageAccountManagementPolicyData. </summary>
public StorageAccountManagementPolicyData()
{
}
/// <summary> Initializes a new instance of StorageAccountManagementPolicyData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="lastModifiedOn"> Returns the date and time the ManagementPolicies was last modified. </param>
/// <param name="policy"> The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. </param>
internal StorageAccountManagementPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? lastModifiedOn, ManagementPolicySchema policy) : base(id, name, resourceType, systemData)
{
LastModifiedOn = lastModifiedOn;
Policy = policy;
}
/// <summary> Returns the date and time the ManagementPolicies was last modified. </summary>
public DateTimeOffset? LastModifiedOn { get; }
/// <summary> The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. </summary>
internal ManagementPolicySchema Policy { get; set; }
/// <summary> The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. </summary>
public IList<ManagementPolicyRule> Rules
{
get => Policy is null ? default : Policy.Rules;
set => Policy = new ManagementPolicySchema(value);
}
}
}