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
19 changes: 0 additions & 19 deletions azure-mgmt-recoveryservicesbackup/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell

pip uninstall azure


Usage
=====

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class BackupStatusResponse(Model):
'Protected', 'ProtectionFailed'
:type protection_status: str or
~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus
:param vault_id: Specifies the arm resource id of the vault
:type vault_id: str
:param fabric_name: Specifies the fabric name - Azure or AD. Possible
values include: 'Invalid', 'Azure'
:type fabric_name: str or
Expand All @@ -42,6 +44,7 @@ class BackupStatusResponse(Model):

_attribute_map = {
'protection_status': {'key': 'protectionStatus', 'type': 'str'},
'vault_id': {'key': 'vaultId', 'type': 'str'},
'fabric_name': {'key': 'fabricName', 'type': 'str'},
'container_name': {'key': 'containerName', 'type': 'str'},
'protected_item_name': {'key': 'protectedItemName', 'type': 'str'},
Expand All @@ -54,6 +57,7 @@ class BackupStatusResponse(Model):
def __init__(self, **kwargs):
super(BackupStatusResponse, self).__init__(**kwargs)
self.protection_status = kwargs.get('protection_status', None)
self.vault_id = kwargs.get('vault_id', None)
self.fabric_name = kwargs.get('fabric_name', None)
self.container_name = kwargs.get('container_name', None)
self.protected_item_name = kwargs.get('protected_item_name', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class BackupStatusResponse(Model):
'Protected', 'ProtectionFailed'
:type protection_status: str or
~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus
:param vault_id: Specifies the arm resource id of the vault
:type vault_id: str
:param fabric_name: Specifies the fabric name - Azure or AD. Possible
values include: 'Invalid', 'Azure'
:type fabric_name: str or
Expand All @@ -42,6 +44,7 @@ class BackupStatusResponse(Model):

_attribute_map = {
'protection_status': {'key': 'protectionStatus', 'type': 'str'},
'vault_id': {'key': 'vaultId', 'type': 'str'},
'fabric_name': {'key': 'fabricName', 'type': 'str'},
'container_name': {'key': 'containerName', 'type': 'str'},
'protected_item_name': {'key': 'protectedItemName', 'type': 'str'},
Expand All @@ -51,9 +54,10 @@ class BackupStatusResponse(Model):
'registration_status': {'key': 'registrationStatus', 'type': 'str'},
}

def __init__(self, *, protection_status=None, fabric_name=None, container_name: str=None, protected_item_name: str=None, error_code: str=None, error_message: str=None, policy_name: str=None, registration_status: str=None, **kwargs) -> None:
def __init__(self, *, protection_status=None, vault_id: str=None, fabric_name=None, container_name: str=None, protected_item_name: str=None, error_code: str=None, error_message: str=None, policy_name: str=None, registration_status: str=None, **kwargs) -> None:
super(BackupStatusResponse, self).__init__(**kwargs)
self.protection_status = protection_status
self.vault_id = vault_id
self.fabric_name = fabric_name
self.container_name = container_name
self.protected_item_name = protected_item_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class PreValidateEnableBackupRequest(Model):
~azure.mgmt.recoveryservicesbackup.models.DataSourceType
:param resource_id: ARM Virtual Machine Id
:type resource_id: str
:param vault_id: Specifies the arm resource id of the vault
:type vault_id: str
:param properties: Configuration of VM if any needs to be validated like
OS type etc
:type properties: str
Expand All @@ -37,11 +39,13 @@ class PreValidateEnableBackupRequest(Model):
_attribute_map = {
'resource_type': {'key': 'resourceType', 'type': 'str'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'vault_id': {'key': 'vaultId', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'str'},
}

def __init__(self, **kwargs):
super(PreValidateEnableBackupRequest, self).__init__(**kwargs)
self.resource_type = kwargs.get('resource_type', None)
self.resource_id = kwargs.get('resource_id', None)
self.vault_id = kwargs.get('vault_id', None)
self.properties = kwargs.get('properties', None)
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class PreValidateEnableBackupRequest(Model):
~azure.mgmt.recoveryservicesbackup.models.DataSourceType
:param resource_id: ARM Virtual Machine Id
:type resource_id: str
:param vault_id: Specifies the arm resource id of the vault
:type vault_id: str
:param properties: Configuration of VM if any needs to be validated like
OS type etc
:type properties: str
Expand All @@ -37,11 +39,13 @@ class PreValidateEnableBackupRequest(Model):
_attribute_map = {
'resource_type': {'key': 'resourceType', 'type': 'str'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'vault_id': {'key': 'vaultId', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'str'},
}

def __init__(self, *, resource_type=None, resource_id: str=None, properties: str=None, **kwargs) -> None:
def __init__(self, *, resource_type=None, resource_id: str=None, vault_id: str=None, properties: str=None, **kwargs) -> None:
super(PreValidateEnableBackupRequest, self).__init__(**kwargs)
self.resource_type = resource_type
self.resource_id = resource_id
self.vault_id = vault_id
self.properties = properties