Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-containerservice] Set effectiveOutboundIPs to readOnly #10438

Closed
wants to merge 1 commit into from
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": "ca82ebf3ccd90e486c9e782667f8f37e61aba720",
"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 @@ -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 @@ -201,8 +201,10 @@ class AgentPool(SubResource):
system pools. The default value is 1.
:vartype count: int
:ivar vm_size: VM size availability varies by region. If a node contains insufficient compute
resources (memory, cpu, etc) pods might fail to run correctly. For more details on restricted
VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions.
resources (memory, cpu, etc) pods might fail to run correctly. If this field is not specified,
AKS will attempt to find an appropriate VM SKU for your pool, based on quota and capacity. For
more details on restricted VM sizes, see:
https://docs.microsoft.com/azure/aks/quotas-skus-regions.
:vartype vm_size: str
:ivar os_disk_size_gb: OS Disk Size in GB to be used to specify the disk size for every machine
in the master/agent pool. If you specify 0, it will apply the default osDisk size according to
Expand Down Expand Up @@ -482,8 +484,10 @@ def __init__( # pylint: disable=too-many-locals
system pools. The default value is 1.
:paramtype count: int
:keyword vm_size: VM size availability varies by region. If a node contains insufficient
compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on
restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions.
compute resources (memory, cpu, etc) pods might fail to run correctly. If this field is not
specified, AKS will attempt to find an appropriate VM SKU for your pool, based on quota and
capacity. For more details on restricted VM sizes, see:
https://docs.microsoft.com/azure/aks/quotas-skus-regions.
:paramtype vm_size: str
:keyword os_disk_size_gb: OS Disk Size in GB to be used to specify the disk size for every
machine in the master/agent pool. If you specify 0, it will apply the default osDisk size
Expand Down Expand Up @@ -1020,7 +1024,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 +1061,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 @@ -3636,8 +3640,10 @@ class ManagedClusterAgentPoolProfileProperties(_serialization.Model):
system pools. The default value is 1.
:vartype count: int
:ivar vm_size: VM size availability varies by region. If a node contains insufficient compute
resources (memory, cpu, etc) pods might fail to run correctly. For more details on restricted
VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions.
resources (memory, cpu, etc) pods might fail to run correctly. If this field is not specified,
AKS will attempt to find an appropriate VM SKU for your pool, based on quota and capacity. For
more details on restricted VM sizes, see:
https://docs.microsoft.com/azure/aks/quotas-skus-regions.
:vartype vm_size: str
:ivar os_disk_size_gb: OS Disk Size in GB to be used to specify the disk size for every machine
in the master/agent pool. If you specify 0, it will apply the default osDisk size according to
Expand Down Expand Up @@ -3910,8 +3916,10 @@ def __init__( # pylint: disable=too-many-locals
system pools. The default value is 1.
:paramtype count: int
:keyword vm_size: VM size availability varies by region. If a node contains insufficient
compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on
restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions.
compute resources (memory, cpu, etc) pods might fail to run correctly. If this field is not
specified, AKS will attempt to find an appropriate VM SKU for your pool, based on quota and
capacity. For more details on restricted VM sizes, see:
https://docs.microsoft.com/azure/aks/quotas-skus-regions.
:paramtype vm_size: str
:keyword os_disk_size_gb: OS Disk Size in GB to be used to specify the disk size for every
machine in the master/agent pool. If you specify 0, it will apply the default osDisk size
Expand Down Expand Up @@ -4132,8 +4140,10 @@ class ManagedClusterAgentPoolProfile(ManagedClusterAgentPoolProfileProperties):
system pools. The default value is 1.
:vartype count: int
:ivar vm_size: VM size availability varies by region. If a node contains insufficient compute
resources (memory, cpu, etc) pods might fail to run correctly. For more details on restricted
VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions.
resources (memory, cpu, etc) pods might fail to run correctly. If this field is not specified,
AKS will attempt to find an appropriate VM SKU for your pool, based on quota and capacity. For
more details on restricted VM sizes, see:
https://docs.microsoft.com/azure/aks/quotas-skus-regions.
:vartype vm_size: str
:ivar os_disk_size_gb: OS Disk Size in GB to be used to specify the disk size for every machine
in the master/agent pool. If you specify 0, it will apply the default osDisk size according to
Expand Down Expand Up @@ -4411,8 +4421,10 @@ def __init__( # pylint: disable=too-many-locals
system pools. The default value is 1.
:paramtype count: int
:keyword vm_size: VM size availability varies by region. If a node contains insufficient
compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on
restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions.
compute resources (memory, cpu, etc) pods might fail to run correctly. If this field is not
specified, AKS will attempt to find an appropriate VM SKU for your pool, based on quota and
capacity. For more details on restricted VM sizes, see:
https://docs.microsoft.com/azure/aks/quotas-skus-regions.
:paramtype vm_size: str
:keyword os_disk_size_gb: OS Disk Size in GB to be used to specify the disk size for every
machine in the master/agent pool. If you specify 0, it will apply the default osDisk size
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