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
1 change: 1 addition & 0 deletions azure-mgmt-recoveryservices/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
22 changes: 3 additions & 19 deletions azure-mgmt-recoveryservices/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 All @@ -47,3 +28,6 @@ Provide Feedback
If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.


.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-recoveryservices%2FREADME.png
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
from .jobs_summary_py3 import JobsSummary
from .monitoring_summary_py3 import MonitoringSummary
from .replication_usage_py3 import ReplicationUsage
from .check_name_availability_parameters_py3 import CheckNameAvailabilityParameters
from .check_name_availability_result_py3 import CheckNameAvailabilityResult
from .check_name_availability_result_resource_py3 import CheckNameAvailabilityResultResource
from .client_discovery_display_py3 import ClientDiscoveryDisplay
from .client_discovery_for_log_specification_py3 import ClientDiscoveryForLogSpecification
from .client_discovery_for_service_specification_py3 import ClientDiscoveryForServiceSpecification
Expand All @@ -45,6 +48,9 @@
from .jobs_summary import JobsSummary
from .monitoring_summary import MonitoringSummary
from .replication_usage import ReplicationUsage
from .check_name_availability_parameters import CheckNameAvailabilityParameters
from .check_name_availability_result import CheckNameAvailabilityResult
from .check_name_availability_result_resource import CheckNameAvailabilityResultResource
from .client_discovery_display import ClientDiscoveryDisplay
from .client_discovery_for_log_specification import ClientDiscoveryForLogSpecification
from .client_discovery_for_service_specification import ClientDiscoveryForServiceSpecification
Expand Down Expand Up @@ -83,6 +89,9 @@
'JobsSummary',
'MonitoringSummary',
'ReplicationUsage',
'CheckNameAvailabilityParameters',
'CheckNameAvailabilityResult',
'CheckNameAvailabilityResultResource',
'ClientDiscoveryDisplay',
'ClientDiscoveryForLogSpecification',
'ClientDiscoveryForServiceSpecification',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 msrest.serialization import Model


class CheckNameAvailabilityParameters(Model):
"""Resource Name availability input parameters - Resource type and resource
name.

:param type: Describes the Resource type:
Microsoft.RecoveryServices/Vaults
:type type: str
:param name: Resource name for which availability needs to be checked
:type name: str
"""

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CheckNameAvailabilityParameters, self).__init__(**kwargs)
self.type = kwargs.get('type', None)
self.name = kwargs.get('name', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 msrest.serialization import Model


class CheckNameAvailabilityParameters(Model):
"""Resource Name availability input parameters - Resource type and resource
name.

:param type: Describes the Resource type:
Microsoft.RecoveryServices/Vaults
:type type: str
:param name: Resource name for which availability needs to be checked
:type name: str
"""

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
}

def __init__(self, *, type: str=None, name: str=None, **kwargs) -> None:
super(CheckNameAvailabilityParameters, self).__init__(**kwargs)
self.type = type
self.name = name
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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 msrest.serialization import Model


class CheckNameAvailabilityResult(Model):
"""Response for check name availability API. Resource provider will set
availability as true | false.

:param name_available:
:type name_available: bool
:param reason:
:type reason: str
:param message:
:type message: str
"""

_attribute_map = {
'name_available': {'key': 'nameAvailable', 'type': 'bool'},
'reason': {'key': 'reason', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CheckNameAvailabilityResult, self).__init__(**kwargs)
self.name_available = kwargs.get('name_available', None)
self.reason = kwargs.get('reason', None)
self.message = kwargs.get('message', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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 msrest.serialization import Model


class CheckNameAvailabilityResult(Model):
"""Response for check name availability API. Resource provider will set
availability as true | false.

:param name_available:
:type name_available: bool
:param reason:
:type reason: str
:param message:
:type message: str
"""

_attribute_map = {
'name_available': {'key': 'nameAvailable', 'type': 'bool'},
'reason': {'key': 'reason', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, *, name_available: bool=None, reason: str=None, message: str=None, **kwargs) -> None:
super(CheckNameAvailabilityResult, self).__init__(**kwargs)
self.name_available = name_available
self.reason = reason
self.message = message
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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 .resource import Resource


class CheckNameAvailabilityResultResource(Resource):
"""Response for check name availability API. Resource provider will set
availability as true | false.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id represents the complete path to the resource.
:vartype id: str
:ivar name: Resource name associated with the resource.
:vartype name: str
:ivar type: Resource type represents the complete path of the form
Namespace/ResourceType/ResourceType/...
:vartype type: str
:param e_tag: Optional ETag.
:type e_tag: str
:param properties: CheckNameAvailabilityResultResource properties
:type properties:
~azure.mgmt.recoveryservices.models.CheckNameAvailabilityResult
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'e_tag': {'key': 'eTag', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'CheckNameAvailabilityResult'},
}

def __init__(self, **kwargs):
super(CheckNameAvailabilityResultResource, self).__init__(**kwargs)
self.properties = kwargs.get('properties', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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 .resource_py3 import Resource


class CheckNameAvailabilityResultResource(Resource):
"""Response for check name availability API. Resource provider will set
availability as true | false.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id represents the complete path to the resource.
:vartype id: str
:ivar name: Resource name associated with the resource.
:vartype name: str
:ivar type: Resource type represents the complete path of the form
Namespace/ResourceType/ResourceType/...
:vartype type: str
:param e_tag: Optional ETag.
:type e_tag: str
:param properties: CheckNameAvailabilityResultResource properties
:type properties:
~azure.mgmt.recoveryservices.models.CheckNameAvailabilityResult
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'e_tag': {'key': 'eTag', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'CheckNameAvailabilityResult'},
}

def __init__(self, *, e_tag: str=None, properties=None, **kwargs) -> None:
super(CheckNameAvailabilityResultResource, self).__init__(e_tag=e_tag, **kwargs)
self.properties = properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from .vault_certificates_operations import VaultCertificatesOperations
from .registered_identities_operations import RegisteredIdentitiesOperations
from .replication_usages_operations import ReplicationUsagesOperations
from .recovery_services_operations import RecoveryServicesOperations
from .vaults_operations import VaultsOperations
from .operations import Operations
from .vault_extended_info_operations import VaultExtendedInfoOperations
Expand All @@ -21,6 +22,7 @@
'VaultCertificatesOperations',
'RegisteredIdentitiesOperations',
'ReplicationUsagesOperations',
'RecoveryServicesOperations',
'VaultsOperations',
'Operations',
'VaultExtendedInfoOperations',
Expand Down
Loading