Skip to content

Commit 0662281

Browse files
author
SDKAuto
committed
CodeGen from PR 33703 in Azure/azure-rest-api-specs
Merge 7c482ec6b97efc9f5caab1c49b0ac5ec991a3108 into 3611544d700148dc9017f1101dedff5e932d18db
1 parent e60744e commit 0662281

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+8105
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Release History
2+
3+
## 3.0.0 (2025-04-24)
4+
5+
### Features Added
6+
7+
- Client `QumuloMgmtClient` added method `send_request`
8+
- Model `FileSystemResource` added property `properties`
9+
- Added model `FileSystemResourceProperties`
10+
- Method `ErrorResponse.__init__` has a new overload `def __init__(self: None, error: Optional[_models.ErrorDetail])`
11+
- Method `ErrorResponse.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
12+
- Method `FileSystemResource.__init__` has a new overload `def __init__(self: None, location: str, tags: Optional[Dict[str, str]], properties: Optional[_models.FileSystemResourceProperties], identity: Optional[_models.ManagedServiceIdentity])`
13+
- Method `FileSystemResource.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
14+
- Method `FileSystemResource.__init__` has a new overload `def __init__(self: None, location: str, tags: Optional[Dict[str, str]])`
15+
- Method `FileSystemResource.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
16+
- Method `FileSystemResourceUpdate.__init__` has a new overload `def __init__(self: None, identity: Optional[_models.ManagedServiceIdentity], tags: Optional[Dict[str, str]], properties: Optional[_models.FileSystemResourceUpdateProperties])`
17+
- Method `FileSystemResourceUpdate.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
18+
- Method `FileSystemResourceUpdateProperties.__init__` has a new overload `def __init__(self: None, marketplace_details: Optional[_models.MarketplaceDetails], user_details: Optional[_models.UserDetails], delegated_subnet_id: Optional[str])`
19+
- Method `FileSystemResourceUpdateProperties.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
20+
- Method `ManagedServiceIdentity.__init__` has a new overload `def __init__(self: None, type: Union[str, _models.ManagedServiceIdentityType], user_assigned_identities: Optional[Dict[str, _models.UserAssignedIdentity]])`
21+
- Method `ManagedServiceIdentity.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
22+
- Method `MarketplaceDetails.__init__` has a new overload `def __init__(self: None, plan_id: str, offer_id: str, marketplace_subscription_id: Optional[str], publisher_id: Optional[str], term_unit: Optional[str])`
23+
- Method `MarketplaceDetails.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
24+
- Method `Operation.__init__` has a new overload `def __init__(self: None, display: Optional[_models.OperationDisplay])`
25+
- Method `Operation.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
26+
- Method `SystemData.__init__` has a new overload `def __init__(self: None, created_by: Optional[str], created_by_type: Optional[Union[str, _models.CreatedByType]], created_at: Optional[datetime], last_modified_by: Optional[str], last_modified_by_type: Optional[Union[str, _models.CreatedByType]], last_modified_at: Optional[datetime])`
27+
- Method `SystemData.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
28+
- Method `TrackedResource.__init__` has a new overload `def __init__(self: None, location: str, tags: Optional[Dict[str, str]])`
29+
- Method `TrackedResource.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
30+
- Method `UserDetails.__init__` has a new overload `def __init__(self: None, email: str)`
31+
- Method `UserDetails.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
32+
- Method `FileSystemResourceProperties.__init__` has a new overload `def __init__(self: None, marketplace_details: _models.MarketplaceDetails, storage_sku: str, user_details: _models.UserDetails, delegated_subnet_id: str, admin_password: str, cluster_login_url: Optional[str], private_i_ps: Optional[List[str]], availability_zone: Optional[str])`
33+
- Method `FileSystemResourceProperties.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
34+
- Method `FileSystemsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, file_system_name: str, resource: JSON, content_type: str)`
35+
- Method `FileSystemsOperations.update` has a new overload `def update(self: None, resource_group_name: str, file_system_name: str, properties: JSON, content_type: str)`
36+
37+
### Breaking Changes
38+
39+
- Model `ErrorAdditionalInfo` deleted or renamed its instance variable `additional_properties`
40+
- Model `ErrorDetail` deleted or renamed its instance variable `additional_properties`
41+
- Model `ErrorResponse` deleted or renamed its instance variable `additional_properties`
42+
- Model `FileSystemResource` deleted or renamed its instance variable `marketplace_details`
43+
- Model `FileSystemResource` deleted or renamed its instance variable `provisioning_state`
44+
- Model `FileSystemResource` deleted or renamed its instance variable `storage_sku`
45+
- Model `FileSystemResource` deleted or renamed its instance variable `user_details`
46+
- Model `FileSystemResource` deleted or renamed its instance variable `delegated_subnet_id`
47+
- Model `FileSystemResource` deleted or renamed its instance variable `cluster_login_url`
48+
- Model `FileSystemResource` deleted or renamed its instance variable `private_ips`
49+
- Model `FileSystemResource` deleted or renamed its instance variable `admin_password`
50+
- Model `FileSystemResource` deleted or renamed its instance variable `availability_zone`
51+
- Model `FileSystemResource` deleted or renamed its instance variable `additional_properties`
52+
- Model `FileSystemResourceUpdate` deleted or renamed its instance variable `additional_properties`
53+
- Model `FileSystemResourceUpdateProperties` deleted or renamed its instance variable `additional_properties`
54+
- Model `ManagedServiceIdentity` deleted or renamed its instance variable `additional_properties`
55+
- Model `MarketplaceDetails` deleted or renamed its instance variable `additional_properties`
56+
- Model `Operation` deleted or renamed its instance variable `additional_properties`
57+
- Model `OperationDisplay` deleted or renamed its instance variable `additional_properties`
58+
- Model `Resource` deleted or renamed its instance variable `additional_properties`
59+
- Model `SystemData` deleted or renamed its instance variable `additional_properties`
60+
- Model `TrackedResource` deleted or renamed its instance variable `additional_properties`
61+
- Model `UserAssignedIdentity` deleted or renamed its instance variable `additional_properties`
62+
- Model `UserDetails` deleted or renamed its instance variable `additional_properties`
63+
64+
## 1.0.0b1 (1970-01-01)
65+
66+
- Initial version
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) Microsoft Corporation.
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
include _meta.json
2+
recursive-include tests *.py *.json
3+
recursive-include samples *.py *.md
4+
include *.md
5+
include azure/__init__.py
6+
include azure/mgmt/__init__.py
7+
include LICENSE
8+
include azure/mgmt/qumulo/py.typed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Microsoft Azure SDK for Python
2+
3+
This is the Microsoft Azure Qumulo Management Client Library.
4+
This package has been tested with Python 3.9+.
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
6+
7+
## _Disclaimer_
8+
9+
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
10+
11+
## Getting started
12+
13+
### Prerequisites
14+
15+
- Python 3.9+ is required to use this package.
16+
- [Azure subscription](https://azure.microsoft.com/free/)
17+
18+
### Install the package
19+
20+
```bash
21+
pip install azure-mgmt-qumulo
22+
pip install azure-identity
23+
```
24+
25+
### Authentication
26+
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
28+
29+
- `AZURE_CLIENT_ID` for Azure client ID.
30+
- `AZURE_TENANT_ID` for Azure tenant ID.
31+
- `AZURE_CLIENT_SECRET` for Azure client secret.
32+
33+
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
34+
35+
With above configuration, client can be authenticated by following code:
36+
37+
```python
38+
from azure.identity import DefaultAzureCredential
39+
from azure.mgmt.qumulo import QumuloMgmtClient
40+
import os
41+
42+
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
43+
client = QumuloMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
44+
```
45+
46+
## Examples
47+
48+
Code samples for this package can be found at:
49+
- [Search Qumulo Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
50+
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
51+
52+
53+
## Troubleshooting
54+
55+
## Next steps
56+
57+
## Provide Feedback
58+
59+
If you encounter any bugs or have suggestions, please file an issue in the
60+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
61+
section of the project.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"commit": "b662ad2ab3cfb4d54d157febfb0e9475717b5bac",
3+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4+
"typespec_src": "specification/liftrqumulo/Qumulo.Storage.Management",
5+
"@azure-tools/typespec-python": "0.44.1"
6+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"CrossLanguagePackageId": "Qumulo.Storage",
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.qumulo.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
5+
"azure.mgmt.qumulo.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
6+
"azure.mgmt.qumulo.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
7+
"azure.mgmt.qumulo.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
8+
"azure.mgmt.qumulo.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
9+
"azure.mgmt.qumulo.models.FileSystemResource": "LiftrBase.Storage.FileSystemResource",
10+
"azure.mgmt.qumulo.models.FileSystemResourceProperties": "LiftrBase.Storage.FileSystemResourceProperties",
11+
"azure.mgmt.qumulo.models.FileSystemResourceUpdate": "LiftrBase.Storage.FileSystemResourceUpdate",
12+
"azure.mgmt.qumulo.models.FileSystemResourceUpdateProperties": "LiftrBase.Storage.FileSystemResourceUpdateProperties",
13+
"azure.mgmt.qumulo.models.ManagedServiceIdentity": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity",
14+
"azure.mgmt.qumulo.models.MarketplaceDetails": "LiftrBase.MarketplaceDetails",
15+
"azure.mgmt.qumulo.models.Operation": "Azure.ResourceManager.CommonTypes.Operation",
16+
"azure.mgmt.qumulo.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
17+
"azure.mgmt.qumulo.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
18+
"azure.mgmt.qumulo.models.UserAssignedIdentity": "Azure.ResourceManager.CommonTypes.UserAssignedIdentity",
19+
"azure.mgmt.qumulo.models.UserDetails": "LiftrBase.UserDetails",
20+
"azure.mgmt.qumulo.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
21+
"azure.mgmt.qumulo.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
22+
"azure.mgmt.qumulo.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
23+
"azure.mgmt.qumulo.models.MarketplaceSubscriptionStatus": "LiftrBase.MarketplaceSubscriptionStatus",
24+
"azure.mgmt.qumulo.models.ProvisioningState": "LiftrBase.ProvisioningState",
25+
"azure.mgmt.qumulo.models.ManagedServiceIdentityType": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType",
26+
"azure.mgmt.qumulo.operations.Operations.list": "Azure.ResourceManager.Operations.list",
27+
"azure.mgmt.qumulo.aio.operations.Operations.list": "Azure.ResourceManager.Operations.list",
28+
"azure.mgmt.qumulo.operations.FileSystemsOperations.get": "Qumulo.Storage.FileSystems.get",
29+
"azure.mgmt.qumulo.aio.operations.FileSystemsOperations.get": "Qumulo.Storage.FileSystems.get",
30+
"azure.mgmt.qumulo.operations.FileSystemsOperations.begin_create_or_update": "Qumulo.Storage.FileSystems.createOrUpdate",
31+
"azure.mgmt.qumulo.aio.operations.FileSystemsOperations.begin_create_or_update": "Qumulo.Storage.FileSystems.createOrUpdate",
32+
"azure.mgmt.qumulo.operations.FileSystemsOperations.update": "Qumulo.Storage.FileSystems.update",
33+
"azure.mgmt.qumulo.aio.operations.FileSystemsOperations.update": "Qumulo.Storage.FileSystems.update",
34+
"azure.mgmt.qumulo.operations.FileSystemsOperations.begin_delete": "Qumulo.Storage.FileSystems.delete",
35+
"azure.mgmt.qumulo.aio.operations.FileSystemsOperations.begin_delete": "Qumulo.Storage.FileSystems.delete",
36+
"azure.mgmt.qumulo.operations.FileSystemsOperations.list_by_resource_group": "Qumulo.Storage.FileSystems.listByResourceGroup",
37+
"azure.mgmt.qumulo.aio.operations.FileSystemsOperations.list_by_resource_group": "Qumulo.Storage.FileSystems.listByResourceGroup",
38+
"azure.mgmt.qumulo.operations.FileSystemsOperations.list_by_subscription": "Qumulo.Storage.FileSystems.listBySubscription",
39+
"azure.mgmt.qumulo.aio.operations.FileSystemsOperations.list_by_subscription": "Qumulo.Storage.FileSystems.listBySubscription"
40+
}
41+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) Python Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
9+
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._client import QumuloMgmtClient # type: ignore
16+
from ._version import VERSION
17+
18+
__version__ = VERSION
19+
20+
try:
21+
from ._patch import __all__ as _patch_all
22+
from ._patch import *
23+
except ImportError:
24+
_patch_all = []
25+
from ._patch import patch_sdk as _patch_sdk
26+
27+
__all__ = [
28+
"QumuloMgmtClient",
29+
]
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
31+
32+
_patch_sdk()

0 commit comments

Comments
 (0)