Skip to content

Commit da68bc3

Browse files
author
SDKAuto
committed
CodeGen from PR 14696 in Azure/azure-rest-api-specs
Merge d979edd5eb4ddfb24498f9f081f0f91655a9595c into c059fb4
1 parent f3aa604 commit da68bc3

File tree

11 files changed

+1274
-955
lines changed

11 files changed

+1274
-955
lines changed

sdk/containerservice/azure-mgmt-containerservice/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"autorest": "V2",
33
"use": "@microsoft.azure/autorest.python@~4.0.71",
4-
"commit": "1f0bb3f63b1664ace42cfdf646d8b2382d7b7b22",
4+
"commit": "577fb86e4e22d3d58d20b3f2a4dc6200f0c49000",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
66
"autorest_command": "autorest specification/containerservice/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2",
77
"readme": "specification/containerservice/resource-manager/readme.md"

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_05_01/models/_container_service_client_enums.py

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -198,20 +198,20 @@ class ContainerServiceVMSizeTypes(str, Enum):
198198

199199
class OSDiskType(str, Enum):
200200

201-
managed = "Managed"
202-
ephemeral = "Ephemeral"
201+
managed = "Managed" #: Azure replicates the operating system disk for a virtual machine to Azure storage to avoid data loss should the VM need to be relocated to another host. Since containers aren't designed to have local state persisted, this behavior offers limited value while providing some drawbacks, including slower node provisioning and higher read/write latency.
202+
ephemeral = "Ephemeral" #: Ephemeral OS disks are stored only on the host machine, just like a temporary disk. This provides lower read/write latency, along with faster node scaling and cluster upgrades.
203203

204204

205205
class KubeletDiskType(str, Enum):
206206

207-
os = "OS"
208-
temporary = "Temporary"
207+
os = "OS" #: Kubelet will use the OS disk for its data.
208+
temporary = "Temporary" #: Kubelet will use the temporary disk for its data.
209209

210210

211211
class OSType(str, Enum):
212212

213-
linux = "Linux"
214-
windows = "Windows"
213+
linux = "Linux" #: Use Linux.
214+
windows = "Windows" #: Use Windows.
215215

216216

217217
class OSSKU(str, Enum):
@@ -222,32 +222,32 @@ class OSSKU(str, Enum):
222222

223223
class AgentPoolType(str, Enum):
224224

225-
virtual_machine_scale_sets = "VirtualMachineScaleSets"
226-
availability_set = "AvailabilitySet"
225+
virtual_machine_scale_sets = "VirtualMachineScaleSets" #: Create an Agent Pool backed by a Virtual Machine Scale Set.
226+
availability_set = "AvailabilitySet" #: Use of this is strongly discouraged.
227227

228228

229229
class AgentPoolMode(str, Enum):
230230

231-
system = "System"
232-
user = "User"
231+
system = "System" #: System agent pools are primarily for hosting critical system pods such as CoreDNS and metrics-server. System agent pools osType must be Linux. System agent pools VM SKU must have at least 2vCPUs and 4GB of memory.
232+
user = "User" #: User agent pools are primarily for hosting your application pods.
233233

234234

235235
class Code(str, Enum):
236236

237-
running = "Running"
238-
stopped = "Stopped"
237+
running = "Running" #: The cluster is running.
238+
stopped = "Stopped" #: The cluster is stopped.
239239

240240

241241
class ScaleSetPriority(str, Enum):
242242

243-
spot = "Spot"
244-
regular = "Regular"
243+
spot = "Spot" #: Spot priority VMs will be used. There is no SLA for spot nodes. See [spot on AKS](https://docs.microsoft.com/azure/aks/spot-node-pool) for more information.
244+
regular = "Regular" #: Regular VMs will be used.
245245

246246

247247
class ScaleSetEvictionPolicy(str, Enum):
248248

249-
delete = "Delete"
250-
deallocate = "Deallocate"
249+
delete = "Delete" #: Nodes in the underlying Scale Set of the node pool are deleted when they're evicted.
250+
deallocate = "Deallocate" #: Nodes in the underlying Scale Set of the node pool are set to the stopped-deallocated state upon eviction. Nodes in the stopped-deallocated state count against your compute quota and can cause issues with cluster scaling or upgrading.
251251

252252

253253
class GPUInstanceProfile(str, Enum):
@@ -261,38 +261,38 @@ class GPUInstanceProfile(str, Enum):
261261

262262
class LicenseType(str, Enum):
263263

264-
none = "None"
265-
windows_server = "Windows_Server"
264+
none = "None" #: No additional licensing is applied.
265+
windows_server = "Windows_Server" #: Enables Azure Hybrid User Benefits for Windows VMs.
266266

267267

268268
class NetworkPlugin(str, Enum):
269269

270-
azure = "azure"
271-
kubenet = "kubenet"
270+
azure = "azure" #: Use the Azure CNI network plugin. See [Azure CNI (advanced) networking](https://docs.microsoft.com/azure/aks/concepts-network#azure-cni-advanced-networking) for more information.
271+
kubenet = "kubenet" #: Use the Kubenet network plugin. See [Kubenet (basic) networking](https://docs.microsoft.com/azure/aks/concepts-network#kubenet-basic-networking) for more information.
272272

273273

274274
class NetworkPolicy(str, Enum):
275275

276-
calico = "calico"
277-
azure = "azure"
276+
calico = "calico" #: Use Calico network policies. See [differences between Azure and Calico policies](https://docs.microsoft.com/azure/aks/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information.
277+
azure = "azure" #: Use Azure network policies. See [differences between Azure and Calico policies](https://docs.microsoft.com/azure/aks/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information.
278278

279279

280280
class NetworkMode(str, Enum):
281281

282-
transparent = "transparent"
283-
bridge = "bridge"
282+
transparent = "transparent" #: No bridge is created. Intra-VM Pod to Pod communication is through IP routes created by Azure CNI. See [Transparent Mode](https://docs.microsoft.com/azure/aks/faq#transparent-mode) for more information.
283+
bridge = "bridge" #: This is no longer supported
284284

285285

286286
class OutboundType(str, Enum):
287287

288-
load_balancer = "loadBalancer"
289-
user_defined_routing = "userDefinedRouting"
288+
load_balancer = "loadBalancer" #: The load balancer is used for egress through an AKS assigned public IP. This supports Kubernetes services of type 'loadBalancer'. For more information see [outbound type loadbalancer](https://docs.microsoft.com/azure/aks/egress-outboundtype#outbound-type-of-loadbalancer).
289+
user_defined_routing = "userDefinedRouting" #: Egress paths must be defined by the user. This is an advanced scenario and requires proper network configuration. For more information see [outbound type userDefinedRouting](https://docs.microsoft.com/azure/aks/egress-outboundtype#outbound-type-of-userdefinedrouting).
290290

291291

292292
class LoadBalancerSku(str, Enum):
293293

294-
standard = "standard"
295-
basic = "basic"
294+
standard = "standard" #: Use a a standard Load Balancer. This is the recommended Load Balancer SKU. For more information about on working with the load balancer in the managed cluster, see the [standard Load Balancer](https://docs.microsoft.com/azure/aks/load-balancer-standard) article.
295+
basic = "basic" #: Use a basic Load Balancer with limited functionality.
296296

297297

298298
class CreatedByType(str, Enum):
@@ -324,26 +324,26 @@ class ManagedClusterPodIdentityProvisioningState(str, Enum):
324324

325325
class UpgradeChannel(str, Enum):
326326

327-
rapid = "rapid"
328-
stable = "stable"
329-
patch = "patch"
330-
node_image = "node-image"
331-
none = "none"
327+
rapid = "rapid" #: Automatically upgrade the cluster to the latest supported patch release on the latest supported minor version. In cases where the cluster is at a version of Kubernetes that is at an N-2 minor version where N is the latest supported minor version, the cluster first upgrades to the latest supported patch version on N-1 minor version. For example, if a cluster is running version 1.17.7 and versions 1.17.9, 1.18.4, 1.18.6, and 1.19.1 are available, your cluster first is upgraded to 1.18.6, then is upgraded to 1.19.1.
328+
stable = "stable" #: Automatically upgrade the cluster to the latest supported patch release on minor version N-1, where N is the latest supported minor version. For example, if a cluster is running version 1.17.7 and versions 1.17.9, 1.18.4, 1.18.6, and 1.19.1 are available, your cluster is upgraded to 1.18.6.
329+
patch = "patch" #: Automatically upgrade the cluster to the latest supported patch version when it becomes available while keeping the minor version the same. For example, if a cluster is running version 1.17.7 and versions 1.17.9, 1.18.4, 1.18.6, and 1.19.1 are available, your cluster is upgraded to 1.17.9.
330+
node_image = "node-image" #: Automatically upgrade the node image to the latest version available. Microsoft provides patches and new images for image nodes frequently (usually weekly), but your running nodes won't get the new images unless you do a node image upgrade. Turning on the node-image channel will automatically update your node images whenever a new version is available.
331+
none = "none" #: Disables auto-upgrades and keeps the cluster at its current version of Kubernetes.
332332

333333

334334
class Expander(str, Enum):
335335

336-
least_waste = "least-waste"
337-
most_pods = "most-pods"
338-
priority = "priority"
339-
random = "random"
336+
least_waste = "least-waste" #: Selects the node group that will have the least idle CPU (if tied, unused memory) after scale-up. This is useful when you have different classes of nodes, for example, high CPU or high memory nodes, and only want to expand those when there are pending pods that need a lot of those resources.
337+
most_pods = "most-pods" #: Selects the node group that would be able to schedule the most pods when scaling up. This is useful when you are using nodeSelector to make sure certain pods land on certain nodes. Note that this won't cause the autoscaler to select bigger nodes vs. smaller, as it can add multiple smaller nodes at once.
338+
priority = "priority" #: Selects the node group that has the highest priority assigned by the user. It's configuration is described in more details [here](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/expander/priority/readme.md).
339+
random = "random" #: Used when you don't have a particular need for the node groups to scale differently.
340340

341341

342342
class ResourceIdentityType(str, Enum):
343343

344-
system_assigned = "SystemAssigned"
345-
user_assigned = "UserAssigned"
346-
none = "None"
344+
system_assigned = "SystemAssigned" #: Use an implicitly created system assigned managed identity to manage cluster resources. Master components in the control plane such as kube-controller-manager will use the system assigned managed identity to manipulate Azure resources.
345+
user_assigned = "UserAssigned" #: Use a user-specified identity to manage cluster resources. Master components in the control plane such as kube-controller-manager will use the specified user assigned managed identity to manipulate Azure resources.
346+
none = "None" #: Do not use a managed identity for the Managed Cluster, service principal will be used instead.
347347

348348

349349
class ManagedClusterSKUName(str, Enum):
@@ -353,8 +353,8 @@ class ManagedClusterSKUName(str, Enum):
353353

354354
class ManagedClusterSKUTier(str, Enum):
355355

356-
paid = "Paid"
357-
free = "Free"
356+
paid = "Paid" #: Guarantees 99.95% availability of the Kubernetes API server endpoint for clusters that use Availability Zones and 99.9% of availability for clusters that don't use Availability Zones.
357+
free = "Free" #: No guaranteed SLA, no additional charges. Free tier clusters have an SLO of 99.5%.
358358

359359

360360
class ExtendedLocationTypes(str, Enum):

0 commit comments

Comments
 (0)