Skip to content

Commit a689000

Browse files
azure-sdkChenxiJiang333
authored andcommitted
[AutoPR azure-mgmt-recoveryservicessiterecovery]-generated-from-SDK Generation - Python-6143541 (Azure#46275)
* Configurations: 'specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/SiteRecovery/tspconfig.yaml', API Version: 2025-08-01, SDK Release Type: beta, and CommitSHA: '8742677ebba334087cba3fe495a6512215f9190c' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6143541 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * update * update * Configurations: 'specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/SiteRecovery/tspconfig.yaml', API Version: 2025-08-01, SDK Release Type: beta, and CommitSHA: '1346e6b895a9091a6adbeec3505ee47f55d3ecee' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6212026 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * update * Update CHANGELOG.md --------- Co-authored-by: ChenxiJiang333 <v-chenjiang@microsoft.com> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
1 parent 5d6e362 commit a689000

314 files changed

Lines changed: 96209 additions & 83830 deletions

File tree

Some content is hidden

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

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

Lines changed: 423 additions & 0 deletions
Large diffs are not rendered by default.
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/recoveryservicessiterecovery/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-recoveryservicessiterecovery/_meta.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"apiVersion": "2025-08-01",
3+
"apiVersions": {
4+
"Microsoft.RecoveryServices": "2025-08-01"
5+
},
6+
"commit": "1346e6b895a9091a6adbeec3505ee47f55d3ecee",
7+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
8+
"typespec_src": "specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/SiteRecovery",
9+
"emitterVersion": "0.61.3"
10+
}

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

Lines changed: 909 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-recoveryservicessiterecovery/azure/mgmt/recoveryservicessiterecovery/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88
# pylint: disable=wrong-import-position
@@ -12,7 +12,7 @@
1212
if TYPE_CHECKING:
1313
from ._patch import * # pylint: disable=unused-wildcard-import
1414

15-
from ._site_recovery_management_client import SiteRecoveryManagementClient # type: ignore
15+
from ._client import SiteRecoveryManagementClient # type: ignore
1616
from ._version import VERSION
1717

1818
__version__ = VERSION

sdk/recoveryservices/azure-mgmt-recoveryservicessiterecovery/azure/mgmt/recoveryservicessiterecovery/_site_recovery_management_client.py renamed to sdk/recoveryservices/azure-mgmt-recoveryservicessiterecovery/azure/mgmt/recoveryservicessiterecovery/_client.py

Lines changed: 91 additions & 79 deletions
Large diffs are not rendered by default.

sdk/recoveryservices/azure-mgmt-recoveryservicessiterecovery/azure/mgmt/recoveryservicessiterecovery/_configuration.py

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python Code Generator.
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

@@ -23,43 +24,40 @@ class SiteRecoveryManagementClientConfiguration: # pylint: disable=too-many-ins
2324
Note that all parameters used to create this instance are saved as instance
2425
attributes.
2526
26-
:param credential: Credential needed for the client to connect to Azure. Required.
27+
:param credential: Credential used to authenticate requests to the service. Required.
2728
:type credential: ~azure.core.credentials.TokenCredential
28-
:param subscription_id: The subscription Id. Required.
29+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
2930
:type subscription_id: str
30-
:param resource_group_name: The name of the resource group where the recovery services vault is
31-
present. Required.
32-
:type resource_group_name: str
33-
:param resource_name: The name of the recovery services vault. Required.
34-
:type resource_name: str
35-
:keyword api_version: Api Version. Default value is "2025-01-01". Note that overriding this
36-
default value may result in unsupported behavior.
31+
:param base_url: Service host. Default value is "https://management.azure.com".
32+
:type base_url: str
33+
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
34+
None.
35+
:type cloud_setting: ~azure.core.AzureClouds
36+
:keyword api_version: The API version to use for this operation. Known values are "2025-08-01".
37+
Default value is "2025-08-01". Note that overriding this default value may result in
38+
unsupported behavior.
3739
:paramtype api_version: str
3840
"""
3941

4042
def __init__(
4143
self,
4244
credential: "TokenCredential",
4345
subscription_id: str,
44-
resource_group_name: str,
45-
resource_name: str,
46+
base_url: str = "https://management.azure.com",
47+
cloud_setting: Optional["AzureClouds"] = None,
4648
**kwargs: Any
4749
) -> None:
48-
api_version: str = kwargs.pop("api_version", "2025-01-01")
50+
api_version: str = kwargs.pop("api_version", "2025-08-01")
4951

5052
if credential is None:
5153
raise ValueError("Parameter 'credential' must not be None.")
5254
if subscription_id is None:
5355
raise ValueError("Parameter 'subscription_id' must not be None.")
54-
if resource_group_name is None:
55-
raise ValueError("Parameter 'resource_group_name' must not be None.")
56-
if resource_name is None:
57-
raise ValueError("Parameter 'resource_name' must not be None.")
5856

5957
self.credential = credential
6058
self.subscription_id = subscription_id
61-
self.resource_group_name = resource_group_name
62-
self.resource_name = resource_name
59+
self.base_url = base_url
60+
self.cloud_setting = cloud_setting
6361
self.api_version = api_version
6462
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
6563
kwargs.setdefault("sdk_moniker", "mgmt-recoveryservicessiterecovery/{}".format(VERSION))

0 commit comments

Comments
 (0)