Skip to content

Commit

Permalink
CodeGen from PR 16953 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Fixing s360 correctness items (Azure#16953)

* Fixing s360 correctness items

* Fixing spell check and prettier
  • Loading branch information
SDKAuto committed Dec 7, 2021
1 parent 3a14782 commit 9afc313
Show file tree
Hide file tree
Showing 63 changed files with 342 additions and 3,143 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "39fa4ceaedf67b74541cf0fc40dc6d4b89fac2a5",
"commit": "cf36bdc6bc70308a3f05f6399efe21a0e1e9b7d8",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
"readme": "specification/recoveryservicesbackup/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,6 @@
from .operations import RecoveryPointsRecommendedForMoveOperations
from .operations import ResourceGuardProxiesOperations
from .operations import ResourceGuardProxyOperations
from .operations import BackupUsageSummariesCRROperations
from .operations import AadPropertiesOperations
from .operations import CrossRegionRestoreOperations
from .operations import BackupCrrJobDetailsOperations
from .operations import BackupCrrJobsOperations
from .operations import CrrOperationResultsOperations
from .operations import CrrOperationStatusOperations
from .operations import BackupResourceStorageConfigsOperations
from .operations import RecoveryPointsCrrOperations
from .operations import BackupProtectedItemsCrrOperations
from . import models


Expand Down Expand Up @@ -168,26 +158,6 @@ class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin,
:vartype resource_guard_proxies: azure.mgmt.recoveryservicesbackup.operations.ResourceGuardProxiesOperations
:ivar resource_guard_proxy: ResourceGuardProxy operations
:vartype resource_guard_proxy: azure.mgmt.recoveryservicesbackup.operations.ResourceGuardProxyOperations
:ivar backup_usage_summaries_crr: BackupUsageSummariesCRR operations
:vartype backup_usage_summaries_crr: azure.mgmt.recoveryservicesbackup.operations.BackupUsageSummariesCRROperations
:ivar aad_properties: AadProperties operations
:vartype aad_properties: azure.mgmt.recoveryservicesbackup.operations.AadPropertiesOperations
:ivar cross_region_restore: CrossRegionRestore operations
:vartype cross_region_restore: azure.mgmt.recoveryservicesbackup.operations.CrossRegionRestoreOperations
:ivar backup_crr_job_details: BackupCrrJobDetails operations
:vartype backup_crr_job_details: azure.mgmt.recoveryservicesbackup.operations.BackupCrrJobDetailsOperations
:ivar backup_crr_jobs: BackupCrrJobs operations
:vartype backup_crr_jobs: azure.mgmt.recoveryservicesbackup.operations.BackupCrrJobsOperations
:ivar crr_operation_results: CrrOperationResults operations
:vartype crr_operation_results: azure.mgmt.recoveryservicesbackup.operations.CrrOperationResultsOperations
:ivar crr_operation_status: CrrOperationStatus operations
:vartype crr_operation_status: azure.mgmt.recoveryservicesbackup.operations.CrrOperationStatusOperations
:ivar backup_resource_storage_configs: BackupResourceStorageConfigs operations
:vartype backup_resource_storage_configs: azure.mgmt.recoveryservicesbackup.operations.BackupResourceStorageConfigsOperations
:ivar recovery_points_crr: RecoveryPointsCrr operations
:vartype recovery_points_crr: azure.mgmt.recoveryservicesbackup.operations.RecoveryPointsCrrOperations
:ivar backup_protected_items_crr: BackupProtectedItemsCrr operations
:vartype backup_protected_items_crr: azure.mgmt.recoveryservicesbackup.operations.BackupProtectedItemsCrrOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -204,6 +174,7 @@ def __init__(
super(RecoveryServicesBackupClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2021-08-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down Expand Up @@ -297,23 +268,3 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.resource_guard_proxy = ResourceGuardProxyOperations(
self._client, self.config, self._serialize, self._deserialize)
self.backup_usage_summaries_crr = BackupUsageSummariesCRROperations(
self._client, self.config, self._serialize, self._deserialize)
self.aad_properties = AadPropertiesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.cross_region_restore = CrossRegionRestoreOperations(
self._client, self.config, self._serialize, self._deserialize)
self.backup_crr_job_details = BackupCrrJobDetailsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.backup_crr_jobs = BackupCrrJobsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.crr_operation_results = CrrOperationResultsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.crr_operation_status = CrrOperationStatusOperations(
self._client, self.config, self._serialize, self._deserialize)
self.backup_resource_storage_configs = BackupResourceStorageConfigsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.recovery_points_crr = RecoveryPointsCrrOperations(
self._client, self.config, self._serialize, self._deserialize)
self.backup_protected_items_crr = BackupProtectedItemsCrrOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
# --------------------------------------------------------------------------

try:
from ._models_py3 import AADProperties
from ._models_py3 import AADPropertiesResource
from ._models_py3 import AzureBackupGoalFeatureSupportRequest
from ._models_py3 import AzureBackupServerContainer
from ._models_py3 import AzureBackupServerEngine
Expand Down Expand Up @@ -117,7 +115,6 @@
from ._models_py3 import BackupStatusRequest
from ._models_py3 import BackupStatusResponse
from ._models_py3 import BEKDetails
from ._models_py3 import BMSAADPropertiesQueryObject
from ._models_py3 import BMSBackupEngineQueryObject
from ._models_py3 import BMSBackupEnginesQueryObject
from ._models_py3 import BMSBackupSummariesQueryObject
Expand All @@ -134,12 +131,6 @@
from ._models_py3 import ClientDiscoveryValueForSingleApi
from ._models_py3 import ClientScriptForConnect
from ._models_py3 import ContainerIdentityInfo
from ._models_py3 import CrossRegionRestoreRequest
from ._models_py3 import CrossRegionRestoreRequestResource
from ._models_py3 import CrrAccessToken
from ._models_py3 import CrrAccessTokenResource
from ._models_py3 import CrrJobRequest
from ._models_py3 import CrrJobRequestResource
from ._models_py3 import DailyRetentionFormat
from ._models_py3 import DailyRetentionSchedule
from ._models_py3 import Day
Expand Down Expand Up @@ -174,7 +165,6 @@
from ._models_py3 import IaasVMRecoveryPoint
from ._models_py3 import IaasVMRestoreRequest
from ._models_py3 import IaasVMRestoreWithRehydrationRequest
from ._models_py3 import IdentityBasedRestoreDetails
from ._models_py3 import IdentityInfo
from ._models_py3 import ILRRequest
from ._models_py3 import ILRRequestResource
Expand Down Expand Up @@ -216,7 +206,6 @@
from ._models_py3 import OperationStatusJobExtendedInfo
from ._models_py3 import OperationStatusJobsExtendedInfo
from ._models_py3 import OperationStatusProvisionILRExtendedInfo
from ._models_py3 import OperationStatusRecoveryPointExtendedInfo
from ._models_py3 import OperationWorkerResponse
from ._models_py3 import PointInTimeRange
from ._models_py3 import PreBackupValidation
Expand Down Expand Up @@ -283,16 +272,13 @@
from ._models_py3 import VaultStorageConfigOperationResultResponse
from ._models_py3 import WeeklyRetentionFormat
from ._models_py3 import WeeklyRetentionSchedule
from ._models_py3 import WorkloadCrrAccessToken
from ._models_py3 import WorkloadInquiryDetails
from ._models_py3 import WorkloadItem
from ._models_py3 import WorkloadItemResource
from ._models_py3 import WorkloadProtectableItem
from ._models_py3 import WorkloadProtectableItemResource
from ._models_py3 import YearlyRetentionSchedule
except (SyntaxError, ImportError):
from ._models import AADProperties
from ._models import AADPropertiesResource
from ._models import AzureBackupGoalFeatureSupportRequest
from ._models import AzureBackupServerContainer
from ._models import AzureBackupServerEngine
Expand Down Expand Up @@ -398,7 +384,6 @@
from ._models import BackupStatusRequest
from ._models import BackupStatusResponse
from ._models import BEKDetails
from ._models import BMSAADPropertiesQueryObject
from ._models import BMSBackupEngineQueryObject
from ._models import BMSBackupEnginesQueryObject
from ._models import BMSBackupSummariesQueryObject
Expand All @@ -415,12 +400,6 @@
from ._models import ClientDiscoveryValueForSingleApi
from ._models import ClientScriptForConnect
from ._models import ContainerIdentityInfo
from ._models import CrossRegionRestoreRequest
from ._models import CrossRegionRestoreRequestResource
from ._models import CrrAccessToken
from ._models import CrrAccessTokenResource
from ._models import CrrJobRequest
from ._models import CrrJobRequestResource
from ._models import DailyRetentionFormat
from ._models import DailyRetentionSchedule
from ._models import Day
Expand Down Expand Up @@ -455,7 +434,6 @@
from ._models import IaasVMRecoveryPoint
from ._models import IaasVMRestoreRequest
from ._models import IaasVMRestoreWithRehydrationRequest
from ._models import IdentityBasedRestoreDetails
from ._models import IdentityInfo
from ._models import ILRRequest
from ._models import ILRRequestResource
Expand Down Expand Up @@ -497,7 +475,6 @@
from ._models import OperationStatusJobExtendedInfo
from ._models import OperationStatusJobsExtendedInfo
from ._models import OperationStatusProvisionILRExtendedInfo
from ._models import OperationStatusRecoveryPointExtendedInfo
from ._models import OperationWorkerResponse
from ._models import PointInTimeRange
from ._models import PreBackupValidation
Expand Down Expand Up @@ -564,7 +541,6 @@
from ._models import VaultStorageConfigOperationResultResponse
from ._models import WeeklyRetentionFormat
from ._models import WeeklyRetentionSchedule
from ._models import WorkloadCrrAccessToken
from ._models import WorkloadInquiryDetails
from ._models import WorkloadItem
from ._models import WorkloadItemResource
Expand Down Expand Up @@ -592,13 +568,13 @@
PrivateEndpointConnectionStatus,
ProtectionState,
ResourceHealthStatus,
HealthStatus,
RecoveryType,
CopyOptions,
RestoreRequestType,
WorkloadType,
PolicyType,
JobSupportedAction,
HealthStatus,
ProtectedItemState,
LastBackupStatus,
ProtectedItemHealthStatus,
Expand Down Expand Up @@ -647,8 +623,6 @@
)

__all__ = [
'AADProperties',
'AADPropertiesResource',
'AzureBackupGoalFeatureSupportRequest',
'AzureBackupServerContainer',
'AzureBackupServerEngine',
Expand Down Expand Up @@ -754,7 +728,6 @@
'BackupStatusRequest',
'BackupStatusResponse',
'BEKDetails',
'BMSAADPropertiesQueryObject',
'BMSBackupEngineQueryObject',
'BMSBackupEnginesQueryObject',
'BMSBackupSummariesQueryObject',
Expand All @@ -771,12 +744,6 @@
'ClientDiscoveryValueForSingleApi',
'ClientScriptForConnect',
'ContainerIdentityInfo',
'CrossRegionRestoreRequest',
'CrossRegionRestoreRequestResource',
'CrrAccessToken',
'CrrAccessTokenResource',
'CrrJobRequest',
'CrrJobRequestResource',
'DailyRetentionFormat',
'DailyRetentionSchedule',
'Day',
Expand Down Expand Up @@ -811,7 +778,6 @@
'IaasVMRecoveryPoint',
'IaasVMRestoreRequest',
'IaasVMRestoreWithRehydrationRequest',
'IdentityBasedRestoreDetails',
'IdentityInfo',
'ILRRequest',
'ILRRequestResource',
Expand Down Expand Up @@ -853,7 +819,6 @@
'OperationStatusJobExtendedInfo',
'OperationStatusJobsExtendedInfo',
'OperationStatusProvisionILRExtendedInfo',
'OperationStatusRecoveryPointExtendedInfo',
'OperationWorkerResponse',
'PointInTimeRange',
'PreBackupValidation',
Expand Down Expand Up @@ -920,7 +885,6 @@
'VaultStorageConfigOperationResultResponse',
'WeeklyRetentionFormat',
'WeeklyRetentionSchedule',
'WorkloadCrrAccessToken',
'WorkloadInquiryDetails',
'WorkloadItem',
'WorkloadItemResource',
Expand All @@ -947,13 +911,13 @@
'PrivateEndpointConnectionStatus',
'ProtectionState',
'ResourceHealthStatus',
'HealthStatus',
'RecoveryType',
'CopyOptions',
'RestoreRequestType',
'WorkloadType',
'PolicyType',
'JobSupportedAction',
'HealthStatus',
'ProtectedItemState',
'LastBackupStatus',
'ProtectedItemHealthStatus',
Expand Down
Loading

0 comments on commit 9afc313

Please sign in to comment.