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
64 changes: 64 additions & 0 deletions sdk/relay/azure-mgmt-relay/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,69 @@
# Release History

## 2.0.0 (2026-07-25)

### Features Added

- Model `AuthorizationRule` added property `location`
- Model `AuthorizationRule` added property `system_data`
- Model `HybridConnection` added property `location`
- Model `HybridConnection` added property `system_data`
- Model `Operation` added property `action_type`
- Model `Operation` added property `is_data_action`
- Model `Operation` added property `origin`
- Model `OperationDisplay` added property `description`
- Model `RelayNamespace` added property `system_data`
- Model `RelayUpdateParameters` added property `system_data`
- Model `Resource` added property `system_data`
- Model `ResourceNamespacePatch` added property `system_data`
- Model `TrackedResource` added property `system_data`
- Model `WcfRelay` added property `location`
- Model `WcfRelay` added property `system_data`
- Added enum `ActionType`
- Added model `ConnectionState`
- Added enum `CreatedByType`
- Added enum `DefaultAction`
- Added enum `EndPointProvisioningState`
- Added model `ErrorAdditionalInfo`
- Added model `NWRuleSetIpRules`
- Added enum `NetworkRuleIPAction`
- Added model `NetworkRuleSet`
- Added model `NetworkRuleSetProperties`
- Added enum `Origin`
- Added model `PrivateEndpoint`
- Added model `PrivateEndpointConnection`
- Added model `PrivateEndpointConnectionProperties`
- Added enum `PrivateLinkConnectionStatus`
- Added model `PrivateLinkResource`
- Added model `PrivateLinkResourceProperties`
- Added model `PrivateLinkResourcesListResult`
- Added model `ProxyResource`
- Added enum `PublicNetworkAccess`
- Added enum `SkuName`
- Added enum `SkuTier`
- Added model `SystemData`
- Added enum `TlsVersion`
Comment thread
ChenxiJiang333 marked this conversation as resolved.
- Operation group `NamespacesOperations` added method `create_or_update_network_rule_set`
- Operation group `NamespacesOperations` added method `get_network_rule_set`
- Added operation group `PrivateEndpointConnectionsOperations`
- Added operation group `PrivateLinkResourcesOperations`

### 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.
- Renamed client `RelayAPI` to `RelayAPIMgmtClient`
- Model `AuthorizationRule` moved instance variable `rights` under property `properties` whose type is `AuthorizationRuleProperties`
- Model `ErrorResponse` moved instance variable `code` and `message` under property `error` whose type is `ErrorDetail`
- Model `HybridConnection` moved instance variable `created_at`, `listener_count`, `requires_client_authorization`, `updated_at` and `user_metadata` under property `properties` whose type is `HybridConnectionProperties`
- Model `RelayNamespace` moved instance variable `created_at`, `metric_id`, `provisioning_state`, `service_bus_endpoint` and `updated_at` under property `properties` whose type is `RelayNamespaceProperties`
- Model `RelayUpdateParameters` moved instance variable `created_at`, `metric_id`, `provisioning_state`, `service_bus_endpoint` and `updated_at` under property `properties` whose type is `RelayNamespaceProperties`
- Model `WcfRelay` moved instance variable `created_at`, `is_dynamic`, `listener_count`, `relay_type`, `requires_client_authorization`, `requires_transport_security`, `updated_at` and `user_metadata` under property `properties` whose type is `WcfRelayProperties`
- Deleted or renamed model `ProvisioningStateEnum`

### Other Changes

- Deleted model `AuthorizationRuleListResult`/`HybridConnectionListResult`/`OperationListResult`/`RelayNamespaceListResult`/`WcfRelaysListResult` which actually were not used by SDK users

## 2.0.0b2 (2026-07-06)

### Features Added
Expand Down
10 changes: 5 additions & 5 deletions sdk/relay/azure-mgmt-relay/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"apiVersion": "2024-01-01",
"apiVersion": "2026-01-01",
"apiVersions": {
"Microsoft.Relay": "2024-01-01"
"Microsoft.Relay": "2026-01-01"
},
"commit": "3d1de464b5576fa149aed429795f6030313e31bb",
"commit": "e03e8c1a6ebebcd8e8c303ce938b810546bd8a06",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/relay/resource-manager/Microsoft.Relay/Relay",
"emitterVersion": "0.63.2",
"httpClientPythonVersion": "^0.34.0"
"emitterVersion": "0.63.3",
"httpClientPythonVersion": "^0.34.2"
}
108 changes: 9 additions & 99 deletions sdk/relay/azure-mgmt-relay/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,7 @@ namespace azure.mgmt.relay.models
class azure.mgmt.relay.models.RelayNamespaceProperties(_Model):
created_at: Optional[datetime]
metric_id: Optional[str]
minimum_tls_version: Optional[Union[str, TlsVersion]]
private_endpoint_connections: Optional[list[PrivateEndpointConnection]]
provisioning_state: Optional[str]
public_network_access: Optional[Union[str, PublicNetworkAccess]]
Expand All @@ -1347,6 +1348,7 @@ namespace azure.mgmt.relay.models
def __init__(
self,
*,
minimum_tls_version: Optional[Union[str, TlsVersion]] = ...,
private_endpoint_connections: Optional[list[PrivateEndpointConnection]] = ...,
public_network_access: Optional[Union[str, PublicNetworkAccess]] = ...
) -> None: ...
Expand Down Expand Up @@ -1463,6 +1465,11 @@ namespace azure.mgmt.relay.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...


class azure.mgmt.relay.models.TlsVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
ENUM_1_2 = "1.2"
ENUM_1_3 = "1.3"


class azure.mgmt.relay.models.TrackedResource(Resource):
id: str
location: str
Expand Down Expand Up @@ -2308,19 +2315,6 @@ namespace azure.mgmt.relay.operations

namespace azure.mgmt.relay.types

class azure.mgmt.relay.types.AccessKeys(TypedDict, total=False):
key "keyName": str
key "primaryConnectionString": str
key "primaryKey": str
key "secondaryConnectionString": str
key "secondaryKey": str
key_name: str
primary_connection_string: str
primary_key: str
secondary_connection_string: str
secondary_key: str


class azure.mgmt.relay.types.AuthorizationRule(ProxyResource):
key "id": str
key "location": str
Expand All @@ -2346,46 +2340,13 @@ namespace azure.mgmt.relay.types
name: str


class azure.mgmt.relay.types.CheckNameAvailabilityResult(TypedDict, total=False):
key "message": str
key "nameAvailable": bool
key "reason": Union[str, UnavailableReason]
message: str
name_available: bool
reason: Union[str, UnavailableReason]


class azure.mgmt.relay.types.ConnectionState(TypedDict, total=False):
key "description": str
key "status": Union[str, PrivateLinkConnectionStatus]
description: str
status: Union[str, PrivateLinkConnectionStatus]


class azure.mgmt.relay.types.ErrorAdditionalInfo(TypedDict, total=False):
key "info": Any
key "type": str
info: Any
type: str


class azure.mgmt.relay.types.ErrorDetail(TypedDict, total=False):
key "code": str
key "message": str
key "target": str
additionalInfo: list[ErrorAdditionalInfo]
additional_info: list[ErrorAdditionalInfo]
code: str
details: list[ErrorDetail]
message: str
target: str


class azure.mgmt.relay.types.ErrorResponse(TypedDict, total=False):
key "error": ForwardRef('ErrorDetail', module='types')
error: ErrorDetail


class azure.mgmt.relay.types.HybridConnection(ProxyResource):
key "id": str
key "location": str
Expand Down Expand Up @@ -2445,30 +2406,6 @@ namespace azure.mgmt.relay.types
trusted_service_access_enabled: bool


class azure.mgmt.relay.types.Operation(TypedDict, total=False):
key "actionType": Union[str, ActionType]
key "display": ForwardRef('OperationDisplay', module='types')
key "isDataAction": bool
key "name": str
key "origin": Union[str, Origin]
action_type: Union[str, ActionType]
display: OperationDisplay
is_data_action: bool
name: str
origin: Union[str, Origin]


class azure.mgmt.relay.types.OperationDisplay(TypedDict, total=False):
key "description": str
key "operation": str
key "provider": str
key "resource": str
description: str
operation: str
provider: str
resource: str


class azure.mgmt.relay.types.PrivateEndpoint(TypedDict, total=False):
key "id": str
id: str
Expand Down Expand Up @@ -2498,35 +2435,6 @@ namespace azure.mgmt.relay.types
provisioning_state: Union[str, EndPointProvisioningState]


class azure.mgmt.relay.types.PrivateLinkResource(ProxyResource):
key "id": str
key "name": str
key "properties": ForwardRef('PrivateLinkResourceProperties', module='types')
key "systemData": ForwardRef('SystemData', module='types')
key "type": str
id: str
name: str
properties: PrivateLinkResourceProperties
system_data: SystemData
type: str


class azure.mgmt.relay.types.PrivateLinkResourceProperties(TypedDict, total=False):
key "groupId": str
group_id: str
requiredMembers: list[str]
requiredZoneNames: list[str]
required_members: list[str]
required_zone_names: list[str]


class azure.mgmt.relay.types.PrivateLinkResourcesListResult(TypedDict, total=False):
key "nextLink": str
key "value": Required[list[PrivateLinkResource]]
next_link: str
value: list[PrivateLinkResource]


class azure.mgmt.relay.types.ProxyResource(Resource):
key "id": str
key "name": str
Expand Down Expand Up @@ -2566,13 +2474,15 @@ namespace azure.mgmt.relay.types
class azure.mgmt.relay.types.RelayNamespaceProperties(TypedDict, total=False):
key "createdAt": str
key "metricId": str
key "minimumTlsVersion": Union[str, TlsVersion]
key "provisioningState": str
key "publicNetworkAccess": Union[str, PublicNetworkAccess]
key "serviceBusEndpoint": str
key "status": str
key "updatedAt": str
created_at: str
metric_id: str
minimum_tls_version: Union[str, TlsVersion]
privateEndpointConnections: list[PrivateEndpointConnection]
private_endpoint_connections: list[PrivateEndpointConnection]
provisioning_state: str
Expand Down
6 changes: 3 additions & 3 deletions sdk/relay/azure-mgmt-relay/api.metadata.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiMdSha256: 3ba6ed3999b5a7a531979e25ffcab204c019f58466ea5d693cc152f0a01bfb26
parserVersion: 0.3.28
pythonVersion: 3.13.13
apiMdSha256: 94dcc7b0c556fdd39f227d885018474179701aa74dbd4c85aea9657305db6b43
parserVersion: 0.3.30
pythonVersion: 3.13.14
3 changes: 2 additions & 1 deletion sdk/relay/azure-mgmt-relay/apiview-properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"azure.mgmt.relay.models.PrivateLinkConnectionStatus": "Microsoft.Relay.PrivateLinkConnectionStatus",
"azure.mgmt.relay.models.EndPointProvisioningState": "Microsoft.Relay.EndPointProvisioningState",
"azure.mgmt.relay.models.PublicNetworkAccess": "Microsoft.Relay.PublicNetworkAccess",
"azure.mgmt.relay.models.TlsVersion": "Microsoft.Relay.TlsVersion",
"azure.mgmt.relay.models.SkuName": "Microsoft.Relay.SkuName",
"azure.mgmt.relay.models.SkuTier": "Microsoft.Relay.SkuTier",
"azure.mgmt.relay.models.DefaultAction": "Microsoft.Relay.DefaultAction",
Expand Down Expand Up @@ -134,5 +135,5 @@
"azure.mgmt.relay.operations.NamespacesOperations.check_name_availability": "Microsoft.Relay.NamespacesOperationGroup.checkNameAvailability",
"azure.mgmt.relay.aio.operations.NamespacesOperations.check_name_availability": "Microsoft.Relay.NamespacesOperationGroup.checkNameAvailability"
},
"CrossLanguageVersion": "52ef10b94093"
"CrossLanguageVersion": "c5b063e0f415"
}
2 changes: 1 addition & 1 deletion sdk/relay/azure-mgmt-relay/azure/mgmt/relay/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class RelayAPIMgmtClient:
: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-01-01"
:keyword api_version: The API version to use for this operation. Known values are "2026-01-01"
and None. Default value is None. If not set, the operation's default API version will be used.
Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class RelayAPIMgmtClientConfiguration: # pylint: disable=too-many-instance-attr
: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-01-01"
:keyword api_version: The API version to use for this operation. Known values are "2026-01-01"
and None. Default value is None. If not set, the operation's default API version will be used.
Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
Expand All @@ -47,7 +47,7 @@ def __init__(
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
api_version: str = kwargs.pop("api_version", "2024-01-01")
api_version: str = kwargs.pop("api_version", "2026-01-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,21 +458,21 @@ def __ne__(self, other: typing.Any) -> bool:

def keys(self) -> typing.KeysView[str]:
"""
:returns: a set-like object providing a view on D's keys
:returns: a set-like object providing a view on the mapping's keys
:rtype: ~typing.KeysView
"""
return self._data.keys()

def values(self) -> typing.ValuesView[typing.Any]:
"""
:returns: an object providing a view on D's values
:returns: an object providing a view on the mapping's values
:rtype: ~typing.ValuesView
"""
return self._data.values()

def items(self) -> typing.ItemsView[str, typing.Any]:
"""
:returns: set-like object providing a view on D's items
:returns: a set-like object providing a view on the mapping's items
:rtype: ~typing.ItemsView
"""
return self._data.items()
Expand All @@ -482,7 +482,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any:
Get the value for key if key is in the dictionary, else default.
:param str key: The key to look up.
:param any default: The value to return if key is not in the dictionary. Defaults to None
:returns: D[k] if k in D, else d.
:returns: The value for key if key is in the dictionary, else default.
:rtype: any
"""
try:
Expand Down Expand Up @@ -517,19 +517,19 @@ def popitem(self) -> tuple[str, typing.Any]:
Removes and returns some (key, value) pair
:returns: The (key, value) pair.
:rtype: tuple
:raises KeyError: if D is empty.
:raises KeyError: if the dictionary is empty.
"""
return self._data.popitem()

def clear(self) -> None:
"""
Remove all items from D.
Remove all items from the dictionary.
"""
self._data.clear()

def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ
"""
Updates D from mapping/iterable E and F.
Update the dictionary from a mapping or an iterable of key-value pairs.
:param any args: Either a mapping object or an iterable of key-value pairs.
"""
self._data.update(*args, **kwargs)
Expand All @@ -542,10 +542,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint

def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any:
"""
Same as calling D.get(k, d), and setting D[k]=d if k not found
Return the value for key if key is in the dictionary; otherwise set the key to
default and return default.
:param str key: The key to look up.
:param any default: The value to set if key is not in the dictionary
:returns: D[k] if k in D, else d.
:returns: The value for key if key is in the dictionary, else default.
:rtype: any
"""
if default is _UNSET:
Expand Down
2 changes: 1 addition & 1 deletion sdk/relay/azure-mgmt-relay/azure/mgmt/relay/_version.py
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 = "2.0.0b2"
VERSION = "2.0.0"
Loading
Loading