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": "5fb045bd44f143bae17da2e01552ae531f77d0ba",
"commit": "df7192de3a87365c92de697d97c6c182f1f6cfea",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/recoveryservicesbackup/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/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"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/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"readme": "specification/recoveryservicesbackup/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class RecoveryServicesBackupClientConfiguration(Configuration): # pylint: disab
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription Id. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-06-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(RecoveryServicesBackupClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-04-01")
api_version: str = kwargs.pop("api_version", "2023-06-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 @@ -36,6 +36,8 @@
DeletedProtectionContainersOperations,
ExportJobsOperationResultsOperations,
FeatureSupportOperations,
FetchTieringCostOperations,
GetTieringCostOperationResultOperations,
ItemLevelRecoveryConnectionsOperations,
JobCancellationsOperations,
JobDetailsOperations,
Expand Down Expand Up @@ -63,6 +65,7 @@
ResourceGuardProxyOperations,
RestoresOperations,
SecurityPINsOperations,
TieringCostOperationStatusOperations,
ValidateOperationOperations,
ValidateOperationResultsOperations,
ValidateOperationStatusesOperations,
Expand Down Expand Up @@ -228,13 +231,22 @@ class RecoveryServicesBackupClient(
:ivar resource_guard_proxy: ResourceGuardProxyOperations operations
:vartype resource_guard_proxy:
azure.mgmt.recoveryservicesbackup.activestamp.operations.ResourceGuardProxyOperations
:ivar fetch_tiering_cost: FetchTieringCostOperations operations
:vartype fetch_tiering_cost:
azure.mgmt.recoveryservicesbackup.activestamp.operations.FetchTieringCostOperations
:ivar get_tiering_cost_operation_result: GetTieringCostOperationResultOperations operations
:vartype get_tiering_cost_operation_result:
azure.mgmt.recoveryservicesbackup.activestamp.operations.GetTieringCostOperationResultOperations
:ivar tiering_cost_operation_status: TieringCostOperationStatusOperations operations
:vartype tiering_cost_operation_status:
azure.mgmt.recoveryservicesbackup.activestamp.operations.TieringCostOperationStatusOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription Id. Required.
:type subscription_id: 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 "2023-04-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-06-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 Expand Up @@ -376,6 +388,15 @@ def __init__(
self.resource_guard_proxy = ResourceGuardProxyOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.fetch_tiering_cost = FetchTieringCostOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.get_tiering_cost_operation_result = GetTieringCostOperationResultOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.tiering_cost_operation_status = TieringCostOperationStatusOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
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 = "7.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class RecoveryServicesBackupClientConfiguration(Configuration): # pylint: disab
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The subscription Id. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-06-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(RecoveryServicesBackupClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-04-01")
api_version: str = kwargs.pop("api_version", "2023-06-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 @@ -36,6 +36,8 @@
DeletedProtectionContainersOperations,
ExportJobsOperationResultsOperations,
FeatureSupportOperations,
FetchTieringCostOperations,
GetTieringCostOperationResultOperations,
ItemLevelRecoveryConnectionsOperations,
JobCancellationsOperations,
JobDetailsOperations,
Expand Down Expand Up @@ -63,6 +65,7 @@
ResourceGuardProxyOperations,
RestoresOperations,
SecurityPINsOperations,
TieringCostOperationStatusOperations,
ValidateOperationOperations,
ValidateOperationResultsOperations,
ValidateOperationStatusesOperations,
Expand Down Expand Up @@ -230,13 +233,22 @@ class RecoveryServicesBackupClient(
:ivar resource_guard_proxy: ResourceGuardProxyOperations operations
:vartype resource_guard_proxy:
azure.mgmt.recoveryservicesbackup.activestamp.aio.operations.ResourceGuardProxyOperations
:ivar fetch_tiering_cost: FetchTieringCostOperations operations
:vartype fetch_tiering_cost:
azure.mgmt.recoveryservicesbackup.activestamp.aio.operations.FetchTieringCostOperations
:ivar get_tiering_cost_operation_result: GetTieringCostOperationResultOperations operations
:vartype get_tiering_cost_operation_result:
azure.mgmt.recoveryservicesbackup.activestamp.aio.operations.GetTieringCostOperationResultOperations
:ivar tiering_cost_operation_status: TieringCostOperationStatusOperations operations
:vartype tiering_cost_operation_status:
azure.mgmt.recoveryservicesbackup.activestamp.aio.operations.TieringCostOperationStatusOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The subscription Id. Required.
:type subscription_id: 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 "2023-04-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-06-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 Expand Up @@ -378,6 +390,15 @@ def __init__(
self.resource_guard_proxy = ResourceGuardProxyOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.fetch_tiering_cost = FetchTieringCostOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.get_tiering_cost_operation_result = GetTieringCostOperationResultOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.tiering_cost_operation_status = TieringCostOperationStatusOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
from ._recovery_points_recommended_for_move_operations import RecoveryPointsRecommendedForMoveOperations
from ._resource_guard_proxies_operations import ResourceGuardProxiesOperations
from ._resource_guard_proxy_operations import ResourceGuardProxyOperations
from ._fetch_tiering_cost_operations import FetchTieringCostOperations
from ._get_tiering_cost_operation_result_operations import GetTieringCostOperationResultOperations
from ._tiering_cost_operation_status_operations import TieringCostOperationStatusOperations

from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
Expand Down Expand Up @@ -114,6 +117,9 @@
"RecoveryPointsRecommendedForMoveOperations",
"ResourceGuardProxiesOperations",
"ResourceGuardProxyOperations",
"FetchTieringCostOperations",
"GetTieringCostOperationResultOperations",
"TieringCostOperationStatusOperations",
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Loading