/
SysctlConfig.cs
173 lines (166 loc) · 10.6 KB
/
SysctlConfig.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.ResourceManager.ContainerService.Models
{
/// <summary> Sysctl settings for Linux agent nodes. </summary>
public partial class SysctlConfig
{
/// <summary>
/// Keeps track of any properties unknown to the library.
/// <para>
/// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>.
/// </para>
/// <para>
/// Examples:
/// <list type="bullet">
/// <item>
/// <term>BinaryData.FromObjectAsJson("foo")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("\"foo\"")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// </list>
/// </para>
/// </summary>
private IDictionary<string, BinaryData> _serializedAdditionalRawData;
/// <summary> Initializes a new instance of <see cref="SysctlConfig"/>. </summary>
public SysctlConfig()
{
}
/// <summary> Initializes a new instance of <see cref="SysctlConfig"/>. </summary>
/// <param name="netCoreSomaxconn"> Sysctl setting net.core.somaxconn. </param>
/// <param name="netCoreNetdevMaxBacklog"> Sysctl setting net.core.netdev_max_backlog. </param>
/// <param name="netCoreRmemDefault"> Sysctl setting net.core.rmem_default. </param>
/// <param name="netCoreRmemMax"> Sysctl setting net.core.rmem_max. </param>
/// <param name="netCoreWmemDefault"> Sysctl setting net.core.wmem_default. </param>
/// <param name="netCoreWmemMax"> Sysctl setting net.core.wmem_max. </param>
/// <param name="netCoreOptmemMax"> Sysctl setting net.core.optmem_max. </param>
/// <param name="netIPv4TcpMaxSynBacklog"> Sysctl setting net.ipv4.tcp_max_syn_backlog. </param>
/// <param name="netIPv4TcpMaxTwBuckets"> Sysctl setting net.ipv4.tcp_max_tw_buckets. </param>
/// <param name="netIPv4TcpFinTimeout"> Sysctl setting net.ipv4.tcp_fin_timeout. </param>
/// <param name="netIPv4TcpKeepaliveTime"> Sysctl setting net.ipv4.tcp_keepalive_time. </param>
/// <param name="netIPv4TcpKeepaliveProbes"> Sysctl setting net.ipv4.tcp_keepalive_probes. </param>
/// <param name="netIPv4TcpKeepaliveIntvl"> Sysctl setting net.ipv4.tcp_keepalive_intvl. </param>
/// <param name="netIPv4TcpTwReuse"> Sysctl setting net.ipv4.tcp_tw_reuse. </param>
/// <param name="netIPv4IPLocalPortRange"> Sysctl setting net.ipv4.ip_local_port_range. </param>
/// <param name="netIPv4NeighDefaultGcThresh1"> Sysctl setting net.ipv4.neigh.default.gc_thresh1. </param>
/// <param name="netIPv4NeighDefaultGcThresh2"> Sysctl setting net.ipv4.neigh.default.gc_thresh2. </param>
/// <param name="netIPv4NeighDefaultGcThresh3"> Sysctl setting net.ipv4.neigh.default.gc_thresh3. </param>
/// <param name="netNetfilterNfConntrackMax"> Sysctl setting net.netfilter.nf_conntrack_max. </param>
/// <param name="netNetfilterNfConntrackBuckets"> Sysctl setting net.netfilter.nf_conntrack_buckets. </param>
/// <param name="fsInotifyMaxUserWatches"> Sysctl setting fs.inotify.max_user_watches. </param>
/// <param name="fsFileMax"> Sysctl setting fs.file-max. </param>
/// <param name="fsAioMaxNr"> Sysctl setting fs.aio-max-nr. </param>
/// <param name="fsNrOpen"> Sysctl setting fs.nr_open. </param>
/// <param name="kernelThreadsMax"> Sysctl setting kernel.threads-max. </param>
/// <param name="vmMaxMapCount"> Sysctl setting vm.max_map_count. </param>
/// <param name="vmSwappiness"> Sysctl setting vm.swappiness. </param>
/// <param name="vmVfsCachePressure"> Sysctl setting vm.vfs_cache_pressure. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
internal SysctlConfig(int? netCoreSomaxconn, int? netCoreNetdevMaxBacklog, int? netCoreRmemDefault, int? netCoreRmemMax, int? netCoreWmemDefault, int? netCoreWmemMax, int? netCoreOptmemMax, int? netIPv4TcpMaxSynBacklog, int? netIPv4TcpMaxTwBuckets, int? netIPv4TcpFinTimeout, int? netIPv4TcpKeepaliveTime, int? netIPv4TcpKeepaliveProbes, int? netIPv4TcpKeepaliveIntvl, bool? netIPv4TcpTwReuse, string netIPv4IPLocalPortRange, int? netIPv4NeighDefaultGcThresh1, int? netIPv4NeighDefaultGcThresh2, int? netIPv4NeighDefaultGcThresh3, int? netNetfilterNfConntrackMax, int? netNetfilterNfConntrackBuckets, int? fsInotifyMaxUserWatches, int? fsFileMax, int? fsAioMaxNr, int? fsNrOpen, int? kernelThreadsMax, int? vmMaxMapCount, int? vmSwappiness, int? vmVfsCachePressure, IDictionary<string, BinaryData> serializedAdditionalRawData)
{
NetCoreSomaxconn = netCoreSomaxconn;
NetCoreNetdevMaxBacklog = netCoreNetdevMaxBacklog;
NetCoreRmemDefault = netCoreRmemDefault;
NetCoreRmemMax = netCoreRmemMax;
NetCoreWmemDefault = netCoreWmemDefault;
NetCoreWmemMax = netCoreWmemMax;
NetCoreOptmemMax = netCoreOptmemMax;
NetIPv4TcpMaxSynBacklog = netIPv4TcpMaxSynBacklog;
NetIPv4TcpMaxTwBuckets = netIPv4TcpMaxTwBuckets;
NetIPv4TcpFinTimeout = netIPv4TcpFinTimeout;
NetIPv4TcpKeepaliveTime = netIPv4TcpKeepaliveTime;
NetIPv4TcpKeepaliveProbes = netIPv4TcpKeepaliveProbes;
NetIPv4TcpKeepaliveIntvl = netIPv4TcpKeepaliveIntvl;
NetIPv4TcpTwReuse = netIPv4TcpTwReuse;
NetIPv4IPLocalPortRange = netIPv4IPLocalPortRange;
NetIPv4NeighDefaultGcThresh1 = netIPv4NeighDefaultGcThresh1;
NetIPv4NeighDefaultGcThresh2 = netIPv4NeighDefaultGcThresh2;
NetIPv4NeighDefaultGcThresh3 = netIPv4NeighDefaultGcThresh3;
NetNetfilterNfConntrackMax = netNetfilterNfConntrackMax;
NetNetfilterNfConntrackBuckets = netNetfilterNfConntrackBuckets;
FsInotifyMaxUserWatches = fsInotifyMaxUserWatches;
FsFileMax = fsFileMax;
FsAioMaxNr = fsAioMaxNr;
FsNrOpen = fsNrOpen;
KernelThreadsMax = kernelThreadsMax;
VmMaxMapCount = vmMaxMapCount;
VmSwappiness = vmSwappiness;
VmVfsCachePressure = vmVfsCachePressure;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
/// <summary> Sysctl setting net.core.somaxconn. </summary>
public int? NetCoreSomaxconn { get; set; }
/// <summary> Sysctl setting net.core.netdev_max_backlog. </summary>
public int? NetCoreNetdevMaxBacklog { get; set; }
/// <summary> Sysctl setting net.core.rmem_default. </summary>
public int? NetCoreRmemDefault { get; set; }
/// <summary> Sysctl setting net.core.rmem_max. </summary>
public int? NetCoreRmemMax { get; set; }
/// <summary> Sysctl setting net.core.wmem_default. </summary>
public int? NetCoreWmemDefault { get; set; }
/// <summary> Sysctl setting net.core.wmem_max. </summary>
public int? NetCoreWmemMax { get; set; }
/// <summary> Sysctl setting net.core.optmem_max. </summary>
public int? NetCoreOptmemMax { get; set; }
/// <summary> Sysctl setting net.ipv4.tcp_max_syn_backlog. </summary>
public int? NetIPv4TcpMaxSynBacklog { get; set; }
/// <summary> Sysctl setting net.ipv4.tcp_max_tw_buckets. </summary>
public int? NetIPv4TcpMaxTwBuckets { get; set; }
/// <summary> Sysctl setting net.ipv4.tcp_fin_timeout. </summary>
public int? NetIPv4TcpFinTimeout { get; set; }
/// <summary> Sysctl setting net.ipv4.tcp_keepalive_time. </summary>
public int? NetIPv4TcpKeepaliveTime { get; set; }
/// <summary> Sysctl setting net.ipv4.tcp_keepalive_probes. </summary>
public int? NetIPv4TcpKeepaliveProbes { get; set; }
/// <summary> Sysctl setting net.ipv4.tcp_keepalive_intvl. </summary>
public int? NetIPv4TcpKeepaliveIntvl { get; set; }
/// <summary> Sysctl setting net.ipv4.tcp_tw_reuse. </summary>
public bool? NetIPv4TcpTwReuse { get; set; }
/// <summary> Sysctl setting net.ipv4.ip_local_port_range. </summary>
public string NetIPv4IPLocalPortRange { get; set; }
/// <summary> Sysctl setting net.ipv4.neigh.default.gc_thresh1. </summary>
public int? NetIPv4NeighDefaultGcThresh1 { get; set; }
/// <summary> Sysctl setting net.ipv4.neigh.default.gc_thresh2. </summary>
public int? NetIPv4NeighDefaultGcThresh2 { get; set; }
/// <summary> Sysctl setting net.ipv4.neigh.default.gc_thresh3. </summary>
public int? NetIPv4NeighDefaultGcThresh3 { get; set; }
/// <summary> Sysctl setting net.netfilter.nf_conntrack_max. </summary>
public int? NetNetfilterNfConntrackMax { get; set; }
/// <summary> Sysctl setting net.netfilter.nf_conntrack_buckets. </summary>
public int? NetNetfilterNfConntrackBuckets { get; set; }
/// <summary> Sysctl setting fs.inotify.max_user_watches. </summary>
public int? FsInotifyMaxUserWatches { get; set; }
/// <summary> Sysctl setting fs.file-max. </summary>
public int? FsFileMax { get; set; }
/// <summary> Sysctl setting fs.aio-max-nr. </summary>
public int? FsAioMaxNr { get; set; }
/// <summary> Sysctl setting fs.nr_open. </summary>
public int? FsNrOpen { get; set; }
/// <summary> Sysctl setting kernel.threads-max. </summary>
public int? KernelThreadsMax { get; set; }
/// <summary> Sysctl setting vm.max_map_count. </summary>
public int? VmMaxMapCount { get; set; }
/// <summary> Sysctl setting vm.swappiness. </summary>
public int? VmSwappiness { get; set; }
/// <summary> Sysctl setting vm.vfs_cache_pressure. </summary>
public int? VmVfsCachePressure { get; set; }
}
}