Skip to content

Commit 245b2d4

Browse files
author
SDKAuto
committed
CodeGen from PR 33395 in Azure/azure-rest-api-specs
Merge 498b2afce5c09f7676702bdfeab5083a08a63de9 into 9191854514911a10bfd71636fd2903e6be2d7edf
1 parent aafdc62 commit 245b2d4

File tree

134 files changed

+9263
-1208
lines changed

Some content is hidden

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

134 files changed

+9263
-1208
lines changed

sdk/storage/azure-mgmt-storagecache/CHANGELOG.md

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

3+
## 3.0.0 (2025-04-07)
4+
5+
### Features Added
6+
7+
- Client `StorageCacheManagementClient` added operation group `auto_export_jobs`
8+
- Client `StorageCacheManagementClient` added operation group `auto_import_jobs`
9+
- Model `ImportJob` added property `admin_status`
10+
- Model `ImportJob` added property `imported_files`
11+
- Model `ImportJob` added property `imported_directories`
12+
- Model `ImportJob` added property `imported_symlinks`
13+
- Model `ImportJob` added property `preexisting_files`
14+
- Model `ImportJob` added property `preexisting_directories`
15+
- Model `ImportJob` added property `preexisting_symlinks`
16+
- Model `ImportJobUpdate` added property `admin_status`
17+
- Added model `AutoExportJob`
18+
- Added enum `AutoExportJobAdminStatus`
19+
- Added enum `AutoExportJobProvisioningStateType`
20+
- Added model `AutoExportJobUpdate`
21+
- Added model `AutoExportJobsListResult`
22+
- Added enum `AutoExportStatusType`
23+
- Added model `AutoImportJob`
24+
- Added enum `AutoImportJobPropertiesAdminStatus`
25+
- Added enum `AutoImportJobPropertiesProvisioningState`
26+
- Added enum `AutoImportJobState`
27+
- Added model `AutoImportJobUpdate`
28+
- Added enum `AutoImportJobUpdatePropertiesAdminStatus`
29+
- Added model `AutoImportJobsListResult`
30+
- Added enum `ImportJobAdminStatus`
31+
- Added model `AutoExportJobsOperations`
32+
- Added model `AutoImportJobsOperations`
33+
- Method `AutoExportJobsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, aml_filesystem_name: str, auto_export_job_name: str, auto_export_job: AutoExportJob, content_type: str)`
34+
- Method `AutoExportJobsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, aml_filesystem_name: str, auto_export_job_name: str, auto_export_job: IO[bytes], content_type: str)`
35+
- Method `AutoExportJobsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, aml_filesystem_name: str, auto_export_job_name: str, auto_export_job: AutoExportJobUpdate, content_type: str)`
36+
- Method `AutoExportJobsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, aml_filesystem_name: str, auto_export_job_name: str, auto_export_job: IO[bytes], content_type: str)`
37+
- Method `AutoImportJobsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, aml_filesystem_name: str, auto_import_job_name: str, auto_import_job: AutoImportJob, content_type: str)`
38+
- Method `AutoImportJobsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, aml_filesystem_name: str, auto_import_job_name: str, auto_import_job: IO[bytes], content_type: str)`
39+
- Method `AutoImportJobsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, aml_filesystem_name: str, auto_import_job_name: str, auto_import_job: AutoImportJobUpdate, content_type: str)`
40+
- Method `AutoImportJobsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, aml_filesystem_name: str, auto_import_job_name: str, auto_import_job: IO[bytes], content_type: str)`
41+
42+
### Breaking Changes
43+
44+
- Method `ImportJob.__init__` parameter `conflict_resolution_mode` changed default value from `str` to `none`
45+
346
## 2.0.0 (2024-05-20)
447

548
### Features Added

sdk/storage/azure-mgmt-storagecache/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

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

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "a013dabbe84aeb3f5d48b0e30d15fdfbb6a8d062",
2+
"commit": "0cbd567ab33729147a227c0b631d77883f041894",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.7",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.13.7",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/storagecache/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.13.7 --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
9+
"autorest_command": "autorest specification/storagecache/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",
1010
"readme": "specification/storagecache/resource-manager/readme.md"
1111
}

sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._storage_cache_management_client import StorageCacheManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._storage_cache_management_client import StorageCacheManagementClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"StorageCacheManagementClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/_configuration.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from ._version import VERSION
1515

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

2019

@@ -28,13 +27,13 @@ class StorageCacheManagementClientConfiguration: # pylint: disable=too-many-ins
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: The ID of the target subscription. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-03-01". Note that overriding this
30+
:keyword api_version: Api Version. Default value is "2025-07-01". Note that overriding this
3231
default value may result in unsupported behavior.
3332
:paramtype api_version: str
3433
"""
3534

3635
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2024-03-01")
36+
api_version: str = kwargs.pop("api_version", "2025-07-01")
3837

3938
if credential is None:
4039
raise ValueError("Parameter 'credential' must not be None.")

sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/_patch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#
2626
# --------------------------------------------------------------------------
2727

28+
2829
# This file is used for handwritten extensions to the generated code. Example:
2930
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
3031
def patch_sdk():

0 commit comments

Comments
 (0)