From 49aadf1595e78f1a33442521f19667f8c8aaad07 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 26 Mar 2026 08:46:07 +0000 Subject: [PATCH] Configurations: 'specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensions/tspconfig.yaml', API Version: 2025-03-01, SDK Release Type: stable, and CommitSHA: '0758803aaaacc14ce831053cf0eb592e09e14f93' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6067527 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../CHANGELOG.md | 19 ++ .../_metadata.json | 8 +- .../apiview-properties.json | 4 + .../extensions/_client.py | 4 +- .../extensions/_configuration.py | 6 +- .../extensions/_version.py | 2 +- .../extensions/aio/_client.py | 4 +- .../extensions/aio/_configuration.py | 6 +- .../extensions/models/__init__.py | 8 + .../extensions/models/_enums.py | 36 +++- .../extensions/models/_models.py | 198 +++++++++++++++++- .../extensions/operations/_operations.py | 12 +- .../generated_samples/create_extension.py | 3 +- .../create_extension_with_plan.py | 9 +- .../generated_samples/delete_extension.py | 2 +- .../generated_samples/get_extension.py | 2 +- .../get_extension_async_operation_status.py | 2 +- .../get_extension_with_additional_details.py | 45 ++++ .../get_extension_with_extension_state.py | 45 ++++ .../get_extension_with_managed_by.py | 45 ++++ .../get_extension_with_management_details.py | 45 ++++ .../get_extension_with_plan.py | 2 +- .../generated_samples/list_extensions.py | 2 +- .../generated_samples/patch_extension.py | 3 +- ...n_extensions_mgmt_extensions_operations.py | 18 +- ...nsions_mgmt_extensions_operations_async.py | 18 +- .../pyproject.toml | 4 +- .../tsp-location.yaml | 2 +- 28 files changed, 505 insertions(+), 49 deletions(-) create mode 100644 sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_additional_details.py create mode 100644 sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_extension_state.py create mode 100644 sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_managed_by.py create mode 100644 sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_management_details.py diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/CHANGELOG.md b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/CHANGELOG.md index 743aaad9eadf..a446f62656be 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/CHANGELOG.md +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/CHANGELOG.md @@ -1,5 +1,24 @@ # Release History +## 1.0.0 (2026-03-26) + +### Features Added + + - Enum `AKSIdentityType` added member `WORKLOAD` + - Model `Extension` added property `managed_by` + - Model `ExtensionProperties` added property `auto_upgrade_mode` + - Model `ExtensionProperties` added property `management_details` + - Model `ExtensionProperties` added property `additional_details` + - Model `ExtensionProperties` added property `extension_state` + - Model `ExtensionPropertiesAksAssignedIdentity` added property `object_id` + - Model `ExtensionPropertiesAksAssignedIdentity` added property `client_id` + - Model `ExtensionPropertiesAksAssignedIdentity` added property `resource_id` + - Model `PatchExtensionProperties` added property `auto_upgrade_mode` + - Added model `AccessDetail` + - Added model `AdditionalDetails` + - Added enum `AutoUpgradeMode` + - Added model `ManagementDetails` + ## 1.0.0b2 (2026-03-18) ### Features Added diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/_metadata.json b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/_metadata.json index 54e37c469b61..1f475e27a7ca 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/_metadata.json +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/_metadata.json @@ -1,10 +1,10 @@ { - "apiVersion": "2024-11-01", + "apiVersion": "2025-03-01", "apiVersions": { - "Microsoft.KubernetesConfiguration": "2024-11-01" + "Microsoft.KubernetesConfiguration": "2025-03-01" }, - "commit": "bf2f971b4319da9f5624da7f3c13d487be477897", + "commit": "0758803aaaacc14ce831053cf0eb592e09e14f93", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensions", - "emitterVersion": "0.61.0" + "emitterVersion": "0.61.1" } \ No newline at end of file diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/apiview-properties.json b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/apiview-properties.json index 2d98ac1eda8e..5790c63293b8 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/apiview-properties.json +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/apiview-properties.json @@ -1,6 +1,8 @@ { "CrossLanguagePackageId": "Microsoft.KubernetesConfiguration", "CrossLanguageDefinitionId": { + "azure.mgmt.kubernetesconfiguration.extensions.models.AccessDetail": "Microsoft.KubernetesConfiguration.AccessDetail", + "azure.mgmt.kubernetesconfiguration.extensions.models.AdditionalDetails": "Microsoft.KubernetesConfiguration.AdditionalDetails", "azure.mgmt.kubernetesconfiguration.extensions.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo", "azure.mgmt.kubernetesconfiguration.extensions.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail", "azure.mgmt.kubernetesconfiguration.extensions.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse", @@ -11,6 +13,7 @@ "azure.mgmt.kubernetesconfiguration.extensions.models.ExtensionPropertiesAksAssignedIdentity": "Microsoft.KubernetesConfiguration.ExtensionPropertiesAksAssignedIdentity", "azure.mgmt.kubernetesconfiguration.extensions.models.ExtensionStatus": "Microsoft.KubernetesConfiguration.ExtensionStatus", "azure.mgmt.kubernetesconfiguration.extensions.models.Identity": "Azure.ResourceManager.CommonTypes.Identity", + "azure.mgmt.kubernetesconfiguration.extensions.models.ManagementDetails": "Microsoft.KubernetesConfiguration.ManagementDetails", "azure.mgmt.kubernetesconfiguration.extensions.models.OperationStatusResult": "Microsoft.KubernetesConfiguration.OperationStatusResult", "azure.mgmt.kubernetesconfiguration.extensions.models.PatchExtension": "Microsoft.KubernetesConfiguration.PatchExtension", "azure.mgmt.kubernetesconfiguration.extensions.models.PatchExtensionProperties": "Microsoft.KubernetesConfiguration.PatchExtensionProperties", @@ -23,6 +26,7 @@ "azure.mgmt.kubernetesconfiguration.extensions.models.ProvisioningState": "Microsoft.KubernetesConfiguration.ProvisioningState", "azure.mgmt.kubernetesconfiguration.extensions.models.LevelType": "Microsoft.KubernetesConfiguration.LevelType", "azure.mgmt.kubernetesconfiguration.extensions.models.AKSIdentityType": "Microsoft.KubernetesConfiguration.AKSIdentityType", + "azure.mgmt.kubernetesconfiguration.extensions.models.AutoUpgradeMode": "Microsoft.KubernetesConfiguration.AutoUpgradeMode", "azure.mgmt.kubernetesconfiguration.extensions.models.ResourceIdentityType": "Azure.ResourceManager.CommonTypes.ResourceIdentityType", "azure.mgmt.kubernetesconfiguration.extensions.operations.ExtensionsOperations.get": "Microsoft.KubernetesConfiguration.Extensions.get", "azure.mgmt.kubernetesconfiguration.extensions.aio.operations.ExtensionsOperations.get": "Microsoft.KubernetesConfiguration.Extensions.get", diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/_client.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/_client.py index cd5c2aac93a5..0594dc45f245 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/_client.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/_client.py @@ -44,8 +44,8 @@ class KubernetesConfigurationExtensionsMgmtClient: # pylint: disable=name-too-l :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2024-11-01" - and None. Default value is "2024-11-01". Note that overriding this default value may result in + :keyword api_version: The API version to use for this operation. Known values are "2025-03-01". + Default value is "2025-03-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/_configuration.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/_configuration.py index 9f92bf75586b..aae607b9e7b9 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/_configuration.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/_configuration.py @@ -34,8 +34,8 @@ class KubernetesConfigurationExtensionsMgmtClientConfiguration: # pylint: disab :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2024-11-01" - and None. Default value is "2024-11-01". Note that overriding this default value may result in + :keyword api_version: The API version to use for this operation. Known values are "2025-03-01". + Default value is "2025-03-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -48,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2024-11-01") + api_version: str = kwargs.pop("api_version", "2025-03-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/_version.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/_version.py index bbcd28b4aa67..0ec13ea52bbf 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/_version.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0b2" +VERSION = "1.0.0" diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/aio/_client.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/aio/_client.py index 925d708d57f6..0a95773f8e76 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/aio/_client.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/aio/_client.py @@ -44,8 +44,8 @@ class KubernetesConfigurationExtensionsMgmtClient: # pylint: disable=name-too-l :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2024-11-01" - and None. Default value is "2024-11-01". Note that overriding this default value may result in + :keyword api_version: The API version to use for this operation. Known values are "2025-03-01". + Default value is "2025-03-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/aio/_configuration.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/aio/_configuration.py index a6b6f78b4ce4..e714eec3d0fc 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/aio/_configuration.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/aio/_configuration.py @@ -34,8 +34,8 @@ class KubernetesConfigurationExtensionsMgmtClientConfiguration: # pylint: disab :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2024-11-01" - and None. Default value is "2024-11-01". Note that overriding this default value may result in + :keyword api_version: The API version to use for this operation. Known values are "2025-03-01". + Default value is "2025-03-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -48,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2024-11-01") + api_version: str = kwargs.pop("api_version", "2025-03-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/models/__init__.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/models/__init__.py index 2944c681fb03..047124c2dff3 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/models/__init__.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/models/__init__.py @@ -14,6 +14,8 @@ from ._models import ( # type: ignore + AccessDetail, + AdditionalDetails, ErrorAdditionalInfo, ErrorDetail, ErrorResponse, @@ -22,6 +24,7 @@ ExtensionPropertiesAksAssignedIdentity, ExtensionStatus, Identity, + ManagementDetails, OperationStatusResult, PatchExtension, PatchExtensionProperties, @@ -36,6 +39,7 @@ from ._enums import ( # type: ignore AKSIdentityType, + AutoUpgradeMode, CreatedByType, LevelType, ProvisioningState, @@ -46,6 +50,8 @@ from ._patch import patch_sdk as _patch_sdk __all__ = [ + "AccessDetail", + "AdditionalDetails", "ErrorAdditionalInfo", "ErrorDetail", "ErrorResponse", @@ -54,6 +60,7 @@ "ExtensionPropertiesAksAssignedIdentity", "ExtensionStatus", "Identity", + "ManagementDetails", "OperationStatusResult", "PatchExtension", "PatchExtensionProperties", @@ -65,6 +72,7 @@ "ScopeNamespace", "SystemData", "AKSIdentityType", + "AutoUpgradeMode", "CreatedByType", "LevelType", "ProvisioningState", diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/models/_enums.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/models/_enums.py index 8103ccec7863..de19f4288285 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/models/_enums.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/models/_enums.py @@ -14,9 +14,23 @@ class AKSIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The identity type.""" SYSTEM_ASSIGNED = "SystemAssigned" - """SystemAssigned.""" + """SystemAssigned identity.""" USER_ASSIGNED = "UserAssigned" - """UserAssigned.""" + """UserAssigned identity.""" + WORKLOAD = "Workload" + """Workload identity.""" + + +class AutoUpgradeMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The upgrade mode for auto upgrade. The default is "compatible".""" + + NONE = "none" + """The extension will not be automatically upgraded.""" + PATCH = "patch" + """The extension will be automatically upgraded to the latest patch version within the minor + version.""" + COMPATIBLE = "compatible" + """The extension will be automatically upgraded to compatible versions as determined by the user.""" class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -36,28 +50,28 @@ class LevelType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Level of the status.""" ERROR = "Error" - """Error.""" + """Indicates an error status from the extension.""" WARNING = "Warning" - """Warning.""" + """Indicates a warning status from the extension.""" INFORMATION = "Information" - """Information.""" + """Indicates an informational status from the extension.""" class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The provisioning state of the resource.""" SUCCEEDED = "Succeeded" - """Succeeded.""" + """Resource has been created.""" FAILED = "Failed" - """Failed.""" + """Resource creation failed.""" CANCELED = "Canceled" - """Canceled.""" + """Resource creation was canceled.""" CREATING = "Creating" - """Creating.""" + """Resource is being created.""" UPDATING = "Updating" - """Updating.""" + """Resource is being updated.""" DELETING = "Deleting" - """Deleting.""" + """Resource is being deleted.""" class ResourceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/models/_models.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/models/_models.py index 4092ba410eb8..faf11eebe8f2 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/models/_models.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/models/_models.py @@ -1,4 +1,4 @@ -# pylint: disable=line-too-long,useless-suppression +# pylint: disable=line-too-long,useless-suppression,too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -17,6 +17,88 @@ from .. import models as _models +class AccessDetail(_Model): + """Metadata about the access details of the managing entity of the extension. + + :ivar entity: The entity to which the access details apply. + :vartype entity: str + :ivar allowed_actions: The list of allowed actions for the entity. + :vartype allowed_actions: list[str] + :ivar description: The description of the entity. + :vartype description: str + """ + + entity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The entity to which the access details apply.""" + allowed_actions: Optional[list[str]] = rest_field( + name="allowedActions", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of allowed actions for the entity.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The description of the entity.""" + + @overload + def __init__( + self, + *, + entity: Optional[str] = None, + allowed_actions: Optional[list[str]] = None, + description: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AdditionalDetails(_Model): + """Additional details provided by the publisher of the extension. + + :ivar docs: Documentation for the extension. + :vartype docs: str + :ivar release_notes: Release Notes of the extension. + :vartype release_notes: str + :ivar troubleshooting_guide: Troubleshooting guide for the extension. + :vartype troubleshooting_guide: str + """ + + docs: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Documentation for the extension.""" + release_notes: Optional[str] = rest_field( + name="releaseNotes", visibility=["read", "create", "update", "delete", "query"] + ) + """Release Notes of the extension.""" + troubleshooting_guide: Optional[str] = rest_field( + name="troubleshootingGuide", visibility=["read", "create", "update", "delete", "query"] + ) + """Troubleshooting guide for the extension.""" + + @overload + def __init__( + self, + *, + docs: Optional[str] = None, + release_notes: Optional[str] = None, + troubleshooting_guide: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + class ErrorAdditionalInfo(_Model): """The resource management error additional info. @@ -153,6 +235,11 @@ class Extension(ProxyResource): :vartype properties: ~azure.mgmt.kubernetesconfiguration.extensions.models.ExtensionProperties :ivar identity: Identity of the Extension resource. :vartype identity: ~azure.mgmt.kubernetesconfiguration.extensions.models.Identity + :ivar managed_by: The fully qualified resource ID of the resource that manages this resource. + Indicates if this resource is managed by another Azure resource. If this is present, complete + mode deployment will not delete the resource if it is removed from the template since it is + managed by another resource. + :vartype managed_by: str :ivar plan: Details of the resource plan. :vartype plan: ~azure.mgmt.kubernetesconfiguration.extensions.models.Plan """ @@ -163,6 +250,11 @@ class Extension(ProxyResource): """Properties of an Extension resource.""" identity: Optional["_models.Identity"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Identity of the Extension resource.""" + managed_by: Optional[str] = rest_field(name="managedBy", visibility=["read", "create"]) + """The fully qualified resource ID of the resource that manages this resource. Indicates if this + resource is managed by another Azure resource. If this is present, complete mode deployment + will not delete the resource if it is removed from the template since it is managed by another + resource.""" plan: Optional["_models.Plan"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Details of the resource plan.""" @@ -182,6 +274,10 @@ class Extension(ProxyResource): "package_uri", "aks_assigned_identity", "is_system_extension", + "auto_upgrade_mode", + "management_details", + "additional_details", + "extension_state", ] @overload @@ -190,6 +286,7 @@ def __init__( *, properties: Optional["_models.ExtensionProperties"] = None, identity: Optional["_models.Identity"] = None, + managed_by: Optional[str] = None, plan: Optional["_models.Plan"] = None, ) -> None: ... @@ -265,6 +362,18 @@ class ExtensionProperties(_Model): ~azure.mgmt.kubernetesconfiguration.extensions.models.ExtensionPropertiesAksAssignedIdentity :ivar is_system_extension: Flag to note if this extension is a system extension. :vartype is_system_extension: bool + :ivar auto_upgrade_mode: The upgrade mode for auto upgrade. The default is "compatible". Known + values are: "none", "patch", and "compatible". + :vartype auto_upgrade_mode: str or + ~azure.mgmt.kubernetesconfiguration.extensions.models.AutoUpgradeMode + :ivar management_details: Management details of the extension. + :vartype management_details: + ~azure.mgmt.kubernetesconfiguration.extensions.models.ManagementDetails + :ivar additional_details: Additional details provided by the publisher of the extension. + :vartype additional_details: + ~azure.mgmt.kubernetesconfiguration.extensions.models.AdditionalDetails + :ivar extension_state: State of the extension on the cluster. + :vartype extension_state: str """ extension_type: Optional[str] = rest_field( @@ -317,6 +426,21 @@ class ExtensionProperties(_Model): """Identity of the Extension resource in an AKS cluster.""" is_system_extension: Optional[bool] = rest_field(name="isSystemExtension", visibility=["read"]) """Flag to note if this extension is a system extension.""" + auto_upgrade_mode: Optional[Union[str, "_models.AutoUpgradeMode"]] = rest_field( + name="autoUpgradeMode", visibility=["read", "create", "update", "delete", "query"] + ) + """The upgrade mode for auto upgrade. The default is \"compatible\". Known values are: \"none\", + \"patch\", and \"compatible\".""" + management_details: Optional["_models.ManagementDetails"] = rest_field( + name="managementDetails", visibility=["read", "create", "update", "delete", "query"] + ) + """Management details of the extension.""" + additional_details: Optional["_models.AdditionalDetails"] = rest_field( + name="additionalDetails", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional details provided by the publisher of the extension.""" + extension_state: Optional[str] = rest_field(name="extensionState", visibility=["read"]) + """State of the extension on the cluster.""" @overload def __init__( @@ -331,6 +455,9 @@ def __init__( configuration_protected_settings: Optional[dict[str, str]] = None, statuses: Optional[list["_models.ExtensionStatus"]] = None, aks_assigned_identity: Optional["_models.ExtensionPropertiesAksAssignedIdentity"] = None, + auto_upgrade_mode: Optional[Union[str, "_models.AutoUpgradeMode"]] = None, + management_details: Optional["_models.ManagementDetails"] = None, + additional_details: Optional["_models.AdditionalDetails"] = None, ) -> None: ... @overload @@ -351,8 +478,15 @@ class ExtensionPropertiesAksAssignedIdentity(_Model): :vartype principal_id: str :ivar tenant_id: The tenant ID of resource. :vartype tenant_id: str - :ivar type: The identity type. Known values are: "SystemAssigned" and "UserAssigned". + :ivar type: The identity type. Known values are: "SystemAssigned", "UserAssigned", and + "Workload". :vartype type: str or ~azure.mgmt.kubernetesconfiguration.extensions.models.AKSIdentityType + :ivar object_id: The object ID of resource identity. + :vartype object_id: str + :ivar client_id: The client ID of resource identity. + :vartype client_id: str + :ivar resource_id: The ID of the resource identity. + :vartype resource_id: str """ principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) @@ -362,13 +496,24 @@ class ExtensionPropertiesAksAssignedIdentity(_Model): type: Optional[Union[str, "_models.AKSIdentityType"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) - """The identity type. Known values are: \"SystemAssigned\" and \"UserAssigned\".""" + """The identity type. Known values are: \"SystemAssigned\", \"UserAssigned\", and \"Workload\".""" + object_id: Optional[str] = rest_field(name="objectId", visibility=["read", "create", "update", "delete", "query"]) + """The object ID of resource identity.""" + client_id: Optional[str] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client ID of resource identity.""" + resource_id: Optional[str] = rest_field( + name="resourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the resource identity.""" @overload def __init__( self, *, type: Optional[Union[str, "_models.AKSIdentityType"]] = None, + object_id: Optional[str] = None, + client_id: Optional[str] = None, + resource_id: Optional[str] = None, ) -> None: ... @overload @@ -473,6 +618,42 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) +class ManagementDetails(_Model): + """Metadata about the managing entity of the extension and the permitted operations. + + :ivar category: The category of the managing entity. + :vartype category: str + :ivar access_details: The list of access details of the managing entity. + :vartype access_details: + list[~azure.mgmt.kubernetesconfiguration.extensions.models.AccessDetail] + """ + + category: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The category of the managing entity.""" + access_details: Optional[list["_models.AccessDetail"]] = rest_field( + name="accessDetails", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of access details of the managing entity.""" + + @overload + def __init__( + self, + *, + category: Optional[str] = None, + access_details: Optional[list["_models.AccessDetail"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + class OperationStatusResult(_Model): """The current status of an async operation. @@ -535,6 +716,7 @@ class PatchExtension(_Model): __flattened_items = [ "auto_upgrade_minor_version", + "auto_upgrade_mode", "release_train", "version", "configuration_settings", @@ -583,6 +765,10 @@ class PatchExtensionProperties(_Model): :ivar auto_upgrade_minor_version: Flag to note if this extension participates in auto upgrade of minor version, or not. :vartype auto_upgrade_minor_version: bool + :ivar auto_upgrade_mode: The upgrade mode for auto upgrade. The default is "compatible". Known + values are: "none", "patch", and "compatible". + :vartype auto_upgrade_mode: str or + ~azure.mgmt.kubernetesconfiguration.extensions.models.AutoUpgradeMode :ivar release_train: ReleaseTrain this extension participates in for auto-upgrade (e.g. Stable, Preview, etc.) - only if autoUpgradeMinorVersion is 'true'. :vartype release_train: str @@ -601,6 +787,11 @@ class PatchExtensionProperties(_Model): name="autoUpgradeMinorVersion", visibility=["read", "create", "update", "delete", "query"] ) """Flag to note if this extension participates in auto upgrade of minor version, or not.""" + auto_upgrade_mode: Optional[Union[str, "_models.AutoUpgradeMode"]] = rest_field( + name="autoUpgradeMode", visibility=["read", "create", "update", "delete", "query"] + ) + """The upgrade mode for auto upgrade. The default is \"compatible\". Known values are: \"none\", + \"patch\", and \"compatible\".""" release_train: Optional[str] = rest_field( name="releaseTrain", visibility=["read", "create", "update", "delete", "query"] ) @@ -623,6 +814,7 @@ def __init__( self, *, auto_upgrade_minor_version: Optional[bool] = None, + auto_upgrade_mode: Optional[Union[str, "_models.AutoUpgradeMode"]] = None, release_train: Optional[str] = None, version: Optional[str] = None, configuration_settings: Optional[dict[str, str]] = None, diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/operations/_operations.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/operations/_operations.py index d437d8d7ff78..6bf3b87fb988 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/operations/_operations.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/azure/mgmt/kubernetesconfiguration/extensions/operations/_operations.py @@ -58,7 +58,7 @@ def build_extensions_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -96,7 +96,7 @@ def build_extensions_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -136,7 +136,7 @@ def build_extensions_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -176,7 +176,7 @@ def build_extensions_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensions/{extensionName}" path_format_arguments = { @@ -209,7 +209,7 @@ def build_extensions_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -246,7 +246,7 @@ def build_operation_status_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/create_extension.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/create_extension.py index 2fb6e670243d..df0f9ae9fdd1 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/create_extension.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/create_extension.py @@ -39,6 +39,7 @@ def main(): extension={ "properties": { "autoUpgradeMinorVersion": True, + "autoUpgradeMode": "compatible", "configurationProtectedSettings": {"omsagent.secret.key": "secretKeyValue01"}, "configurationSettings": { "omsagent.env.clusterName": "clusterName1", @@ -53,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2024-11-01/CreateExtension.json +# x-ms-original-file: 2025-03-01/CreateExtension.json if __name__ == "__main__": main() diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/create_extension_with_plan.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/create_extension_with_plan.py index a0023d48d24f..d38d83ce65e6 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/create_extension_with_plan.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/create_extension_with_plan.py @@ -42,12 +42,17 @@ def main(): "product": "azure-vote-standard-offer-id", "publisher": "Microsoft", }, - "properties": {"autoUpgradeMinorVersion": True, "extensionType": "azure-vote", "releaseTrain": "Preview"}, + "properties": { + "autoUpgradeMinorVersion": True, + "autoUpgradeMode": "compatible", + "extensionType": "azure-vote", + "releaseTrain": "Preview", + }, }, ).result() print(response) -# x-ms-original-file: 2024-11-01/CreateExtensionWithPlan.json +# x-ms-original-file: 2025-03-01/CreateExtensionWithPlan.json if __name__ == "__main__": main() diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/delete_extension.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/delete_extension.py index a497351de86e..d735f6c7221c 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/delete_extension.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/delete_extension.py @@ -39,6 +39,6 @@ def main(): ).result() -# x-ms-original-file: 2024-11-01/DeleteExtension.json +# x-ms-original-file: 2025-03-01/DeleteExtension.json if __name__ == "__main__": main() diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension.py index f4b9b93381e9..c5ac095d457a 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2024-11-01/GetExtension.json +# x-ms-original-file: 2025-03-01/GetExtension.json if __name__ == "__main__": main() diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_async_operation_status.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_async_operation_status.py index 4448e02c2884..7e56044dba50 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_async_operation_status.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_async_operation_status.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2024-11-01/GetExtensionAsyncOperationStatus.json +# x-ms-original-file: 2025-03-01/GetExtensionAsyncOperationStatus.json if __name__ == "__main__": main() diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_additional_details.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_additional_details.py new file mode 100644 index 000000000000..7b5800743ffe --- /dev/null +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_additional_details.py @@ -0,0 +1,45 @@ +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.kubernetesconfiguration.extensions import KubernetesConfigurationExtensionsMgmtClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-kubernetesconfiguration-extensions +# USAGE + python get_extension_with_additional_details.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = KubernetesConfigurationExtensionsMgmtClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.extensions.get( + resource_group_name="rg1", + cluster_rp="Microsoft.Kubernetes", + cluster_resource_name="connectedClusters", + cluster_name="clusterName1", + extension_name="ClusterMonitor", + ) + print(response) + + +# x-ms-original-file: 2025-03-01/GetExtensionWithAdditionalDetails.json +if __name__ == "__main__": + main() diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_extension_state.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_extension_state.py new file mode 100644 index 000000000000..5354da4318ad --- /dev/null +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_extension_state.py @@ -0,0 +1,45 @@ +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.kubernetesconfiguration.extensions import KubernetesConfigurationExtensionsMgmtClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-kubernetesconfiguration-extensions +# USAGE + python get_extension_with_extension_state.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = KubernetesConfigurationExtensionsMgmtClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.extensions.get( + resource_group_name="rg1", + cluster_rp="Microsoft.Kubernetes", + cluster_resource_name="connectedClusters", + cluster_name="clusterName1", + extension_name="ClusterMonitor", + ) + print(response) + + +# x-ms-original-file: 2025-03-01/GetExtensionWithExtensionState.json +if __name__ == "__main__": + main() diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_managed_by.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_managed_by.py new file mode 100644 index 000000000000..f83e0af3b973 --- /dev/null +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_managed_by.py @@ -0,0 +1,45 @@ +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.kubernetesconfiguration.extensions import KubernetesConfigurationExtensionsMgmtClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-kubernetesconfiguration-extensions +# USAGE + python get_extension_with_managed_by.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = KubernetesConfigurationExtensionsMgmtClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.extensions.get( + resource_group_name="rg1", + cluster_rp="Microsoft.ContainerService", + cluster_resource_name="managedClusters", + cluster_name="clusterName1", + extension_name="azureVote", + ) + print(response) + + +# x-ms-original-file: 2025-03-01/GetExtensionWithManagedBy.json +if __name__ == "__main__": + main() diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_management_details.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_management_details.py new file mode 100644 index 000000000000..bd6c382fcbd0 --- /dev/null +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_management_details.py @@ -0,0 +1,45 @@ +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.kubernetesconfiguration.extensions import KubernetesConfigurationExtensionsMgmtClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-kubernetesconfiguration-extensions +# USAGE + python get_extension_with_management_details.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = KubernetesConfigurationExtensionsMgmtClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.extensions.get( + resource_group_name="rg1", + cluster_rp="Microsoft.ContainerService", + cluster_resource_name="managedClusters", + cluster_name="clusterName1", + extension_name="azureVote", + ) + print(response) + + +# x-ms-original-file: 2025-03-01/GetExtensionWithManagementDetails.json +if __name__ == "__main__": + main() diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_plan.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_plan.py index 35131178dde4..d23095097cd0 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_plan.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/get_extension_with_plan.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2024-11-01/GetExtensionWithPlan.json +# x-ms-original-file: 2025-03-01/GetExtensionWithPlan.json if __name__ == "__main__": main() diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/list_extensions.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/list_extensions.py index 4f21362fb81b..283af5f85f10 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/list_extensions.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/list_extensions.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: 2024-11-01/ListExtensions.json +# x-ms-original-file: 2025-03-01/ListExtensions.json if __name__ == "__main__": main() diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/patch_extension.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/patch_extension.py index 86b5d20110b1..fcde25263c77 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/patch_extension.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_samples/patch_extension.py @@ -39,6 +39,7 @@ def main(): patch_extension={ "properties": { "autoUpgradeMinorVersion": True, + "autoUpgradeMode": "compatible", "configurationProtectedSettings": {"omsagent.secret.key": "secretKeyValue01"}, "configurationSettings": { "omsagent.env.clusterName": "clusterName1", @@ -51,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: 2024-11-01/PatchExtension.json +# x-ms-original-file: 2025-03-01/PatchExtension.json if __name__ == "__main__": main() diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_tests/test_kubernetes_configuration_extensions_mgmt_extensions_operations.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_tests/test_kubernetes_configuration_extensions_mgmt_extensions_operations.py index 8476b955fc22..40bea8559d79 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_tests/test_kubernetes_configuration_extensions_mgmt_extensions_operations.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_tests/test_kubernetes_configuration_extensions_mgmt_extensions_operations.py @@ -44,11 +44,21 @@ def test_extensions_begin_create(self, resource_group): extension={ "id": "str", "identity": {"principalId": "str", "tenantId": "str", "type": "str"}, + "managedBy": "str", "name": "str", "plan": {"name": "str", "product": "str", "publisher": "str", "promotionCode": "str", "version": "str"}, "properties": { - "aksAssignedIdentity": {"principalId": "str", "tenantId": "str", "type": "str"}, + "additionalDetails": {"docs": "str", "releaseNotes": "str", "troubleshootingGuide": "str"}, + "aksAssignedIdentity": { + "clientId": "str", + "objectId": "str", + "principalId": "str", + "resourceId": "str", + "tenantId": "str", + "type": "str", + }, "autoUpgradeMinorVersion": bool, + "autoUpgradeMode": "str", "configurationProtectedSettings": {"str": "str"}, "configurationSettings": {"str": "str"}, "currentVersion": "str", @@ -60,8 +70,13 @@ def test_extensions_begin_create(self, resource_group): "message": "str", "target": "str", }, + "extensionState": "str", "extensionType": "str", "isSystemExtension": bool, + "managementDetails": { + "accessDetails": [{"allowedActions": ["str"], "description": "str", "entity": "str"}], + "category": "str", + }, "packageUri": "str", "provisioningState": "str", "releaseTrain": "str", @@ -98,6 +113,7 @@ def test_extensions_begin_update(self, resource_group): patch_extension={ "properties": { "autoUpgradeMinorVersion": bool, + "autoUpgradeMode": "str", "configurationProtectedSettings": {"str": "str"}, "configurationSettings": {"str": "str"}, "releaseTrain": "str", diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_tests/test_kubernetes_configuration_extensions_mgmt_extensions_operations_async.py b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_tests/test_kubernetes_configuration_extensions_mgmt_extensions_operations_async.py index 531d9a6e9489..6679f8b9ec8f 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_tests/test_kubernetes_configuration_extensions_mgmt_extensions_operations_async.py +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/generated_tests/test_kubernetes_configuration_extensions_mgmt_extensions_operations_async.py @@ -46,6 +46,7 @@ async def test_extensions_begin_create(self, resource_group): extension={ "id": "str", "identity": {"principalId": "str", "tenantId": "str", "type": "str"}, + "managedBy": "str", "name": "str", "plan": { "name": "str", @@ -55,8 +56,17 @@ async def test_extensions_begin_create(self, resource_group): "version": "str", }, "properties": { - "aksAssignedIdentity": {"principalId": "str", "tenantId": "str", "type": "str"}, + "additionalDetails": {"docs": "str", "releaseNotes": "str", "troubleshootingGuide": "str"}, + "aksAssignedIdentity": { + "clientId": "str", + "objectId": "str", + "principalId": "str", + "resourceId": "str", + "tenantId": "str", + "type": "str", + }, "autoUpgradeMinorVersion": bool, + "autoUpgradeMode": "str", "configurationProtectedSettings": {"str": "str"}, "configurationSettings": {"str": "str"}, "currentVersion": "str", @@ -68,8 +78,13 @@ async def test_extensions_begin_create(self, resource_group): "message": "str", "target": "str", }, + "extensionState": "str", "extensionType": "str", "isSystemExtension": bool, + "managementDetails": { + "accessDetails": [{"allowedActions": ["str"], "description": "str", "entity": "str"}], + "category": "str", + }, "packageUri": "str", "provisioningState": "str", "releaseTrain": "str", @@ -108,6 +123,7 @@ async def test_extensions_begin_update(self, resource_group): patch_extension={ "properties": { "autoUpgradeMinorVersion": bool, + "autoUpgradeMode": "str", "configurationProtectedSettings": {"str": "str"}, "configurationSettings": {"str": "str"}, "releaseTrain": "str", diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/pyproject.toml b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/pyproject.toml index 7778b74b022a..8de89a2a824a 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/pyproject.toml +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/pyproject.toml @@ -13,7 +13,7 @@ authors = [ description = "Microsoft Azure Extensions Management Client Library for Python" license = "MIT" classifiers = [ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", @@ -78,7 +78,7 @@ package_name = "azure-mgmt-kubernetesconfiguration-extensions" package_nspkg = "azure-mgmt-kubernetesconfiguration-nspkg" package_pprint_name = "Kubernetesconfiguration-extensions Management" package_doc_id = "" -is_stable = false +is_stable = true is_arm = true need_msrestazure = false need_azuremgmtcore = true diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/tsp-location.yaml b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/tsp-location.yaml index e80f76cc3f9b..7e6bd8e91023 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/tsp-location.yaml +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration-extensions/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensions -commit: bf2f971b4319da9f5624da7f3c13d487be477897 +commit: 0758803aaaacc14ce831053cf0eb592e09e14f93 repo: Azure/azure-rest-api-specs additionalDirectories: