Skip to content

Commit

Permalink
CodeGen from PR 19425 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Swagger update for 2022-06-01-preview version for recoveryservices-backup (Azure#19182) (Azure#19425)

* Adding base version 2022-03-01

* Adding changes for new version

* Updating readme and custom words

* Fixing typo

* Adding saphanaDBInstance to protected items

* Fixing lintdiff issues

* Adding back tiering policy changes

* Fixing swagger correctness issues
  • Loading branch information
SDKAuto committed Jun 22, 2022
1 parent 0ea015b commit e662829
Show file tree
Hide file tree
Showing 151 changed files with 7,921 additions and 6,724 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.7.2",
"use": [
"@autorest/python@5.13.0",
"@autorest/python@5.16.0",
"@autorest/[email protected]"
],
"commit": "7145001d2fffdcfe811c66baf9fef359c3180669",
"commit": "1a95386d918ae9e9111cd4bd0b7684b82aaa4f45",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/[email protected] --version=3.7.2",
"autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/recoveryservicesbackup/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['RecoveryServicesBackupClient']
__all__.extend([p for p in _patch_all if p not in __all__])

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
from ._patch import patch_sdk
patch_sdk()
_patch_sdk()

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -199,54 +199,150 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.backup_resource_storage_configs_non_crr = BackupResourceStorageConfigsNonCRROperations(self._client, self._config, self._serialize, self._deserialize)
self.protection_intent = ProtectionIntentOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_status = BackupStatusOperations(self._client, self._config, self._serialize, self._deserialize)
self.feature_support = FeatureSupportOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_protection_intent = BackupProtectionIntentOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_usage_summaries = BackupUsageSummariesOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.backup_resource_vault_configs = BackupResourceVaultConfigsOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_resource_encryption_configs = BackupResourceEncryptionConfigsOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connection = PrivateEndpointConnectionOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint = PrivateEndpointOperations(self._client, self._config, self._serialize, self._deserialize)
self.bms_prepare_data_move_operation_result = BMSPrepareDataMoveOperationResultOperations(self._client, self._config, self._serialize, self._deserialize)
self.protected_items = ProtectedItemsOperations(self._client, self._config, self._serialize, self._deserialize)
self.protected_item_operation_results = ProtectedItemOperationResultsOperations(self._client, self._config, self._serialize, self._deserialize)
self.recovery_points = RecoveryPointsOperations(self._client, self._config, self._serialize, self._deserialize)
self.restores = RestoresOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_policies = BackupPoliciesOperations(self._client, self._config, self._serialize, self._deserialize)
self.protection_policies = ProtectionPoliciesOperations(self._client, self._config, self._serialize, self._deserialize)
self.protection_policy_operation_results = ProtectionPolicyOperationResultsOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_jobs = BackupJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.job_details = JobDetailsOperations(self._client, self._config, self._serialize, self._deserialize)
self.job_cancellations = JobCancellationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.job_operation_results = JobOperationResultsOperations(self._client, self._config, self._serialize, self._deserialize)
self.export_jobs_operation_results = ExportJobsOperationResultsOperations(self._client, self._config, self._serialize, self._deserialize)
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_protected_items = BackupProtectedItemsOperations(self._client, self._config, self._serialize, self._deserialize)
self.operation = OperationOperations(self._client, self._config, self._serialize, self._deserialize)
self.validate_operation = ValidateOperationOperations(self._client, self._config, self._serialize, self._deserialize)
self.validate_operation_results = ValidateOperationResultsOperations(self._client, self._config, self._serialize, self._deserialize)
self.validate_operation_statuses = ValidateOperationStatusesOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_engines = BackupEnginesOperations(self._client, self._config, self._serialize, self._deserialize)
self.protection_container_refresh_operation_results = ProtectionContainerRefreshOperationResultsOperations(self._client, self._config, self._serialize, self._deserialize)
self.protectable_containers = ProtectableContainersOperations(self._client, self._config, self._serialize, self._deserialize)
self.protection_containers = ProtectionContainersOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_workload_items = BackupWorkloadItemsOperations(self._client, self._config, self._serialize, self._deserialize)
self.protection_container_operation_results = ProtectionContainerOperationResultsOperations(self._client, self._config, self._serialize, self._deserialize)
self.backups = BackupsOperations(self._client, self._config, self._serialize, self._deserialize)
self.protected_item_operation_statuses = ProtectedItemOperationStatusesOperations(self._client, self._config, self._serialize, self._deserialize)
self.item_level_recovery_connections = ItemLevelRecoveryConnectionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_operation_results = BackupOperationResultsOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_operation_statuses = BackupOperationStatusesOperations(self._client, self._config, self._serialize, self._deserialize)
self.protection_policy_operation_statuses = ProtectionPolicyOperationStatusesOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_protectable_items = BackupProtectableItemsOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_protection_containers = BackupProtectionContainersOperations(self._client, self._config, self._serialize, self._deserialize)
self.security_pins = SecurityPINsOperations(self._client, self._config, self._serialize, self._deserialize)
self.recovery_points_recommended_for_move = RecoveryPointsRecommendedForMoveOperations(self._client, self._config, self._serialize, self._deserialize)
self.resource_guard_proxies = ResourceGuardProxiesOperations(self._client, self._config, self._serialize, self._deserialize)
self.resource_guard_proxy = ResourceGuardProxyOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_resource_storage_configs_non_crr = BackupResourceStorageConfigsNonCRROperations(
self._client, self._config, self._serialize, self._deserialize
)
self.protection_intent = ProtectionIntentOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_status = BackupStatusOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.feature_support = FeatureSupportOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_protection_intent = BackupProtectionIntentOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_usage_summaries = BackupUsageSummariesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_resource_vault_configs = BackupResourceVaultConfigsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_resource_encryption_configs = BackupResourceEncryptionConfigsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_endpoint_connection = PrivateEndpointConnectionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_endpoint = PrivateEndpointOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.bms_prepare_data_move_operation_result = BMSPrepareDataMoveOperationResultOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.protected_items = ProtectedItemsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.protected_item_operation_results = ProtectedItemOperationResultsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.recovery_points = RecoveryPointsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.restores = RestoresOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_policies = BackupPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.protection_policies = ProtectionPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.protection_policy_operation_results = ProtectionPolicyOperationResultsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_jobs = BackupJobsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.job_details = JobDetailsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.job_cancellations = JobCancellationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.job_operation_results = JobOperationResultsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.export_jobs_operation_results = ExportJobsOperationResultsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.jobs = JobsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_protected_items = BackupProtectedItemsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operation = OperationOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.validate_operation = ValidateOperationOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.validate_operation_results = ValidateOperationResultsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.validate_operation_statuses = ValidateOperationStatusesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_engines = BackupEnginesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.protection_container_refresh_operation_results = ProtectionContainerRefreshOperationResultsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.protectable_containers = ProtectableContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.protection_containers = ProtectionContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_workload_items = BackupWorkloadItemsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.protection_container_operation_results = ProtectionContainerOperationResultsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backups = BackupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.protected_item_operation_statuses = ProtectedItemOperationStatusesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.item_level_recovery_connections = ItemLevelRecoveryConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_operation_results = BackupOperationResultsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_operation_statuses = BackupOperationStatusesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.protection_policy_operation_statuses = ProtectionPolicyOperationStatusesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_protectable_items = BackupProtectableItemsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_protection_containers = BackupProtectionContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.security_pins = SecurityPINsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.recovery_points_recommended_for_move = RecoveryPointsRecommendedForMoveOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.resource_guard_proxies = ResourceGuardProxiesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.resource_guard_proxy = ResourceGuardProxyOperations(
self._client, self._config, self._serialize, self._deserialize
)


def _send_request(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,19 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from abc import ABC
from typing import TYPE_CHECKING

from azure.core.pipeline.transport import HttpRequest

from ._configuration import RecoveryServicesBackupClientConfiguration

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from msrest import Deserializer, Serializer

from azure.core import PipelineClient

def _convert_request(request, files=None):
data = request.content if not files else None
request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data)
Expand All @@ -25,3 +36,10 @@ def _format_url_section(template, **kwargs):
c for c in formatted_components if "{}".format(key.args[0]) not in c
]
template = "/".join(components)

class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""
_client: "PipelineClient"
_config: RecoveryServicesBackupClientConfiguration
_serialize: "Serializer"
_deserialize: "Deserializer"
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 = "5.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
# --------------------------------------------------------------------------

from ._recovery_services_backup_client import RecoveryServicesBackupClient

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['RecoveryServicesBackupClient']
__all__.extend([p for p in _patch_all if p not in __all__])

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
from ._patch import patch_sdk
patch_sdk()
_patch_sdk()
Loading

0 comments on commit e662829

Please sign in to comment.