Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "3ce1e043e2d0e57016437a3870f40e33da8a6397",
"commit": "b3b3f840e62e6938389a8fa1d27629934f7830a5",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.2.7",
"@autorest/modelerfour@4.24.3"
],
"autorest_command": "autorest specification/recoveryservicessiterecovery/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.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/recoveryservicessiterecovery/resource-manager/readme.md --generate-sample=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.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"readme": "specification/recoveryservicessiterecovery/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SiteRecoveryManagementClientConfiguration(Configuration): # pylint: disab
:type resource_group_name: str
:param resource_name: The name of the recovery services vault. Required.
:type resource_name: str
:keyword api_version: Api Version. Default value is "2022-09-10". Note that overriding this
:keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""
Expand All @@ -54,7 +54,7 @@ def __init__(
**kwargs: Any
) -> None:
super(SiteRecoveryManagementClientConfiguration, self).__init__(**kwargs)
api_version: Literal["2022-09-10"] = kwargs.pop("api_version", "2022-09-10")
api_version: Literal["2022-10-01"] = kwargs.pop("api_version", "2022-10-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class SiteRecoveryManagementClient: # pylint: disable=client-accepts-api-versio
:type resource_name: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2022-09-10". Note that overriding this
:keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b2"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SiteRecoveryManagementClientConfiguration(Configuration): # pylint: disab
:type resource_group_name: str
:param resource_name: The name of the recovery services vault. Required.
:type resource_name: str
:keyword api_version: Api Version. Default value is "2022-09-10". Note that overriding this
:keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""
Expand All @@ -54,7 +54,7 @@ def __init__(
**kwargs: Any
) -> None:
super(SiteRecoveryManagementClientConfiguration, self).__init__(**kwargs)
api_version: Literal["2022-09-10"] = kwargs.pop("api_version", "2022-09-10")
api_version: Literal["2022-10-01"] = kwargs.pop("api_version", "2022-10-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class SiteRecoveryManagementClient: # pylint: disable=client-accepts-api-versio
:type resource_name: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2022-09-10". Note that overriding this
:keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def list_by_replication_migration_items(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2022-09-10"] = kwargs.pop(
api_version: Literal["2022-10-01"] = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
)
cls: ClsType[_models.MigrationRecoveryPointCollection] = kwargs.pop("cls", None)
Expand Down Expand Up @@ -198,7 +198,7 @@ async def get(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2022-09-10"] = kwargs.pop(
api_version: Literal["2022-10-01"] = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
)
cls: ClsType[_models.MigrationRecoveryPoint] = kwargs.pop("cls", None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationsDiscovery"]:
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2022-09-10"] = kwargs.pop(
api_version: Literal["2022-10-01"] = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
)
cls: ClsType[_models.OperationsDiscoveryCollection] = kwargs.pop("cls", None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, *args, **kwargs) -> None:

@distributed_trace
def list_by_replication_protected_items(
self, fabric_name: str, protection_container_name: str, replicated_protected_item_name: str, **kwargs: Any
self, fabric_name: str, protection_container_name: str, replication_protected_item_name: str, **kwargs: Any
) -> AsyncIterable["_models.RecoveryPoint"]:
"""Gets the list of recovery points for a replication protected item.

Expand All @@ -73,8 +73,8 @@ def list_by_replication_protected_items(
:type fabric_name: str
:param protection_container_name: The protection container name. Required.
:type protection_container_name: str
:param replicated_protected_item_name: The replication protected item name. Required.
:type replicated_protected_item_name: str
:param replication_protected_item_name: The replication protected item name. Required.
:type replication_protected_item_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either RecoveryPoint or the result of cls(response)
:rtype:
Expand All @@ -84,7 +84,7 @@ def list_by_replication_protected_items(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2022-09-10"] = kwargs.pop(
api_version: Literal["2022-10-01"] = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
)
cls: ClsType[_models.RecoveryPointCollection] = kwargs.pop("cls", None)
Expand All @@ -103,7 +103,7 @@ def prepare_request(next_link=None):
request = build_list_by_replication_protected_items_request(
fabric_name=fabric_name,
protection_container_name=protection_container_name,
replicated_protected_item_name=replicated_protected_item_name,
replication_protected_item_name=replication_protected_item_name,
resource_name=self._config.resource_name,
resource_group_name=self._config.resource_group_name,
subscription_id=self._config.subscription_id,
Expand Down Expand Up @@ -157,15 +157,15 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)

list_by_replication_protected_items.metadata = {
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints"
"url": "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicationProtectedItemName}/recoveryPoints"
}

@distributed_trace_async
async def get(
self,
fabric_name: str,
protection_container_name: str,
replicated_protected_item_name: str,
replication_protected_item_name: str,
recovery_point_name: str,
**kwargs: Any
) -> _models.RecoveryPoint:
Expand All @@ -177,8 +177,8 @@ async def get(
:type fabric_name: str
:param protection_container_name: The protection container name. Required.
:type protection_container_name: str
:param replicated_protected_item_name: The replication protected item name. Required.
:type replicated_protected_item_name: str
:param replication_protected_item_name: The replication protected item name. Required.
:type replication_protected_item_name: str
:param recovery_point_name: The recovery point name. Required.
:type recovery_point_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
Expand All @@ -197,15 +197,15 @@ async def get(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2022-09-10"] = kwargs.pop(
api_version: Literal["2022-10-01"] = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
)
cls: ClsType[_models.RecoveryPoint] = kwargs.pop("cls", None)

request = build_get_request(
fabric_name=fabric_name,
protection_container_name=protection_container_name,
replicated_protected_item_name=replicated_protected_item_name,
replication_protected_item_name=replication_protected_item_name,
recovery_point_name=recovery_point_name,
resource_name=self._config.resource_name,
resource_group_name=self._config.resource_group_name,
Expand Down Expand Up @@ -236,5 +236,5 @@ async def get(
return deserialized

get.metadata = {
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints/{recoveryPointName}"
"url": "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicationProtectedItemName}/recoveryPoints/{recoveryPointName}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.Alert"]:
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2022-09-10"] = kwargs.pop(
api_version: Literal["2022-10-01"] = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
)
cls: ClsType[_models.AlertCollection] = kwargs.pop("cls", None)
Expand Down Expand Up @@ -174,7 +174,7 @@ async def get(self, alert_setting_name: str, **kwargs: Any) -> _models.Alert:
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2022-09-10"] = kwargs.pop(
api_version: Literal["2022-10-01"] = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
)
cls: ClsType[_models.Alert] = kwargs.pop("cls", None)
Expand Down Expand Up @@ -292,7 +292,7 @@ async def create(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2022-09-10"] = kwargs.pop(
api_version: Literal["2022-10-01"] = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
)
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def list(self, filter: Optional[str] = None, **kwargs: Any) -> AsyncIterable["_m
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2022-09-10"] = kwargs.pop(
api_version: Literal["2022-10-01"] = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
)
cls: ClsType[_models.ApplianceCollection] = kwargs.pop("cls", None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async def list(self, virtual_machine_name: str, **kwargs: Any) -> _models.Replic
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2022-09-10"] = kwargs.pop(
api_version: Literal["2022-10-01"] = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
)
cls: ClsType[_models.ReplicationEligibilityResultsCollection] = kwargs.pop("cls", None)
Expand Down Expand Up @@ -141,7 +141,7 @@ async def get(self, virtual_machine_name: str, **kwargs: Any) -> _models.Replica
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2022-09-10"] = kwargs.pop(
api_version: Literal["2022-10-01"] = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
)
cls: ClsType[_models.ReplicationEligibilityResults] = kwargs.pop("cls", None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def list(self, filter: Optional[str] = None, **kwargs: Any) -> AsyncIterable["_m
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2022-09-10"] = kwargs.pop(
api_version: Literal["2022-10-01"] = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
)
cls: ClsType[_models.EventCollection] = kwargs.pop("cls", None)
Expand Down Expand Up @@ -173,7 +173,7 @@ async def get(self, event_name: str, **kwargs: Any) -> _models.Event:
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2022-09-10"] = kwargs.pop(
api_version: Literal["2022-10-01"] = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
)
cls: ClsType[_models.Event] = kwargs.pop("cls", None)
Expand Down
Loading