-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
StampCapacity.cs
84 lines (79 loc) · 3.88 KB
/
StampCapacity.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
namespace Azure.ResourceManager.AppService.Models
{
/// <summary> Stamp capacity information. </summary>
public partial class StampCapacity
{
/// <summary> Initializes a new instance of StampCapacity. </summary>
internal StampCapacity()
{
}
/// <summary> Initializes a new instance of StampCapacity. </summary>
/// <param name="name"> Name of the stamp. </param>
/// <param name="availableCapacity"> Available capacity (# of machines, bytes of storage etc...). </param>
/// <param name="totalCapacity"> Total capacity (# of machines, bytes of storage etc...). </param>
/// <param name="unit"> Name of the unit. </param>
/// <param name="computeMode"> Shared/dedicated workers. </param>
/// <param name="workerSize"> Size of the machines. </param>
/// <param name="workerSizeId">
/// Size ID of machines:
/// 0 - Small
/// 1 - Medium
/// 2 - Large
/// </param>
/// <param name="excludeFromCapacityAllocation">
/// If <code>true</code>, it includes basic apps.
/// Basic apps are not used for capacity allocation.
/// </param>
/// <param name="isApplicableForAllComputeModes"> <code>true</code> if capacity is applicable for all apps; otherwise, <code>false</code>. </param>
/// <param name="siteMode"> Shared or Dedicated. </param>
/// <param name="isLinux"> Is this a linux stamp capacity. </param>
internal StampCapacity(string name, long? availableCapacity, long? totalCapacity, string unit, ComputeModeOption? computeMode, WorkerSizeOption? workerSize, int? workerSizeId, bool? excludeFromCapacityAllocation, bool? isApplicableForAllComputeModes, string siteMode, bool? isLinux)
{
Name = name;
AvailableCapacity = availableCapacity;
TotalCapacity = totalCapacity;
Unit = unit;
ComputeMode = computeMode;
WorkerSize = workerSize;
WorkerSizeId = workerSizeId;
ExcludeFromCapacityAllocation = excludeFromCapacityAllocation;
IsApplicableForAllComputeModes = isApplicableForAllComputeModes;
SiteMode = siteMode;
IsLinux = isLinux;
}
/// <summary> Name of the stamp. </summary>
public string Name { get; }
/// <summary> Available capacity (# of machines, bytes of storage etc...). </summary>
public long? AvailableCapacity { get; }
/// <summary> Total capacity (# of machines, bytes of storage etc...). </summary>
public long? TotalCapacity { get; }
/// <summary> Name of the unit. </summary>
public string Unit { get; }
/// <summary> Shared/dedicated workers. </summary>
public ComputeModeOption? ComputeMode { get; }
/// <summary> Size of the machines. </summary>
public WorkerSizeOption? WorkerSize { get; }
/// <summary>
/// Size ID of machines:
/// 0 - Small
/// 1 - Medium
/// 2 - Large
/// </summary>
public int? WorkerSizeId { get; }
/// <summary>
/// If <code>true</code>, it includes basic apps.
/// Basic apps are not used for capacity allocation.
/// </summary>
public bool? ExcludeFromCapacityAllocation { get; }
/// <summary> <code>true</code> if capacity is applicable for all apps; otherwise, <code>false</code>. </summary>
public bool? IsApplicableForAllComputeModes { get; }
/// <summary> Shared or Dedicated. </summary>
public string SiteMode { get; }
/// <summary> Is this a linux stamp capacity. </summary>
public bool? IsLinux { get; }
}
}