Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/containerservice/azure-mgmt-containerservice/_meta.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"commit": "d15200711af0d14785a36791b569027232bc486b",
"commit": "a00cae0427c9fba59614ad92df7904cfc4129c7a",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"autorest_command": "autorest specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md",
"package-2024-05": "2024-07-10 04:37:35 +0800 794e29ee5f8eca63ce0ddf007c60da7df37baaad stable/2024-05-01/managedClusters.json",
"package-preview-2024-04": "2024-08-27 19:55:39 -0700 4bc9b37173bd5fe0ed19f21edfb8a195e89caaf6 preview/2024-04-02-preview/managedClusters.json",
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -2508,6 +2508,8 @@ def __init__(self, *, value: Optional[List["_models.ManagedCluster"]] = None, **
class ManagedClusterLoadBalancerProfile(_serialization.Model):
"""Profile of the managed cluster load balancer.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar managed_outbound_i_ps: Desired managed outbound IPs for the cluster load balancer.
:vartype managed_outbound_i_ps:
~azure.mgmt.containerservice.v2020_03_01.models.ManagedClusterLoadBalancerProfileManagedOutboundIPs
Expand All @@ -2531,6 +2533,7 @@ class ManagedClusterLoadBalancerProfile(_serialization.Model):
"""

_validation = {
"effective_outbound_i_ps": {"readonly": True},
"allocated_outbound_ports": {"maximum": 64000, "minimum": 0},
"idle_timeout_in_minutes": {"maximum": 120, "minimum": 4},
}
Expand All @@ -2556,7 +2559,6 @@ def __init__(
managed_outbound_i_ps: Optional["_models.ManagedClusterLoadBalancerProfileManagedOutboundIPs"] = None,
outbound_ip_prefixes: Optional["_models.ManagedClusterLoadBalancerProfileOutboundIPPrefixes"] = None,
outbound_i_ps: Optional["_models.ManagedClusterLoadBalancerProfileOutboundIPs"] = None,
effective_outbound_i_ps: Optional[List["_models.ResourceReference"]] = None,
allocated_outbound_ports: int = 0,
idle_timeout_in_minutes: int = 30,
**kwargs: Any
Expand All @@ -2572,10 +2574,6 @@ def __init__(
:keyword outbound_i_ps: Desired outbound IP resources for the cluster load balancer.
:paramtype outbound_i_ps:
~azure.mgmt.containerservice.v2020_03_01.models.ManagedClusterLoadBalancerProfileOutboundIPs
:keyword effective_outbound_i_ps: The effective outbound IP resources of the cluster load
balancer.
:paramtype effective_outbound_i_ps:
list[~azure.mgmt.containerservice.v2020_03_01.models.ResourceReference]
:keyword allocated_outbound_ports: Desired number of allocated SNAT ports per VM. Allowed
values must be in the range of 0 to 64000 (inclusive). The default value is 0 which results in
Azure dynamically allocating ports.
Expand All @@ -2588,7 +2586,7 @@ def __init__(
self.managed_outbound_i_ps = managed_outbound_i_ps
self.outbound_ip_prefixes = outbound_ip_prefixes
self.outbound_i_ps = outbound_i_ps
self.effective_outbound_i_ps = effective_outbound_i_ps
self.effective_outbound_i_ps = None
self.allocated_outbound_ports = allocated_outbound_ports
self.idle_timeout_in_minutes = idle_timeout_in_minutes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -3048,6 +3048,8 @@ def __init__(self, *, value: Optional[List["_models.ManagedCluster"]] = None, **
class ManagedClusterLoadBalancerProfile(_serialization.Model):
"""Profile of the managed cluster load balancer.

Variables are only populated by the server, and will be ignored when sending a request.

:ivar managed_outbound_i_ps: Desired managed outbound IPs for the cluster load balancer.
:vartype managed_outbound_i_ps:
~azure.mgmt.containerservice.v2020_11_01.models.ManagedClusterLoadBalancerProfileManagedOutboundIPs
Expand All @@ -3071,6 +3073,7 @@ class ManagedClusterLoadBalancerProfile(_serialization.Model):
"""

_validation = {
"effective_outbound_i_ps": {"readonly": True},
"allocated_outbound_ports": {"maximum": 64000, "minimum": 0},
"idle_timeout_in_minutes": {"maximum": 120, "minimum": 4},
}
Expand All @@ -3096,7 +3099,6 @@ def __init__(
managed_outbound_i_ps: Optional["_models.ManagedClusterLoadBalancerProfileManagedOutboundIPs"] = None,
outbound_ip_prefixes: Optional["_models.ManagedClusterLoadBalancerProfileOutboundIPPrefixes"] = None,
outbound_i_ps: Optional["_models.ManagedClusterLoadBalancerProfileOutboundIPs"] = None,
effective_outbound_i_ps: Optional[List["_models.ResourceReference"]] = None,
allocated_outbound_ports: int = 0,
idle_timeout_in_minutes: int = 30,
**kwargs: Any
Expand All @@ -3112,10 +3114,6 @@ def __init__(
:keyword outbound_i_ps: Desired outbound IP resources for the cluster load balancer.
:paramtype outbound_i_ps:
~azure.mgmt.containerservice.v2020_11_01.models.ManagedClusterLoadBalancerProfileOutboundIPs
:keyword effective_outbound_i_ps: The effective outbound IP resources of the cluster load
balancer.
:paramtype effective_outbound_i_ps:
list[~azure.mgmt.containerservice.v2020_11_01.models.ResourceReference]
:keyword allocated_outbound_ports: Desired number of allocated SNAT ports per VM. Allowed
values must be in the range of 0 to 64000 (inclusive). The default value is 0 which results in
Azure dynamically allocating ports.
Expand All @@ -3128,7 +3126,7 @@ def __init__(
self.managed_outbound_i_ps = managed_outbound_i_ps
self.outbound_ip_prefixes = outbound_ip_prefixes
self.outbound_i_ps = outbound_i_ps
self.effective_outbound_i_ps = effective_outbound_i_ps
self.effective_outbound_i_ps = None
self.allocated_outbound_ports = allocated_outbound_ports
self.idle_timeout_in_minutes = idle_timeout_in_minutes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ class AgentPoolUpgradeSettings(_serialization.Model):
:ivar max_surge: This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%').
If a percentage is specified, it is the percentage of the total agent pool size at the time of
the upgrade. For percentages, fractional nodes are rounded up. If not specified, the default is
1. For more information, including best practices, see:
10%. For more information, including best practices, see:
https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade.
:vartype max_surge: str
:ivar drain_timeout_in_minutes: The amount of time (in minutes) to wait on eviction of pods and
Expand Down Expand Up @@ -1057,7 +1057,7 @@ def __init__(
:keyword max_surge: This can either be set to an integer (e.g. '5') or a percentage (e.g.
'50%'). If a percentage is specified, it is the percentage of the total agent pool size at the
time of the upgrade. For percentages, fractional nodes are rounded up. If not specified, the
default is 1. For more information, including best practices, see:
default is 10%. For more information, including best practices, see:
https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade.
:paramtype max_surge: str
:keyword drain_timeout_in_minutes: The amount of time (in minutes) to wait on eviction of pods
Expand Down Expand Up @@ -5109,6 +5109,8 @@ def __init__(self, *, value: Optional[List["_models.ManagedCluster"]] = None, **
class ManagedClusterLoadBalancerProfile(_serialization.Model):
"""Profile of the managed cluster load balancer.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar managed_outbound_i_ps: Desired managed outbound IPs for the cluster load balancer.
:vartype managed_outbound_i_ps:
~azure.mgmt.containerservice.v2024_10_01.models.ManagedClusterLoadBalancerProfileManagedOutboundIPs
Expand Down Expand Up @@ -5139,6 +5141,7 @@ class ManagedClusterLoadBalancerProfile(_serialization.Model):
"""

_validation = {
"effective_outbound_i_ps": {"readonly": True},
"allocated_outbound_ports": {"maximum": 64000, "minimum": 0},
"idle_timeout_in_minutes": {"maximum": 120, "minimum": 4},
}
Expand Down Expand Up @@ -5166,7 +5169,6 @@ def __init__(
managed_outbound_i_ps: Optional["_models.ManagedClusterLoadBalancerProfileManagedOutboundIPs"] = None,
outbound_ip_prefixes: Optional["_models.ManagedClusterLoadBalancerProfileOutboundIPPrefixes"] = None,
outbound_i_ps: Optional["_models.ManagedClusterLoadBalancerProfileOutboundIPs"] = None,
effective_outbound_i_ps: Optional[List["_models.ResourceReference"]] = None,
allocated_outbound_ports: int = 0,
idle_timeout_in_minutes: int = 30,
enable_multiple_standard_load_balancers: Optional[bool] = None,
Expand All @@ -5184,10 +5186,6 @@ def __init__(
:keyword outbound_i_ps: Desired outbound IP resources for the cluster load balancer.
:paramtype outbound_i_ps:
~azure.mgmt.containerservice.v2024_10_01.models.ManagedClusterLoadBalancerProfileOutboundIPs
:keyword effective_outbound_i_ps: The effective outbound IP resources of the cluster load
balancer.
:paramtype effective_outbound_i_ps:
list[~azure.mgmt.containerservice.v2024_10_01.models.ResourceReference]
:keyword allocated_outbound_ports: The desired number of allocated SNAT ports per VM. Allowed
values are in the range of 0 to 64000 (inclusive). The default value is 0 which results in
Azure dynamically allocating ports.
Expand All @@ -5207,7 +5205,7 @@ def __init__(
self.managed_outbound_i_ps = managed_outbound_i_ps
self.outbound_ip_prefixes = outbound_ip_prefixes
self.outbound_i_ps = outbound_i_ps
self.effective_outbound_i_ps = effective_outbound_i_ps
self.effective_outbound_i_ps = None
self.allocated_outbound_ports = allocated_outbound_ports
self.idle_timeout_in_minutes = idle_timeout_in_minutes
self.enable_multiple_standard_load_balancers = enable_multiple_standard_load_balancers
Expand Down Expand Up @@ -5348,6 +5346,8 @@ def __init__(self, *, cost_analysis: Optional["_models.ManagedClusterCostAnalysi
class ManagedClusterNATGatewayProfile(_serialization.Model):
"""Profile of the managed cluster NAT gateway.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar managed_outbound_ip_profile: Profile of the managed outbound IP resources of the cluster
NAT gateway.
:vartype managed_outbound_ip_profile:
Expand All @@ -5361,6 +5361,7 @@ class ManagedClusterNATGatewayProfile(_serialization.Model):
"""

_validation = {
"effective_outbound_i_ps": {"readonly": True},
"idle_timeout_in_minutes": {"maximum": 120, "minimum": 4},
}

Expand All @@ -5377,7 +5378,6 @@ def __init__(
self,
*,
managed_outbound_ip_profile: Optional["_models.ManagedClusterManagedOutboundIPProfile"] = None,
effective_outbound_i_ps: Optional[List["_models.ResourceReference"]] = None,
idle_timeout_in_minutes: int = 4,
**kwargs: Any
) -> None:
Expand All @@ -5386,17 +5386,13 @@ def __init__(
cluster NAT gateway.
:paramtype managed_outbound_ip_profile:
~azure.mgmt.containerservice.v2024_10_01.models.ManagedClusterManagedOutboundIPProfile
:keyword effective_outbound_i_ps: The effective outbound IP resources of the cluster NAT
gateway.
:paramtype effective_outbound_i_ps:
list[~azure.mgmt.containerservice.v2024_10_01.models.ResourceReference]
:keyword idle_timeout_in_minutes: Desired outbound flow idle timeout in minutes. Allowed values
are in the range of 4 to 120 (inclusive). The default value is 4 minutes.
:paramtype idle_timeout_in_minutes: int
"""
super().__init__(**kwargs)
self.managed_outbound_ip_profile = managed_outbound_ip_profile
self.effective_outbound_i_ps = effective_outbound_i_ps
self.effective_outbound_i_ps = None
self.idle_timeout_in_minutes = idle_timeout_in_minutes


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._container_service_client import ContainerServiceClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"ContainerServiceClient",
]
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import Any, TYPE_CHECKING

from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
from azure.core.credentials import TokenCredential


class ContainerServiceClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for ContainerServiceClient.
Note that all parameters used to create this instance are saved as instance
attributes.
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-10-02-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-10-02-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.api_version = api_version
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-containerservice/{}".format(VERSION))
self.polling_interval = kwargs.get("polling_interval", 30)
self._configure(**kwargs)

def _configure(self, **kwargs: Any) -> None:
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
self.authentication_policy = kwargs.get("authentication_policy")
if self.credential and not self.authentication_policy:
self.authentication_policy = ARMChallengeAuthenticationPolicy(
self.credential, *self.credential_scopes, **kwargs
)
Loading