Skip to content

Commit 177fc7a

Browse files
committed
Configurations: 'specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/RecoveryServices/tspconfig.yaml', API Version: 2026-07-01, SDK Release Type: stable, and CommitSHA: 'e9b8d33567e9422a09711667279fe178fada51a1' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6697506 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
1 parent c0df756 commit 177fc7a

65 files changed

Lines changed: 794 additions & 1404 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-recoveryservices/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+
## 4.2.0 (2026-08-13)
4+
5+
### Features Added
6+
7+
- Model `VaultProperties` added property `region_of_choice_settings`
8+
- Added model `RegionOfChoiceSettings`
9+
310
## 4.1.0 (2026-07-07)
411

512
### Features Added
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"apiVersion": "2026-05-01",
2+
"apiVersion": "2026-07-01",
33
"apiVersions": {
4-
"Microsoft.RecoveryServices": "2026-05-01"
4+
"Microsoft.RecoveryServices": "2026-07-01"
55
},
6-
"commit": "3de4ed97d8bf726aa7fb8dea311a5a7d5ec59730",
6+
"commit": "e9b8d33567e9422a09711667279fe178fada51a1",
77
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
88
"typespec_src": "specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/RecoveryServices",
9-
"emitterVersion": "0.63.2",
10-
"httpClientPythonVersion": "^0.34.0"
9+
"emitterVersion": "0.63.3",
10+
"httpClientPythonVersion": "^0.35.1"
1111
}

sdk/recoveryservices/azure-mgmt-recoveryservices/api.md

Lines changed: 110 additions & 395 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
apiMdSha256: 048fa63bd2e03305602a82d48677c12303884877039cc2e34b93c025b944e82f
2-
parserVersion: 0.3.28
1+
apiMdSha256: a818033c280b1ec0f8dee0207c88a0766717cca0f5096ebcd6f190d08d81e1bf
2+
parserVersion: 0.3.31
33
pythonVersion: 3.13.14

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"azure.mgmt.recoveryservices.models.PrivateLinkResourceProperties": "Microsoft.RecoveryServices.PrivateLinkResourceProperties",
5151
"azure.mgmt.recoveryservices.models.PrivateLinkServiceConnectionState": "Microsoft.RecoveryServices.PrivateLinkServiceConnectionState",
5252
"azure.mgmt.recoveryservices.models.RawCertificateData": "Microsoft.RecoveryServices.RawCertificateData",
53+
"azure.mgmt.recoveryservices.models.RegionOfChoiceSettings": "Microsoft.RecoveryServices.RegionOfChoiceSettings",
5354
"azure.mgmt.recoveryservices.models.ReplicationUsage": "Microsoft.RecoveryServices.ReplicationUsage",
5455
"azure.mgmt.recoveryservices.models.ResourceCapabilities": "Microsoft.RecoveryServices.ResourceCapabilities",
5556
"azure.mgmt.recoveryservices.models.ResourceCertificateDetails": "Microsoft.RecoveryServices.ResourceCertificateDetails",
@@ -151,5 +152,5 @@
151152
"azure.mgmt.recoveryservices.RecoveryServicesClient.get_operation_result": "Microsoft.RecoveryServices.getOperationResult",
152153
"azure.mgmt.recoveryservices.aio.RecoveryServicesClient.get_operation_result": "Microsoft.RecoveryServices.getOperationResult"
153154
},
154-
"CrossLanguageVersion": "45e8bbe08725"
155+
"CrossLanguageVersion": "4cffd300683a"
155156
}

sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
from azure.core.credentials import TokenCredential
4444

4545

46-
class RecoveryServicesClient(_RecoveryServicesClientOperationsMixin): # pylint: disable=too-many-instance-attributes
46+
class RecoveryServicesClient(
47+
_RecoveryServicesClientOperationsMixin
48+
): # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only
4749
"""RecoveryServicesClient.
4850
4951
:ivar operations: Operations operations
@@ -78,7 +80,7 @@ class RecoveryServicesClient(_RecoveryServicesClientOperationsMixin): # pylint:
7880
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
7981
None.
8082
:paramtype cloud_setting: ~azure.core.AzureClouds
81-
:keyword api_version: The API version to use for this operation. Known values are "2026-05-01"
83+
:keyword api_version: The API version to use for this operation. Known values are "2026-07-01"
8284
and None. Default value is None. If not set, the operation's default API version will be used.
8385
Note that overriding this default value may result in unsupported behavior.
8486
:paramtype api_version: str

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=line-too-long,useless-suppression
12
# coding=utf-8
23
# --------------------------------------------------------------------------
34
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -18,7 +19,7 @@
1819
from azure.core.credentials import TokenCredential
1920

2021

21-
class RecoveryServicesClientConfiguration: # pylint: disable=too-many-instance-attributes
22+
class RecoveryServicesClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only
2223
"""Configuration for RecoveryServicesClient.
2324
2425
Note that all parameters used to create this instance are saved as instance
@@ -33,7 +34,7 @@ class RecoveryServicesClientConfiguration: # pylint: disable=too-many-instance-
3334
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
3435
None.
3536
:type cloud_setting: ~azure.core.AzureClouds
36-
:keyword api_version: The API version to use for this operation. Known values are "2026-05-01"
37+
:keyword api_version: The API version to use for this operation. Known values are "2026-07-01"
3738
and None. Default value is None. If not set, the operation's default API version will be used.
3839
Note that overriding this default value may result in unsupported behavior.
3940
:paramtype api_version: str
@@ -47,7 +48,7 @@ def __init__(
4748
cloud_setting: Optional["AzureClouds"] = None,
4849
**kwargs: Any
4950
) -> None:
50-
api_version: str = kwargs.pop("api_version", "2026-05-01")
51+
api_version: str = kwargs.pop("api_version", "2026-07-01")
5152

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

sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_utils/model_base.py

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,15 @@ def _is_readonly(p):
158158

159159

160160
class SdkJSONEncoder(JSONEncoder):
161-
"""A JSON encoder that's capable of serializing datetime objects and bytes."""
161+
"""A JSON encoder that's capable of serializing datetime objects and bytes.
162+
163+
:param args: Additional positional arguments passed to the base ``JSONEncoder``.
164+
:type args: typing.Any
165+
:keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False.
166+
:paramtype exclude_readonly: bool
167+
:keyword format: The format to use for serialization. Defaults to None.
168+
:paramtype format: typing.Optional[str]
169+
"""
162170

163171
def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs):
164172
super().__init__(*args, **kwargs)
@@ -342,6 +350,12 @@ def _deserialize_int_as_str(attr):
342350
return int(attr)
343351

344352

353+
def _deserialize_bool_as_str(attr):
354+
if isinstance(attr, bool):
355+
return attr
356+
return attr.lower() == "true"
357+
358+
345359
_DESERIALIZE_MAPPING = {
346360
datetime: _deserialize_datetime,
347361
date: _deserialize_date,
@@ -369,6 +383,8 @@ def _deserialize_int_as_str(attr):
369383
def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None):
370384
if annotation is int and rf and rf._format == "str":
371385
return _deserialize_int_as_str
386+
if annotation is bool and rf and rf._format == "str":
387+
return _deserialize_bool_as_str
372388
if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING:
373389
return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format])
374390
if rf and rf._format:
@@ -458,21 +474,21 @@ def __ne__(self, other: typing.Any) -> bool:
458474

459475
def keys(self) -> typing.KeysView[str]:
460476
"""
461-
:returns: a set-like object providing a view on D's keys
477+
:returns: a set-like object providing a view on the mapping's keys
462478
:rtype: ~typing.KeysView
463479
"""
464480
return self._data.keys()
465481

466482
def values(self) -> typing.ValuesView[typing.Any]:
467483
"""
468-
:returns: an object providing a view on D's values
484+
:returns: an object providing a view on the mapping's values
469485
:rtype: ~typing.ValuesView
470486
"""
471487
return self._data.values()
472488

473489
def items(self) -> typing.ItemsView[str, typing.Any]:
474490
"""
475-
:returns: set-like object providing a view on D's items
491+
:returns: a set-like object providing a view on the mapping's items
476492
:rtype: ~typing.ItemsView
477493
"""
478494
return self._data.items()
@@ -482,7 +498,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any:
482498
Get the value for key if key is in the dictionary, else default.
483499
:param str key: The key to look up.
484500
:param any default: The value to return if key is not in the dictionary. Defaults to None
485-
:returns: D[k] if k in D, else d.
501+
:returns: The value for key if key is in the dictionary, else default.
486502
:rtype: any
487503
"""
488504
try:
@@ -517,19 +533,19 @@ def popitem(self) -> tuple[str, typing.Any]:
517533
Removes and returns some (key, value) pair
518534
:returns: The (key, value) pair.
519535
:rtype: tuple
520-
:raises KeyError: if D is empty.
536+
:raises KeyError: if the dictionary is empty.
521537
"""
522538
return self._data.popitem()
523539

524540
def clear(self) -> None:
525541
"""
526-
Remove all items from D.
542+
Remove all items from the dictionary.
527543
"""
528544
self._data.clear()
529545

530546
def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ
531547
"""
532-
Updates D from mapping/iterable E and F.
548+
Update the dictionary from a mapping or an iterable of key-value pairs.
533549
:param any args: Either a mapping object or an iterable of key-value pairs.
534550
"""
535551
self._data.update(*args, **kwargs)
@@ -542,10 +558,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint
542558

543559
def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any:
544560
"""
545-
Same as calling D.get(k, d), and setting D[k]=d if k not found
561+
Return the value for key if key is in the dictionary; otherwise set the key to
562+
default and return default.
546563
:param str key: The key to look up.
547564
:param any default: The value to set if key is not in the dictionary
548-
:returns: D[k] if k in D, else d.
565+
:returns: The value for key if key is in the dictionary, else default.
549566
:rtype: any
550567
"""
551568
if default is _UNSET:

sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_utils/serialization.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,11 @@ def _decode_attribute_map_key(key):
480480

481481

482482
class Serializer: # pylint: disable=too-many-public-methods
483-
"""Request object model serializer."""
483+
"""Request object model serializer.
484+
485+
:param classes: Mapping of model names to model types, used to resolve models during serialization.
486+
:type classes: typing.Optional[typing.Mapping[str, type]]
487+
"""
484488

485489
basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
486490

sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "4.1.0"
9+
VERSION = "4.2.0"

0 commit comments

Comments
 (0)