Skip to content

Commit f3ec099

Browse files
azure-sdkmsyyc
andauthored
[AutoPR azure-mgmt-recoveryservicesbackup]-generated-from-SDK Generation - Python-5462532 (#43460)
* Configurations: 'specification/recoveryservicesbackup/resource-manager/readme.md', API Version: 2025-02-01, SDK Release Type: stable, and CommitSHA: '1abdd5e7ad42bc945d91751c02a60be7ccecd633' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' * update test * update version --------- Co-authored-by: Yuchao Yan <[email protected]>
1 parent 64505ef commit f3ec099

File tree

303 files changed

+7338
-26117
lines changed

Some content is hidden

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

303 files changed

+7338
-26117
lines changed

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/CHANGELOG.md

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

3+
## 10.0.0 (2025-10-16)
4+
5+
### Breaking Changes
6+
7+
- Split module "passivestamp" into independent package [azure-mgmt-recoveryservicesbackup-passivestamp](https://pypi.org/project/azure-mgmt-recoveryservicesbackup-passivestamp/). Just add it as a dependency then no other code changes required.
8+
- Removed sub-namespace "activestamp" and just need update import from `from azure.mgmt.recoveryservicesbackup.activestamp import XXX` to `from azure.mgmt.recoveryservicesbackup import XXX`.
9+
310
## 9.2.0 (2025-04-17)
411

512
### Features Added
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
include _meta.json
2-
recursive-include tests *.py *.json
3-
recursive-include samples *.py *.md
41
include *.md
5-
include azure/__init__.py
6-
include azure/mgmt/__init__.py
72
include LICENSE
83
include azure/mgmt/recoveryservicesbackup/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

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

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

1313
### Prerequisites
1414

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

1818
### Install the package
@@ -36,7 +36,7 @@ With above configuration, client can be authenticated by following code:
3636

3737
```python
3838
from azure.identity import DefaultAzureCredential
39-
from azure.mgmt.recoveryservicesbackup.activestamp import RecoveryServicesBackupClient
39+
from azure.mgmt.recoveryservicesbackup import RecoveryServicesBackupClient
4040
import os
4141

4242
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "148c3b0b44f7789ced94859992493fafd0072f83",
2+
"commit": "1abdd5e7ad42bc945d91751c02a60be7ccecd633",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.27.4",
6+
"@autorest/python@6.41.3",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --generate-sample=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.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.41.3 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/recoveryservicesbackup/resource-manager/readme.md"
1111
}

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/apiview-properties.json

Lines changed: 553 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/__init__.py

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +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 .activestamp import RecoveryServicesBackupClient
10-
from .passivestamp import RecoveryServicesBackupPassiveClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._recovery_services_backup_client import RecoveryServicesBackupClient # 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
1126

1227
__all__ = [
13-
'RecoveryServicesBackupClient',
14-
'RecoveryServicesBackupPassiveClient'
28+
"RecoveryServicesBackupClient",
1529
]
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
31+
32+
_patch_sdk()
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from typing import Any, TYPE_CHECKING
9+
from typing import Any, Optional, TYPE_CHECKING
1010

1111
from azure.core.pipeline import policies
1212
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1313

1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17+
from azure.core import AzureClouds
1718
from azure.core.credentials import TokenCredential
1819

1920

@@ -27,12 +28,21 @@ class RecoveryServicesBackupClientConfiguration: # pylint: disable=too-many-ins
2728
:type credential: ~azure.core.credentials.TokenCredential
2829
:param subscription_id: The subscription Id. Required.
2930
:type subscription_id: str
31+
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
32+
None.
33+
:type cloud_setting: ~azure.core.AzureClouds
3034
:keyword api_version: Api Version. Default value is "2025-02-01". Note that overriding this
3135
default value may result in unsupported behavior.
3236
:paramtype api_version: str
3337
"""
3438

35-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
39+
def __init__(
40+
self,
41+
credential: "TokenCredential",
42+
subscription_id: str,
43+
cloud_setting: Optional["AzureClouds"] = None,
44+
**kwargs: Any
45+
) -> None:
3646
api_version: str = kwargs.pop("api_version", "2025-02-01")
3747

3848
if credential is None:
@@ -42,6 +52,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
4252

4353
self.credential = credential
4454
self.subscription_id = subscription_id
55+
self.cloud_setting = cloud_setting
4556
self.api_version = api_version
4657
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4758
kwargs.setdefault("sdk_moniker", "mgmt-recoveryservicesbackup/{}".format(VERSION))
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
# ------------------------------------
2-
# Copyright (c) Microsoft Corporation.
3-
# Licensed under the MIT License.
4-
# ------------------------------------
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+
# --------------------------------------------------------------------------
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
89
"""
9-
from typing import List
1010

11-
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
11+
12+
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1213

1314

1415
def patch_sdk():

0 commit comments

Comments
 (0)