Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-recoveryservicesbackup] RecoveryServicesBackup: Minor update to new ValidateOperation async API #7747

Draft
wants to merge 1 commit into
base: release/v3
Choose a base branch
from
Draft
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,7 +1,7 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "39fa4ceaedf67b74541cf0fc40dc6d4b89fac2a5",
"commit": "4e7384444672fe41731715eeae6e5ba7576c04db",
"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 --use=@microsoft.azure/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 @@ -41,6 +41,9 @@
from .operations import JobsOperations
from .operations import BackupProtectedItemsOperations
from .operations import OperationOperations
from .operations import ValidateOperationOperations
from .operations import ValidateOperationResultsOperations
from .operations import ValidateOperationStatusesOperations
from .operations import BackupEnginesOperations
from .operations import ProtectionContainerRefreshOperationResultsOperations
from .operations import ProtectableContainersOperations
Expand Down Expand Up @@ -132,6 +135,12 @@ class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin,
:vartype backup_protected_items: azure.mgmt.recoveryservicesbackup.operations.BackupProtectedItemsOperations
:ivar operation: Operation operations
:vartype operation: azure.mgmt.recoveryservicesbackup.operations.OperationOperations
:ivar validate_operation: ValidateOperation operations
:vartype validate_operation: azure.mgmt.recoveryservicesbackup.operations.ValidateOperationOperations
:ivar validate_operation_results: ValidateOperationResults operations
:vartype validate_operation_results: azure.mgmt.recoveryservicesbackup.operations.ValidateOperationResultsOperations
:ivar validate_operation_statuses: ValidateOperationStatuses operations
:vartype validate_operation_statuses: azure.mgmt.recoveryservicesbackup.operations.ValidateOperationStatusesOperations
:ivar backup_engines: BackupEngines operations
:vartype backup_engines: azure.mgmt.recoveryservicesbackup.operations.BackupEnginesOperations
:ivar protection_container_refresh_operation_results: ProtectionContainerRefreshOperationResults operations
Expand Down Expand Up @@ -261,6 +270,12 @@ def __init__(
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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@
from ._models_py3 import OperationStatusJobsExtendedInfo
from ._models_py3 import OperationStatusProvisionILRExtendedInfo
from ._models_py3 import OperationStatusRecoveryPointExtendedInfo
from ._models_py3 import OperationStatusValidateOperationExtendedInfo
from ._models_py3 import OperationWorkerResponse
from ._models_py3 import PointInTimeRange
from ._models_py3 import PreBackupValidation
Expand Down Expand Up @@ -498,6 +499,7 @@
from ._models import OperationStatusJobsExtendedInfo
from ._models import OperationStatusProvisionILRExtendedInfo
from ._models import OperationStatusRecoveryPointExtendedInfo
from ._models import OperationStatusValidateOperationExtendedInfo
from ._models import OperationWorkerResponse
from ._models import PointInTimeRange
from ._models import PreBackupValidation
Expand Down Expand Up @@ -854,6 +856,7 @@
'OperationStatusJobsExtendedInfo',
'OperationStatusProvisionILRExtendedInfo',
'OperationStatusRecoveryPointExtendedInfo',
'OperationStatusValidateOperationExtendedInfo',
'OperationWorkerResponse',
'PointInTimeRange',
'PreBackupValidation',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10609,6 +10609,7 @@ class OperationStatusExtendedInfo(Model):
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: OperationStatusJobExtendedInfo,
OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo,
OperationStatusValidateOperationExtendedInfo,
OperationStatusRecoveryPointExtendedInfo

All required parameters must be populated in order to send to Azure.
Expand All @@ -10626,7 +10627,7 @@ class OperationStatusExtendedInfo(Model):
}

_subtype_map = {
'object_type': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo', 'OperationStatusRecoveryPointExtendedInfo': 'OperationStatusRecoveryPointExtendedInfo'}
'object_type': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo', 'OperationStatusValidateOperationExtendedInfo': 'OperationStatusValidateOperationExtendedInfo', 'OperationStatusRecoveryPointExtendedInfo': 'OperationStatusRecoveryPointExtendedInfo'}
}

def __init__(self, **kwargs):
Expand Down Expand Up @@ -10751,6 +10752,33 @@ def __init__(self, **kwargs):
self.object_type = 'OperationStatusRecoveryPointExtendedInfo'


class OperationStatusValidateOperationExtendedInfo(OperationStatusExtendedInfo):
"""Operation status extended info for ValidateOperation action.

All required parameters must be populated in order to send to Azure.

:param object_type: Required. Constant filled by server.
:type object_type: str
:param validate_operation_response: Gets the validation operation response
:type validate_operation_response:
~azure.mgmt.recoveryservicesbackup.models.ValidateOperationResponse
"""

_validation = {
'object_type': {'required': True},
}

_attribute_map = {
'object_type': {'key': 'objectType', 'type': 'str'},
'validate_operation_response': {'key': 'validateOperationResponse', 'type': 'ValidateOperationResponse'},
}

def __init__(self, **kwargs):
super(OperationStatusValidateOperationExtendedInfo, self).__init__(**kwargs)
self.validate_operation_response = kwargs.get('validate_operation_response', None)
self.object_type = 'OperationStatusValidateOperationExtendedInfo'


class PointInTimeRange(Model):
"""Provides details for log ranges.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10609,6 +10609,7 @@ class OperationStatusExtendedInfo(Model):
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: OperationStatusJobExtendedInfo,
OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo,
OperationStatusValidateOperationExtendedInfo,
OperationStatusRecoveryPointExtendedInfo

All required parameters must be populated in order to send to Azure.
Expand All @@ -10626,7 +10627,7 @@ class OperationStatusExtendedInfo(Model):
}

_subtype_map = {
'object_type': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo', 'OperationStatusRecoveryPointExtendedInfo': 'OperationStatusRecoveryPointExtendedInfo'}
'object_type': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo', 'OperationStatusValidateOperationExtendedInfo': 'OperationStatusValidateOperationExtendedInfo', 'OperationStatusRecoveryPointExtendedInfo': 'OperationStatusRecoveryPointExtendedInfo'}
}

def __init__(self, **kwargs) -> None:
Expand Down Expand Up @@ -10751,6 +10752,33 @@ def __init__(self, *, updated_recovery_point=None, deleted_backup_item_version:
self.object_type = 'OperationStatusRecoveryPointExtendedInfo'


class OperationStatusValidateOperationExtendedInfo(OperationStatusExtendedInfo):
"""Operation status extended info for ValidateOperation action.

All required parameters must be populated in order to send to Azure.

:param object_type: Required. Constant filled by server.
:type object_type: str
:param validate_operation_response: Gets the validation operation response
:type validate_operation_response:
~azure.mgmt.recoveryservicesbackup.models.ValidateOperationResponse
"""

_validation = {
'object_type': {'required': True},
}

_attribute_map = {
'object_type': {'key': 'objectType', 'type': 'str'},
'validate_operation_response': {'key': 'validateOperationResponse', 'type': 'ValidateOperationResponse'},
}

def __init__(self, *, validate_operation_response=None, **kwargs) -> None:
super(OperationStatusValidateOperationExtendedInfo, self).__init__(**kwargs)
self.validate_operation_response = validate_operation_response
self.object_type = 'OperationStatusValidateOperationExtendedInfo'


class PointInTimeRange(Model):
"""Provides details for log ranges.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
from ._jobs_operations import JobsOperations
from ._backup_protected_items_operations import BackupProtectedItemsOperations
from ._operation_operations import OperationOperations
from ._validate_operation_operations import ValidateOperationOperations
from ._validate_operation_results_operations import ValidateOperationResultsOperations
from ._validate_operation_statuses_operations import ValidateOperationStatusesOperations
from ._backup_engines_operations import BackupEnginesOperations
from ._protection_container_refresh_operation_results_operations import ProtectionContainerRefreshOperationResultsOperations
from ._protectable_containers_operations import ProtectableContainersOperations
Expand Down Expand Up @@ -94,6 +97,9 @@
'JobsOperations',
'BackupProtectedItemsOperations',
'OperationOperations',
'ValidateOperationOperations',
'ValidateOperationResultsOperations',
'ValidateOperationStatusesOperations',
'BackupEnginesOperations',
'ProtectionContainerRefreshOperationResultsOperations',
'ProtectableContainersOperations',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BackupEnginesOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client Api Version. Constant value: "2021-07-01".
:ivar api_version: Client Api Version. Constant value: "2021-10-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2021-07-01"
self.api_version = "2021-10-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BackupJobsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client Api Version. Constant value: "2021-07-01".
:ivar api_version: Client Api Version. Constant value: "2021-10-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2021-07-01"
self.api_version = "2021-10-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BackupOperationResultsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client Api Version. Constant value: "2021-07-01".
:ivar api_version: Client Api Version. Constant value: "2021-10-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2021-07-01"
self.api_version = "2021-10-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BackupOperationStatusesOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client Api Version. Constant value: "2021-07-01".
:ivar api_version: Client Api Version. Constant value: "2021-10-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2021-07-01"
self.api_version = "2021-10-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BackupPoliciesOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client Api Version. Constant value: "2021-07-01".
:ivar api_version: Client Api Version. Constant value: "2021-10-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2021-07-01"
self.api_version = "2021-10-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BackupProtectableItemsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client Api Version. Constant value: "2021-07-01".
:ivar api_version: Client Api Version. Constant value: "2021-10-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2021-07-01"
self.api_version = "2021-10-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BackupProtectedItemsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client Api Version. Constant value: "2021-07-01".
:ivar api_version: Client Api Version. Constant value: "2021-10-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2021-07-01"
self.api_version = "2021-10-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BackupProtectionContainersOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client Api Version. Constant value: "2021-07-01".
:ivar api_version: Client Api Version. Constant value: "2021-10-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2021-07-01"
self.api_version = "2021-10-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BackupProtectionIntentOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client Api Version. Constant value: "2021-07-01".
:ivar api_version: Client Api Version. Constant value: "2021-10-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2021-07-01"
self.api_version = "2021-10-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class BackupResourceEncryptionConfigsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client Api Version. Constant value: "2021-07-01".
:ivar api_version: Client Api Version. Constant value: "2021-10-01".
"""

models = models
Expand All @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2021-07-01"
self.api_version = "2021-10-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class BackupResourceStorageConfigsNonCRROperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client Api Version. Constant value: "2021-07-01".
:ivar api_version: Client Api Version. Constant value: "2021-10-01".
"""

models = models
Expand All @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2021-07-01"
self.api_version = "2021-10-01"

self.config = config

Expand Down
Loading