Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Release History

## 1.0.0b2 (2026-03-18)

### Features Added

- Client `KubernetesConfigurationPrivateLinkScopesMgmtClient` added parameter `cloud_setting` in method `__init__`
- Client `KubernetesConfigurationPrivateLinkScopesMgmtClient` added method `send_request`
- Model `PrivateEndpointConnectionListResult` added property `next_link`
- Model `PrivateLinkResourceListResult` added property `next_link`
- Added model `ProxyResource`

### Breaking Changes

- This version introduces new hybrid models which have dual dictionary and model nature. Please follow https://aka.ms/azsdk/python/migrate/hybrid-models for migration.

## 1.0.0b1 (2025-06-16)

### Other Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
recursive-include tests *.py *.json
recursive-include samples *.py *.md
include *.md
include LICENSE
include azure/mgmt/kubernetesconfiguration/privatelinkscopes/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/__init__.py
include azure/mgmt/__init__.py
include azure/mgmt/kubernetesconfiguration/__init__.py
include LICENSE
include azure/mgmt/kubernetesconfiguration/privatelinkscopes/py.typed
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"commit": "9461a6b83915d6d2d61978e560c938ff90d95aae",
"apiVersion": "2024-11-01-preview",
"apiVersions": {
"Microsoft.KubernetesConfiguration": "2024-11-01-preview"
},
"commit": "bf2f971b4319da9f5624da7f3c13d487be477897",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.35.0",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/privateLinkScopes/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/python@6.35.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/privateLinkScopes/readme.md"
"typespec_src": "specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/privateLinkScopes",
"emitterVersion": "0.61.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"CrossLanguagePackageId": "Microsoft.KubernetesConfiguration",
"CrossLanguageDefinitionId": {
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.KubernetesConfigurationPrivateLinkScope": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScope",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.KubernetesConfigurationPrivateLinkScopeProperties": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScopeProperties",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.PrivateEndpoint": "Azure.ResourceManager.CommonTypes.PrivateEndpoint",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.PrivateEndpointConnection": "Microsoft.KubernetesConfiguration.PrivateEndpointConnection",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.PrivateEndpointConnectionListResult": "Azure.ResourceManager.ResourceListResult",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.PrivateEndpointConnectionProperties": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.PrivateLinkResource": "Microsoft.KubernetesConfiguration.PrivateLinkResource",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.PrivateLinkResourceListResult": "Azure.ResourceManager.ResourceListResult",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.PrivateLinkResourceProperties": "Azure.ResourceManager.CommonTypes.PrivateLinkResourceProperties",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.PrivateLinkServiceConnectionState": "Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.TagsResource": "Microsoft.KubernetesConfiguration.TagsResource",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.PrivateEndpointServiceConnectionStatus": "Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.PrivateEndpointConnectionProvisioningState": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.PublicNetworkAccessType": "Microsoft.KubernetesConfiguration.PublicNetworkAccessType",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.models.ProvisioningState": "Microsoft.KubernetesConfiguration.ProvisioningState",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateLinkResourcesOperations.get": "Microsoft.KubernetesConfiguration.PrivateLinkResources.get",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.aio.operations.PrivateLinkResourcesOperations.get": "Microsoft.KubernetesConfiguration.PrivateLinkResources.get",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateLinkResourcesOperations.list_by_private_link_scope": "Microsoft.KubernetesConfiguration.PrivateLinkResources.listByPrivateLinkScope",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.aio.operations.PrivateLinkResourcesOperations.list_by_private_link_scope": "Microsoft.KubernetesConfiguration.PrivateLinkResources.listByPrivateLinkScope",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateEndpointConnectionsOperations.get": "Microsoft.KubernetesConfiguration.PrivateEndpointConnections.get",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.aio.operations.PrivateEndpointConnectionsOperations.get": "Microsoft.KubernetesConfiguration.PrivateEndpointConnections.get",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateEndpointConnectionsOperations.begin_create_or_update": "Microsoft.KubernetesConfiguration.PrivateEndpointConnections.createOrUpdate",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.aio.operations.PrivateEndpointConnectionsOperations.begin_create_or_update": "Microsoft.KubernetesConfiguration.PrivateEndpointConnections.createOrUpdate",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateEndpointConnectionsOperations.delete": "Microsoft.KubernetesConfiguration.PrivateEndpointConnections.delete",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.aio.operations.PrivateEndpointConnectionsOperations.delete": "Microsoft.KubernetesConfiguration.PrivateEndpointConnections.delete",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateEndpointConnectionsOperations.list_by_private_link_scope": "Microsoft.KubernetesConfiguration.PrivateEndpointConnections.listByPrivateLinkScope",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.aio.operations.PrivateEndpointConnectionsOperations.list_by_private_link_scope": "Microsoft.KubernetesConfiguration.PrivateEndpointConnections.listByPrivateLinkScope",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateLinkScopesOperations.get": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScopes.get",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.aio.operations.PrivateLinkScopesOperations.get": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScopes.get",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateLinkScopesOperations.create_or_update": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScopes.createOrUpdate",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.aio.operations.PrivateLinkScopesOperations.create_or_update": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScopes.createOrUpdate",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateLinkScopesOperations.update_tags": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScopes.updateTags",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.aio.operations.PrivateLinkScopesOperations.update_tags": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScopes.updateTags",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateLinkScopesOperations.delete": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScopes.delete",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.aio.operations.PrivateLinkScopesOperations.delete": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScopes.delete",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateLinkScopesOperations.list_by_resource_group": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScopes.listByResourceGroup",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.aio.operations.PrivateLinkScopesOperations.list_by_resource_group": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScopes.listByResourceGroup",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateLinkScopesOperations.list": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScopes.list",
"azure.mgmt.kubernetesconfiguration.privatelinkscopes.aio.operations.PrivateLinkScopesOperations.list": "Microsoft.KubernetesConfiguration.KubernetesConfigurationPrivateLinkScopes.list"
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# pylint: disable=line-too-long,useless-suppression
# 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.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position
Expand All @@ -13,7 +12,7 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._kubernetes_configuration_private_link_scopes_mgmt_client import KubernetesConfigurationPrivateLinkScopesMgmtClient # type: ignore
from ._client import KubernetesConfigurationPrivateLinkScopesMgmtClient # type: ignore
from ._version import VERSION

__version__ = VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# --------------------------------------------------------------------------
# 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.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

Expand All @@ -17,7 +17,6 @@
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
from azure.mgmt.core.tools import get_arm_endpoints

from . import models as _models
from ._configuration import KubernetesConfigurationPrivateLinkScopesMgmtClientConfiguration
from ._utils.serialization import Deserializer, Serializer
from .operations import (
Expand All @@ -27,44 +26,61 @@
)

if TYPE_CHECKING:
from azure.core import AzureClouds
from azure.core.credentials import TokenCredential


class KubernetesConfigurationPrivateLinkScopesMgmtClient: # pylint: disable=name-too-long
"""PrivateLinkScopes Client.
"""Azure Arc K8s Clusters API reference for Private Link's Scopes management.

:ivar private_link_scopes: PrivateLinkScopesOperations operations
:vartype private_link_scopes:
azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateLinkScopesOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources:
azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateLinkResourcesOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections:
azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateEndpointConnectionsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:ivar private_link_scopes: PrivateLinkScopesOperations operations
:vartype private_link_scopes:
azure.mgmt.kubernetesconfiguration.privatelinkscopes.operations.PrivateLinkScopesOperations
:param credential: Credential used to authenticate requests to the service. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is None.
:param base_url: Service host. Default value is None.
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-11-01-preview". Note that overriding
this default value may result in unsupported behavior.
: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-preview" and None. Default value is "2024-11-01-preview". 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
Retry-After header is present.
"""

def __init__(
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
self,
credential: "TokenCredential",
subscription_id: str,
base_url: Optional[str] = None,
*,
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
_endpoint = "{endpoint}"
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
_endpoints = get_arm_endpoints(_cloud)
if not base_url:
base_url = _endpoints["resource_manager"]
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
self._config = KubernetesConfigurationPrivateLinkScopesMgmtClientConfiguration(
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
credential=credential,
subscription_id=subscription_id,
base_url=cast(str, base_url),
cloud_setting=cloud_setting,
credential_scopes=credential_scopes,
**kwargs
)

_policies = kwargs.pop("policies", None)
Expand All @@ -85,29 +101,28 @@ def __init__(
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
self._config.http_logging_policy,
]
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, _endpoint), policies=_policies, **kwargs)

client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize = Serializer()
self._deserialize = Deserializer()
self._serialize.client_side_validation = False
self.private_link_scopes = PrivateLinkScopesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_link_scopes = PrivateLinkScopesOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.

>>> from azure.core.rest import HttpRequest
>>> request = HttpRequest("GET", "https://www.example.org/")
<HttpRequest [GET], url: 'https://www.example.org/'>
>>> response = client._send_request(request)
>>> response = client.send_request(request)
<HttpResponse: 200 OK>

For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
Expand All @@ -120,7 +135,11 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
"""

request_copy = deepcopy(request)
request_copy.url = self._client.format_url(request_copy.url)
path_format_arguments = {
"endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
}

request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments)
return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore

def close(self) -> None:
Expand Down
Loading