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] Added new field for KPI health #1549

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
Expand Up @@ -168,6 +168,7 @@
from ._models_py3 import JobResource
from ._models_py3 import KEKDetails
from ._models_py3 import KeyAndSecretDetails
from ._models_py3 import KPIResourceHealthDetails
from ._models_py3 import LogSchedulePolicy
from ._models_py3 import LongTermRetentionPolicy
from ._models_py3 import LongTermSchedulePolicy
Expand Down Expand Up @@ -408,6 +409,7 @@
from ._models import JobResource
from ._models import KEKDetails
from ._models import KeyAndSecretDetails
from ._models import KPIResourceHealthDetails
from ._models import LogSchedulePolicy
from ._models import LongTermRetentionPolicy
from ._models import LongTermSchedulePolicy
Expand Down Expand Up @@ -506,6 +508,7 @@
ProvisioningState,
PrivateEndpointConnectionStatus,
ProtectionState,
ResourceHealthStatus,
RecoveryType,
CopyOptions,
RestoreRequestType,
Expand Down Expand Up @@ -716,6 +719,7 @@
'JobResource',
'KEKDetails',
'KeyAndSecretDetails',
'KPIResourceHealthDetails',
'LogSchedulePolicy',
'LongTermRetentionPolicy',
'LongTermSchedulePolicy',
Expand Down Expand Up @@ -813,6 +817,7 @@
'ProvisioningState',
'PrivateEndpointConnectionStatus',
'ProtectionState',
'ResourceHealthStatus',
'RecoveryType',
'CopyOptions',
'RestoreRequestType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,9 @@ class AzureFileshareProtectedItem(ProtectedItem):
:param last_backup_time: Timestamp of the last backup operation on this
backup item.
:type last_backup_time: datetime
:param kpis_healths: Health details of different KPIs
:type kpis_healths: dict[str,
~azure.mgmt.recoveryservicesbackup.models.KPIResourceHealthDetails]
:param extended_info: Additional information with this backup item.
:type extended_info:
~azure.mgmt.recoveryservicesbackup.models.AzureFileshareProtectedItemExtendedInfo
Expand Down Expand Up @@ -777,6 +780,7 @@ class AzureFileshareProtectedItem(ProtectedItem):
'protection_state': {'key': 'protectionState', 'type': 'str'},
'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'},
'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'},
'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'},
'extended_info': {'key': 'extendedInfo', 'type': 'AzureFileshareProtectedItemExtendedInfo'},
}

Expand All @@ -787,6 +791,7 @@ def __init__(self, **kwargs):
self.protection_state = kwargs.get('protection_state', None)
self.last_backup_status = kwargs.get('last_backup_status', None)
self.last_backup_time = kwargs.get('last_backup_time', None)
self.kpis_healths = kwargs.get('kpis_healths', None)
self.extended_info = kwargs.get('extended_info', None)
self.protected_item_type = 'AzureFileShareProtectedItem'

Expand Down Expand Up @@ -1428,6 +1433,9 @@ class AzureIaaSVMProtectedItem(ProtectedItem):
:param health_details: Health details on this backup item.
:type health_details:
list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails]
:param kpis_healths: Health details of different KPIs
:type kpis_healths: dict[str,
~azure.mgmt.recoveryservicesbackup.models.KPIResourceHealthDetails]
:param last_backup_status: Last backup operation status.
:type last_backup_status: str
:param last_backup_time: Timestamp of the last backup operation on this
Expand Down Expand Up @@ -1468,6 +1476,7 @@ class AzureIaaSVMProtectedItem(ProtectedItem):
'protection_state': {'key': 'protectionState', 'type': 'str'},
'health_status': {'key': 'healthStatus', 'type': 'str'},
'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'},
'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'},
'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'},
'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'},
'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'},
Expand All @@ -1487,6 +1496,7 @@ def __init__(self, **kwargs):
self.protection_state = kwargs.get('protection_state', None)
self.health_status = kwargs.get('health_status', None)
self.health_details = kwargs.get('health_details', None)
self.kpis_healths = kwargs.get('kpis_healths', None)
self.last_backup_status = kwargs.get('last_backup_status', None)
self.last_backup_time = kwargs.get('last_backup_time', None)
self.protected_item_data_id = kwargs.get('protected_item_data_id', None)
Expand Down Expand Up @@ -1566,6 +1576,9 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem):
:param health_details: Health details on this backup item.
:type health_details:
list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails]
:param kpis_healths: Health details of different KPIs
:type kpis_healths: dict[str,
~azure.mgmt.recoveryservicesbackup.models.KPIResourceHealthDetails]
:param last_backup_status: Last backup operation status.
:type last_backup_status: str
:param last_backup_time: Timestamp of the last backup operation on this
Expand Down Expand Up @@ -1606,6 +1619,7 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem):
'protection_state': {'key': 'protectionState', 'type': 'str'},
'health_status': {'key': 'healthStatus', 'type': 'str'},
'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'},
'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'},
'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'},
'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'},
'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'},
Expand Down Expand Up @@ -1783,6 +1797,9 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem):
:param health_details: Health details on this backup item.
:type health_details:
list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails]
:param kpis_healths: Health details of different KPIs
:type kpis_healths: dict[str,
~azure.mgmt.recoveryservicesbackup.models.KPIResourceHealthDetails]
:param last_backup_status: Last backup operation status.
:type last_backup_status: str
:param last_backup_time: Timestamp of the last backup operation on this
Expand Down Expand Up @@ -1823,6 +1840,7 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem):
'protection_state': {'key': 'protectionState', 'type': 'str'},
'health_status': {'key': 'healthStatus', 'type': 'str'},
'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'},
'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'},
'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'},
'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'},
'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'},
Expand Down Expand Up @@ -3490,6 +3508,9 @@ class AzureVmWorkloadProtectedItem(ProtectedItem):
:param extended_info: Additional information for this backup item.
:type extended_info:
~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo
:param kpis_healths: Health details of different KPIs
:type kpis_healths: dict[str,
~azure.mgmt.recoveryservicesbackup.models.KPIResourceHealthDetails]
"""

_validation = {
Expand Down Expand Up @@ -3523,6 +3544,7 @@ class AzureVmWorkloadProtectedItem(ProtectedItem):
'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'},
'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'},
'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'},
'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'},
}

_subtype_map = {
Expand All @@ -3543,6 +3565,7 @@ def __init__(self, **kwargs):
self.protected_item_data_source_id = kwargs.get('protected_item_data_source_id', None)
self.protected_item_health_status = kwargs.get('protected_item_health_status', None)
self.extended_info = kwargs.get('extended_info', None)
self.kpis_healths = kwargs.get('kpis_healths', None)
self.protected_item_type = 'AzureVmWorkloadProtectedItem'


Expand Down Expand Up @@ -3711,6 +3734,9 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem):
:param extended_info: Additional information for this backup item.
:type extended_info:
~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo
:param kpis_healths: Health details of different KPIs
:type kpis_healths: dict[str,
~azure.mgmt.recoveryservicesbackup.models.KPIResourceHealthDetails]
"""

_validation = {
Expand Down Expand Up @@ -3744,6 +3770,7 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem):
'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'},
'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'},
'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'},
'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'},
}

def __init__(self, **kwargs):
Expand Down Expand Up @@ -4089,6 +4116,9 @@ class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem):
:param extended_info: Additional information for this backup item.
:type extended_info:
~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo
:param kpis_healths: Health details of different KPIs
:type kpis_healths: dict[str,
~azure.mgmt.recoveryservicesbackup.models.KPIResourceHealthDetails]
"""

_validation = {
Expand Down Expand Up @@ -4122,6 +4152,7 @@ class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem):
'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'},
'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'},
'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'},
'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'},
}

def __init__(self, **kwargs):
Expand Down Expand Up @@ -4537,6 +4568,9 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem):
:param extended_info: Additional information for this backup item.
:type extended_info:
~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo
:param kpis_healths: Health details of different KPIs
:type kpis_healths: dict[str,
~azure.mgmt.recoveryservicesbackup.models.KPIResourceHealthDetails]
"""

_validation = {
Expand Down Expand Up @@ -4570,6 +4604,7 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem):
'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'},
'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'},
'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'},
'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'},
}

def __init__(self, **kwargs):
Expand Down Expand Up @@ -8299,6 +8334,30 @@ def __init__(self, **kwargs):
self.encryption_mechanism = kwargs.get('encryption_mechanism', None)


class KPIResourceHealthDetails(Model):
"""KPI Resource Health Details.

:param resource_health_status: Resource Health Status. Possible values
include: 'Healthy', 'TransientDegraded', 'PersistentDegraded',
'TransientUnhealthy', 'PersistentUnhealthy', 'Invalid'
:type resource_health_status: str or
~azure.mgmt.recoveryservicesbackup.models.ResourceHealthStatus
:param resource_health_details: Resource Health Status
:type resource_health_details:
list[~azure.mgmt.recoveryservicesbackup.models.ResourceHealthDetails]
"""

_attribute_map = {
'resource_health_status': {'key': 'resourceHealthStatus', 'type': 'str'},
'resource_health_details': {'key': 'resourceHealthDetails', 'type': '[ResourceHealthDetails]'},
}

def __init__(self, **kwargs):
super(KPIResourceHealthDetails, self).__init__(**kwargs)
self.resource_health_status = kwargs.get('resource_health_status', None)
self.resource_health_details = kwargs.get('resource_health_details', None)


class SchedulePolicy(Model):
"""Base class for backup schedule.

Expand Down
Loading