Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,82 @@
# Release History

## 13.7.0b1 (2025-04-10)

### Features Added

- Client `CognitiveServicesManagementClient` added operation group `projects`
- Client `CognitiveServicesManagementClient` added operation group `account_connection`
- Client `CognitiveServicesManagementClient` added operation group `project_connection`
- Client `CognitiveServicesManagementClient` added operation group `account_capability_hosts`
- Client `CognitiveServicesManagementClient` added operation group `project_capability_hosts`
- Model `AccountProperties` added property `network_injections`
- Model `AccountProperties` added property `allow_project_management`
- Model `AccountProperties` added property `default_project`
- Model `AccountProperties` added property `associated_projects`
- Enum `ProvisioningState` added member `CANCELED`
- Added model `AADAuthTypeConnectionProperties`
- Added model `AccessKeyAuthTypeConnectionProperties`
- Added model `AccountKeyAuthTypeConnectionProperties`
- Added model `ApiKeyAuthConnectionProperties`
- Added model `CapabilityHost`
- Added enum `CapabilityHostKind`
- Added model `CapabilityHostProperties`
- Added enum `CapabilityHostProvisioningState`
- Added model `ConnectionAccessKey`
- Added model `ConnectionAccountKey`
- Added model `ConnectionApiKey`
- Added enum `ConnectionAuthType`
- Added enum `ConnectionCategory`
- Added enum `ConnectionGroup`
- Added model `ConnectionManagedIdentity`
- Added model `ConnectionOAuth2`
- Added model `ConnectionPersonalAccessToken`
- Added model `ConnectionPropertiesV2`
- Added model `ConnectionPropertiesV2BasicResource`
- Added model `ConnectionPropertiesV2BasicResourceArmPaginatedResult`
- Added model `ConnectionServicePrincipal`
- Added model `ConnectionSharedAccessSignature`
- Added model `ConnectionUpdateContent`
- Added model `ConnectionUsernamePassword`
- Added model `CustomKeys`
- Added model `CustomKeysConnectionProperties`
- Added model `ManagedIdentityAuthTypeConnectionProperties`
- Added enum `ManagedPERequirement`
- Added enum `ManagedPEStatus`
- Added model `NetworkInjections`
- Added model `NoneAuthTypeConnectionProperties`
- Added model `OAuth2AuthTypeConnectionProperties`
- Added model `PATAuthTypeConnectionProperties`
- Added model `Project`
- Added model `ProjectListResult`
- Added model `ProjectProperties`
- Added model `ResourceBase`
- Added model `SASAuthTypeConnectionProperties`
- Added enum `ScenarioType`
- Added model `ServicePrincipalAuthTypeConnectionProperties`
- Added model `UsernamePasswordAuthTypeConnectionProperties`
- Added model `AccountCapabilityHostsOperations`
- Added model `AccountConnectionOperations`
- Added model `ProjectCapabilityHostsOperations`
- Added model `ProjectConnectionOperations`
- Added model `ProjectsOperations`
- Method `AccountCapabilityHostsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, account_name: str, capability_host_name: str, body: CapabilityHost, content_type: str)`
- Method `AccountCapabilityHostsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, account_name: str, capability_host_name: str, body: IO[bytes], content_type: str)`
- Method `AccountConnectionOperations.create` has a new overload `def create(self: None, resource_group_name: str, account_name: str, connection_name: str, body: Optional[ConnectionPropertiesV2BasicResource], content_type: str)`
- Method `AccountConnectionOperations.create` has a new overload `def create(self: None, resource_group_name: str, account_name: str, connection_name: str, body: Optional[IO[bytes]], content_type: str)`
- Method `AccountConnectionOperations.update` has a new overload `def update(self: None, resource_group_name: str, account_name: str, connection_name: str, body: Optional[ConnectionUpdateContent], content_type: str)`
- Method `AccountConnectionOperations.update` has a new overload `def update(self: None, resource_group_name: str, account_name: str, connection_name: str, body: Optional[IO[bytes]], content_type: str)`
- Method `ProjectCapabilityHostsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, account_name: str, project_name: str, capability_host_name: str, body: CapabilityHost, content_type: str)`
- Method `ProjectCapabilityHostsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, account_name: str, project_name: str, capability_host_name: str, body: IO[bytes], content_type: str)`
- Method `ProjectConnectionOperations.create` has a new overload `def create(self: None, resource_group_name: str, account_name: str, project_name: str, connection_name: str, body: Optional[ConnectionPropertiesV2BasicResource], content_type: str)`
- Method `ProjectConnectionOperations.create` has a new overload `def create(self: None, resource_group_name: str, account_name: str, project_name: str, connection_name: str, body: Optional[IO[bytes]], content_type: str)`
- Method `ProjectConnectionOperations.update` has a new overload `def update(self: None, resource_group_name: str, account_name: str, project_name: str, connection_name: str, body: Optional[ConnectionUpdateContent], content_type: str)`
- Method `ProjectConnectionOperations.update` has a new overload `def update(self: None, resource_group_name: str, account_name: str, project_name: str, connection_name: str, body: Optional[IO[bytes]], content_type: str)`
- Method `ProjectsOperations.begin_create` has a new overload `def begin_create(self: None, resource_group_name: str, account_name: str, project_name: str, project: Project, content_type: str)`
- Method `ProjectsOperations.begin_create` has a new overload `def begin_create(self: None, resource_group_name: str, account_name: str, project_name: str, project: IO[bytes], content_type: str)`
- Method `ProjectsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, account_name: str, project_name: str, project: Project, content_type: str)`
- Method `ProjectsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, account_name: str, project_name: str, project: IO[bytes], content_type: str)`

## 13.6.0 (2024-12-19)

### Features Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pip install azure-identity

### Authentication

By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down
6 changes: 3 additions & 3 deletions sdk/cognitiveservices/azure-mgmt-cognitiveservices/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "0383d4a163beb3e58e7b4cb3c06172d32ddd8c85",
"commit": "2269fe45bfc3b338a433ced89c579b3e9b24a5f4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/python@6.27.4",
"@autorest/[email protected]"
],
"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.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"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/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/cognitiveservices/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._cognitive_services_management_client import CognitiveServicesManagementClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._cognitive_services_management_client import CognitiveServicesManagementClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"CognitiveServicesManagementClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
from ._configuration import CognitiveServicesManagementClientConfiguration
from ._serialization import Deserializer, Serializer
from .operations import (
AccountCapabilityHostsOperations,
AccountConnectionOperations,
AccountsOperations,
CognitiveServicesManagementClientOperationsMixin,
CommitmentPlansOperations,
Expand All @@ -34,6 +36,9 @@
Operations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
ProjectCapabilityHostsOperations,
ProjectConnectionOperations,
ProjectsOperations,
RaiBlocklistItemsOperations,
RaiBlocklistsOperations,
RaiContentFiltersOperations,
Expand All @@ -43,13 +48,12 @@
)

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential


class CognitiveServicesManagementClient(
CognitiveServicesManagementClientOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
): # pylint: disable=too-many-instance-attributes
"""Cognitive Services Management Client.

:ivar accounts: AccountsOperations operations
Expand Down Expand Up @@ -100,14 +104,28 @@ class CognitiveServicesManagementClient(
:ivar defender_for_ai_settings: DefenderForAISettingsOperations operations
:vartype defender_for_ai_settings:
azure.mgmt.cognitiveservices.operations.DefenderForAISettingsOperations
:ivar projects: ProjectsOperations operations
:vartype projects: azure.mgmt.cognitiveservices.operations.ProjectsOperations
:ivar account_connection: AccountConnectionOperations operations
:vartype account_connection:
azure.mgmt.cognitiveservices.operations.AccountConnectionOperations
:ivar project_connection: ProjectConnectionOperations operations
:vartype project_connection:
azure.mgmt.cognitiveservices.operations.ProjectConnectionOperations
:ivar account_capability_hosts: AccountCapabilityHostsOperations operations
:vartype account_capability_hosts:
azure.mgmt.cognitiveservices.operations.AccountCapabilityHostsOperations
:ivar project_capability_hosts: ProjectCapabilityHostsOperations operations
:vartype project_capability_hosts:
azure.mgmt.cognitiveservices.operations.ProjectCapabilityHostsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-10-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2025-04-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.
Expand Down Expand Up @@ -191,6 +209,19 @@ def __init__(
self.defender_for_ai_settings = DefenderForAISettingsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.projects = ProjectsOperations(self._client, self._config, self._serialize, self._deserialize)
self.account_connection = AccountConnectionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.project_connection = ProjectConnectionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.account_capability_hosts = AccountCapabilityHostsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.project_capability_hosts = ProjectCapabilityHostsOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential


Expand All @@ -28,13 +27,13 @@ class CognitiveServicesManagementClientConfiguration: # pylint: disable=too-man
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-10-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2025-04-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-10-01")
api_version: str = kwargs.pop("api_version", "2025-04-01-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Loading