Skip to content
Merged
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class AzureIaaSVMJobExtendedInfo(Model):
:param progress_percentage: Indicates progress of the job. Null if it has
not started or completed.
:type progress_percentage: float
:param estimated_remaining_duration: Time remaining for execution of this
job.
:type estimated_remaining_duration: str
:param dynamic_error_message: Non localized error message on job
execution.
:type dynamic_error_message: str
Expand All @@ -35,6 +38,7 @@ class AzureIaaSVMJobExtendedInfo(Model):
'property_bag': {'key': 'propertyBag', 'type': '{str}'},
'internal_property_bag': {'key': 'internalPropertyBag', 'type': '{str}'},
'progress_percentage': {'key': 'progressPercentage', 'type': 'float'},
'estimated_remaining_duration': {'key': 'estimatedRemainingDuration', 'type': 'str'},
'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'},
}

Expand All @@ -44,4 +48,5 @@ def __init__(self, **kwargs):
self.property_bag = kwargs.get('property_bag', None)
self.internal_property_bag = kwargs.get('internal_property_bag', None)
self.progress_percentage = kwargs.get('progress_percentage', None)
self.estimated_remaining_duration = kwargs.get('estimated_remaining_duration', None)
self.dynamic_error_message = kwargs.get('dynamic_error_message', None)
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class AzureIaaSVMJobExtendedInfo(Model):
:param progress_percentage: Indicates progress of the job. Null if it has
not started or completed.
:type progress_percentage: float
:param estimated_remaining_duration: Time remaining for execution of this
job.
:type estimated_remaining_duration: str
:param dynamic_error_message: Non localized error message on job
execution.
:type dynamic_error_message: str
Expand All @@ -35,13 +38,15 @@ class AzureIaaSVMJobExtendedInfo(Model):
'property_bag': {'key': 'propertyBag', 'type': '{str}'},
'internal_property_bag': {'key': 'internalPropertyBag', 'type': '{str}'},
'progress_percentage': {'key': 'progressPercentage', 'type': 'float'},
'estimated_remaining_duration': {'key': 'estimatedRemainingDuration', 'type': 'str'},
'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'},
}

def __init__(self, *, tasks_list=None, property_bag=None, internal_property_bag=None, progress_percentage: float=None, dynamic_error_message: str=None, **kwargs) -> None:
def __init__(self, *, tasks_list=None, property_bag=None, internal_property_bag=None, progress_percentage: float=None, estimated_remaining_duration: str=None, dynamic_error_message: str=None, **kwargs) -> None:
super(AzureIaaSVMJobExtendedInfo, self).__init__(**kwargs)
self.tasks_list = tasks_list
self.property_bag = property_bag
self.internal_property_bag = internal_property_bag
self.progress_percentage = progress_percentage
self.estimated_remaining_duration = estimated_remaining_duration
self.dynamic_error_message = dynamic_error_message
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class AzureIaaSVMJobTaskDetails(Model):
:type status: str
:param progress_percentage: Progress of the task.
:type progress_percentage: float
:param task_execution_details: Details about execution of the task.
eg: number of bytes transfered etc
:type task_execution_details: str
"""

_attribute_map = {
Expand All @@ -39,6 +42,7 @@ class AzureIaaSVMJobTaskDetails(Model):
'duration': {'key': 'duration', 'type': 'duration'},
'status': {'key': 'status', 'type': 'str'},
'progress_percentage': {'key': 'progressPercentage', 'type': 'float'},
'task_execution_details': {'key': 'taskExecutionDetails', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -50,3 +54,4 @@ def __init__(self, **kwargs):
self.duration = kwargs.get('duration', None)
self.status = kwargs.get('status', None)
self.progress_percentage = kwargs.get('progress_percentage', None)
self.task_execution_details = kwargs.get('task_execution_details', None)
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class AzureIaaSVMJobTaskDetails(Model):
:type status: str
:param progress_percentage: Progress of the task.
:type progress_percentage: float
:param task_execution_details: Details about execution of the task.
eg: number of bytes transfered etc
:type task_execution_details: str
"""

_attribute_map = {
Expand All @@ -39,9 +42,10 @@ class AzureIaaSVMJobTaskDetails(Model):
'duration': {'key': 'duration', 'type': 'duration'},
'status': {'key': 'status', 'type': 'str'},
'progress_percentage': {'key': 'progressPercentage', 'type': 'float'},
'task_execution_details': {'key': 'taskExecutionDetails', 'type': 'str'},
}

def __init__(self, *, task_id: str=None, start_time=None, end_time=None, instance_id: str=None, duration=None, status: str=None, progress_percentage: float=None, **kwargs) -> None:
def __init__(self, *, task_id: str=None, start_time=None, end_time=None, instance_id: str=None, duration=None, status: str=None, progress_percentage: float=None, task_execution_details: str=None, **kwargs) -> None:
super(AzureIaaSVMJobTaskDetails, self).__init__(**kwargs)
self.task_id = task_id
self.start_time = start_time
Expand All @@ -50,3 +54,4 @@ def __init__(self, *, task_id: str=None, start_time=None, end_time=None, instanc
self.duration = duration
self.status = status
self.progress_percentage = progress_percentage
self.task_execution_details = task_execution_details
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
class AzureWorkloadContainerExtendedInfo(Model):
"""Extended information of the container.

:param host_server_name: Host Os Name in case of Stand Alone and
Cluster Name in case of distributed container.
:param host_server_name: Host Os Name in case of Stand Alone and Cluster
Name in case of distributed container.
:type host_server_name: str
:param inquiry_info: Inquiry Status for the container.
:type inquiry_info: ~azure.mgmt.recoveryservicesbackup.models.InquiryInfo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
class AzureWorkloadContainerExtendedInfo(Model):
"""Extended information of the container.

:param host_server_name: Host Os Name in case of Stand Alone and
Cluster Name in case of distributed container.
:param host_server_name: Host Os Name in case of Stand Alone and Cluster
Name in case of distributed container.
:type host_server_name: str
:param inquiry_info: Inquiry Status for the container.
:type inquiry_info: ~azure.mgmt.recoveryservicesbackup.models.InquiryInfo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ class BMSContainerQueryObject(Model):
'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer',
'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter',
'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer',
'GenericContainer', 'SqlCluster', 'ExchangeDAG', 'SharepointFarm',
'HyperVCluster', 'WindowsClient'
'GenericContainer'
:type container_type: str or
~azure.mgmt.recoveryservicesbackup.models.ContainerType
:param backup_engine_name: Backup engine name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ class BMSContainerQueryObject(Model):
'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer',
'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter',
'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer',
'GenericContainer', 'SqlCluster', 'ExchangeDAG', 'SharepointFarm',
'HyperVCluster', 'WindowsClient'
'GenericContainer'
:type container_type: str or
~azure.mgmt.recoveryservicesbackup.models.ContainerType
:param backup_engine_name: Backup engine name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ class IaasVMRestoreRequest(RestoreRequest):
User will be validated for join action permissions in the linked access.
:type virtual_network_id: str
:param subnet_id: Subnet ID, is the subnet ID associated with the to be
restored VM. For Classic VMs it would be {VnetID}/Subnet/{SubnetName} and,
for the Azure Resource Manager VMs it would be ARM resource ID used to
represent the subnet.
restored VM. For Classic VMs it would be
{VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it
would be ARM resource ID used to represent
the subnet.
:type subnet_id: str
:param target_domain_name_id: Fully qualified ARM ID of the domain name to
be associated to the VM being restored. This applies only to Classic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ class IaasVMRestoreRequest(RestoreRequest):
User will be validated for join action permissions in the linked access.
:type virtual_network_id: str
:param subnet_id: Subnet ID, is the subnet ID associated with the to be
restored VM. For Classic VMs it would be {VnetID}/Subnet/{SubnetName} and,
for the Azure Resource Manager VMs it would be ARM resource ID used to
represent the subnet.
restored VM. For Classic VMs it would be
{VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it
would be ARM resource ID used to represent
the subnet.
:type subnet_id: str
:param target_domain_name_id: Fully qualified ARM ID of the domain name to
be associated to the VM being restored. This applies only to Classic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ class MabJob(Job):
'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer',
'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter',
'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer',
'GenericContainer', 'SqlCluster', 'ExchangeDAG', 'SharepointFarm',
'HyperVCluster', 'WindowsClient'
'GenericContainer'
:type mab_server_type: str or
~azure.mgmt.recoveryservicesbackup.models.MabServerType
:param workload_type: Workload type of backup item. Possible values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ class MabJob(Job):
'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer',
'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter',
'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer',
'GenericContainer', 'SqlCluster', 'ExchangeDAG', 'SharepointFarm',
'HyperVCluster', 'WindowsClient'
'GenericContainer'
:type mab_server_type: str or
~azure.mgmt.recoveryservicesbackup.models.MabServerType
:param workload_type: Workload type of backup item. Possible values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class PreValidateEnableBackupResponse(Model):
:param recommendation: Recommended action for user
:type recommendation: str
:param container_name: Specifies the product specific container name. E.g.
iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required for portal
iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required
for portal
:type container_name: str
:param protected_item_name: Specifies the product specific ds name. E.g.
vm;iaasvmcontainer;rgname;vmname. This is required for portal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class PreValidateEnableBackupResponse(Model):
:param recommendation: Recommended action for user
:type recommendation: str
:param container_name: Specifies the product specific container name. E.g.
iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required for portal
iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required
for portal
:type container_name: str
:param protected_item_name: Specifies the product specific ds name. E.g.
vm;iaasvmcontainer;rgname;vmname. This is required for portal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,30 @@ class HealthStatus(str, Enum):
invalid = "Invalid"


class RecoveryType(str, Enum):

invalid = "Invalid"
original_location = "OriginalLocation"
alternate_location = "AlternateLocation"
restore_disks = "RestoreDisks"


class CopyOptions(str, Enum):

invalid = "Invalid"
create_copy = "CreateCopy"
skip = "Skip"
overwrite = "Overwrite"
fail_on_conflict = "FailOnConflict"


class RestoreRequestType(str, Enum):

invalid = "Invalid"
full_share_restore = "FullShareRestore"
item_level_restore = "ItemLevelRestore"


class JobSupportedAction(str, Enum):

invalid = "Invalid"
Expand Down Expand Up @@ -73,6 +97,13 @@ class ProtectedItemHealthStatus(str, Enum):
ir_pending = "IRPending"


class OverwriteOptions(str, Enum):

invalid = "Invalid"
fail_on_conflict = "FailOnConflict"
overwrite = "Overwrite"


class WorkloadItemType(str, Enum):

invalid = "Invalid"
Expand All @@ -82,6 +113,13 @@ class WorkloadItemType(str, Enum):
sap_hana_database = "SAPHanaDatabase"


class SQLDataDirectoryType(str, Enum):

invalid = "Invalid"
data = "Data"
log = "Log"


class UsagesUnit(str, Enum):

count = "Count"
Expand Down Expand Up @@ -239,11 +277,6 @@ class MabServerType(str, Enum):
sqlag_work_load_container = "SQLAGWorkLoadContainer"
storage_container = "StorageContainer"
generic_container = "GenericContainer"
sql_cluster = "SqlCluster"
exchange_dag = "ExchangeDAG"
sharepoint_farm = "SharepointFarm"
hyper_vcluster = "HyperVCluster"
windows_client = "WindowsClient"


class WorkloadType(str, Enum):
Expand Down Expand Up @@ -351,44 +384,13 @@ class AzureFileShareType(str, Enum):
xsync = "XSync"


class RecoveryType(str, Enum):

invalid = "Invalid"
original_location = "OriginalLocation"
alternate_location = "AlternateLocation"
restore_disks = "RestoreDisks"


class CopyOptions(str, Enum):

invalid = "Invalid"
create_copy = "CreateCopy"
skip = "Skip"
overwrite = "Overwrite"
fail_on_conflict = "FailOnConflict"


class RestoreRequestType(str, Enum):

invalid = "Invalid"
full_share_restore = "FullShareRestore"
item_level_restore = "ItemLevelRestore"


class InquiryStatus(str, Enum):

invalid = "Invalid"
success = "Success"
failed = "Failed"


class SQLDataDirectoryType(str, Enum):

invalid = "Invalid"
data = "Data"
log = "Log"


class BackupType(str, Enum):

invalid = "Invalid"
Expand All @@ -406,13 +408,6 @@ class RestorePointType(str, Enum):
differential = "Differential"


class OverwriteOptions(str, Enum):

invalid = "Invalid"
fail_on_conflict = "FailOnConflict"
overwrite = "Overwrite"


class StorageType(str, Enum):

invalid = "Invalid"
Expand Down Expand Up @@ -451,11 +446,6 @@ class ContainerType(str, Enum):
sqlag_work_load_container = "SQLAGWorkLoadContainer"
storage_container = "StorageContainer"
generic_container = "GenericContainer"
sql_cluster = "SqlCluster"
exchange_dag = "ExchangeDAG"
sharepoint_farm = "SharepointFarm"
hyper_vcluster = "HyperVCluster"
windows_client = "WindowsClient"


class RestorePointQueryType(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .validate_restore_operation_request import ValidateRestoreOperationRequest


class ValidateIaasVMRestoreOperationRequest(ValidateRestoreOperationRequest):
"""AzureRestoreValidation request.

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 restore_request: Sets restore request to be validated
:type restore_request:
~azure.mgmt.recoveryservicesbackup.models.RestoreRequest
"""

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

_attribute_map = {
'object_type': {'key': 'objectType', 'type': 'str'},
'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'},
}

def __init__(self, **kwargs):
super(ValidateIaasVMRestoreOperationRequest, self).__init__(**kwargs)
self.object_type = 'ValidateIaasVMRestoreOperationRequest'
Loading