Skip to content

Commit 0674df4

Browse files
[AutoRelease] t2-cognitiveservices-2025-08-27-17116(can only be merged by SDK owner) (#42723)
* code and test * update changelog --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent f9f50be commit 0674df4

17 files changed

+456
-49
lines changed

sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Release History
22

3+
## 14.0.0 (2025-09-22)
4+
5+
### Features Added
6+
7+
- Added model `NetworkInjection`
8+
9+
### Breaking Changes
10+
11+
- Deleted or renamed model `NetworkInjections`
12+
- Deleted or renamed operation group `CognitiveServicesManagementClientOperationsMixin`
13+
314
## 13.7.0 (2025-07-21)
415

516
### Features Added
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "8ae0d9c888888dd1d8776aad67e156f403d4d840",
2+
"commit": "4bf96d0b0334d1f2e95205ca8f0d7495f7db2f0f",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.35.0",
6+
"@autorest/python@6.38.2",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/cognitiveservices/resource-manager/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/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/cognitiveservices/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --keep-setup-py=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-2025-06-01 --use=@autorest/python@6.38.2 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/cognitiveservices/resource-manager/readme.md"
1111
}

sdk/cognitiveservices/azure-mgmt-cognitiveservices/apiview-properties.json

Lines changed: 400 additions & 0 deletions
Large diffs are not rendered by default.

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_cognitive_services_management_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
AccountCapabilityHostsOperations,
2525
AccountConnectionsOperations,
2626
AccountsOperations,
27-
CognitiveServicesManagementClientOperationsMixin,
2827
CommitmentPlansOperations,
2928
CommitmentTiersOperations,
3029
DefenderForAISettingsOperations,
@@ -47,14 +46,15 @@
4746
RaiPoliciesOperations,
4847
ResourceSkusOperations,
4948
UsagesOperations,
49+
_CognitiveServicesManagementClientOperationsMixin,
5050
)
5151

5252
if TYPE_CHECKING:
5353
from azure.core.credentials import TokenCredential
5454

5555

5656
class CognitiveServicesManagementClient(
57-
CognitiveServicesManagementClientOperationsMixin
57+
_CognitiveServicesManagementClientOperationsMixin
5858
): # pylint: disable=too-many-instance-attributes
5959
"""Cognitive Services Management Client.
6060

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "13.7.0"
9+
VERSION = "14.0.0"

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_cognitive_services_management_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
AccountCapabilityHostsOperations,
2525
AccountConnectionsOperations,
2626
AccountsOperations,
27-
CognitiveServicesManagementClientOperationsMixin,
2827
CommitmentPlansOperations,
2928
CommitmentTiersOperations,
3029
DefenderForAISettingsOperations,
@@ -47,14 +46,15 @@
4746
RaiPoliciesOperations,
4847
ResourceSkusOperations,
4948
UsagesOperations,
49+
_CognitiveServicesManagementClientOperationsMixin,
5050
)
5151

5252
if TYPE_CHECKING:
5353
from azure.core.credentials_async import AsyncTokenCredential
5454

5555

5656
class CognitiveServicesManagementClient(
57-
CognitiveServicesManagementClientOperationsMixin
57+
_CognitiveServicesManagementClientOperationsMixin
5858
): # pylint: disable=too-many-instance-attributes
5959
"""Cognitive Services Management Client.
6060

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from ._resource_skus_operations import ResourceSkusOperations # type: ignore
1919
from ._usages_operations import UsagesOperations # type: ignore
2020
from ._operations import Operations # type: ignore
21-
from ._cognitive_services_management_client_operations import CognitiveServicesManagementClientOperationsMixin # type: ignore
21+
from ._cognitive_services_management_client_operations import _CognitiveServicesManagementClientOperationsMixin # type: ignore # pylint: disable=unused-import
2222
from ._commitment_tiers_operations import CommitmentTiersOperations # type: ignore
2323
from ._models_operations import ModelsOperations # type: ignore
2424
from ._location_based_model_capacities_operations import LocationBasedModelCapacitiesOperations # type: ignore
@@ -50,7 +50,6 @@
5050
"ResourceSkusOperations",
5151
"UsagesOperations",
5252
"Operations",
53-
"CognitiveServicesManagementClientOperationsMixin",
5453
"CommitmentTiersOperations",
5554
"ModelsOperations",
5655
"LocationBasedModelCapacitiesOperations",

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_cognitive_services_management_client_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
3838

3939

40-
class CognitiveServicesManagementClientOperationsMixin( # pylint: disable=name-too-long
40+
class _CognitiveServicesManagementClientOperationsMixin(
4141
ClientMixinABC[AsyncPipelineClient[HttpRequest, AsyncHttpResponse], CognitiveServicesManagementClientConfiguration]
4242
):
4343

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
ModelSku,
9999
ModelSkuCapacityProperties,
100100
MultiRegionSettings,
101-
NetworkInjections,
101+
NetworkInjection,
102102
NetworkRuleSet,
103103
NetworkSecurityPerimeter,
104104
NetworkSecurityPerimeterAccessRule,
@@ -308,7 +308,7 @@
308308
"ModelSku",
309309
"ModelSkuCapacityProperties",
310310
"MultiRegionSettings",
311-
"NetworkInjections",
311+
"NetworkInjection",
312312
"NetworkRuleSet",
313313
"NetworkSecurityPerimeter",
314314
"NetworkSecurityPerimeterAccessRule",

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models_py3.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,10 +1222,8 @@ class AccountProperties(_serialization.Model):
12221222
:vartype abuse_penalty: ~azure.mgmt.cognitiveservices.models.AbusePenalty
12231223
:ivar rai_monitor_config: Cognitive Services Rai Monitor Config.
12241224
:vartype rai_monitor_config: ~azure.mgmt.cognitiveservices.models.RaiMonitorConfig
1225-
:ivar network_injections: Specifies in AI Foundry where virtual network injection occurs to
1226-
secure scenarios like Agents entirely within the user's private network, eliminating public
1227-
internet exposure while maintaining control over network configurations and resources.
1228-
:vartype network_injections: ~azure.mgmt.cognitiveservices.models.NetworkInjections
1225+
:ivar network_injections:
1226+
:vartype network_injections: list[~azure.mgmt.cognitiveservices.models.NetworkInjection]
12291227
:ivar allow_project_management: Specifies whether this resource support project management as
12301228
child resources, used as containers for access management, data isolation and cost in AI
12311229
Foundry.
@@ -1287,7 +1285,7 @@ class AccountProperties(_serialization.Model):
12871285
"commitment_plan_associations": {"key": "commitmentPlanAssociations", "type": "[CommitmentPlanAssociation]"},
12881286
"abuse_penalty": {"key": "abusePenalty", "type": "AbusePenalty"},
12891287
"rai_monitor_config": {"key": "raiMonitorConfig", "type": "RaiMonitorConfig"},
1290-
"network_injections": {"key": "networkInjections", "type": "NetworkInjections"},
1288+
"network_injections": {"key": "networkInjections", "type": "[NetworkInjection]"},
12911289
"allow_project_management": {"key": "allowProjectManagement", "type": "bool"},
12921290
"default_project": {"key": "defaultProject", "type": "str"},
12931291
"associated_projects": {"key": "associatedProjects", "type": "[str]"},
@@ -1311,7 +1309,7 @@ def __init__( # pylint: disable=too-many-locals
13111309
restore: Optional[bool] = None,
13121310
locations: Optional["_models.MultiRegionSettings"] = None,
13131311
rai_monitor_config: Optional["_models.RaiMonitorConfig"] = None,
1314-
network_injections: Optional["_models.NetworkInjections"] = None,
1312+
network_injections: Optional[List["_models.NetworkInjection"]] = None,
13151313
allow_project_management: Optional[bool] = None,
13161314
default_project: Optional[str] = None,
13171315
associated_projects: Optional[List[str]] = None,
@@ -1351,10 +1349,8 @@ def __init__( # pylint: disable=too-many-locals
13511349
:paramtype locations: ~azure.mgmt.cognitiveservices.models.MultiRegionSettings
13521350
:keyword rai_monitor_config: Cognitive Services Rai Monitor Config.
13531351
:paramtype rai_monitor_config: ~azure.mgmt.cognitiveservices.models.RaiMonitorConfig
1354-
:keyword network_injections: Specifies in AI Foundry where virtual network injection occurs to
1355-
secure scenarios like Agents entirely within the user's private network, eliminating public
1356-
internet exposure while maintaining control over network configurations and resources.
1357-
:paramtype network_injections: ~azure.mgmt.cognitiveservices.models.NetworkInjections
1352+
:keyword network_injections:
1353+
:paramtype network_injections: list[~azure.mgmt.cognitiveservices.models.NetworkInjection]
13581354
:keyword allow_project_management: Specifies whether this resource support project management
13591355
as child resources, used as containers for access management, data isolation and cost in AI
13601356
Foundry.
@@ -4861,7 +4857,7 @@ def __init__(
48614857
self.regions = regions
48624858

48634859

4864-
class NetworkInjections(_serialization.Model):
4860+
class NetworkInjection(_serialization.Model):
48654861
"""Specifies in AI Foundry where virtual network injection occurs to secure scenarios like Agents
48664862
entirely within the user's private network, eliminating public internet exposure while
48674863
maintaining control over network configurations and resources.

0 commit comments

Comments
 (0)