-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ShareServiceProperties.cs
44 lines (40 loc) · 1.43 KB
/
ShareServiceProperties.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Collections.Generic;
using Azure.Core;
namespace Azure.Storage.Files.Shares.Models
{
/// <summary>
/// ShareServiceProperties.
/// </summary>
[CodeGenModel("StorageServiceProperties")]
public partial class ShareServiceProperties
{
/// <summary>
/// The set of CORS rules.
/// </summary>
#pragma warning disable CA2227 // Collection properties should be read only
public IList<ShareCorsRule> Cors { get; set; }
#pragma warning restore CA2227 // Collection properties should be read only
/// <summary>
/// Creates a new ShareServiceProperties instance.
/// </summary>
public ShareServiceProperties()
: this(false)
{
}
/// <summary>
/// Creates a new ShareServiceProperties instance.
/// </summary>
/// <param name="skipInitialization">Whether to skip initializing nested objects.</param>
internal ShareServiceProperties(bool skipInitialization)
{
if (!skipInitialization)
{
HourMetrics = new Azure.Storage.Files.Shares.Models.ShareMetrics();
MinuteMetrics = new Azure.Storage.Files.Shares.Models.ShareMetrics();
Protocol = new Azure.Storage.Files.Shares.Models.ShareProtocolSettings();
}
}
}
}