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

## 1.1.0b1 (2025-05-13)

### Features Added

- Model `MongoClusterProperties` added property `data_api`
- Model `MongoClusterUpdateProperties` added property `data_api`
- Added enum `DataApiMode`
- Added model `DataApiProperties`
- Method `MongoClusterProperties.__init__` has a new overload `def __init__(self: None, create_mode: Optional[Union[str, _models.CreateMode]], restore_parameters: Optional[_models.MongoClusterRestoreParameters], replica_parameters: Optional[_models.MongoClusterReplicaParameters], administrator: Optional[_models.AdministratorProperties], server_version: Optional[str], public_network_access: Optional[Union[str, _models.PublicNetworkAccess]], high_availability: Optional[_models.HighAvailabilityProperties], storage: Optional[_models.StorageProperties], sharding: Optional[_models.ShardingProperties], compute: Optional[_models.ComputeProperties], backup: Optional[_models.BackupProperties], data_api: Optional[_models.DataApiProperties], preview_features: Optional[List[Union[str, _models.PreviewFeature]]])`
- Method `MongoClusterUpdateProperties.__init__` has a new overload `def __init__(self: None, administrator: Optional[_models.AdministratorProperties], server_version: Optional[str], public_network_access: Optional[Union[str, _models.PublicNetworkAccess]], high_availability: Optional[_models.HighAvailabilityProperties], storage: Optional[_models.StorageProperties], sharding: Optional[_models.ShardingProperties], compute: Optional[_models.ComputeProperties], backup: Optional[_models.BackupProperties], data_api: Optional[_models.DataApiProperties], preview_features: Optional[List[Union[str, _models.PreviewFeature]]])`
- Method `Operation.__init__` has a new overload `def __init__(self: None, display: Optional[_models.OperationDisplay])`
- Method `DataApiProperties.__init__` has a new overload `def __init__(self: None, mode: Optional[Union[str, _models.DataApiMode]])`
- Method `DataApiProperties.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`

## 1.0.0 (2024-09-26)

### Features Added
Expand Down
6 changes: 3 additions & 3 deletions sdk/mongocluster/azure-mgmt-mongocluster/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure Mongocluster Management Client Library.
This package has been tested with Python 3.8+.
This package has been tested with Python 3.9+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## _Disclaimer_
Expand All @@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For

### Prerequisites

- Python 3.8+ is required to use this package.
- Python 3.9+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package
Expand All @@ -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
4 changes: 2 additions & 2 deletions sdk/mongocluster/azure-mgmt-mongocluster/_meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commit": "f93850874010501f216ceadf19459402efd16d9e",
"commit": "079f70d6f2b754db6b736e117196104efd2dd496",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/mongocluster/DocumentDB.MongoCluster.Management",
"@azure-tools/typespec-python": "0.33.0"
"@azure-tools/typespec-python": "0.44.2"
}
100 changes: 100 additions & 0 deletions sdk/mongocluster/azure-mgmt-mongocluster/apiview-properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"CrossLanguagePackageId": "Microsoft.DocumentDB",
"CrossLanguageDefinitionId": {
"azure.mgmt.mongocluster.models.AdministratorProperties": "Microsoft.DocumentDB.AdministratorProperties",
"azure.mgmt.mongocluster.models.BackupProperties": "Microsoft.DocumentDB.BackupProperties",
"azure.mgmt.mongocluster.models.CheckNameAvailabilityRequest": "Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest",
"azure.mgmt.mongocluster.models.CheckNameAvailabilityResponse": "Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse",
"azure.mgmt.mongocluster.models.ComputeProperties": "Microsoft.DocumentDB.ComputeProperties",
"azure.mgmt.mongocluster.models.ConnectionString": "Microsoft.DocumentDB.ConnectionString",
"azure.mgmt.mongocluster.models.DataApiProperties": "Microsoft.DocumentDB.DataApiProperties",
"azure.mgmt.mongocluster.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
"azure.mgmt.mongocluster.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
"azure.mgmt.mongocluster.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
"azure.mgmt.mongocluster.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
"azure.mgmt.mongocluster.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
"azure.mgmt.mongocluster.models.FirewallRule": "Microsoft.DocumentDB.FirewallRule",
"azure.mgmt.mongocluster.models.FirewallRuleProperties": "Microsoft.DocumentDB.FirewallRuleProperties",
"azure.mgmt.mongocluster.models.HighAvailabilityProperties": "Microsoft.DocumentDB.HighAvailabilityProperties",
"azure.mgmt.mongocluster.models.ListConnectionStringsResult": "Microsoft.DocumentDB.ListConnectionStringsResult",
"azure.mgmt.mongocluster.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
"azure.mgmt.mongocluster.models.MongoCluster": "Microsoft.DocumentDB.MongoCluster",
"azure.mgmt.mongocluster.models.MongoClusterProperties": "Microsoft.DocumentDB.MongoClusterProperties",
"azure.mgmt.mongocluster.models.MongoClusterReplicaParameters": "Microsoft.DocumentDB.MongoClusterReplicaParameters",
"azure.mgmt.mongocluster.models.MongoClusterRestoreParameters": "Microsoft.DocumentDB.MongoClusterRestoreParameters",
"azure.mgmt.mongocluster.models.MongoClusterUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel",
"azure.mgmt.mongocluster.models.MongoClusterUpdateProperties": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties",
"azure.mgmt.mongocluster.models.Operation": "Azure.ResourceManager.CommonTypes.Operation",
"azure.mgmt.mongocluster.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
"azure.mgmt.mongocluster.models.PrivateEndpoint": "Azure.ResourceManager.CommonTypes.PrivateEndpoint",
"azure.mgmt.mongocluster.models.PrivateEndpointConnection": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnection",
"azure.mgmt.mongocluster.models.PrivateEndpointConnectionProperties": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties",
"azure.mgmt.mongocluster.models.PrivateEndpointConnectionResource": "Microsoft.DocumentDB.PrivateEndpointConnectionResource",
"azure.mgmt.mongocluster.models.PrivateLinkResource": "Microsoft.DocumentDB.PrivateLinkResource",
"azure.mgmt.mongocluster.models.PrivateLinkResourceProperties": "Azure.ResourceManager.CommonTypes.PrivateLinkResourceProperties",
"azure.mgmt.mongocluster.models.PrivateLinkServiceConnectionState": "Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState",
"azure.mgmt.mongocluster.models.PromoteReplicaRequest": "Microsoft.DocumentDB.PromoteReplicaRequest",
"azure.mgmt.mongocluster.models.Replica": "Microsoft.DocumentDB.Replica",
"azure.mgmt.mongocluster.models.ReplicationProperties": "Microsoft.DocumentDB.ReplicationProperties",
"azure.mgmt.mongocluster.models.ShardingProperties": "Microsoft.DocumentDB.ShardingProperties",
"azure.mgmt.mongocluster.models.StorageProperties": "Microsoft.DocumentDB.StorageProperties",
"azure.mgmt.mongocluster.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
"azure.mgmt.mongocluster.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
"azure.mgmt.mongocluster.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
"azure.mgmt.mongocluster.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
"azure.mgmt.mongocluster.models.CreateMode": "Microsoft.DocumentDB.CreateMode",
"azure.mgmt.mongocluster.models.ProvisioningState": "Microsoft.DocumentDB.ProvisioningState",
"azure.mgmt.mongocluster.models.MongoClusterStatus": "Microsoft.DocumentDB.MongoClusterStatus",
"azure.mgmt.mongocluster.models.PublicNetworkAccess": "Microsoft.DocumentDB.PublicNetworkAccess",
"azure.mgmt.mongocluster.models.HighAvailabilityMode": "Microsoft.DocumentDB.HighAvailabilityMode",
"azure.mgmt.mongocluster.models.DataApiMode": "Microsoft.DocumentDB.DataApiMode",
"azure.mgmt.mongocluster.models.PrivateEndpointServiceConnectionStatus": "Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus",
"azure.mgmt.mongocluster.models.PrivateEndpointConnectionProvisioningState": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState",
"azure.mgmt.mongocluster.models.PreviewFeature": "Microsoft.DocumentDB.PreviewFeature",
"azure.mgmt.mongocluster.models.ReplicationRole": "Microsoft.DocumentDB.ReplicationRole",
"azure.mgmt.mongocluster.models.ReplicationState": "Microsoft.DocumentDB.ReplicationState",
"azure.mgmt.mongocluster.models.CheckNameAvailabilityReason": "Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason",
"azure.mgmt.mongocluster.models.PromoteOption": "Microsoft.DocumentDB.PromoteOption",
"azure.mgmt.mongocluster.models.PromoteMode": "Microsoft.DocumentDB.PromoteMode",
"azure.mgmt.mongocluster.operations.Operations.list": "Azure.ResourceManager.Operations.list",
"azure.mgmt.mongocluster.aio.operations.Operations.list": "Azure.ResourceManager.Operations.list",
"azure.mgmt.mongocluster.operations.MongoClustersOperations.get": "Microsoft.DocumentDB.MongoClusters.get",
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.get": "Microsoft.DocumentDB.MongoClusters.get",
"azure.mgmt.mongocluster.operations.MongoClustersOperations.begin_create_or_update": "Microsoft.DocumentDB.MongoClusters.createOrUpdate",
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.begin_create_or_update": "Microsoft.DocumentDB.MongoClusters.createOrUpdate",
"azure.mgmt.mongocluster.operations.MongoClustersOperations.begin_update": "Microsoft.DocumentDB.MongoClusters.update",
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.begin_update": "Microsoft.DocumentDB.MongoClusters.update",
"azure.mgmt.mongocluster.operations.MongoClustersOperations.begin_delete": "Microsoft.DocumentDB.MongoClusters.delete",
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.begin_delete": "Microsoft.DocumentDB.MongoClusters.delete",
"azure.mgmt.mongocluster.operations.MongoClustersOperations.list_by_resource_group": "Microsoft.DocumentDB.MongoClusters.listByResourceGroup",
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.list_by_resource_group": "Microsoft.DocumentDB.MongoClusters.listByResourceGroup",
"azure.mgmt.mongocluster.operations.MongoClustersOperations.list": "Microsoft.DocumentDB.MongoClusters.list",
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.list": "Microsoft.DocumentDB.MongoClusters.list",
"azure.mgmt.mongocluster.operations.MongoClustersOperations.list_connection_strings": "Microsoft.DocumentDB.MongoClusters.listConnectionStrings",
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.list_connection_strings": "Microsoft.DocumentDB.MongoClusters.listConnectionStrings",
"azure.mgmt.mongocluster.operations.MongoClustersOperations.check_name_availability": "Microsoft.DocumentDB.MongoClusters.checkNameAvailability",
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.check_name_availability": "Microsoft.DocumentDB.MongoClusters.checkNameAvailability",
"azure.mgmt.mongocluster.operations.MongoClustersOperations.begin_promote": "Microsoft.DocumentDB.MongoClusters.promote",
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.begin_promote": "Microsoft.DocumentDB.MongoClusters.promote",
"azure.mgmt.mongocluster.operations.FirewallRulesOperations.get": "Microsoft.DocumentDB.FirewallRules.get",
"azure.mgmt.mongocluster.aio.operations.FirewallRulesOperations.get": "Microsoft.DocumentDB.FirewallRules.get",
"azure.mgmt.mongocluster.operations.FirewallRulesOperations.begin_create_or_update": "Microsoft.DocumentDB.FirewallRules.createOrUpdate",
"azure.mgmt.mongocluster.aio.operations.FirewallRulesOperations.begin_create_or_update": "Microsoft.DocumentDB.FirewallRules.createOrUpdate",
"azure.mgmt.mongocluster.operations.FirewallRulesOperations.begin_delete": "Microsoft.DocumentDB.FirewallRules.delete",
"azure.mgmt.mongocluster.aio.operations.FirewallRulesOperations.begin_delete": "Microsoft.DocumentDB.FirewallRules.delete",
"azure.mgmt.mongocluster.operations.FirewallRulesOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.FirewallRules.listByMongoCluster",
"azure.mgmt.mongocluster.aio.operations.FirewallRulesOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.FirewallRules.listByMongoCluster",
"azure.mgmt.mongocluster.operations.PrivateEndpointConnectionsOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.PrivateEndpointConnections.listByMongoCluster",
"azure.mgmt.mongocluster.aio.operations.PrivateEndpointConnectionsOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.PrivateEndpointConnections.listByMongoCluster",
"azure.mgmt.mongocluster.operations.PrivateEndpointConnectionsOperations.get": "Microsoft.DocumentDB.PrivateEndpointConnections.get",
"azure.mgmt.mongocluster.aio.operations.PrivateEndpointConnectionsOperations.get": "Microsoft.DocumentDB.PrivateEndpointConnections.get",
"azure.mgmt.mongocluster.operations.PrivateEndpointConnectionsOperations.begin_create": "Microsoft.DocumentDB.PrivateEndpointConnections.create",
"azure.mgmt.mongocluster.aio.operations.PrivateEndpointConnectionsOperations.begin_create": "Microsoft.DocumentDB.PrivateEndpointConnections.create",
"azure.mgmt.mongocluster.operations.PrivateEndpointConnectionsOperations.begin_delete": "Microsoft.DocumentDB.PrivateEndpointConnections.delete",
"azure.mgmt.mongocluster.aio.operations.PrivateEndpointConnectionsOperations.begin_delete": "Microsoft.DocumentDB.PrivateEndpointConnections.delete",
"azure.mgmt.mongocluster.operations.PrivateLinksOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.PrivateLinks.listByMongoCluster",
"azure.mgmt.mongocluster.aio.operations.PrivateLinksOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.PrivateLinks.listByMongoCluster",
"azure.mgmt.mongocluster.operations.ReplicasOperations.list_by_parent": "Microsoft.DocumentDB.Replicas.listByParent",
"azure.mgmt.mongocluster.aio.operations.ReplicasOperations.list_by_parent": "Microsoft.DocumentDB.Replicas.listByParent"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# 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

from ._client import MongoClusterMgmtClient
from typing import TYPE_CHECKING

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

from ._client import MongoClusterMgmtClient # 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__ = [
"MongoClusterMgmtClient",
]
__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()
Loading